Skip to content
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

Logout from TYPO3 #39

Open
volkan64 opened this issue Jul 10, 2019 · 6 comments
Open

Logout from TYPO3 #39

volkan64 opened this issue Jul 10, 2019 · 6 comments

Comments

@volkan64
Copy link

If the user logs out from OP(OpenID Provider), he is still logged in TYPO3 (cookie).
How to detect if user is still logged in OpenID Provider ?

@xperseguers
Copy link
Owner

@funkyferdy Did you solve this? I could think of either:

  • implementing some "logout" callback to TYPO3 from OP but that would be awkward
  • checking session validity with each page call, definitely inefficient
  • some scheduler task which invalidates outdated active sessions
  • anything else?

@ChrisMuc
Copy link

@funkyferdy
Copy link
Contributor

Missed this question :)

checking session validity with each page call, definitely inefficient
Well this is one of the ways that as example wso2 has to "synchronise" Session.
https://medium.com/@piraveenaparalogarajah/openid-connect-session-management-dc6a65040cc
https://medium.com/@piraveenaparalogarajah/openid-connect-session-management-support-in-wso2-is-8935d80b6437

I think this heavly depends what "vendor" is behind the identity server and version/features avaiable in the solutions regarding this topic.

@xperseguers
Copy link
Owner

Related (other way) with #75

@theilm
Copy link

theilm commented Nov 8, 2023

We solved this by adding additional columns to the fe_sessions table where we save the session_state from the OP after login. We then provide a API route for backchannel logout as suggest by @ChrisMuc that deletes the TYPO3 session with a matching session_state. For this, we had create a new session backend (i.e. extend the existing session backend). I don't know, if this should be part of the oidc extension though.

@liayn
Copy link
Collaborator

liayn commented Mar 7, 2024

I think it makes sense to provide a generic logout-URL. Whether this can be used or not of course still depends on the IdP.
Microsoft, for instance, supports logout URLs in the Client registration data.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants