You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When validating a user-agent token (created via a public client) from a bearer-only client (backend application) that use different keycloak hostnames, the validation fails with error invalid token (wrong ISS).
Using the external, public url for the keycloak server in the backend application avoids this issue.
The bug also occurs when setting the frontend URL, which changes the authorization_endpoint to the public URL, while maintaining the request URL in the token_endpoint advertisement.
Version
15.0.2
Expected behavior
Given the proposal of the default hostname providers and the frontend url configuration, the nodejs client should accept tokens with ISS that is different from the current realm url.
Describe the bug
When validating a user-agent token (created via a public client) from a bearer-only client (backend application) that use different keycloak hostnames, the validation fails with error
invalid token (wrong ISS)
.Using the external, public url for the keycloak server in the backend application avoids this issue.
The bug also occurs when setting the frontend URL, which changes the
authorization_endpoint
to the public URL, while maintaining the request URL in thetoken_endpoint
advertisement.Version
15.0.2
Expected behavior
Given the proposal of the default hostname providers and the frontend url configuration, the nodejs client should accept tokens with ISS that is different from the current realm url.
Actual behavior
No response
How to Reproduce?
No response
Anything else?
I found the specific code to be here:
keycloak-nodejs-connect/middleware/auth-utils/grant-manager.js
Line 427 in bd5ea5f
The text was updated successfully, but these errors were encountered: