Skip to content

Add scope field and examples to OIDC authentication configuration - #8072

Open
gkmzfk6um wants to merge 3 commits into
requarks:mainfrom
gkmzfk6um:main
Open

Add scope field and examples to OIDC authentication configuration#8072
gkmzfk6um wants to merge 3 commits into
requarks:mainfrom
gkmzfk6um:main

Conversation

@gkmzfk6um

Copy link
Copy Markdown

Problem

The Generic OpenID Connect / OAuth2 strategy currently hardcodes the requested scopes (openid profile email). Users who need additional scopes — e.g. group/role scopes like roles for group mapping — have no way to request them. The IdP only releases claims (such as group memberships or, in some setups, even the email claim) when the corresponding scope is present in the authorization request, so group mapping silently fails regardless of the "Map Groups" setting.

Change

  • Add an optional scope field to the strategy configuration (definition.yml)

  • Pass the configured value through to the OIDC strategy (authentication.js), so it is included in the authorization request

  • The default scopes openid profile email remain always included; the new field only adds scopes

Behavior

  • Fully backward compatible: leaving the field empty behaves exactly like before

  • Example: setting openid profile email roles requests a roles scope, which the IdP can then release as a group claim for Map Groups

Added scope parameter to OIDC authentication options.
Updated hint for the scope field to include examples of additional scopes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant