Skip to content

[Feature request] Support group overage out-of-the-box in JWT group claim #266

@ABrethome

Description

@ABrethome

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions