-
Notifications
You must be signed in to change notification settings - Fork 843
No key matching kid found in signing keys #264
Comments
Can you show an id_token and their metadata URL? Also, what version of the oidc-client are you using? |
Hello, I was using an older version provided by bower package manager. I updated it to the latest release provided here, and the error message is a bit more detailed: Error: No key matching kid or alg found in signing keys. One of the ID tokens was: Pardon my ignorance but what do you mean by metadata URL? When I inquire the http://(OIDC SERVER)/jwk endpoint (JSON Web Key Set (public key)), it returns:
Is this what you mean? What could be wrong? Is it not interpreting signing key algorithm, or is it using an unsupported one? |
Well, the id_token has a kid and that seems to match what's in the keys. Do you mind debugging thru the code to find where the validation seems to fail and decide the key doesn't match? |
Oh, I bet it's because there's no "use":"sig" in the keys... I've been meaning to fix that. I'll fix it and update npm. Please hold. |
Ok, I pushed oidc-client@1.3.0-beta.3 to npm. Please try again. |
Ah, indeed that fixed it! Thank you very much. |
I'm having an issue now. My OIDC server (Anvil Connect https://github.com/anvilresearch/connect) does not return a |
@blocka open a new issue if you think there's the need to make a change here to accommodate your situation |
After switching from "Test" IdentityServer configuration to EF Core storage and ASP.NET Core Identity configuration, on my JS client, I'm getting this error ("No key matching kid or alg found in signing keys"). jwks endpoint returns:
|
Hello,
I'm trying to sign in to an OIDC server based on MITREid Connect, however when I try to make a signinRedirect() using oidc-client-js, I get the error "No key matching kid found in signing keys".
I'm quite new to OIDC at the moment so I'm not sure if I'm missing some configuration. My sign in flow is written like this:
I've defined the UserManager globally like so:
When the user clicks "Sign In", I simply do:
And send the user to callback.html, which does:
And here I get the error I've mentioned.
What am I missing? Could I've missed some configuration on the OIDC server's side?
Thanks in advance for any help,
Best Regards
The text was updated successfully, but these errors were encountered: