Weird-Sheep-Labs / django-azure-auth

A simple Django app for user authentication with Azure Active Directory/Entra ID.
MIT License
17 stars 10 forks source link

Make it possible to set isstaff based on role/group name in token #29

Closed ahjulstad closed 4 months ago

ahjulstad commented 4 months ago

It would make a great addition to be able to automatically set isstaff if the user has a specified role claim in the token, like "Contributor" or similar/configurable.

regoawt commented 4 months ago

Not strictly a duplicate of #23 but this will be handled in the resolution to that ticket.

regoawt commented 4 months ago

@ahjulstad please see https://github.com/Weird-Sheep-Labs/django-azure-auth/issues/23#issuecomment-2142771398 for an update