Logout implementation architecture #3916
Replies: 4 comments 7 replies
|
Overall approach looks good.. @ThaminduDilshan FYI.. We need to introduce a new flow type for logout.. @madurangasiriwardena: Lets say there are two different flows with SSO configured. I assume those two gonna be with two SSO circles. Given thats the case, if we follow this approach for logout, can we use one common logout flow to remove the session for the both login flows, or should there be two different logout flows each one linked to removing specific login flow session? |
|
Two other points worth considering;
|
|
Few concerns raised during the implementation phase by @ThaminduDilshan,
|
Uh oh!
There was an error while loading. Please reload this page.
Purpose
Now that SSO establishes and reuses sessions (#3672), we need to be able to end them. This thread covers implementing logout end to end, across the two entry points that have to converge on the same machinery:
end_session_endpoint.Both need to resolve the target session, revoke it and its stored context, revoke the refresh tokens bound to it, notify the other applications that shared it, and — on the browser path — confirm with the user and land them somewhere.
The approach: implement it on the flow model. Rather than build logout as a separate hardcoded path in the OAuth2 layer, we are planning to extend the same flow-graph model SSO already uses. Putting logout on the flow model means these are configured per flow instead of hardcoded in the OAuth2 layer — and it keeps the authoring model consistent with login/SSO.
All reactions