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

Adds group sync for Azure Groups via token to Django groups #15 #16

Closed sebastian-muthwill closed 6 months ago

sebastian-muthwill commented 6 months ago

Adds the support to pass a AzureAD (now EntraID) group that has been added to the Enterprise application, down to the Django application where it is synced with Django groups.

As described in the issue #15

A mapping needs to be provided in the settings. Based on this mapping the groups are created and a user is assigned an removed from a group when the group id is present in the role claim within the token.

I tried to get the test as best as I could. Bare with me ;-)

regoawt commented 6 months ago

@sebastian-muthwill Hi, thanks for the issue and PR, and apologies for the slow response!

Will try look at the PR asap.