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

[BUG] keycloak oidc too many redirects #2360

Open
1 of 2 tasks
leonidas-o opened this issue Feb 29, 2024 · 0 comments
Open
1 of 2 tasks

[BUG] keycloak oidc too many redirects #2360

leonidas-o opened this issue Feb 29, 2024 · 0 comments

Comments

@leonidas-o
Copy link

leonidas-o commented Feb 29, 2024

What set up are you using

  • Cloud Hosted Version
  • Self Hosted

Describe the bug
Cannot get keycloak with docker-leantime (3.0.7 also tried with3.1.1) to work. There are some 303 and 302 redirects before the browser gives up.

To Reproduce
Steps to reproduce the behavior:

  1. Go to leantime's .env and add:
LEAN_OIDC_CLIENT_ID=MYCLIENTID
LEAN_OIDC_CLIENT_SECRET=MYSECRETHERE
LEAN_OIDC_PROVIDER_URL=https://keycloak.my-domain.com/realms/MYREALM/
  1. On the leantime login page, click on OIDC Login and type in your credentials
  2. See the redirects

Expected behavior
Redirect back to leantime and the given user is logged in.

Leantime Version
docker leantime:latest (3.0.7, 3.1.1)

Server
Apache, nginx, IIS etc

PHP / MySQL Version
docker leantime:latest
docker image mysql:8.0

Additional context

127.0.0.1 -  28/Feb/2024:17:59:46 +0000 "GET /index.php" 302
127.0.0.1 -  28/Feb/2024:17:59:58 +0000 "GET /index.php" 303
127.0.0.1 -  28/Feb/2024:17:59:58 +0000 "GET /index.php" 302
127.0.0.1 -  28/Feb/2024:17:59:58 +0000 "GET /index.php" 303
127.0.0.1 -  28/Feb/2024:17:59:58 +0000 "GET /index.php" 302
127.0.0.1 -  28/Feb/2024:17:59:59 +0000 "GET /index.php" 303
127.0.0.1 -  28/Feb/2024:17:59:59 +0000 "GET /index.php" 302
127.0.0.1 -  28/Feb/2024:17:59:59 +0000 "GET /index.php" 303
127.0.0.1 -  28/Feb/2024:17:59:59 +0000 "GET /index.php" 302
127.0.0.1 -  28/Feb/2024:17:59:59 +0000 "GET /index.php" 303
127.0.0.1 -  28/Feb/2024:18:00:00 +0000 "GET /index.php" 302
127.0.0.1 -  28/Feb/2024:18:00:00 +0000 "GET /index.php" 303
127.0.0.1 -  28/Feb/2024:18:00:00 +0000 "GET /index.php" 302
127.0.0.1 -  28/Feb/2024:18:00:00 +0000 "GET /index.php" 303
127.0.0.1 -  28/Feb/2024:18:00:00 +0000 "GET /index.php" 302

Inside the container, var/www/html/logs/error.log doesn't show anything useful:

[28-Feb-2024 17:59:41 UTC] Adding Event Listener to request_terminated
[28-Feb-2024 17:59:41 UTC] Command Output: 
  2024-02-28 17:59:41 Running [Callback] ............................ 1ms DONE
  2024-02-28 17:59:41 Running [Callback] ............................ 0ms DONE
  2024-02-28 17:59:41 Running [Callback] ............................ 0ms DONE


[28-Feb-2024 17:59:41 UTC] Cron run finished

At the end firefox just shows: The page isn’t redirecting properly. When going to keycloak, under clients -> leantime -> sessions I see the user is logged in. Also under keycloak events I see some LOGIN and CODE_TO_TOKEN event types.

@leonidas-o leonidas-o changed the title [BUG] 3.0.7 keycloak oidc redirects [BUG] keycloak oidc too many redirects Apr 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant