Skip to content
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

getGrant hides the cause of grant validation failure #506

Open
sanoodles opened this issue Jul 25, 2023 · 0 comments
Open

getGrant hides the cause of grant validation failure #506

sanoodles opened this issue Jul 25, 2023 · 0 comments

Comments

@sanoodles
Copy link

sanoodles commented Jul 25, 2023

Describe the bug

Steps to reproduce:

  1. Use keycloak.protect() to protect a path like eg. here https://github.com/keycloak/keycloak-quickstarts/blob/99725dc62f0bca92857ff2d947829611517ed63e/nodejs/resource-server/app.js#L16
  2. Use the app to generate a valid token that has, however, some subtle problem like being generated for localhost instead of 127.0.01

What should happen:

  • The logged error message should point to the specific cause of failure. Like "Grant validation failed. Reason: invalid token (wrong ISS)"

What happens instead:

  • The logged error message is just "Could not obtain grant code error"

Version

22.0.1

Expected behavior

No response

Actual behavior

No response

How to Reproduce?

No response

Anything else?

No response

sanoodles added a commit to sanoodles/keycloak-nodejs-connect that referenced this issue Jul 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant