router can not authenticate JWKS token #2602
-
Hi, and my finally, my authentication:
experimental:
jwt:
jwks_url: http://localhost:3100/.well-known/jwks.json
header_name: Authorization
header_value_prefix: Bearer
cooldown: 15s However, I'm getting below error in apollo studio; What am I missing? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
That is telling you that it is finding a key and using it to verify your JWT, but your JWT wasn't signed with the chosen key. Are you sure the JWT was signed with this key? |
Beta Was this translation helpful? Give feedback.
-
One other comment. That looks like an older version of the router. The experimental support now expects to receive an array of |
Beta Was this translation helpful? Give feedback.
One other comment. That looks like an older version of the router. The experimental support now expects to receive an array of
jwks_urls
. If you read the updated documentation at https://www.apollographql.com/docs/router/configuration/authn-jwt, it may be helpful.