Open shivshankardayal opened 2 years ago
It looks like it's not finding idp config for an idp with entity id: http://127.0.0.1:81/
Given below is the IDP config:
'idp': {
'name': 'Django localhost IdP',
'endpoints': {
'single_sign_on_service': [
('http://localhost:8000/idp/sso/post/', saml2.BINDING_HTTP_POST),
('http://localhost:8000/idp/sso/redirect/', saml2.BINDING_HTTP_REDIRECT),
],
"single_logout_service": [
("http://localhost:8000/idp/slo/post/", saml2.BINDING_HTTP_POST),
("http://localhost:8000/idp/slo/redirect/", saml2.BINDING_HTTP_REDIRECT)
],
},
'name_id_format': [NAMEID_FORMAT_EMAILADDRESS, NAMEID_FORMAT_UNSPECIFIED],
'sign_response': True,
'sign_assertion': True,
'want_authn_requests_signed': True,
},
IDP has no field for Entity ID. The entity ID https://127.0.0.1:81 is being fetched from DB which belong to SP i.e. Mautic.
djangosmal2idp does not create any db tables for IDPs .
I'm sorry to bother you, but I have also encountered the same problem as you. I don't know if you have solved it, and if so, how did you solve it?
@yuyan075500 : I have resolved the error and published a sample django project here. The root cause is that the entity id definition should be valid and should be configured using the Service Providers in the admin panel.
I am trying to implement SAML auth with Mautic(https://docs.mautic.org/en) as SP and my django app as IDP. I have added SP information using admin panel of Django app. However, when I try to login using IDP initiated login it gives me
UnknownSystemEntity
exception. How toresolve this? Given below is the stacktarce: