You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Logging out with SAML SSO with Azure as the identity provider is not logging us out completely.
#13755
We have a situation where we have an identity provider configured with SAML using the Azure AD SAML Toolkit 1 template configured to use SSO.
We have turned off Backchannel logout in our keycloak identity provider settings.
We can login correctly with our SPA application using the javascript adapter.
But when it comes to logging out we are logged out of Azure correctly but i can still see the session active in the keycloak admin console.
So when we reload the page it logs us back in since the session is still active in keycloak.
I've tried it with Backchannel logout turn on and the opposite happens. I'm logged out of keycloak but my azure session is still active and when i click on the sso button i'm logged straight back in.
With Backchannel logout turn off i can see we are calling the keycloak logout endpoint e.g. realms/name/protocol/openid-connect/logout
We are then redirected to the Azure logout page e.g https://login.microsoftonline.com//saml2?SAMLRequest=
After confirming the logout we get a page saying "Hang on a moment while we sign you out." and then it calls the configured logout url that we've set in Azure through an iframe.
In our case it is /realms/name/broker/saml/endpoint?SAMLRequest= which return a 302 to https://login.microsoftonline.com//saml2?SAMLResponse=
and displays "You signed out of your account It's a good idea to close all browser windows."
i would have thought the call to realms/name/protocol/openid-connect/logout or when the logout url is called /realms/name/broker/saml/endpoint?SAMLRequest= would have ended the keycloak session.
Also for our cordova app the same process occurs and the app expects a redirect_uri to be returned so it can clear the tokens and close the inappbrowser. But a callback isn't returned.
So how can I configure keycloak and azure to logout of both keycloak and Azure?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Hi
We have a situation where we have an identity provider configured with SAML using the Azure AD SAML Toolkit 1 template configured to use SSO.
We have turned off Backchannel logout in our keycloak identity provider settings.
We can login correctly with our SPA application using the javascript adapter.
But when it comes to logging out we are logged out of Azure correctly but i can still see the session active in the keycloak admin console.
So when we reload the page it logs us back in since the session is still active in keycloak.
I've tried it with Backchannel logout turn on and the opposite happens. I'm logged out of keycloak but my azure session is still active and when i click on the sso button i'm logged straight back in.
With Backchannel logout turn off i can see we are calling the keycloak logout endpoint e.g. realms/name/protocol/openid-connect/logout
We are then redirected to the Azure logout page e.g https://login.microsoftonline.com//saml2?SAMLRequest=
After confirming the logout we get a page saying "Hang on a moment while we sign you out." and then it calls the configured logout url that we've set in Azure through an iframe.
In our case it is /realms/name/broker/saml/endpoint?SAMLRequest= which return a 302 to https://login.microsoftonline.com//saml2?SAMLResponse=
and displays "You signed out of your account It's a good idea to close all browser windows."
i would have thought the call to realms/name/protocol/openid-connect/logout or when the logout url is called /realms/name/broker/saml/endpoint?SAMLRequest= would have ended the keycloak session.
Also for our cordova app the same process occurs and the app expects a redirect_uri to be returned so it can clear the tokens and close the inappbrowser. But a callback isn't returned.
So how can I configure keycloak and azure to logout of both keycloak and Azure?
Thanks
All reactions