-
-
Notifications
You must be signed in to change notification settings - Fork 106
Open
Labels
Description
Hello,
I am trying to get this to work with Netbox, and I can get SSO functioning but the groups claim is causing some issues.
When I add GROUP_CLAIM, GROUPS_CLAIM, groups are never processed. Django authorizes the user with no groups.
If I add "groups" : "group" to the claim mapping i get the following errors
django adfs many-to-many set is prohibited use groups.set() inst
The same happens to any other multi string value sent as a claim.
Error:
django_auth_adfs.views.OAuth2CallbackView
Direct Assignment to the forward side of a many-to-many set is prohibited use groups.set() instead.
line 40 in views.py
line 317 in backend.py
My configuration is exactly as per https://django-auth-adfs.readthedocs.io/en/stable/adfs_4.0_config_guide.html