Logout not working? Keycloak installed adapter for desktop app

Hi guys,
I am using this version of the module in my project (spring boot + java fx desktop in one desktop app)

org.keycloak
keycloak-installed-adapter
11.0.2

Everything works great except logout. I set up a test realm and the client looks like this (configuration as in the documentation) https://ibb.co/jrBQxN0
When I call keycloakInstalled.logout() method it redirects me to https://my-domain/auth/realms/myRealmName/protocol/openid-connect/logout?redirect_uri=http%3A%2F%2Flocalhost%3A39169 and then I see “login successful” page (same as after successful login) and the session is not killed.
Did I miss something? Anything else should be configured? Please help :frowning:

1 Like

Neverming, I found comments on the forum that it hasn’t worked for over a year. Great :slight_smile:

1 Like

I’ve just started with Keycloak and have run into this. I’m using Keycloak 12.0.4 and the same version of keycloak-installed-adapter.

When I use keycloak.logout(), a browser opens. It says “Login successful” (not a typo) and I don’t see a Logout Event in the admin console.

For reference, I’m also working on an SPA. When I lookout with the JS adapter, I do see a Logout Event.

Thanks,
Carl

Hi Carl, I fixed that issue locally by change the keycloak source code. Unfortunately you have to do the same. Just copy some classes from keycloak sources and override it. Then create some webpage similar to “login successful” page with text “logout successful” and move user there after logout.

1 Like