1
1
mirror of https://github.com/go-gitea/gitea synced 2024-11-09 11:44:27 +00:00
gitea/services/auth/source/oauth2
wxiaoguang 45c15387b2
Refactor JWT secret generating & decoding code (#29172)
Old code is not consistent for generating & decoding the JWT secrets.

Now, the callers only need to use 2 consistent functions:
NewJwtSecretWithBase64 and DecodeJwtSecretBase64

And remove a non-common function Base64FixedDecode from util.go
2024-02-16 15:18:30 +00:00
..
assert_interface_test.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
init.go Use db.Find instead of writing methods for every object (#28084) 2023-11-24 03:49:41 +00:00
jwtsigningkey.go Refactor JWT secret generating & decoding code (#29172) 2024-02-16 15:18:30 +00:00
providers_base.go Increase auth provider icon size on login page (#27122) 2023-09-19 21:47:13 +00:00
providers_custom.go Modify OAuth login ui and fix display name, iconurl related logic (#25030) 2023-06-08 16:35:29 +00:00
providers_openid.go Increase auth provider icon size on login page (#27122) 2023-09-19 21:47:13 +00:00
providers_simple.go Modify OAuth login ui and fix display name, iconurl related logic (#25030) 2023-06-08 16:35:29 +00:00
providers.go Use db.Find instead of writing methods for every object (#28084) 2023-11-24 03:49:41 +00:00
source_authenticate.go Reduce usage of db.DefaultContext (#27073) 2023-09-14 17:09:32 +00:00
source_callout.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
source_name.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
source_register.go Handle OpenID discovery URL errors a little nicer when creating/editing sources (#23397) 2023-03-10 01:14:43 -05:00
source.go Map OIDC groups to Orgs/Teams (#21441) 2023-02-08 14:44:42 +08:00
store.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
token.go Bump github.com/golang-jwt/jwt to v5 (#25975) 2023-07-19 09:57:10 +00:00
urlmapping.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00