866 Commits

Author SHA1 Message Date
Yang Luo
b01ba792bb Rename to accessSecret 2023-06-16 20:42:15 +08:00
Yaodong Yu
98fb9f25b0
feat: fix bug that users in role don't work for permissions (#1977)
* feat: fix check login permission

* feat: fix check login permission
2023-06-16 20:14:27 +08:00
XDTD
cc456f265f
feat: fix LDAP user password checking logic in GetOAuthToken() (#1975) 2023-06-15 21:04:09 +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
805cf20d04
feat: fix incorrect VerifyTypePhone value (#1968) 2023-06-13 17:26:37 +08:00
UsherFall
451fc9034f
fix: fix bug in PayPal payment provider (#1959) 2023-06-12 13:43:37 +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
4f5396c70e Check error for CreateDatabase() 2023-06-12 01:47:26 +08:00
Yang Luo
3c30222fce Fix payment owner issue 2023-06-12 00:34:41 +08:00
Yang Luo
e0d2bc3dc9 Return error in GetProviderFromContext() 2023-06-10 15:51:26 +08:00
hsluoyz
cc566bf31f Move DoMigration() after CreateTables() 2023-06-09 09:36:20 +08:00
XDTD
e93d8c19d9
feat: resolve user pages malfunction after using tableNamePrefix (#1945) 2023-06-08 00:43:05 +08:00
XDTD
e1c0af345f
feat: resolve casdoor as SAML SP with keycloak login not work bug (#1937)
* fix: resolve casdoor as SAML SP with keycloak login not work

* Update provider.go

---------

Co-authored-by: hsluoyz <hsluoyz@qq.com>
2023-06-06 15:19:00 +08:00
Yang Luo
3b3bfe39f9 Fix user field bug 2023-06-06 14:59:50 +08:00
Alex OvsInc
18cc952f8e
feat: Customization of the initialization file (#1936) 2023-06-05 21:00:28 +08:00
Yang Luo
43439bc8c6 Apply tableNamePrefix before migration 2023-06-05 00:30:48 +08:00
Yang Luo
9a2800e3b3 Add error to Enforce() 2023-06-04 17:29:34 +08:00
Yang Luo
2d43fe0b39 Fix cert empty issue in GetSamlMeta() 2023-06-04 01:25:18 +08:00
Yang Luo
5ec7a54bf8 Add description fields to objects 2023-06-04 01:21:17 +08:00
Yang Luo
0c118477e8 Add groups to UserInfo 2023-06-04 01:21:10 +08:00
Yang Luo
9cffb43265 Fix subscription page bugs 2023-06-03 10:15:29 +08:00
Yang Luo
51a76518ad Init adapter in getEnabledSyncerForOrganization() 2023-06-03 09:23:36 +08:00
hsluoyz
08dbbab70e
feat: revert "feat: fix the bug that sycner does not initialize" (#1926)
This reverts commit ec3c24ba68d593b0c7c1f1913aa307cf1968e390.
2023-06-03 09:17:34 +08:00
Yaodong Yu
ec3c24ba68
feat: fix the bug that sycner does not initialize (#1924) 2023-06-03 00:15:28 +08:00
Yang Luo
ed688efdbb Fix bug in org user list page 2023-06-02 22:09:18 +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
Yang Luo
7caa885131 Fix subscription bugs 2023-05-31 11:33:01 +08:00
Yang Luo
fb1db7823b Add DummyPaymentProvider 2023-05-30 23:25:58 +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
leoil
34151c0095
feat: Support uploading roles and permssions via xlsx files. (#1899)
* Support uploading roles and permissions via xlsx file.

* Template xlsx file for uploading users and permissions.

* reformat according to gofumpt.

* fix typo.
2023-05-28 11:29:43 +08:00
Yang Luo
c7cea331e2 Improve NewWechatPaymentProvider() arg 2023-05-27 19:28:24 +08:00
Yaodong Yu
8ede4993af feat: specify login organization 2023-05-27 19:02:54 +08:00
UsherFall
7fc697b711 ci: fix bug in WeChat payment provider 2023-05-27 17:50:56 +08:00
Yang Luo
95ab2472ce Make logo length to 200 2023-05-23 21:57:35 +08:00
guangwu
54e4747dbc
refactor: code-optimization (#1885)
* refactor: code-optimization

* fix: restoring code style

* fix: gofmt
2023-05-23 17:54:51 +08:00
Ilya Sulimanov
88c0856d17
feat: add subscription managment (#1858)
* feat: subscription managment

* fix: remove console log

* fix: webhooks

* fix linter

* fix: fix via gofumpt

* fix: review changes

* fix: Copyright 2023

* Update account.go

---------

Co-authored-by: hsluoyz <hsluoyz@qq.com>
2023-05-20 15:56:21 +08:00
Yaodong Yu
1260354b36
fix: add sAMAccountName for AD search (#1869) 2023-05-19 21:16:59 +08:00
Yang Luo
02333f2f0c Add "pt" language to backend 2023-05-19 16:42:31 +08:00
Yang Luo
79bd58e0e6 Use util.GetId() 2023-05-19 14:26:32 +08:00
Yang Luo
de73ff0e60 Add IsMaskedEnabled to provider API 2023-05-19 13:09:53 +08:00
Yang Luo
a9d662f1bd Improve Migrator_1_314_0_PR_1841 speed 2023-05-19 02:55:36 +08:00
Yaodong Yu
65dcbd2236
feat: compatible different uid of LDAP server (#1860)
* feat: compatible different uid of LDAP server

* Update organization.go

---------

Co-authored-by: hsluoyz <hsluoyz@qq.com>
2023-05-19 02:34:25 +08:00
Yaodong Yu
6455734807
fix: fix incorrect LDAP sync status (#1859) 2023-05-18 22:03:53 +08:00
Trần Thanh Tịnh
2eefeaffa7
feat: enforce by using resourceId (#1855)
* feat: enforce by using resourceId

* Update permission.go

* chore: fix cilint for enforcer.go

---------

Co-authored-by: tinhtt4 <tinhtt4@vng.com.vn>
Co-authored-by: hsluoyz <hsluoyz@qq.com>
2023-05-18 16:36:03 +08:00
Yang Luo
04eaad1c80 Fix getCertByApplication() 2023-05-18 16:32:43 +08:00
Yang Luo
9f084a0799 Can update user with OAuth values 2023-05-18 15:58:41 +08:00
Yang Luo
437376c472 Fix CheckAccessPermission() 2023-05-18 13:36:16 +08:00