b97ae72179
feat: use the standard user struct for JWT-Standard to get a correct userinfo ( #3809 )
2025-05-21 18:54:42 +08:00
f8f864c5b9
feat: add logged-in IDP provider info to access token ( #3776 )
2025-05-11 09:51:51 +08:00
18bb445e71
feat: update github.com/golang-jwt/jwt
dependency to v5 ( #3708 )
2025-04-05 02:05:41 +08:00
b1b6ebe692
feat(jwt): add azp
claim to ID token ( #3570 )
...
Added the `azp` (Authorized Party) claim to various JWT token structures
including Claims, ClaimsShort, ClaimsWithoutThirdIdp, and ClaimsStandard.
Updated the generateJwtToken and getClaimsCustom functions to handle the
new claim. This change aligns with the OpenID Connect specification.
2025-02-10 20:44:44 +08:00
1adb172d6b
feat: add more crypto algorithm for jwt signing ( #3150 )
...
* feat: add more algorithm support for JWT signing
* feat: add i18n support
* feat: add i18n support
* feat: optimize if statement
* fix: remove additional space line
2024-08-30 16:59:41 +08:00
7d3920fb1f
feat: add ManagedAccounts to JWT
2024-08-20 22:23:58 +08:00
45e25acc80
feat: fix JWT generate issue cause by shared application ( #3113 )
...
* fix: fix jwt generate cause by shared application
* fix: fix built-in org will not add -org-
2024-08-09 22:48:44 +08:00
cef2ab213b
feat: add JWT-Standard format to fix oidc address type problem ( #3050 )
...
* feat: add JWT-Standard option to return standard OIDC UserInfo
* fix: fix error occurs by different claim type
* feat: improve code format and add missing return
2024-07-12 09:36:50 +08:00
4cb8e4a514
feat: Revert "feat: fix OIDC address field" ( #3020 )
...
This reverts commit 2f48d45773
.
2024-06-25 16:14:26 +08:00
2f48d45773
feat: fix OIDC address field ( #3013 )
...
* feat:add fields of sync-database
* feat:add fields of sync-database
* feat: add several fields related to the OIDC specification address
* feat: add the field Address to Address structure in UserWithoutThirdIdp
* fix: delete redundant fields
* fix: add Address struct and delete redundant fields
2024-06-25 11:54:34 +08:00
72839d6bf5
feat: fix TokenFormat error in get-account API
2024-03-17 23:03:50 +08:00
523186f895
feat: Support sha512 password encryption algorithm ( #2657 )
...
* add sha512 encryption support for password
* fead: add sha512 encryption support for password
2024-01-31 00:06:06 +08:00
ef373ca736
feat: add deletedTime to user ( #2652 )
2024-01-30 23:18:32 +08:00
8b1c4b0c75
feat: make phone field longer to 100
2024-01-30 19:06:18 +08:00
a2b9f9baaf
feat: support "JWT-Custom" to customize user properties inside access token ( #2594 )
...
* feat: add custom attribute to access token
* Update token_jwt.go
---------
Co-authored-by: hsluoyz <hsluoyz@qq.com >
2024-01-10 00:59:02 +08:00
ea2f053630
feat: add fields like Email to user profile in JWT-Empty mode
2023-11-09 20:20:42 +08:00
71279f548d
Show cert.Certificate empty error
2023-10-10 19:19:20 +08:00
5ec49dc883
feat: fix claims.tag and UserWithoutThirdIdp missing fields, fix for Rust SDK
2023-09-27 18:07:57 +08:00
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
e850e33f37
Fix error message of missing cert when login
2023-07-20 19:45:22 +08:00
29fc820578
Set User.groups to []
2023-06-19 09:42:17 +08:00
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
79bd58e0e6
Use util.GetId()
2023-05-19 14:26:32 +08:00
d4dc236770
Fix refreshExpireInHours zero value issue
2023-05-17 20:47:59 +08:00
389744a27d
feat: change claims to claimsWithoutThirdIdp when gen token ( #1552 )
2023-02-14 09:33:46 +08:00
11b56c340f
Add refineUser() in generateJwtToken()
2023-02-02 00:34:56 +08:00
75b8357de8
Add properties to UserWithoutThirdIdp
2023-01-29 21:51:01 +08:00
a728e083eb
feat: reduce the size of token's user object ( #1487 )
...
* fix: Reduce the size of token, especially the user object (#1170 )
* fix: Reduce the size of token, especially the user object (#1170 )
* fix: Reduce the size of token, especially the user object (#1170 )
Co-authored-by: Zayn Xie <84443886+xiaoniuren99@users.noreply.github.com >
2023-01-21 09:30:23 +08:00
462a82a3d5
fix: Add distinctions between access_token and refresh_token ( #1280 )
2022-11-13 13:00:25 +08:00
116420adb2
feat: revert "feat: fix openid address format" ( #1158 )
...
This reverts commit a447d64bf2
.
2022-09-25 09:58:45 +08:00
a447d64bf2
fix: openid address format ( #1157 )
2022-09-24 15:34:11 +08:00
4536fd0636
Use app.conf value in getOriginFromHost()
2022-09-03 15:12:34 +08:00
6676cc8ff3
fix: add JTI name to JWT token ( #989 )
...
* feat: add jti to jwt
* fix
* fix
2022-08-11 14:32:47 +08:00
8e98fc5a9f
feat: rename all publicKey occurrences to certificate ( #894 )
...
* fix:The certs page is displayed incorrectly
* Translations for each language are added
* Replace the variables certificat with Certificat with certificate and Certificate
* Replace the variables certificat with Certificat with certificate and Certificate
* Variable names are more accurate
* Variable names are more accurate
* Modify the variable name
2022-07-23 09:40:51 +08:00
ade64693e4
fix: support lower go version(1.15) ( #599 )
...
* fix: support lower go version(1.15)
* fix: support lower go version(1.15)
* fix: support lower go version(1.15)
2022-03-21 21:55:16 +08:00
5f8924ed4e
feat: support overriding configuration with env ( #590 )
2022-03-20 23:21:09 +08:00
ab5af979c8
feat: add Oauth 2.0 Token Introspection(rfc7662) endpoint support ( #532 )
...
Signed-off-by: Leon <leondevlifelog@gmail.com >
2022-03-03 17:48:47 +08:00
274096fe9d
fix: empty iss return ( #503 )
...
Signed-off-by: Steve0x2a <stevesough@gmail.com >
2022-02-18 12:36:11 +08:00
db37f53d6c
Update license headers.
2022-02-13 23:39:27 +08:00
051752340d
feat: add userinfo endpoint ( #447 )
...
* feat: add userinfo endpoint
Signed-off-by: 0x2a <stevesough@gmail.com >
* feat: add scope support
Signed-off-by: 0x2a <stevesough@gmail.com >
* fix: modify the endpoint of discovery
Signed-off-by: 0x2a <stevesough@gmail.com >
2022-01-26 11:56:01 +08:00
fe48c38bc6
feat: support minio ( #418 )
...
Signed-off-by: abingcbc <abingcbc626@gmail.com >
2022-01-13 21:48:00 +08:00
ba32a45693
Add ClaimsShort to fix the JWT user's owner and name empty bug.
2022-01-03 22:54:27 +08:00
5e8897e41b
Make cert work.
2021-12-31 10:02:06 +08:00
00f06930ba
fix: adjust the accessToken field ( #378 )
...
* fix: adjust the accessToken field
Signed-off-by: 0x2a <stevesough@gmail.com >
* fix: missing name and owner
Signed-off-by: 0x2a <stevesough@gmail.com >
2021-12-18 20:19:38 +08:00
755d912f61
feat: add refresh token mechanism for server side ( #336 )
...
* feat: add refresh token mechanism for server side
Signed-off-by: Yixiang Zhao <seriouszyx@foxmail.com >
* feat: add refresh token expire configuration UI
Signed-off-by: Yixiang Zhao <seriouszyx@foxmail.com >
2021-12-18 18:49:38 +08:00
95f2a3b311
Add TokenFormat to application.
2021-12-18 16:16:34 +08:00
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
96e2f286ee
Merge into one origin config.
2021-12-12 19:26:06 +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
5526286ad8
Use RS256 to sign JWT token.
2021-10-30 14:18:48 +08:00