How to emit some data field on azure AD JWT token

P Kungvanrattana 0 Reputation points
2024-05-21T05:55:59.27+00:00

We have integrated a web client with OAuth to authenticate using Azure AD and are storing the token for later use. However, we need to exclude certain sensitive data, such as email, IP address, and name, which are not necessary for the application. Could you please help us configure the setup to remove these sensitive fields when using OAuth2 with Azure AD Entra via azure web-portal ?

Microsoft Entra External ID
Microsoft Entra External ID
A modern identity solution for securing access to customer, citizen and partner-facing apps and services. It is the converged platform of Azure AD External Identities B2B and B2C. Replaces Azure Active Directory External Identities.
2,701 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. James Hamil 22,876 Reputation points Microsoft Employee
    2024-05-22T21:03:29.19+00:00

    Hi @P Kungvanrattana , you can use Optional Claims for this. Please review that documentation and let me know what questions you have!

    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