Hi all I Have a problem with JWT token. Created a ...
# gooddata-cloud
n
Hi all I Have a problem with JWT token. Created a token for testing user, but login with - error "The JWT contains invalid claims". Can you help me investigate whats wrong with it?
Copy code
jwt_token="eyJhbGciOiJSUzI1NiIsImtpZCI6IjU3MTNBODY4LTJFNDItNENDQi1BMEFDLTYyODIwQTAwRTU4IiwidHlwIjoiSldUIn0.eyJleHAiOjE2OTQwOTc4ODAsImlhdCI6MTY5NDAxMTQ4MCwianRpIjoiZ0dDR2pvckxWZHN3MExlM2RGdGVGZyIsIm5hbWUiOiJqb2huIG1hbGNvbG0iLCJuYmYiOjE2OTQwMTE0ODAsInN1YiI6ImpvaG4ubWFsY29sbSJ9.OQEzMFO1wdZEKU7Y1AQ06DDkkv4a4CE8Qy9J0beyCCD8H3cDqTh3PGoW_o8mT35heEJLKFo-ydUKL-kY2d6afaBiQbwBcyttHhhG581L-qZIhYghVDRaLyIWmrSMxJjMmppSrPKzeTirbUHAoPNH33GCOYnOO6iuHVFIDRa9wsI01FdDlM4i71Mbi52eXz8dk5OTqSipnGk84bykPh1FFc0vTW-YgFGSc0ae9gTzSqmN09QJBVMrNFNT1ZtjAifwk-43IW0HATN4L2Azd4LYR8UqYrM9i0ujFcy3pQFJcZnPxiw61gtczTVc3KLmwPfG1fUJMUQ0AwgE1KPXRI8i6A"
b
Hi Natalia, in our logs we can see `Signed JWT rejected: Another algorithm expected, or no matching key(s) found`so my guess is that you either specified the wrong algorithmn or used an incorrect `kid`in the jwt header. However it's hard to say for sure, it could point to a generic issue with verifying the signature. It's possible to dig deeper, but I see that you've posted another question which suggests that you've got past this. In the meantime, our team is working to implement more granular error messages.
🙌 1