How to get ipv6 address from optional claim in access token

Manjeera Tanneeru 20 Reputation points Microsoft Employee
2024-06-05T05:27:14.0333333+00:00

How to get ipv6 address from optional claim in access token/id token after authenticating with MSAL? The "ipaddr" always gives IPv4 address. "https://learn.microsoft.com/en-us/entra/identity-platform/optional-claims-reference"

Microsoft Security | Microsoft Entra | Microsoft Entra ID
0 comments No comments
{count} votes

Accepted answer
  1. Givary-MSFT 35,626 Reputation points Microsoft Employee Moderator
    2024-06-05T12:02:10.4866667+00:00

    @Manjeera Tanneeru Thank you for reaching out to us, ipaddr claim shows the IP address (as ipv6) if you have logged into Entra ID using IPv6 network connection. Below is the reference screenshot

    User's image

    Let me know if you have any further questions, feel free to post back.

    Please remember to "Accept Answer" if answer helped, so that others in the community facing similar issues can easily find the solution.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

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.