-
-
Notifications
You must be signed in to change notification settings - Fork 626
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]: Infinite Redirect Loop with Authentik OIDC, Undefined array key "kid" #2920
Comments
Thanks for reaching out. Authentik is always a little finicky for us. But it is working. First thing is to make sure the Subject Mode is set correctly for oAuth2: Can you try wrapping the OIDC config values in quotes? Some escape characters may cause issues with PHP and env. Alternatively it may be an issue with the reverse proxy. Is the port 3081 set up correctly in there? You could also join our discord server where we have various people who have authentik running (and that topic popped up so many times that I'd hope the solution is somewhere there :) |
Hi, thanks for the response. the subject mode is the same as your screenshot and I tried wrapping OIDC values in single quote but it is the same result. I just posted in discord, hoping i can get some other solution. Thank you. |
Just pulled the latest image and it is still giving the same error 'Undefined array key "kid"'. Do i need to update any of my setup? |
Yeah so I went through the process of installing authentik + traefik + leantime in a docker environment and made sure that the leantime side is covered. I'll be writing an more in depth blog article on that. Now the "kid" error is happening when you encrypt the jwt token in your oauth provider. Can you take out the ssl certificate in your oauth provider settings in authentik and see if that fixes the issue? |
Closing this for now. Let me know if you are still running into issues here |
Hi, I just tried again and I am getting "JWT token could not be decoded" error. My provider in authentik has no Signing Key or Encryption Key setup, anything I can do for this error? |
What is your set up?
Self Hosted Docker
Version
3.3.3
Describe the issue
Just deployed leantime with docker yesterday, everything is working great except setting up OIDC with Authentik. Clicking "OIDC Login" will redirect to Authentik instance then it will stuck in redirect loop. Both leantime and Authentik are behind Nginx Proxy Manager, every loop will get registered in Authentik. When opening a new tab after the loop, it will show an error 'Undefined array key "kid"'.
Authentik Application Setup
Authentik Provider Setup

leantime error
Reproduction steps
docker-compose.yml
.env
Error Logs (LEANTIMEFOLDER/storage/logs)
No response
The text was updated successfully, but these errors were encountered: