-
Notifications
You must be signed in to change notification settings - Fork 4
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
Keycloak 18 openid logout - 404 (due the 2800 characters limit in the HTTP query for the IIS server) #24
Comments
Though what leaves us puzzled, is the following from the keycloak documentation: |
Also the custom theme / login inherits from keycloak theme, that inherits from base, so the deafult confirmation page should be there. |
Additional info: we upgraded from 14, and the new 18 version is from a legacy docker image, so we still use WildFly. |
We discovered that the id_token_hint, that keycloak-js provides are not exactly the same as the token we got from the backend. |
Also when the post_logout_redirect_uri was https://---oursite---.org/some_subpage, and we got 404, we replaced it with https://---oursite---.org in the url, and pressed enter, and it logged out correctly, and arrived on the login page. |
Additional info: we use the same docker image with same setup locally and on the server. |
We found that the issue is the query limitation in IIS. |
So, how do you fix the issue @adnsimona . I have some issue. |
@adnsimona Glad that you figured the issue. Sorry for the late response. Some alternative solution is (should surely work in Keycloak 19, not 100% sure if supported in Keycloak 18) that instead of using OIDC logout GET request, you can use POST request. This should help with the query limit. Using the POST request for the logout is currently not supported in the OIDC javascript adapter. I think it can be supported to add the flag option for the keycloak.js Considering this, I am moving this to the |
It is related nginx configuration. nginx has character limitation in default configuration. proxy_buffer_size 128k; |
Describe the bug
Hi.
We've recently updated our keycloak to 18.0.0.
Everything worked fine, automatically, except the logout mechanism.
Our site was still using redirect_uri.
We updated the frontend to use the most recent keycloak-js.
Now it is sending post_logout_redirect_uri and id_token_hint correctly.
And here is the issue, the logout is resulted in a Server Error: 404
"
404 - File or directory not found.
The resource you are looking for might have been removed, had its name changed, or is temporarily unavailable.
"
I read that the 18 keycloak now asks confirmation to logout. We are using a custom template for the client.
Do we miss the page for the logout confirmation from our template?
If so, where can I find a sample template for this?
Would be nice: to display the error message in the log, what is not found exactly.
Cheers,
Ádám
Version
18.0.0
Expected behavior
User logs out
Actual behavior
404
How to Reproduce?
Probably: Use a custom template from an older version.
Anything else?
No response
The text was updated successfully, but these errors were encountered: