Yang Luo
cf10738f45
Fix typo in AddUserKeys()
2023-10-31 13:31:12 +08:00
Yang Luo
ac00713c20
Improve error handling for object/user.go
2023-10-31 13:20:44 +08:00
Yang Luo
a616127909
Add organization.DefaultPassword
2023-10-18 11:58:25 +08:00
Pedro Padron
983da685a2
feat: support calling get-user API by only email, phone or userId without owner ( #2398 )
2023-10-13 02:48:55 +08:00
haiwu
440d87d70c
feat: support SCIM protocol ( #2393 )
...
* 111
* feat: support scim/Users GET and POST request
* feat: support scim/Users DELETE/PATCH/PUT request
* feat: better support scim/Users PATCH request
* feat: fix scim/Users logic
* feat: gofumpt
* feat: fix bug in scim/Users
* feat: fix typo
---------
Co-authored-by: hsluoyz <hsluoyz@qq.com>
2023-10-12 00:13:16 +08:00
Yang Luo
d06d7c5c09
Fix batch methods like AddUsersInBatch()
2023-10-08 19:33:28 +08:00
Yang Luo
981908b0b6
Fix crash in LDAP's sync: GenerateIdForNewUser()
2023-09-26 19:12:28 +08:00
Yang Luo
687830697e
Refactor getPermissionsAndRolesByUser() related code
2023-09-24 08:08:32 +08:00
Yang Luo
b6d6aa9d04
Use GenerateIdForNewUser() in add-user API
2023-09-20 22:50:17 +08:00
Yang Luo
f40d44fa1c
Refactor out GenerateIdForNewUser()
2023-09-20 22:45:00 +08:00
Cattī Crūdēlēs
a7cb202ee9
feat: fix JSON tag of EmailVerified ( #2322 )
...
Signed-off-by: Cattī Crūdēlēs <17695588+wzy9607@users.noreply.github.com>
2023-09-11 18:33:24 +08:00
Yang Luo
c62588f9bc
Add EmailVerified to UserInfo
2023-09-08 18:27:14 +08:00
Yang Luo
669ac7c618
Don't encrypt user pass when user.PasswordType is non-empty when adding users
2023-08-31 17:49:36 +08:00
haiwu
05b2f00057
feat: support Pricings flow ( #2250 )
...
* feat: fix price display
* feat: support subscription
* feat: fix select-plan-> signup -> buy-plan -> login flow
* feat: support paid-user to login and jump to the pricing page
* feat: support more subscription state
* feat: add payment providers for plan
* feat: format code
* feat: gofumpt
* feat: redirect to buy-plan-result page when user have pending subscription
* feat: response err when pricing don't exit
* Update PricingListPage.js
* Update ProductBuyPage.js
* Update LoginPage.js
---------
Co-authored-by: hsluoyz <hsluoyz@qq.com>
2023-08-24 23:20:50 +08:00
Yaodong Yu
2b23c04f49
fix: add SignupApplication and type for user synced from LDAP ( #2240 )
2023-08-21 22:52:35 +08:00
Yaodong Yu
e5a189e0f4
fix: remove isGlobalAdmin field in user ( #2235 )
...
* refactor: remove isGlobalAdmin field in user
* fix: upload xlsx
* fix: remove field in account table
2023-08-19 12:23:15 +08:00
haiwu
891e8e21d8
feat: support Web3-Onboard provider ( #2209 )
...
* feat: add Web3-Onboard idp
* feat: update Web3-Onboard logo
* feat: update package.json
* feat: remove unused package
* feat: add yarn build param --max_old_space_size=4096
* feat: remove log
* feat: add Wallet configure
* feat: remove hardware wallets
2023-08-13 23:58:57 +08:00
Yaodong Yu
9899022bcd
fix: check enforcer should not be nil ( #2199 )
...
* fix: check enforcer should not be nil
* fix: check enforcer should not be nil
* Update user.go
---------
Co-authored-by: hsluoyz <hsluoyz@qq.com>
2023-08-11 12:31:49 +08:00
Yaodong Yu
1a9d02be46
feat: use the casbin model to store relationships between users and groups ( #2178 )
...
* fix:reslove conflict
* fix: remove interface
2023-08-11 10:59:18 +08:00
Yaodong Yu
3220a04fa9
fix: use org/groupName replace groupName ( #2180 )
2023-08-06 20:16:44 +08:00
Yang Luo
c24343bd53
Fix XxxChangeTrigger() doesn't return error bug
2023-08-03 18:45:49 +08:00
Yaodong Yu
ea10f8e615
feat: make hard-coded authz adapter editable, rename adapter to ormer ( #2149 )
...
* refactor: rename casbinAdapter to casdoorAdapter
* feat: add initEnforcer
* fix: router
* refactor: make hard-coded code configurable
* fix: data type
* feat: support sqlite3
* feat: disable delete and edit name for built in resources
* feat: optimize code
* fix: init
* fix: e2e
* fix: remove datasourcename
* fix: revert rename
* refactor: change all ORM's Adatper to Ormer
* refactor: name
2023-07-29 15:07:04 +08:00
June
6a952952a8
fix: unmask application for org admin ( #2138 )
...
* feat: unmask application with user admin
* Update application.go
---------
Co-authored-by: hsluoyz <hsluoyz@qq.com>
2023-07-26 17:17:49 +08:00
haiwu
d7110ff8bf
feat: support MetaMask provider ( #2084 )
...
* feat: add metamask provider
* feat: add eth login
* feat: check eth sign
* feat: finish metamask signin/signup
* feat: support MetaMask provider link/unlink
* feat: update web/craco.config.js to handle polyfill
* feat: gofumpt idp/metamask.go
* feat: update MetaMask logo path
* feat: support MetaMask avatar
2023-07-20 17:51:36 +08:00
Yang Luo
38f031bc86
Show access secret if isAdminOrSelf is true in get-user and get-account APIs
2023-07-19 19:14:53 +08:00
Yaodong Yu
347d3d2b53
feat: fix bugs in MFA ( #2033 )
...
* fix: prompt mfa binding
* fix: clean session when leave promptpage
* fix: css
* fix: force enable mfa
* fix: add prompt rule
* fix: refactor directory structure
* fix: prompt notification
* fix: fix some bug and clean code
* fix: rebase
* fix: improve notification
* fix: i18n
* fix: router
* fix: prompt
* fix: remove localStorage
2023-07-07 12:30:07 +08:00
Yaodong Yu
0a8c2a35fe
feat: add TOTP multi-factor authentication ( #2014 )
...
* feat: add totp multi-factor authentication
* feat: add license
* feat:i18n and update yarn.lock
* feat:i18n
* fix: i18n
2023-06-24 18:39:54 +08:00
Yang Luo
a3b0f1fc74
feat: add owner to getUserByWechatId()
2023-06-21 21:29:53 +08:00
Yaodong Yu
c391af4552
feat: improve MFA by using user's own Email and Phone ( #2002 )
...
* refactor: mfa
* fix: clean code
* fix: clean code
* fix: fix crash and improve robot
2023-06-21 18:56:37 +08:00
Yaodong Yu
65716af89e
feat: deprecate the user group relation table ( #1990 )
...
* fix: deprecate the user group relation table
* fix: clean code
* fix: fix trigger
* Update group.go
---------
Co-authored-by: hsluoyz <hsluoyz@qq.com>
2023-06-19 19:08:45 +08:00
Yang Luo
58aa7dba6a
Fix groups in GetUserInfo()
2023-06-19 11:06:55 +08:00
Yang Luo
29fc820578
Set User.groups to []
2023-06-19 09:42:17 +08:00
Yaodong Yu
d0ac265c91
fix: Deprecate the id field in group ( #1987 )
2023-06-18 23:33:13 +08:00
Yang Luo
b9140e2d5a
Refactor refreshAvatar()
2023-06-17 11:43:46 +08:00
Yang Luo
501f0dc74f
Add user_avatar.go
2023-06-17 01:25:15 +08:00
June
edc6aa0d50
feat: get all role/permission of an user ( #1978 )
2023-06-16 22:44:21 +08:00
Yang Luo
b01ba792bb
Rename to accessSecret
2023-06-16 20:42:15 +08:00
Yaodong Yu
7058a34f87
feat: complete group tree ( #1967 )
...
* feat: complete group tree
* feat: ui
* fix: i18n
* refactor code
* fix: support remove user from group
* fix: format code
* Update organization.go
* Update organization.go
* Update user_group.go
---------
Co-authored-by: hsluoyz <hsluoyz@qq.com>
2023-06-14 23:27:46 +08:00
XDTD
967fa4be68
feat: add access key and secret key for user ( #1971 )
2023-06-13 22:18:17 +08:00
Yaodong Yu
0e14a2597e
feat: Add tree structure to organization page ( #1910 )
...
* rebase master
* feat: add group in userEditPage
* feat: use id as the pk
* feat: add groups item in user
* feat: add tree component
* rebase
* feat: ui
* fix: fix some bug
* fix: route
* fix: ui
* fix: improve ui
2023-06-12 09:27:16 +08:00
Yang Luo
0c118477e8
Add groups to UserInfo
2023-06-04 01:21:10 +08:00
Yang Luo
06543a01d3
Add organization to /userinfo
2023-06-02 21:51:05 +08:00
Yang Luo
b1b3184e75
Speed up user pagination query
2023-06-01 22:55:44 +08:00
Yang Luo
5349fa7ff3
Speed up object.DoMigration()
2023-06-01 22:25:19 +08:00
yehong
02e692a300
feat: return most backend API errors to frontend ( #1836 )
...
* feat: return most backend API errros to frontend
Signed-off-by: yehong <239859435@qq.com>
* refactor: reduce int type change
Signed-off-by: yehong <239859435@qq.com>
* feat: return err backend in token.go
Signed-off-by: yehong <239859435@qq.com>
---------
Signed-off-by: yehong <239859435@qq.com>
2023-05-30 15:49:39 +08:00
Yang Luo
9f084a0799
Can update user with OAuth values
2023-05-18 15:58:41 +08:00
Alexander Egorov
645d53e2c6
feat: User should have PasswordType like Organization ( #1841 )
...
* fixes #1840 : [backend] User should have PasswordType like Organization is
* Update migrator.go
* Update and rename migrator_1_314_0_PR_1838.go to migrator_1_314_0_PR_1841.go
* Update user.go
---------
Co-authored-by: hsluoyz <hsluoyz@qq.com>
2023-05-16 20:11:19 +08:00
Yang Luo
96a3db21a1
Support LDAP search by user tag
2023-05-12 13:03:43 +08:00
Yaodong Yu
eb39e9e044
feat: add multi-factor authentication (MFA) feature ( #1800 )
...
* feat: add two-factor authentication interface and api
* merge
* feat: add Two-factor authentication accountItem and two-factor api in frontend
* feat: add basic 2fa setup UI
* rebase
* feat: finish the two-factor authentication
* rebase
* feat: support recover code
* chore: fix eslint error
* feat: support multiple sms account
* fix: client application login
* fix: lint
* Update authz.go
* Update mfa.go
* fix: support phone
* fix: i18n
* fix: i18n
* fix: support preferred mfa methods
---------
Co-authored-by: hsluoyz <hsluoyz@qq.com>
2023-05-05 21:23:59 +08:00
Yaodong Yu
95f4f4cb6d
feat: refactor out form package and optimize verification code module ( #1787 )
...
* refactor: add forms package and optimize verification code module
* chore: add license
* chore: fix lint
* chore: fix lint
* chore: fix lint
* chore: swagger
2023-04-25 23:05:53 +08:00