]> source.dussan.org Git - gitea.git/commit
Add groups scope/claim to OIDC/OAuth2 Provider (#17367)
authorNico Schieder <Nico.schieder@gmail.com>
Fri, 22 Oct 2021 09:19:24 +0000 (11:19 +0200)
committerGitHub <noreply@github.com>
Fri, 22 Oct 2021 09:19:24 +0000 (17:19 +0800)
commit870f5fbc4146110be37c28e670e57568d3db3288
tree69d2f6989030c459094d51bfc2798af6ae092ee0
parentaf96286f2254c1e073394aae0f18b132f07b38ad
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>
routers/web/user/oauth.go
services/auth/source/oauth2/token.go
templates/user/auth/oidc_wellknown.tmpl