eclipse-tractusx / puris

Predictive Unit Real-Time Information Service (PURIS) for Short Term Demand and Capacity Management
Apache License 2.0
9 stars 9 forks source link

Logout not working with IDP 25.06 #686

Open tom-rm-meyer-ISST opened 5 days ago

tom-rm-meyer-ISST commented 5 days ago

Description

Portal for 24.12 uses IDP version 25.06. We used keycloak-js in version 23.0.5. As this caused trouble during login flow, I updated the dependency to 25.0.6 to have a running PURIS with 24.12 setup.

Current behaviour

With IDP version 25.0.6 the logout is not working. For some reason the user's session is not removed. When triggering logout multiple times directly one after another, the user is redirected to an IDP screen asking if one wants to logout. After confirming the logout it works.

Didn't work with keycloak-js version 26.0.5 either.

Expected behavior

Logout works after one click.

Steps to reproduce the Bug

  1. start IDP as mentioned below
  2. configure your frontend (frontend/.env) with local deployment accordingly (also need to add -port 3000 for npm run dev in frontend/package.json). Set redirectUrl to empty.
  3. login to keycloak realm and configure client Cl3-PURIS to use http instead of https addresses
  4. open PURIS frontend, login, logout > not working
cd local/keycloak
docker run -p 10081:8080 --name keycloak \
-e KEYCLOAK_ADMIN=admin -e KEYCLOAK_ADMIN_PASSWORD=admin \
-v ./puris-config/:/opt/keycloak/data/import \
quay.io/keycloak/keycloak:25.0.6 \
start-dev --import-realm