feat: assign users to groups returned by OIDC provider (#5965)

This commit is contained in:
Colin Adler
2023-02-02 13:53:48 -06:00
committed by GitHub
parent 026b1cd2a4
commit 496138b086
11 changed files with 477 additions and 133 deletions

View File

@ -56,6 +56,8 @@ func New(ctx context.Context, options *Options) (*API, error) {
cancelEntitlementsLoop: cancelFunc,
}
api.AGPL.Options.SetUserGroups = api.setUserGroups
oauthConfigs := &httpmw.OAuth2Configs{
Github: options.GithubOAuth2Config,
OIDC: options.OIDCConfig,