-
Notifications
You must be signed in to change notification settings - Fork 79
Description
First, apologies if this is not within scope of this package. I haven't found information suggesting it is not, and I haven't found closed issues talking about it. :) I have not read anything in the doc suggesting it is already implemented either.
Describe the feature you'd like
groups claim in JWT from Azure has a limit of 200.
https://learn.microsoft.com/en-us/entra/identity/users/directory-service-limits-restrictions
When a signed-in user has a groups claim above the threshold, a group overage is sent back in the JWT with a url to Microsoft Graph.
There are ways to handle this automatically at a first glance.
https://learn.microsoft.com/en-us/troubleshoot/entra/entra-id/app-integration/get-signed-in-users-groups-in-access-token
https://github.com/Azure-Samples/fastapi-appservice-ad-authz/tree/main
I suggest to add group overage handling out-of-the-box from the JWT, so that the User object returns all groups, even if a group overage is sent back.