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 all WP sites #545

Open
jerasokcm opened this issue Jun 7, 2024 · 2 comments
Open

Logout from all WP sites #545

jerasokcm opened this issue Jun 7, 2024 · 2 comments

Comments

@jerasokcm
Copy link

Excuse me if I'm overlooking something, but it seems that the behavior is not the expected.

I'm using Keycloak 24.0.4 as IDP. For testing, I'm using a couple of WordPress 6.5 sites. OpenID generic plugin 3.10.0 installed in both sites. Basic functionality works as expected.

Let's say I open the backend of site A in a browser. Keycloak login page appears and after entering credentials I get logged in. Then, in the same window, I open a new tab and go to the admin page of site B. As expected, I don't need credentials. I'm also logged in on site B. So far, so good. If I check Keycloak admin panel, I see the user in his realm with two active sessions for each client application.

Now, if I go to site A and click the logout link, I get logged out from that site. But on the other tab, if I refresh the page of site B, I see I'm still logged in there. I expect to be logged out from site B also. The Keycloak panel shows that the user has no active sessions, but the user still has a session on site B, until intentional logout is performed on that site.

Thanks in advance for your guidance.

@timnolte
Copy link
Collaborator

timnolte commented Jun 7, 2024

This plugin doesn't logout for the IDP it only logs out the current client. Site A and Site B have their own sessions. This would be the same thing if you used Google as your login method on some service and logged out of that service only to find that you've been logged out of Google everywhere on your machine.

@timnolte
Copy link
Collaborator

timnolte commented Jun 7, 2024

Also, a word of note is that WordPress maintains it's own login. This plugin doesn't currently provide either Back-Channel or Front-Channel logout with the IDP, with the exception of when you configure the logout endpoint then it will logout out of that session at the IDP.

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

No branches or pull requests

2 participants