SAML configuration is overwriting user named 'user'

38 views
Skip to first unread message

Brian Ray

unread,
Dec 17, 2023, 8:43:03 PM12/17/23
to django-allauth
I am using SAML provider.

Logging in creates a Django user named 'user' and social account. 

All the data ends up in the "extra data" field. 

I want it to create. New user when user logs in.

Here is my environment:

Django==4.2.7; python_version >= '3.8'
django-allauth==0.58.2
python3-saml==1.16.0

Here is my configuration JSON

{"idp": {"name": "Eviden IdP", "slo_url": "https://wac.example.com/sso_cond2fa_2023/SingleLogoutService", "sso_url": "https://wac.example.com/sso_cond2fa_2023/SingleSignOnService", "x509cert": "-----BEGIN CERTIFICATE-----XXXXX-----END CERTIFICATE-----", "entity_id": "urn:dev-123.us.auth0.com"}, "advanced": {"strict": false}, "attribute_mapping": {"uid": "http://schemas.auth0.com/clientID", "email": "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress", "surname": "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/surname", "firstname": "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/givenname", "email_verified": "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress"}}

More info, here is screenshot of the results:

Screen Shot 2023-12-17 at 7.25.14 PM.png
I did check the SAML Tracker and I do see that extra data in there too. Anyway I can force it to use those values to populate the Admin User so it is unique?

Thanks in advance, Brian Ray









Reply all
Reply to author
Forward
0 new messages