Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with Auth0 redirect logout page #512

Open
agonzaleznutra opened this issue Mar 6, 2023 · 1 comment
Open

Problem with Auth0 redirect logout page #512

agonzaleznutra opened this issue Mar 6, 2023 · 1 comment

Comments

@agonzaleznutra
Copy link

Hi!

I am calling createLogoutRequest as is set in tests, but when Auth0 receives the request it redirects to the issuer and returns the error "No active session(s) found matching LogoutRequest". I've checked all their forums and it seems to be because of an incoherence between NameID and SessionIndex that is sent and configured for the session that was created.

I am no expert in SAML but I think the problem is that in any part of samlify I could check what is my SessionIndex and NameID or was able to modify them so I wonder if there are any configurations to solve this.

@air2
Copy link

air2 commented Feb 7, 2024

I have auth0 logout working
I have configured in my app:

//on login you do 
const parsed = this.sp.parseLoginResponse(...)
const info = {
    sessionId: parsed.extract.sessionIndex.sessionIndex,
    nameId: parsed.extract.nameID,
}
// store info in the session, to use on logout

const userInfo = {
    logoutNameID: info.nameId,
    sessionIndex: info.sessionId
}
const result = this.sp.createLogoutRequest(this.idp, 'redirect', userInfo)
const redirectUrl = result.context

in oauth I have configured in the SAML addon:

{
 "logout": {
    "callback": "https://..../saml/logout",
    "slo_enabled": true
  }
}

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

No branches or pull requests

2 participants