Skip to content

Conversation

@maxbes
Copy link
Contributor

@maxbes maxbes commented Oct 1, 2020

I am running Django 3.1.1 + PySAML 6.1.0 + djangosaml master

When trying to logout from the IDP after the SSO session has expired (but while the Django session is still valid), the IDP responds with the following status:

<ns0:Status xmlns:ns0="urn:oasis:names:tc:SAML:2.0:protocol"><ns0:StatusCode Value="urn:oasis:names:tc:SAML:2.0:status:Responder"></ns0:StatusCode></ns0:Status>

and an exception is thrown in client.parse_logout_request_response, which is not catched by djangosaml and ends up with a HTTP code 500.

I propose to catch this exception and display a graceful error page in finish_logout instead.

My ultimate goal is to ignore this error, which I will propose in another PR, but it is a more controversial change, so I am proposing this one separately.

@peppelinux
Copy link
Member

That's quite good for me,
Can I ask you to push this PR also to v1.0.0 branch?
I'd appreciate a lot,
thank you

@peppelinux peppelinux merged commit c72ecd1 into IdentityPython:master Oct 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants