How to enable id token encryption in JWT token while using v2 endpoint?

Gray Yeung 0 Reputation points
2024-10-09T03:04:59.61+00:00

Hello,

As I followed https://github.com/AzureAD/microsoft-identity-web/wiki/Token-Decryption step by step, but I cannot make it worked. Even though I configure the certificate and the manifest in the app registration, Azure still send me the base64 encoded token, not an encrypted token.


  1. I did upload the certificate to Microsoft Entra and saw the related info appear in the keyCredentials blocks in the manifests.
  2. Maybe RSA? Because we are using the public key provided by Microsoft. We can get the key ID from the returned JWT header.
  3. Screenshot as below. not sure if this is what you want. After accessing the url, browser will redirect me to microsoft login page and I input email and passwd, then microsoft will post the rediectURL with JWT token.

User's image

User's image

Windows for business | Windows Client for IT Pros | Directory services | Active Directory
Microsoft Security | Microsoft Entra | Microsoft Entra ID
{count} votes

Your answer

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