diff options
author | Nico Schieder <Nico.schieder@gmail.com> | 2021-10-22 11:19:24 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-22 17:19:24 +0800 |
commit | 870f5fbc4146110be37c28e670e57568d3db3288 (patch) | |
tree | 69d2f6989030c459094d51bfc2798af6ae092ee0 /templates/user/auth | |
parent | af96286f2254c1e073394aae0f18b132f07b38ad (diff) | |
download | gitea-870f5fbc4146110be37c28e670e57568d3db3288.tar.gz gitea-870f5fbc4146110be37c28e670e57568d3db3288.zip |
Add groups scope/claim to OIDC/OAuth2 Provider (#17367)
* Add groups scope/claim to OICD/OAuth2
Add support for groups claim as part of the OIDC/OAuth2 flow.
Groups is a list of "org" and "org:team" strings to allow clients to
authorize based on the groups a user is part of.
Signed-off-by: Nico Schieder <code@nico-schieder.de>
Co-authored-by: zeripath <art27@cantab.net>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Diffstat (limited to 'templates/user/auth')
-rw-r--r-- | templates/user/auth/oidc_wellknown.tmpl | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/templates/user/auth/oidc_wellknown.tmpl b/templates/user/auth/oidc_wellknown.tmpl index d4cbf7dfec..38e6900c38 100644 --- a/templates/user/auth/oidc_wellknown.tmpl +++ b/templates/user/auth/oidc_wellknown.tmpl @@ -18,7 +18,8 @@ "scopes_supported": [ "openid", "profile", - "email" + "email", + "groups" ], "claims_supported": [ "aud", @@ -34,7 +35,8 @@ "locale", "updated_at", "email", - "email_verified" + "email_verified", + "groups" ], "code_challenge_methods_supported": [ "plain", |