45 Commits

Author SHA1 Message Date
Yang Luo
71279f548d Show cert.Certificate empty error 2023-10-10 19:19:20 +08:00
Yang Luo
5ec49dc883 feat: fix claims.tag and UserWithoutThirdIdp missing fields, fix for Rust SDK 2023-09-27 18:07:57 +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
Yang Luo
e850e33f37 Fix error message of missing cert when login 2023-07-20 19:45:22 +08:00
Yang Luo
29fc820578 Set User.groups to [] 2023-06-19 09:42:17 +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
79bd58e0e6 Use util.GetId() 2023-05-19 14:26:32 +08:00
Yang Luo
d4dc236770 Fix refreshExpireInHours zero value issue 2023-05-17 20:47:59 +08:00
June
389744a27d
feat: change claims to claimsWithoutThirdIdp when gen token (#1552) 2023-02-14 09:33:46 +08:00
Gucheng Wang
11b56c340f Add refineUser() in generateJwtToken() 2023-02-02 00:34:56 +08:00
Gucheng Wang
75b8357de8 Add properties to UserWithoutThirdIdp 2023-01-29 21:51:01 +08:00
Zayn Xie
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
cofecatt
462a82a3d5
fix: Add distinctions between access_token and refresh_token (#1280) 2022-11-13 13:00:25 +08:00
Yang Luo
116420adb2
feat: revert "feat: fix openid address format" (#1158)
This reverts commit a447d64bf217d260eb28d7112c167549467cc9c2.
2022-09-25 09:58:45 +08:00
Taoning Ge
a447d64bf2
fix: openid address format (#1157) 2022-09-24 15:34:11 +08:00
Gucheng Wang
4536fd0636 Use app.conf value in getOriginFromHost() 2022-09-03 15:12:34 +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
SLingyu
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
Nekotoxin
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
Leon
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
Steve0x2a
274096fe9d
fix: empty iss return (#503)
Signed-off-by: Steve0x2a <stevesough@gmail.com>
2022-02-18 12:36:11 +08:00
Gucheng Wang
db37f53d6c Update license headers. 2022-02-13 23:39:27 +08:00
Steve0x2a
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
Bingchang Chen
fe48c38bc6
feat: support minio (#418)
Signed-off-by: abingcbc <abingcbc626@gmail.com>
2022-01-13 21:48:00 +08:00
Yang Luo
ba32a45693 Add ClaimsShort to fix the JWT user's owner and name empty bug. 2022-01-03 22:54:27 +08:00
Yang Luo
5e8897e41b Make cert work. 2021-12-31 10:02:06 +08:00
Steve0x2a
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
Yixiang Zhao
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
Gucheng Wang
95f2a3b311 Add TokenFormat to application. 2021-12-18 16:16:34 +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
Gucheng Wang
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
Gucheng Wang
5526286ad8 Use RS256 to sign JWT token. 2021-10-30 14:18:48 +08:00
Gucheng Wang
795240687d Improve token var name. 2021-10-30 14:18:38 +08:00
Yang Luo
6c30ccfb14 Update github.com/golang-jwt/jwt to v4. 2021-10-10 11:51:19 +08:00
Yang Luo
802df55009 Switch to github.com/golang-jwt/jwt 2021-10-10 11:06:54 +08:00
Yang Luo
4f2668cd90 Remove password in JWT token payload. 2021-10-03 22:08:40 +08:00
Yang Luo
d79544f34a Use User in Claims. 2021-08-14 14:15:52 +08:00
Yang Luo
58c7a60220 Show error in AccessToken. 2021-06-01 22:03:04 +08:00
Yang Luo
987bb14a6b Add more fields to Claims. 2021-04-27 00:43:38 +08:00
Yang Luo
4ea6529969 Add Avatar to claims. 2021-03-28 21:57:22 +08:00
Yang Luo
f5ceae901b Support auto-login. 2021-03-28 16:53:49 +08:00
Yang Luo
df948e9e34 Fix JWT token bugs. 2021-03-14 23:08:08 +08:00
Yang Luo
f014554415 Generate real access token. 2021-03-14 22:48:09 +08:00