Ah, great, that works like intended now, thanks.
Two more questions if you don't mind.
How do I get hold of the relay state?
I also played with IdP initiated SSO and there configured a relay
state so that I know it is IdP initiated as I need that information.
In the browser dev tools I see that the IdP is giving the relay state
to the callback URL.
But when I'm at the redirect url servlet, I cannot see how to get the
value of the relay state.
I thought it should come as a query parameter to the redirect url, but
that's not the case.
And the other question is about the logout.
How do I properly do that?
I need the remote user that is logged out, is that possible somewhere somehow?
I thought the proper way might be to configure a custom
`LogoutHandler` that is a subclass of `DefaultLogoutHandler`, forward
the calls and doing my rich-client session logout logic there.
But as far as I can see I cannot get the logged out user there, is that right?
Is there a better way?
If not, I guess I need to persist / link the "key" that is given in
the `LogoutHandler` methods to the rich-client session and then lookup
the rich-client session by that key on logout?
If that is the way to go, how do I create the link?
I do not mean technically, I mean where to properly do it?
As far as I can see I can also not get the remote user in the
`LogoutHandler#recordSession` method.
And I didn't right away find a way to get the "key" in my servlet that
does create the rich-client session and then removes the profiles with
the profile manager.
Best regards
Björn
> To view this discussion on the web visit
https://groups.google.com/d/msgid/pac4j-users/CAP279Lx2J6qTFn%3Dqytb5xTgt6547%2BY-5kReEJzbxHtL0y7NXtg%40mail.gmail.com.