This occurs when the claim defined in the OIDC consumer_claim field is not found in the token provided.
For example:
The OIDC config has consumer_claim = email
If the token provided has the below payload the error will occur as it is missing the email claim.
{
"iss": "https://accounts.google.com",
"azp": "329599xxxxxx.apps.googleusercontent.com",
"aud": "329599xxxxxx.apps.googleusercontent.com",
"sub": "20376685496334",
"at_hash": "rN2G5jhTWjw8JEC",
"iat": 1624462383,
"exp": 1624465983
}
To address this you will need to either:
- Include the claim as part of the token payload.
- Change the
consumer_claim to a value that exists in the token. For the above example, you could use azp for instance.
Note: The consumer_claim value is case sensitive. Email will not be treated the same as email.
More details on the OIDC plugin can be found in the OpenID Connect plugin documentation.