Skip to content

Logout issues when using oidc along with keycloak. #1515

@Anik-Bardhan

Description

@Anik-Bardhan

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).
Screencast.from.01-04-25.01.13.00.PM.IST.webm

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.
  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
  1. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions