Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: OIDC: add the ability to override the requested scopes #4530

Merged

Conversation

cmintey
Copy link
Contributor

@cmintey cmintey commented Nov 9, 2024

What type of PR is this?

  • feature

What this PR does / why we need it:

We craft the scopes to request from a user's IdP depending on if the group variables are configured or not. If they are configured, then we request openid profile email groups scope, and if not, then openid profile email. Some IdPs, like Entra ID, can be configured to always send a groups claim, but doesn't require or even accept a groups scope. So this PR adds the ability to override our scope creation logic and let the user specify exactly which scopes to request from the IdP.

Which issue(s) this PR fixes:

Fixes #4528

Testing

Manually tested with Azure (Entra ID)

@michael-genson michael-genson enabled auto-merge (squash) November 9, 2024 16:51
@michael-genson michael-genson merged commit 6bc7ada into mealie-recipes:mealie-next Nov 9, 2024
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Entra ID - OpenID Connect - Groups Claim Error
2 participants