-
Notifications
You must be signed in to change notification settings - Fork 673
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
IDP Custom Logout #1816
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
IDP logout (custom) as per defined in documentation.
$as = new Simple('myauthinstance');
$as->logout([
'ReturnTo' => 'xxxxxxxxxxxx',
'ReturnStateParam' => 'LogoutState',
'ReturnStateStage' => 'MyLogoutState'
]);
Session::getSessionFromRequest()->cleanup();
Redirect happens as per configuration but when user manually sent a call. (SP is bookmarked) IDP still consider the user is logged in and Responds back to SP request with a SAML token.
Log file shows the following:
Jun 20 09:46:37 saml DEBUG [6efd4c9e77] Session: 'myauthinstance' not valid because we are not authenticated.
Jun 20 09:46:37 saml DEBUG [6efd4c9e77] Saved state: '_a29e3b12ad9fd35ec16aabf882d916b865f89b3323'
Jun 20 09:46:37 saml DEBUG [6efd4c9e77] Session: 'myauthinstance' not valid because we are not authenticated.
To Reproduce (create custom route)
public function customLogout(Request $request)
{
}
After login just browse to URL ....
The text was updated successfully, but these errors were encountered: