-
Notifications
You must be signed in to change notification settings - Fork 94
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
Loop 302 after expire access token #84
Comments
Something probably broken with the refresh process. Check the error log for |
only this in debug error.log It seems like nginx cannot refresh access token... but why? Where I can get additional logs? May be it's possible to run njs script with additional output? |
One more thing. If timeout for keyval zone is less than ttl acess token - infinite loop starts before expiration access token, right after remove token from nginx_kv |
I think I fixed this. After these changes everything working correctly |
Good news. Looks like the troubleshooting guide needs an extra item! |
Good day!
I ran my test installation through this guide (https://docs.nginx.com/nginx/deployment-guides/single-sign-on/keycloak/)
And started to get infinite loop after access token expired.
It seems strange.
First step go the site https://main.example.com/
step 2 -> 302 redirect to https://keycloak.example.com/
step 3 -> auth in keycloak
step 4 -> 302 to https://main.example.com/
step 5 -> after 5 minutes (access token ttl) browser started return 302 from main.example.com to keycloak, keycloak send 302 to main.example and infinite loop....
and unmodified js/openid_connect.js; from main branch
The text was updated successfully, but these errors were encountered: