-
-
Notifications
You must be signed in to change notification settings - Fork 253
infinite redirects after authentication #343
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
Comments
I'm not really sure things work as expected if your redirect_uri and the location are the same. Without a server log all I can do is guess. |
I was trying to protect the location (/test here), maybe I have missed anything, what should be the proper way to protect the location? |
The In your case you could use |
thanks, @bodewig, I think I was confused by the |
For this code snippet:
When first time the location http://localhost/test is reached, it will direct to keycloak for authentication as configured.
Once it's authenticated, I am expecting it to come to /test, however, this time it found the session already authenticated, hence move on to print out "hello, world here from test".
However, instead, there was an infinite redirect after keycloak authentication.
Note: this sounds like a similar issue to #32 , however, I have already the updated lua-resty-session version
lua-resty-session (using 3.6-1)
Environment
Expected behaviour
Once it's authenticated, I am expecting it to come to /test, however, this time it found the session already authenticated, hence move on to print out "hello, world here from test".
Did I miss anything?
Actual behaviour
However, instead, there was an infinite redirect after keycloak authentication.
Minimized example
Minimal, complete configuration that reproduces the behavior.
Configuration and NGINX server log files
Config and logs for the minimized example, possibly provided as attachments.
The text was updated successfully, but these errors were encountered: