okta-pysaml2-example
okta-pysaml2-example copied to clipboard
SAMLError: Missing entity_id specification
Python package pysaml2 version 4.6.1 will return the error SAMLError: Missing entity_id specification
.
Downgrading the pysaml version to 4.0.3 allows the SAML assertion to post successfully.
Same here
Looks like the problem was introduced in 4.6.1. I downgraded to 4.6.0 and was fine.
This is very useful, thanks everyone!
SAML2 Service Providers should have an entityid, just add the following to the settings ( https://github.com/jpf/okta-pysaml2-example/blob/master/app.py#L97 ):
'entityid': 'https://example.com/sp/metadata',
Or some unique URL on the applications domain (ideally should point to where metadata xml can be retrieved).
Yeah, downgrading the version worked fine !!..
SAML2 Service Providers should have an entityid, just add the following to the settings ( https://github.com/jpf/okta-pysaml2-example/blob/master/app.py#L97 ):
'entityid': 'https://example.com/sp/metadata',
Or some unique URL on the applications domain (ideally should point to where metadata xml can be retrieved).
This worked well for me. thanks.
In case it's unclear, the entityID must match the destination URL / audience URI in the SAML 2.0 settings of the IdP.