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 Security Microsoft Entra Microsoft Entra External ID
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. James Hamil 27,211 Reputation points Microsoft Employee Moderator
    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


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.