Hi. How do I go about debugging JWT authenticatio...
# gooddata-cloud
c
Hi. How do I go about debugging JWT authentication? I've created a
jwk
and uploaded via the API, now i'm creating a
jwt
with a kid that matches my jwk, but i just get back a generic 401 Unauthorized. I can verify my generated jwt locally agains the jwk i've uploaded, the kid matches. but i get a 401 when using the token to make an api call as per the docs
f
Hi Chris, I checked our logs for any JWT 401s from your domain, and found the following errors:
An error occurred while attempting to decode the Jwt: Signed JWT rejected: Another algorithm expected, or no matching key(s) found
and
JwtVerificationException: The JWT contains invalid claims
Can you double check your JWK’s attributes? Sounds like the JWT and JWK are not matching
1
c
can't say why, but was using a slightly different set of tools in node than your javascript examples. swapped out the toolchain and it now works.
🙌 1