[BUG] Unable to log in with OIDC. Redirects back to login page.
If you have problems with the installation please use our community forum
What set up are you using
- [ ] Cloud Hosted Version
- [ x ] Self Hosted
Describe the bug When attempting to log in with OIDC user after initial setup i get redirected to the login screen after IDP login. The user gets created but i am unable to log in with that user.
To Reproduce Steps to reproduce the behavior:
- Setup OIDC configuration
- Log in using the OIDC Login button
- After login you will be redirected to login page
- User gets created and can be seen on the admin side.
Expected behavior User is forwarded to dashboard
Leantime Version Latest Docker image pulled last night
Server NGINX reverse Proxy
PHP / MySQL Version mysql docker 8.0
Additional context Using authentik as the IDP
I'm also having a similar issue getting Keycloak OIDC to work
Hello !
I think I've found out why this is happening. The SID cookie is now set with the SameSite restriction as Strict, which prevents the web browser from sending it when you're hitting the callback URL.
According to my tests, changing this restriction to Lax seems to fix the issue.
You can change this line on Leantime v3.1.4 to patch this issue :
->withSameSite('Lax')
@marcelfolaron Would your PR also fix this issue ? Or should I create a new one ?
Best regards
Hey, yes the latest PR changes this back to Lax