Skip to main content
Participant
June 9, 2017
Question

The JWT token must contain a valid claims for metascopes

  • June 9, 2017
  • 1 reply
  • 2020 views

We have created a jwt to access User data, but after verifying we only get the message

{"error_description":"The JWT token must contain a valid claims for metascopes","error":"invalid_scope"}

any ideas what this is about?

The JWT was verified to be valid using JSON Web Tokens - jwt.io

Also changing Details in the client_id or client_secret changed the error message to sometinhg pointing to an error in the respective area.

Any help will be appreciated.

Thanks.

    This topic has been closed for replies.

    1 reply

    Participant
    July 27, 2021

    This could be because of the matscope added to your project. Can you verify your JWT payload generated in the IO console, if it has all the required metascopes required. I would recommend don't make any change to the JWT payload generated.

    https://www.adobe.io/authentication/auth-methods.html#!AdobeDocs/adobeio-auth/master/JWT/Scopes.md

    you can refer the Response section which points to the below:

    Indicates a problem with the requested scope for the token. Specific scope problems can be:

    • Metascopes in the JWT do not match metascopes in the binding.
    • Metascopes in the JWT do not match target client scopes.
    • Metascopes in the JWT contain a scope or scopes that do not exist.
    • The JWT has no metascopes