Hi @Tony Liang , there are a few things that could be causing the problem:
- Incorrect Signing Key: Double-check the signing key. The KeyID (
kid
) in your token's header needs to match the key Entra ID is expecting. Look at thekid
value in your token header. Make sure the corresponding public key is available in the JWKS (JSON Web Key Set) endpoint from your external provider. Verify that this key is correctly set up in Entra ID. - Key Rotation: If your external provider has rotated keys recently, Entra ID might not have the latest key yet. Check if there’s been a recent key rotation. Make sure the new keys are updated and configured in Entra ID.
- Mismatched Issuer or Audience: The
iss
(issuer) andaud
(audience) claims in the token need to match what Entra ID expects. Look at theiss
andaud
claims in your token. Verify that these match what you’ve configured in Entra ID. - Make sure your token hasn’t expired. Check the
exp
claim in the token and confirm it’s still valid when Entra ID is verifying it.
Please let me know if you have any questions and I can help you further.
If this answer helps you please mark "Accept Answer" so other users can reference it.
Thank you,
James