Anik-Bardhan opened a new issue, #1515:
URL: https://github.com/apache/camel-karavan/issues/1515

   ### Describe the bug
   
   I recently tried to integrate keycloak along with my local instance of 
karavan. The login works fine but there are two identified issues related to 
logout.
   
   - When the logout button is clicked, the Main.tsx component starts to 
re-load **before the keycloack session** can terminate. Hence this presents the 
user again with the landing page
   - When I terminate my session from keycloak admin, the user **remains logged 
in** until the tab is refreshed (Control + R).
   
   
https://github.com/user-attachments/assets/8a605dbb-dd98-48ae-a452-a474d6076b64
   
   Proposed solution:
   - Adding await in `karavan-app/src/main/webui/src/api/SsoApi.tsx/logout`.
   - Make a session status endpoint call at regular intervals.
   
   ### Steps to reproduce the behavior
   
   1. Set-up [keycloak](https://www.keycloak.org/downloads).
   2. Add the necessary oidc related property placeholders inside 
`karavan/src/main/resources/application.properties`
   3. Build karavan using oidc profile
   ```
   mvn clean package -f karavan-app -Dquarkus.profile=oidc
   ```
   
   4. Login and then try logging out.
   
   
   ### Variant
   
   Web Application
   
   ### Container Management (if applicable)
   
   None
   
   ### Operating System (if applicable)
   
   Linux
   
   ### Version
   
   4.10.2
   
   ### Relevant log output
   
   ```shell
   
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@camel.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to