diff options
author | KN4CK3R <admin@oldschoolhack.me> | 2021-06-14 12:33:16 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-14 13:33:16 +0300 |
commit | 1295e750b4b8cec5476e7666bf9f8f3a02b39785 (patch) | |
tree | dac0a6348e52a7cd8f6428bf74a9bc2f8b54194c /templates/user/auth | |
parent | 2b39357443100188ceee0a68408416d166037247 (diff) | |
download | gitea-1295e750b4b8cec5476e7666bf9f8f3a02b39785.tar.gz gitea-1295e750b4b8cec5476e7666bf9f8f3a02b39785.zip |
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>
Diffstat (limited to 'templates/user/auth')
-rw-r--r-- | templates/user/auth/oidc_wellknown.tmpl | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/templates/user/auth/oidc_wellknown.tmpl b/templates/user/auth/oidc_wellknown.tmpl index fcde060a8d..6b1f8f899c 100644 --- a/templates/user/auth/oidc_wellknown.tmpl +++ b/templates/user/auth/oidc_wellknown.tmpl @@ -6,5 +6,34 @@ "response_types_supported": [ "code", "id_token" + ], + "scopes_supported": [ + "openid", + "profile", + "email" + ], + "claims_supported": [ + "aud", + "exp", + "iat", + "iss", + "sub", + "name", + "preferred_username", + "profile", + "picture", + "website", + "locale", + "updated_at", + "email", + "email_verified" + ], + "code_challenge_methods_supported": [ + "plain", + "S256" + ], + "grant_types_supported": [ + "authorization_code", + "refresh_token" ] } |