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

Grant validation failed. Reason: failed to load public key to verify token. #2

Open
mNeevetha opened this issue Apr 30, 2019 · 2 comments

Comments

@mNeevetha
Copy link

mNeevetha commented Apr 30, 2019

Hi @c3s4r ,
Using keycloak-connect-multirealm module, I'm able to get the realm name from the token passed in each request, but how do we get the realm-public-key for each realm? Since the realm-public-key is not configured it is resulting in ERROR: Grant validation failed. Reason: failed to load public key to verify token.
Any idea on how this could be achieved? Thanks in Advance!

@Fydon
Copy link

Fydon commented Oct 7, 2021

The key can be found in Realm Settings -> Keys -> Public key (see this Stackoverflow for more details). Set realm-public-key to this value. I've logged a ticket about this problem.

@Fydon
Copy link

Fydon commented Oct 7, 2021

It turns out that when I saw this issue that it was the root certificate authority of my certificate was not trusted by NodeJS.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants