Skip to content

Commit 6140925

Browse files
authored
Merge pull request #101679 from shashishailaj/patch-74
(Azure CXP) Added a note.
2 parents 1ec3a83 + 2804794 commit 6140925

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

articles/active-directory/develop/id-tokens.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,12 @@ This list shows the claims that are in most id_tokens by default (except where n
8282
|`uti` | Opaque String | An internal claim used by Azure to revalidate tokens. Should be ignored. |
8383
|`ver` | String, either 1.0 or 2.0 | Indicates the version of the id_token. |
8484

85+
86+
> [!NOTE]
87+
> The v1 and v2 id_token have differences in the amount of information they will carry as seen from the examples above. The version essentially specifies the Azure AD platform endpoint from where it was issued. [Azure AD Oauth implementation](https://docs.microsoft.com/azure/active-directory/develop/about-microsoft-identity-platform) have evolved through the years. Currently we have two different oAuth endpoints for AzureAD applications. You can use any of the new endpoints which are categorized as v2 or the old one which is said to be v1. The Oauth endpoints for both of them are different. The V2 endpoint is the newer one where we are trying to migrate all the features of v1 endpoint and recommend new developers to use the v2 endpoint.
88+
> - V1: Azure Active Directory Endpoints: `https://login.microsoftonline.com/common/oauth2/authorize`
89+
> - V2: Microsoft Identity Platform Endpoints: `https://login.microsoftonline.com/common/oauth2/v2.0/authorize`
90+
8591
## Validating an id_token
8692

8793
Validating an `id_token` is similar to the first step of [validating an access token](access-tokens.md#validating-tokens) - your client should validate that the correct issuer has sent back the token and that it hasn't been tampered with. Because `id_tokens` are always a JWT, many libraries exist to validate these tokens - we recommend you use one of these rather than doing it yourself.

0 commit comments

Comments
 (0)