keycloak / keycloak-nodejs-connect

Apache License 2.0
676 stars 421 forks source link

getGrant hides the cause of grant validation failure #506

Open sanoodles opened 1 year ago

sanoodles commented 1 year ago

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:

What happens instead:

Version

22.0.1

Expected behavior

No response

Actual behavior

No response

How to Reproduce?

No response

Anything else?

No response