Repository navigation
Keycloak reverse proxy with nginx - infinite redirects #40111
Answered
by
dylanlonglands
dylanlonglands
asked this question in
Q&A
Answered by
dylanlonglands
Jun 6, 2025
Replies: 1 comment 39 replies
|
Please use a newer version of keycloak using only hostname v2 options. The parse exception was last reported with #26696 and already marked as resolved by using hostname v2. |
39 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
After verifying that we could proxy to keycloak locally, we got it working eventually - turned out to be one of the global proxy headers that was interfering with the cookies
proxy_cookie_path ~(.*) "$1; SameSite=strict; secure; httponly";This seemed to be interfering with the cookies coming back from keycloak, which would explain why the refresh token was absent on the second token request.
Thank you for all of your help and input on this, you helped greatly with my understanding of how Keycloak should work and all of the intricacies involved with hosting it behind a reverse proxy