Invalid JWT: Failed audience check.
- Dominant language
- Go
- Stars
- 737
- Forks
- 95
- Avg merge
- 10h 38m
- Merged PRs (30d)
- 2
Description
Hi! I genarated a JWT code with:
`oauth2l fetch --type jwt --credentials my-service-account-file.json --scope firebase.messaging`
Then request access_token with CURL like this:
`curl -d 'grant_type=urn%3Aietf%3Aparams%3Aoauth%3Agrant-type%3Ajwt-bearer&assertion=
' https://oauth2.googleapis.com/token`
but got 400 Bad Request: `Invalid JWT: Failed audience check.`
And with the JWT code genarated from
`oauth2l fetch --type jwt --credentials ./my-service-account-file.json --audience https://oauth2.googleapis.com/token`, I got the 400 Bad Request error
`"error": "invalid_scope",
"error_description": "Invalid OAuth scope or ID token audience provided."`
Are there any arguments that I missed?
Contributor guide
Assessment
This issue has not been assessed yet.