Closed popovicnenad closed 4 months ago
Indeed, it was a problem somewhere else. For anyone having similar problem in the future:
ASSERTION_URL
was incorrect, it was set to my-domain.com/sso/acs
but should be set to my-domain.com
and library adds /sso/acs
path to it.
I'm using latest version
3.12
, and Google as both identity and service provider and i'm gettingSamlAuthError("No name_id in SAML response.")
atdjango_saml2_auth/saml.py line 315
.I've been debugging for quite some time but I'm unable to figure out what is causing the problem, or find any solution online.
This is my config:
GoogleIDPMetadata.xml:
Auth response received:
Seems like NameID Format is consistent and valid but regardless it's always
None
. Only place a was able to find value being set is inresponse.py at line 765
inget_subject
method, called from_assertion
method, but those methods are not called before saml response is decoded:There is a related pr #264 but solution doesn't work for me. Result is the same regardless of what I set as
NAME_ID_FORMAT
so I'm suspecting problem lies somewhere else.Any help would be much appreciated