Auth0 authorizor rejects JWT token from service - "jwt issuer invalid. expected: https://myservice.auth0.com"
Went through the entire tutorial after reading your question, and this worked for me (had already done this recently).
Unclear, but from your error message reported in question, it looks like expected issuer does not have a trailing /
on the end.
However, mine definitely DID have that. Here a screenshot from JWT.IO of a token that is working.
Can simply send that the API (using postman) and appending it as Authorization Bearer {{token}} header. using the tutorial's api (AWS petshop), receive the output:
[
{
"id": 1,
"type": "dog",
"price": 249.99
},
{
"id": 2,
"type": "cat",
"price": 124.99
},
{
"id": 3,
"type": "fish",
"price": 0.99
}
]
Be helpful to see your JWT token iss
and aud
(audience) values.