okta-pysaml2-example icon indicating copy to clipboard operation
okta-pysaml2-example copied to clipboard

SAMLError: Missing entity_id specification

Open mickjohnson-okta opened this issue 6 years ago • 7 comments

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.

mickjohnson-okta avatar Sep 04 '18 19:09 mickjohnson-okta

Same here

ctcampbell avatar Sep 12 '18 14:09 ctcampbell

Looks like the problem was introduced in 4.6.1. I downgraded to 4.6.0 and was fine.

nahun avatar Sep 27 '18 20:09 nahun

This is very useful, thanks everyone!

joelfranusic-okta avatar Sep 27 '18 20:09 joelfranusic-okta

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).

relaxnow avatar Nov 12 '18 22:11 relaxnow

Yeah, downgrading the version worked fine !!..

RiseEarly avatar Feb 04 '19 07:02 RiseEarly

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.

afreepenguin avatar Feb 11 '19 22:02 afreepenguin

In case it's unclear, the entityID must match the destination URL / audience URI in the SAML 2.0 settings of the IdP.

mydpy avatar Apr 17 '20 17:04 mydpy