KN4CK3R
b6e4688874
Fix wrong user in OpenID response ( #16736 ) ( #16741 )
...
* Fix wrong user in OpenID response (#16736 )
* Fixed usage of wrong user.
* Added tests.
* Fixed wrong import.
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
4 years ago
zeripath
67942ac1a9
Switch to maintained jwt lib ( #16532 ) ( #16533 )
...
Backport #16532
Co-authored-by: Matti R <matti@mdranta.net>
4 years ago
KN4CK3R
29695cd6d5
Add asymmetric JWT signing ( #16010 )
...
* Added asymmetric token signing.
* Load signing key from settings.
* Added optional kid parameter.
* Updated documentation.
* Add "kid" to token header.
4 years ago
KN4CK3R
1295e750b4
Add OpenID claims "profile" and "email". ( #16141 )
...
* Added OpenID claims "profile" and "email".
* Splitted error.
* Added scopes_supported and claims_supported.
* Added more metadata.
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Co-authored-by: Lauris BH <lauris@nix.lv>
4 years ago
Lunny Xiao
fb3ffeb18d
Add sso.Group, context.Auth, context.APIAuth to allow auth special routes ( #16086 )
...
* Add sso.Group, context.Auth, context.APIAuth to allow auth special routes
* Remove unnecessary check
* Rename sso -> auth
* remove unused method of Auth interface
4 years ago
Lunny Xiao
1bfb0a24d8
Refactor routers directory ( #15800 )
...
* refactor routers directory
* move func used for web and api to common
* make corsHandler a function to prohibit side efects
* rm unused func
Co-authored-by: 6543 <6543@obermui.de>
4 years ago