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
@thomasdarimont, quick question about the way Keycloak supports RP-initiated logout.
The way I read the spec for RP-logout:
"In this case, the RP, after having logged the End-User out of the RP, redirects the End-User's User Agent to the OP's logout endpoint URL."
is that the RP would do a redirect as opposed to a server-side call.
Is a server-side call the preferred way in Keycloak, or is that just isolated to your sample?
Also, I'm wondering if you see something different in the spec than I. We want to remain spec compliant in the implementations that Spring Security provides and hopefully make it easy to extend for folks who need to depart from the spec. Do you see a server-side call as within the bounds of the OpenID spec?
I found the following article to be informative, relative to what kinds of flows are possible within the spec.
In my example I do the logout behind the scenes since I want to stay in the application.
But I could also just send an redirect, which might be more appropriate.
Keycloak currently supports multiple ways to access the end_session endpoint:
Reading the Backchannel logout spec, it appears that is a way for RPs to register an endpoint and that the OP initiates the logout. Note that section 3, "RP-intiiated Logout Functionality" just refers back to the session management spec.
@jzheaux , any thoughts no whether this will get a new milestone attached? Is it a good candidate for contribution? Supporting RP-initiated logout is in my backlog right now. If it's over the horizon for framework support I'm happy to wait a little bit. If you think it's "stuck", if something I or my team would be working on in the next few months either way.
@wtatum, yes, this task is a good candidate for contribution, thanks for asking.
Would you be able to put together a PR by March (you mentioned that it may be on your backlog for a few months)? If so, the task is yours! Otherwise, I think there is a good chance I'll be able to tackle it myself before then.
Essentially, it's a matter of creating a logout success handler that looks up the ClientRegistration associated with that Authentication and redirects according to the spec.
I have been looking for this for some days now. We have spring boot based application(s) using Okta as IDP, using okta spring boot starter - which inject Spring Security 5.1.5. With some efforts, I was able to configure gradle script where in my WAR file now have Spring Security 5.2.0.M4 jars. I am still unable to clear / kill Okta Session - after hitting default logout url. It is configured as link (app/logout) on app's UI - so no XHR - just link. Am I missing anything ?
Activity
jzheaux commentedon May 16, 2018
@thomasdarimont, quick question about the way Keycloak supports RP-initiated logout.
The way I read the spec for RP-logout:
is that the RP would do a redirect as opposed to a server-side call.
Is a server-side call the preferred way in Keycloak, or is that just isolated to your sample?
Also, I'm wondering if you see something different in the spec than I. We want to remain spec compliant in the implementations that Spring Security provides and hopefully make it easy to extend for folks who need to depart from the spec. Do you see a server-side call as within the bounds of the OpenID spec?
I found the following article to be informative, relative to what kinds of flows are possible within the spec.
thomasdarimont commentedon May 17, 2018
In my example I do the logout behind the scenes since I want to stay in the application.
But I could also just send an redirect, which might be more appropriate.
Keycloak currently supports multiple ways to access the end_session endpoint:
IMHO this is as specified in the OpenID Connect Session Spec
Having not looked to deep into that particular spec, but from looking at the implementation this IMHO looks like the Backchannel logout spec
The current version of Keycloak seems to lack support for the Front Channel logout though.
I didn't have time to read the full article yet - will do and get back to this later.
jzheaux commentedon May 17, 2018
Cool, thanks for the links.
Reading the Backchannel logout spec, it appears that is a way for RPs to register an endpoint and that the OP initiates the logout. Note that section 3, "RP-intiiated Logout Functionality" just refers back to the session management spec.
[-]Support end_session_endpoint[/-][+]Support RP (Client) initiated logout[/+]wtatum commentedon Dec 19, 2018
@jzheaux , any thoughts no whether this will get a new milestone attached? Is it a good candidate for contribution? Supporting RP-initiated logout is in my backlog right now. If it's over the horizon for framework support I'm happy to wait a little bit. If you think it's "stuck", if something I or my team would be working on in the next few months either way.
jzheaux commentedon Dec 20, 2018
@wtatum, yes, this task is a good candidate for contribution, thanks for asking.
Would you be able to put together a PR by March (you mentioned that it may be on your backlog for a few months)? If so, the task is yours! Otherwise, I think there is a good chance I'll be able to tackle it myself before then.
Essentially, it's a matter of creating a logout success handler that looks up the
ClientRegistrationassociated with thatAuthenticationand redirects according to the spec.3 remaining items
wtatum commentedon Jan 30, 2019
Reactive Oidc RP-Initiated Logout
vekdeq commentedon Aug 20, 2019
Hi Team,
I have been looking for this for some days now. We have spring boot based application(s) using Okta as IDP, using okta spring boot starter - which inject Spring Security 5.1.5. With some efforts, I was able to configure gradle script where in my WAR file now have Spring Security 5.2.0.M4 jars. I am still unable to clear / kill Okta Session - after hitting default logout url. It is configured as link (app/logout) on app's UI - so no XHR - just link. Am I missing anything ?
Vivek