Gucheng Wang
c2110ef59d
Add sync pages.
2021-12-17 16:35:45 +08:00
Steve0x2a
98f6cc0085
feat: add OIDC feature support. ( #373 )
...
1. add nonce parameter.
2. add sub in userinfo endpoint.
Signed-off-by: 0x2a <stevesough@gmail.com>
2021-12-15 21:42:16 +08:00
Yixiang Zhao
370e835499
feat: support AuthnRequest in SAML ( #372 )
...
Signed-off-by: Yixiang Zhao <seriouszyx@foxmail.com>
2021-12-15 21:38:00 +08:00
Товарищ программист
f43d01c5c2
feat: implement automatic synchronization for ldap users ( #371 )
...
Signed-off-by: Товарищ программист <2962928213@qq.com>
2021-12-15 17:45:11 +08:00
Yixiang Zhao
4ca5f4b196
feat: add Keycloak idp support ( #356 )
...
* feat: add Keycloak idp support
Signed-off-by: Yixiang Zhao <seriouszyx@foxmail.com>
* fix: fix the profile UI
Signed-off-by: Yixiang Zhao <seriouszyx@foxmail.com>
2021-12-13 19:49:30 +08:00
Eng Zer Jun
726e4e3dc1
refactor: move from io/ioutil to io and os packages ( #366 )
...
* chore: format code by running `go fmt ./...`
Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
* refactor: move from io/ioutil to io and os packages
The io/ioutil package has been deprecated as of Go 1.16, see
https://golang.org/doc/go1.16#ioutil . This commit replaces the existing
io/ioutil functions with their new definitions in io and os packages.
Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
2021-12-13 09:49:43 +08:00
Gucheng Wang
589c0404d2
Fix dataSourceName config to use correct DB host in Docker.
2021-12-12 23:51:53 +08:00
Gucheng Wang
b2f2674d3e
Revert: Make user.Ranking auto-increase.
2021-12-12 22:50:57 +08:00
Gucheng Wang
8d8c662e58
Fix missing ranking in initBuiltInUser().
2021-12-12 21:06:56 +08:00
Gucheng Wang
f4265d015a
Improve user error handling.
2021-12-12 19:59:55 +08:00
Gucheng Wang
96e2f286ee
Merge into one origin config.
2021-12-12 19:26:06 +08:00
Gucheng Wang
6ba658ac60
Support columns arg in UpdateUser().
2021-12-11 14:45:08 +08:00
Gucheng Wang
eca1d23e35
Make user.Ranking auto-increase.
2021-12-11 12:16:09 +08:00
Товарищ программист
6947ebd152
feat: support checking password through ldap server ( #354 )
...
Signed-off-by: Товарищ программист <2962928213@qq.com>
2021-12-10 22:45:01 +08:00
Steve0x2a
967113689d
feat: add three idp support by goth. ( #351 )
...
1. add 3 providers: apple, azuread(v1) and slack.
2. support importing providers from goth.
Signed-off-by: 0x2a <stevesough@gmail.com>
2021-12-10 00:55:27 +08:00
Yixiang Zhao
113398c36b
feat: support SAML and test with aliyun IDaaS ( #346 )
...
* feat: support SAML and test with aliyun IDaaS
Signed-off-by: Yixiang Zhao <seriouszyx@foxmail.com>
* refactor: refactor saml.go and router
Signed-off-by: Yixiang Zhao <seriouszyx@foxmail.com>
* fix: add param to getSamlLogin()
Signed-off-by: Yixiang Zhao <seriouszyx@foxmail.com>
* feat: add inputs to parse metadata automatically and show sp-acs-url, sp-entity-id
Signed-off-by: Yixiang Zhao <seriouszyx@foxmail.com>
2021-12-06 21:46:50 +08:00
Gucheng Wang
dc9d2389a5
Add IntranetEndpoint to provider.
2021-12-04 16:38:34 +08:00
Gucheng Wang
c8b8488797
Improve Redirect URI error message.
2021-12-04 00:40:21 +08:00
Gucheng Wang
cc2797ed27
Rename to AddUsersInBatch().
2021-12-02 10:55:53 +08:00
Gucheng Wang
14c4f60a40
Add IsDefaultAvatar to user.
2021-12-01 21:26:28 +08:00
Gucheng Wang
79fd6ff5d3
Make Application's fields smaller.
2021-12-01 21:26:03 +08:00
Gucheng Wang
04bc8628a8
Change Application.Providers to mediumtext.
2021-11-30 00:48:09 +08:00
Gucheng Wang
d6c9ee508c
Add code sign in UI.
2021-11-28 21:15:58 +08:00
Товарищ программист
e888ff8475
fix: add id_token and support auth header ( #338 )
2021-11-28 18:54:58 +08:00
Gucheng Wang
bfd5d0172a
Remove regionId for SMS providers.
2021-11-28 13:42:30 +08:00
Gucheng Wang
c46925dbe8
Don't panic for sendWebhook() error.
2021-11-27 21:12:13 +08:00
Gucheng Wang
7f39aee9c4
Make application's fields longer.
2021-11-25 16:44:49 +08:00
Товарищ программист
bddd57cda8
feat: implement jwks_uri handler in oidc discovery ( #334 )
...
Signed-off-by: Товарищ <2962928213@qq.com>
2021-11-22 17:47:44 +08:00
Gucheng Wang
44b59d866a
Add more args to UploadResource().
2021-11-21 16:21:35 +08:00
Gucheng Wang
95600414d9
Add UploadFileSafe().
2021-11-20 17:26:58 +08:00
Gucheng Wang
9eb09b7db0
Add GetUserNoCheck().
2021-11-20 15:46:54 +08:00
Gucheng Wang
2b6f397bb9
Add some new fields to User.
2021-11-19 21:37:13 +08:00
Товарищ программист
825de2bdaa
fix: fix incorrect issuer in id token of oidc ( #333 )
...
Signed-off-by: Товарищ <2962928213@qq.com>
2021-11-19 16:32:05 +08:00
Gucheng Wang
0b3742b0b1
Add GetSortedUsers() and GetUserCount() APIs.
2021-11-19 10:51:06 +08:00
Lex Lim
64fc810359
fix: panic while insert record when request uri too long ( #325 )
...
Signed-off-by: Lex Lim <hyperzlink@outlook.com>
2021-11-12 00:01:37 +08:00
Gucheng Wang
21f433d278
Add logPostOnly.
2021-11-09 23:32:53 +08:00
Gucheng Wang
102e22f2c7
Add method to record.
2021-11-09 23:24:13 +08:00
Gucheng Wang
63f33d0ad9
Improve email and phone checking in Signup().
2021-11-09 20:29:38 +08:00
Song Liu
d84ddda607
fix: Wrong token endpoint value #314 ( #315 )
...
Signed-off-by: leo <leo@himysql.com>
Co-authored-by: leo <leo@himysql.com>
2021-11-08 22:38:23 +08:00
Gucheng Wang
30a2fdef37
Make webhook work.
2021-11-07 23:53:17 +08:00
Gucheng Wang
87e6fb63e1
Add isTriggered to record.
2021-11-07 17:56:45 +08:00
Gucheng Wang
e9e0721b34
Add missing fields for record.
2021-11-07 17:36:52 +08:00
Gucheng Wang
5ec678fa28
Improve record's User field.
2021-11-07 17:20:15 +08:00
Gucheng Wang
77fffcacac
Refactor the record code.
2021-11-07 16:51:16 +08:00
Gucheng Wang
0e71e603ac
Add webhook pages.
2021-11-07 16:24:13 +08:00
Gucheng Wang
467d709b8e
Add MasterPassword to organization.
2021-11-06 21:14:53 +08:00
Gucheng Wang
9e920181d2
Add user soft deletion.
2021-11-06 15:52:03 +08:00
Gucheng Wang
5fd681e971
Fix CheckPassword().
2021-11-06 14:31:41 +08:00
Yixiang Zhao
b1db47bad1
feat: add server-side pagination ( #312 )
...
Signed-off-by: “seriouszyx” <seriouszyx@foxmail.com>
2021-11-06 11:32:22 +08:00
Gucheng Wang
7792f4589d
Add CredManager.
2021-11-04 21:30:48 +08:00