Share via

Azure AD B2C Issuing JWT Tokens with Invalid Signatures

petehall 20 Reputation points
2026-04-09T12:11:25.43+00:00
Azure AD B2C is intermittently issuing JWT access tokens with mathematically invalid RSA signatures. These tokens fail RSA.VerifyData() validation against the public keys published in the JWKS endpoint, even though:

1. The token's `kid` (Key ID) matches a key in the current JWKS
2. All token claims are valid (correct issuer, audience, not expired)
3. The token format is syntactically correct
4. No corruption occurs during transmission (byte-identical on repeated reads)

The oldest active signing key is 47 days old and may be faulted or corrupt.


Can you check the status of a signing key - I can specify which one.
   - Are there any known issues with this specific key?
   - Can you force removal/rotation of this key?
Azure Key Vault
Azure Key Vault

An Azure service that is used to manage and protect cryptographic keys and other secrets used by cloud apps and services.


1 answer

Sort by: Most helpful
  1. petehall 20 Reputation points
    2026-04-09T15:44:54.6733333+00:00

    I need to know:
    Can you check the status of a specific signing key?
    Are there any logged errors in Azure AD's token signing service for this tenant?
    Can you disable a specific key? That would test one theory

    Regards

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.