Hi. How do I go about debugging JWT authenticatio...
# gooddata-cloud
Hi. How do I go about debugging JWT authentication? I've created a
and uploaded via the API, now i'm creating a
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
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
JwtVerificationException: The JWT contains invalid claims
Can you double check your JWK’s attributes? Sounds like the JWT and JWK are not matching
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