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

Keycloak creates a session of camunda-identity-service client during spring boot application startup #54

Closed
bolatk opened this issue Jan 5, 2021 · 2 comments
Labels
kind/not-a-bug This is not a bug. kind/question Further information is requested

Comments

@bolatk
Copy link

bolatk commented Jan 5, 2021

Hi! First of all, thank you @VonDerBeck for such useful plugin. I need your help with session issue.
I have a camunda-identity-service client and another client with access type public for my Vuejs application. When I login to my Vuejs application with Keycloak login page, I am able to automatically login to Camunda web app because of SSO. Then, when I logout from Camunda web app, I am also automatically logout from Vuejs. All sessions destroy in Keycloak Session web page.
But if I logout within Vuejs application, Camunda web app remains active, because there is the active session in Keycloak Session web page, which was created when Spring boot application start up.
So, why camunda identity plugin creates a new session during Spring boot application starts up? How to solve the session issue?
Thank you in advance.

@VonDerBeck VonDerBeck added kind/not-a-bug This is not a bug. kind/question Further information is requested labels Jan 11, 2021
@VonDerBeck
Copy link
Collaborator

Hi @bolatk,

the Camunda Keycloak SSO example is what it says - it is an example. Within this project the logout of Camunda involves the logout from Keycloak itself - see the implementation of the LogoutHandler. Furthermore this behaviour has nothing to do with the KeycloakIdentityProvider Plugin itself - this is part of standard Spring Security. The sample shows how to integrate both worlds in order to have it all. Please adapt the behaviour to your own needs - e.g. remove or replace the LogoutHandler functionality if you do not want that part of the example.

Does this help?

@bolatk
Copy link
Author

bolatk commented Jan 18, 2021

Thank you for your help @VonDerBeck

@bolatk bolatk closed this as completed Jan 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/not-a-bug This is not a bug. kind/question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants