A token does not verify
Your application rejects a token MockHub signed, with an error such as:
signature verification failed: no key found for kidCauses
Section titled “Causes”The application cached an old JWKS
Section titled “The application cached an old JWKS”After Rotate keys, new tokens carry a new kid. An application that fetched the JWKS before the rotation does not know it. Restart the application or clear its key cache so it fetches the JWKS again. Tokens signed two rotations ago never verify again.
The issuer names another host
Section titled “The issuer names another host”iss is the address the caller used: the platform address, or a custom domain. An application configured with one host rejects a token requested through the other. Request tokens through the host the application expects, or give iss= explicitly.
The token came from a preview
Section titled “The token came from a preview”Try it signs with a preview key that no project’s JWKS lists. Request the token from the mock’s real address instead.
The token comes from another project
Section titled “The token comes from another project”Each project signs with its own keys, a copy or an ephemeral environment included. Point the application at the JWKS of the project that issued the token.