Clever/saml2

[Question] What is the purpose of `create_logout_response_url` under SP

nkumarcc opened this issue · 0 comments

This may be a dumb question, but what does this function do? Here's my projected SAML Logout flow:

  1. Logout from site (SP)
  2. Send request to IdP via sp.create_logout_*request*_url
  3. IdP sees request, sends encoded SAMLResponse to specified SLO endpoint
  4. SP validates the response as legitimate, completes logout

In this workflow, I think for step 4 you'd want a function similar to redirect_assert to parse and validate the response. Wouldn't creating a response URL only be something an IdP would do to tell an SP the logout went successfully?

This is all my own thought process, and I'm sure I'm just missing something, but wanted some insight