Yang Luo
49022ef565
Revert "fix: openid address format ( #1157 )"
...
This reverts commit a447d64bf217d260eb28d7112c167549467cc9c2.
2022-09-25 09:54:29 +08:00
Mr Forest
07c1e3b836
feat: support simple LDAP server ( #1155 )
...
* feat:Support simple ldap server
* fix:fix review problems
* fix:fix review problems
2022-09-24 21:48:29 +08:00
Taoning Ge
a447d64bf2
fix: openid address format ( #1157 )
2022-09-24 15:34:11 +08:00
Gucheng Wang
575a248c41
Add TestGetEmailsForUsers()
2022-09-22 20:51:50 +08:00
Gucheng Wang
084a5c3e6b
Show logs to org admin
2022-09-18 16:16:45 +08:00
Gucheng Wang
e1331f314d
Add RequireSignedInUser()
2022-09-18 15:43:49 +08:00
Yixiang Zhao
604033aa02
feat: use Casdoor to manage Casbin DB table ( #1100 )
...
* feat: use Casdoor to manage Casbin DB table
Signed-off-by: Yixiang Zhao <seriouszyx@foxmail.com>
* fix: remove trivial codes
Signed-off-by: Yixiang Zhao <seriouszyx@foxmail.com>
* chore: go fmt
Signed-off-by: Yixiang Zhao <seriouszyx@foxmail.com>
* feat: support role definition
Signed-off-by: Yixiang Zhao <seriouszyx@foxmail.com>
* fix: i18n
Signed-off-by: Yixiang Zhao <seriouszyx@foxmail.com>
* fix: i18n
Signed-off-by: Yixiang Zhao <seriouszyx@foxmail.com>
Signed-off-by: Yixiang Zhao <seriouszyx@foxmail.com>
2022-09-14 22:14:13 +08:00
Yixiang Zhao
729c20393c
fix: missing providers and org in GetDefaultApplication ( #1123 )
...
Signed-off-by: Yixiang Zhao <seriouszyx@foxmail.com>
Signed-off-by: Yixiang Zhao <seriouszyx@foxmail.com>
2022-09-13 22:54:05 +08:00
Gucheng
5707e38912
feat: add batchSize to conf ( #1120 )
2022-09-13 20:31:22 +08:00
Yixiang Zhao
b6cdc46023
feat: add defaultApplication for Orgnization ( #1111 )
...
* feat: add defaultApplication for Orgnization
Signed-off-by: Yixiang Zhao <seriouszyx@foxmail.com>
* fix: remove redundant codes
Signed-off-by: Yixiang Zhao <seriouszyx@foxmail.com>
* fix: don't use app-built-in
Signed-off-by: Yixiang Zhao <seriouszyx@foxmail.com>
* fix: add query param
Signed-off-by: Yixiang Zhao <seriouszyx@foxmail.com>
* Update organization.go
* Update organization.go
Signed-off-by: Yixiang Zhao <seriouszyx@foxmail.com>
Co-authored-by: Yang Luo <hsluoyz@qq.com>
2022-09-10 20:41:45 +08:00
Gucheng Wang
c661a57cb2
Support regex in CheckRedirectUriValid()
2022-09-10 13:12:36 +08:00
tom2nonames
8456b7f7c4
fix: with error pq: column "DingTalk" of relation "user" does not exist ( #1116 )
...
* feat: add dingtalk union_id
* fix: with pg, column Dingtalk of relation user table does not exist.
* Update user_util.go
Co-authored-by: Yang Luo <hsluoyz@qq.com>
2022-09-10 13:08:37 +08:00
leoshine
1edb91b3a3
feat: custom login form and background ( #1107 )
...
* feat: custom login form and background
Signed-off-by: magicwind <2814461814@qq.com>
* feat: costom login form border
* chore: update i18
* Update ApplicationEditPage.js
* Update LoginPage.js
* Update SignupPage.js
* Update LoginPage.js
* Update ApplicationEditPage.js
Signed-off-by: magicwind <2814461814@qq.com>
Co-authored-by: Gucheng <85475922+nomeguy@users.noreply.github.com>
2022-09-10 00:56:37 +08:00
tom2nonames
6035b98653
feat: add dingtalk union_id ( #1110 )
2022-09-08 14:44:06 +08:00
Gucheng Wang
8128671c8c
Improve email code
2022-09-04 12:15:07 +08:00
cofecatt
ee54dec3b3
feat: add support for mysubmail ( #1095 )
...
* feat: add support for mysubmail
* Update email.go
Co-authored-by: Yang Luo <hsluoyz@qq.com>
2022-09-04 12:09:50 +08:00
Gucheng Wang
d278bc9651
Add receiver for Email provider
2022-09-04 11:37:36 +08:00
Yixiang Zhao
0395b7e1a9
feat: migrate permission data ( #1083 )
...
Signed-off-by: Yixiang Zhao <seriouszyx@foxmail.com>
Signed-off-by: Yixiang Zhao <seriouszyx@foxmail.com>
Co-authored-by: Yang Luo <hsluoyz@qq.com>
2022-09-03 16:45:58 +08:00
Gucheng Wang
4536fd0636
Use app.conf value in getOriginFromHost()
2022-09-03 15:12:34 +08:00
cofecatt
e266696b32
feat: add default permission to built-in group ( #1087 )
...
* fix: add default permission
* fix: add default permission
* fix: add default permission
2022-09-02 12:03:13 +08:00
Resulte Lee
8da50b7893
feat: extend managed accounts for get-account api ( #1068 )
...
* feat: add get-extend-account api
* feat: extend managed accounts for get-account api
* fix go-linter err
* Use GetApplicationsByOrganizationName
2022-08-30 00:57:27 +08:00
Gucheng Wang
c62983d734
Use conf.GetConfigString()
2022-08-29 21:26:00 +08:00
q1anx1
411d76798d
fix: fix upload file security issue ( #1063 )
...
* fix: fix upload file security issue
* fix: fix
2022-08-25 11:34:09 +08:00
Yixiang Zhao
7b0b426a76
feat: check model grammar when saving and provide a ACL model as init data ( #1062 )
...
Signed-off-by: Yixiang Zhao <seriouszyx@foxmail.com>
Signed-off-by: Yixiang Zhao <seriouszyx@foxmail.com>
2022-08-24 17:21:05 +08:00
conghuhu
a383af0ebc
feat: fix token info not contains roles and permissions ( #1060 )
...
* fix: fix token info not contains roles and permissions
feat: remove repeated code for obtaining roles and permissions in user controller
* Update user.go
* Update user.go
* Update token.go
Co-authored-by: Yang Luo <hsluoyz@qq.com>
2022-08-24 01:41:26 +08:00
Resulte Lee
c1fe547939
fix: not start countdown if SMS fails to send ( #1057 )
2022-08-22 23:06:41 +08:00
Gucheng Wang
2d3d1167bb
Fix HasPromptPage() for signup items
2022-08-22 11:51:20 +08:00
Resulte Lee
1f11d22c1c
fix: add managed account table for supporting Chrome extension to auto login ( #1030 )
...
* feat: add manage accounts table(support chrome extension to auto login)
* fix go lint err
* rename manageAccounts to managedAccounts
* expand up&down buttom column width
* rename ManagedAccountsTable to ManagedAccountTable
2022-08-22 00:25:39 +08:00
疯魔慕薇
08a1e7ae32
fix: keep phone/email unique. ( #1038 )
...
Signed-off-by: 疯魔慕薇 <kfanjian@gmail.com>
Signed-off-by: 疯魔慕薇 <kfanjian@gmail.com>
2022-08-20 12:14:08 +08:00
Yixiang Zhao
80c0940e30
feat: initialize the default permission ( #1029 )
...
Signed-off-by: Yixiang Zhao <seriouszyx@foxmail.com>
Signed-off-by: Yixiang Zhao <seriouszyx@foxmail.com>
2022-08-19 11:59:35 +08:00
Yixiang Zhao
8e9ed1205b
feat: support RBAC with domains model and add adapter to specify the table name for policy storage ( #1020 )
...
* feat: support RBAC with domains model and add adapter to specify the table name for policy storage
Signed-off-by: Yixiang Zhao <seriouszyx@foxmail.com>
* fix some bugs
Signed-off-by: Yixiang Zhao <seriouszyx@foxmail.com>
* add i18n
Signed-off-by: Yixiang Zhao <seriouszyx@foxmail.com>
Signed-off-by: Yixiang Zhao <seriouszyx@foxmail.com>
2022-08-18 11:49:32 +08:00
q1anx1
aedef1eea1
feat(login): add login limit ( #1023 )
...
* feat(login): add login limit
* chore: rename vars
* chore: use `string`
* fix: clear the signin error times after succeessfull login
* chore: modify code position
2022-08-17 01:39:53 +08:00
疯魔慕薇
2dcdfbe6d3
fix: error login logic of mobile phone login ( #1017 )
...
* fix : #1016
1. Limit username cannot be digital.
2. Check avoid repeat register with same phone or email.
Signed-off-by: 疯魔慕薇 <kfanjian@gmail.com>
* Update check.go
Signed-off-by: 疯魔慕薇 <kfanjian@gmail.com>
Co-authored-by: Yang Luo <hsluoyz@qq.com>
2022-08-16 00:14:26 +08:00
Gucheng Wang
c92d34e27c
Add GetPermissionsBySubmitter()
2022-08-15 14:09:12 +08:00
Yixiang Zhao
dfbf7753c3
feat: support RBAC model in permission ( #1006 )
...
Signed-off-by: Yixiang Zhao <seriouszyx@foxmail.com>
Signed-off-by: Yixiang Zhao <seriouszyx@foxmail.com>
2022-08-15 10:24:26 +08:00
leoshine
ba732b3075
feat: use staticBaseUrl for all static resources ( #1015 )
...
* feat: modify system image link
* Update App.less
Co-authored-by: Yang Luo <hsluoyz@qq.com>
2022-08-15 09:18:21 +08:00
Ryao
6676cc8ff3
fix: add JTI name to JWT token ( #989 )
...
* feat: add jti to jwt
* fix
* fix
2022-08-11 14:32:47 +08:00
Gucheng Wang
f716a0985f
Add disableSsl to provider.
2022-08-09 23:38:35 +08:00
Mikey
79119760f2
style: golint ( #988 )
2022-08-09 16:50:49 +08:00
Mikey
802995ed16
refactor: remove WeChat unionId to properties ( #985 )
2022-08-08 18:43:12 +08:00
Gucheng Wang
f914e8e929
Add permission_enforcer.go
2022-08-07 23:57:06 +08:00
Yixiang Zhao
dc33b41107
feat: expose some casbin APIs ( #955 )
...
* feat: expose some casbin APIs
Signed-off-by: Yixiang Zhao <seriouszyx@foxmail.com>
* feat: add BatchEnforce API
Signed-off-by: Yixiang Zhao <seriouszyx@foxmail.com>
* fix: solve requested changes
Signed-off-by: Yixiang Zhao <seriouszyx@foxmail.com>
2022-08-07 23:42:45 +08:00
Gucheng Wang
32b4d98c2a
Add ExtendProductWithProviders().
2022-08-07 15:45:06 +08:00
q1anx1
2ea58cd639
chore(style): use gofumpt
to fmt go code ( #967 )
2022-08-07 12:26:14 +08:00
Artem
aafdc546fa
fix: panic when creating a user in a non-existent org ( #969 )
2022-08-06 22:30:56 +08:00
Gucheng Wang
d55ae7d1d2
Enable some other DBs
2022-08-04 20:28:09 +08:00
Yang Luo
1600615aca
Support sqlite3 DB
2022-07-31 18:11:18 +08:00
Mikey
2bb8491499
fix: unable to get user if profile is private ( #936 )
2022-07-31 10:54:41 +08:00
Mikey
293283ed25
feat: add get user by phone ( #934 )
...
* fix: check reset phone & email modify rules
* Update verification.go
* Update organization.go
* feat: add get user by phone
Co-authored-by: Yang Luo <hsluoyz@qq.com>
2022-07-31 01:02:28 +08:00
q1anx1
9cb519d1e9
fix: Admins should not be allowed to add third-party login for their members ( #932 )
...
* feat: admin can unlink the other user
* feat: global admin can unlink other user
* fix
2022-07-30 23:11:02 +08:00