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

BUG: OIDC Azure provider - There are no any groups in response #1180

Closed
vutkin opened this issue Aug 22, 2022 · 4 comments
Closed

BUG: OIDC Azure provider - There are no any groups in response #1180

vutkin opened this issue Aug 22, 2022 · 4 comments
Labels
bug Something isn't working dependency-upgrade Pull requests that update a dependency file

Comments

@vutkin
Copy link

vutkin commented Aug 22, 2022

The problem:

The number of groups emitted in a token is limited to 150 for SAML assertions and 200 for JWT, including nested groups. In larger organizations, the number of groups where a user is a member might exceed the limit that Azure AD will add to a token. Exceeding a limit can lead to unpredictable results.

Ref: https://docs.microsoft.com/en-gb/azure/active-directory/hybrid/how-to-connect-fed-group-claims#group-filtering

So if some user has 150+ groups in response (included subgroups) there will be no any groups, and Azure expects that application will do a second request to GraphQL request for groups only.

Example:

DEBUG in application: Body: {"providerType":"OIDC","providerName":"azuread","username":"[email protected]"}

@tchiotludo
Copy link
Owner

it's a bug that you will need to report to micronaut project that handle all the group mapping stuff and JwT: https://github.com/micronaut-projects/micronaut-security

@tchiotludo tchiotludo added the dependency-upgrade Pull requests that update a dependency file label Aug 22, 2022
@tchiotludo tchiotludo added the bug Something isn't working label Aug 22, 2022
@vutkin
Copy link
Author

vutkin commented Aug 23, 2022

@vutkin
Copy link
Author

vutkin commented Sep 20, 2023

Switched to DEX IDP.

@justinaslelys
Copy link

@vutkin @tchiotludo
Do I understand correctly that this additional call to GraphQL was implemented in Micronaut, or what else "Switched to DEX IDP." means? Does that mean you use DEX IDP to federate and do not call to Azure directly?
Just tested dev branch of AKHQ and this still doesn't seem to work when user has more than 200 groups.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working dependency-upgrade Pull requests that update a dependency file
Projects
Status: Done
Development

No branches or pull requests

3 participants