From 86695fa159c968bb7572fad08802bc7f012be616 Mon Sep 17 00:00:00 2001 From: guardrex <1622880+guardrex@users.noreply.github.com> Date: Fri, 10 Apr 2026 08:29:48 -0400 Subject: [PATCH] Add V1/V2 STS token remarks --- 10.0/BlazorWebAppEntraBff/MinimalApiJwt/Program.cs | 4 +++- 10.0/BlazorWebAppEntraBffYarpAspire/MinimalApiJwt/Program.cs | 4 +++- 10.0/BlazorWebAppOidcBffAuto/MinimalApiJwt/Program.cs | 4 +++- 10.0/BlazorWebAppOidcBffServer/MinimalApiJwt/Program.cs | 4 +++- 8.0/BlazorWebAppOidc/MinimalApiJwt/Program.cs | 4 +++- 8.0/BlazorWebAppOidcBff/MinimalApiJwt/Program.cs | 4 +++- 8.0/BlazorWebAppOidcServer/MinimalApiJwt/Program.cs | 4 +++- 9.0/BlazorWebAppEntraBff/MinimalApiJwt/Program.cs | 4 +++- 9.0/BlazorWebAppEntraBffYarpAspire/MinimalApiJwt/Program.cs | 4 +++- 9.0/BlazorWebAppOidcBffAuto/MinimalApiJwt/Program.cs | 4 +++- .../MinimalApiJwt/Program.cs | 4 +++- 9.0/BlazorWebAppOidcBffServer/MinimalApiJwt/Program.cs | 4 +++- 12 files changed, 36 insertions(+), 12 deletions(-) diff --git a/10.0/BlazorWebAppEntraBff/MinimalApiJwt/Program.cs b/10.0/BlazorWebAppEntraBff/MinimalApiJwt/Program.cs index baaa2668a..e95253ed5 100644 --- a/10.0/BlazorWebAppEntraBff/MinimalApiJwt/Program.cs +++ b/10.0/BlazorWebAppEntraBff/MinimalApiJwt/Program.cs @@ -10,9 +10,11 @@ // // Authority format {AUTHORITY} matches the issurer (`iss`) of the JWT returned by the identity provider. // - // Authority format {AUTHORITY} for ME-ID tenant type: https://sts.windows.net/{TENANT ID} + // Authority format {AUTHORITY} for ME-ID tenant type (V1 STS token): https://sts.windows.net/{TENANT ID} // Authority format {AUTHORITY} for ME External ID tenant type: https://{DIRECTORY NAME}.ciamlogin.com/{TENANT ID}/v2.0 // Authority format {AUTHORITY} for B2C tenant type: https://login.microsoftonline.com/{TENANT ID}/v2.0 + // The format of the authority URL depends on the tenant type and the version of the tokens issued by the identity provider. + // For guidance on adopting V2 tokens and the corresponding authority URL format, see the article. // jwtOptions.Authority = "{AUTHORITY}"; // diff --git a/10.0/BlazorWebAppEntraBffYarpAspire/MinimalApiJwt/Program.cs b/10.0/BlazorWebAppEntraBffYarpAspire/MinimalApiJwt/Program.cs index 5dd55f57b..a6569c6ab 100644 --- a/10.0/BlazorWebAppEntraBffYarpAspire/MinimalApiJwt/Program.cs +++ b/10.0/BlazorWebAppEntraBffYarpAspire/MinimalApiJwt/Program.cs @@ -10,9 +10,11 @@ // // Authority format {AUTHORITY} matches the issurer (`iss`) of the JWT returned by the identity provider. // - // Authority format {AUTHORITY} for ME-ID tenant type: https://sts.windows.net/{TENANT ID} + // Authority format {AUTHORITY} for ME-ID tenant type (V1 STS token): https://sts.windows.net/{TENANT ID} // Authority format {AUTHORITY} for ME External ID tenant type: https://{DIRECTORY NAME}.ciamlogin.com/{TENANT ID}/v2.0 // Authority format {AUTHORITY} for B2C tenant type: https://login.microsoftonline.com/{TENANT ID}/v2.0 + // The format of the authority URL depends on the tenant type and the version of the tokens issued by the identity provider. + // For guidance on adopting V2 tokens and the corresponding authority URL format, see the article. // jwtOptions.Authority = "{AUTHORITY}"; diff --git a/10.0/BlazorWebAppOidcBffAuto/MinimalApiJwt/Program.cs b/10.0/BlazorWebAppOidcBffAuto/MinimalApiJwt/Program.cs index 81e98155c..40e7fca79 100644 --- a/10.0/BlazorWebAppOidcBffAuto/MinimalApiJwt/Program.cs +++ b/10.0/BlazorWebAppOidcBffAuto/MinimalApiJwt/Program.cs @@ -7,9 +7,11 @@ // // Authority format {AUTHORITY} matches the issurer (`iss`) of the JWT returned by the identity provider. // - // Authority format {AUTHORITY} for ME-ID tenant type: https://sts.windows.net/{TENANT ID} + // Authority format {AUTHORITY} for ME-ID tenant type (V1 STS token): https://sts.windows.net/{TENANT ID} // Authority format {AUTHORITY} for ME External ID tenant type: https://{DIRECTORY NAME}.ciamlogin.com/{TENANT ID}/v2.0 // Authority format {AUTHORITY} for B2C tenant type: https://login.microsoftonline.com/{TENANT ID}/v2.0 + // The format of the authority URL depends on the tenant type and the version of the tokens issued by the identity provider. + // For guidance on adopting V2 tokens and the corresponding authority URL format, see the article. // jwtOptions.Authority = "{AUTHORITY}"; // diff --git a/10.0/BlazorWebAppOidcBffServer/MinimalApiJwt/Program.cs b/10.0/BlazorWebAppOidcBffServer/MinimalApiJwt/Program.cs index e473e31b5..29d947cdd 100644 --- a/10.0/BlazorWebAppOidcBffServer/MinimalApiJwt/Program.cs +++ b/10.0/BlazorWebAppOidcBffServer/MinimalApiJwt/Program.cs @@ -7,9 +7,11 @@ // // Authority format {AUTHORITY} matches the issurer (`iss`) of the JWT returned by the identity provider. // - // Authority format {AUTHORITY} for ME-ID tenant type: https://sts.windows.net/{TENANT ID} + // Authority format {AUTHORITY} for ME-ID tenant type (V1 STS token): https://sts.windows.net/{TENANT ID} // Authority format {AUTHORITY} for ME External ID tenant type: https://{DIRECTORY NAME}.ciamlogin.com/{TENANT ID}/v2.0 // Authority format {AUTHORITY} for B2C tenant type: https://login.microsoftonline.com/{TENANT ID}/v2.0 + // The format of the authority URL depends on the tenant type and the version of the tokens issued by the identity provider. + // For guidance on adopting V2 tokens and the corresponding authority URL format, see the article. // jwtOptions.Authority = "{AUTHORITY}"; // diff --git a/8.0/BlazorWebAppOidc/MinimalApiJwt/Program.cs b/8.0/BlazorWebAppOidc/MinimalApiJwt/Program.cs index 83121e18e..a0c3a288a 100644 --- a/8.0/BlazorWebAppOidc/MinimalApiJwt/Program.cs +++ b/8.0/BlazorWebAppOidc/MinimalApiJwt/Program.cs @@ -7,9 +7,11 @@ // // Authority format {AUTHORITY} matches the issurer (`iss`) of the JWT returned by the identity provider. // - // Authority format {AUTHORITY} for ME-ID tenant type: https://sts.windows.net/{TENANT ID} + // Authority format {AUTHORITY} for ME-ID tenant type (V1 STS token): https://sts.windows.net/{TENANT ID} // Authority format {AUTHORITY} for ME External ID tenant type: https://{DIRECTORY NAME}.ciamlogin.com/{TENANT ID}/v2.0 // Authority format {AUTHORITY} for B2C tenant type: https://login.microsoftonline.com/{TENANT ID}/v2.0 + // The format of the authority URL depends on the tenant type and the version of the tokens issued by the identity provider. + // For guidance on adopting V2 tokens and the corresponding authority URL format, see the article. // jwtOptions.Authority = "{AUTHORITY}"; // diff --git a/8.0/BlazorWebAppOidcBff/MinimalApiJwt/Program.cs b/8.0/BlazorWebAppOidcBff/MinimalApiJwt/Program.cs index 887c04fe7..9304f78dd 100644 --- a/8.0/BlazorWebAppOidcBff/MinimalApiJwt/Program.cs +++ b/8.0/BlazorWebAppOidcBff/MinimalApiJwt/Program.cs @@ -10,9 +10,11 @@ // // Authority format {AUTHORITY} matches the issurer (`iss`) of the JWT returned by the identity provider. // - // Authority format {AUTHORITY} for ME-ID tenant type: https://sts.windows.net/{TENANT ID} + // Authority format {AUTHORITY} for ME-ID tenant type (V1 STS token): https://sts.windows.net/{TENANT ID} // Authority format {AUTHORITY} for ME External ID tenant type: https://{DIRECTORY NAME}.ciamlogin.com/{TENANT ID}/v2.0 // Authority format {AUTHORITY} for B2C tenant type: https://login.microsoftonline.com/{TENANT ID}/v2.0 + // The format of the authority URL depends on the tenant type and the version of the tokens issued by the identity provider. + // For guidance on adopting V2 tokens and the corresponding authority URL format, see the article. // jwtOptions.Authority = "{AUTHORITY}"; // diff --git a/8.0/BlazorWebAppOidcServer/MinimalApiJwt/Program.cs b/8.0/BlazorWebAppOidcServer/MinimalApiJwt/Program.cs index e473e31b5..29d947cdd 100644 --- a/8.0/BlazorWebAppOidcServer/MinimalApiJwt/Program.cs +++ b/8.0/BlazorWebAppOidcServer/MinimalApiJwt/Program.cs @@ -7,9 +7,11 @@ // // Authority format {AUTHORITY} matches the issurer (`iss`) of the JWT returned by the identity provider. // - // Authority format {AUTHORITY} for ME-ID tenant type: https://sts.windows.net/{TENANT ID} + // Authority format {AUTHORITY} for ME-ID tenant type (V1 STS token): https://sts.windows.net/{TENANT ID} // Authority format {AUTHORITY} for ME External ID tenant type: https://{DIRECTORY NAME}.ciamlogin.com/{TENANT ID}/v2.0 // Authority format {AUTHORITY} for B2C tenant type: https://login.microsoftonline.com/{TENANT ID}/v2.0 + // The format of the authority URL depends on the tenant type and the version of the tokens issued by the identity provider. + // For guidance on adopting V2 tokens and the corresponding authority URL format, see the article. // jwtOptions.Authority = "{AUTHORITY}"; // diff --git a/9.0/BlazorWebAppEntraBff/MinimalApiJwt/Program.cs b/9.0/BlazorWebAppEntraBff/MinimalApiJwt/Program.cs index 02ef649dc..c303c141f 100644 --- a/9.0/BlazorWebAppEntraBff/MinimalApiJwt/Program.cs +++ b/9.0/BlazorWebAppEntraBff/MinimalApiJwt/Program.cs @@ -7,9 +7,11 @@ // // Authority format {AUTHORITY} matches the issurer (`iss`) of the JWT returned by the identity provider. // - // Authority format {AUTHORITY} for ME-ID tenant type: https://sts.windows.net/{TENANT ID} + // Authority format {AUTHORITY} for ME-ID tenant type (V1 STS token): https://sts.windows.net/{TENANT ID} // Authority format {AUTHORITY} for ME External ID tenant type: https://{DIRECTORY NAME}.ciamlogin.com/{TENANT ID}/v2.0 // Authority format {AUTHORITY} for B2C tenant type: https://login.microsoftonline.com/{TENANT ID}/v2.0 + // The format of the authority URL depends on the tenant type and the version of the tokens issued by the identity provider. + // For guidance on adopting V2 tokens and the corresponding authority URL format, see the article. // jwtOptions.Authority = "{AUTHORITY}"; // diff --git a/9.0/BlazorWebAppEntraBffYarpAspire/MinimalApiJwt/Program.cs b/9.0/BlazorWebAppEntraBffYarpAspire/MinimalApiJwt/Program.cs index 3a3103672..57b7731dd 100644 --- a/9.0/BlazorWebAppEntraBffYarpAspire/MinimalApiJwt/Program.cs +++ b/9.0/BlazorWebAppEntraBffYarpAspire/MinimalApiJwt/Program.cs @@ -10,9 +10,11 @@ // // Authority format {AUTHORITY} matches the issurer (`iss`) of the JWT returned by the identity provider. // - // Authority format {AUTHORITY} for ME-ID tenant type: https://sts.windows.net/{TENANT ID} + // Authority format {AUTHORITY} for ME-ID tenant type (V1 STS token): https://sts.windows.net/{TENANT ID} // Authority format {AUTHORITY} for ME External ID tenant type: https://{DIRECTORY NAME}.ciamlogin.com/{TENANT ID}/v2.0 // Authority format {AUTHORITY} for B2C tenant type: https://login.microsoftonline.com/{TENANT ID}/v2.0 + // The format of the authority URL depends on the tenant type and the version of the tokens issued by the identity provider. + // For guidance on adopting V2 tokens and the corresponding authority URL format, see the article. // jwtOptions.Authority = "{AUTHORITY}"; // diff --git a/9.0/BlazorWebAppOidcBffAuto/MinimalApiJwt/Program.cs b/9.0/BlazorWebAppOidcBffAuto/MinimalApiJwt/Program.cs index 810369267..dc5cc1afe 100644 --- a/9.0/BlazorWebAppOidcBffAuto/MinimalApiJwt/Program.cs +++ b/9.0/BlazorWebAppOidcBffAuto/MinimalApiJwt/Program.cs @@ -7,9 +7,11 @@ // // Authority format {AUTHORITY} matches the issurer (`iss`) of the JWT returned by the identity provider. // - // Authority format {AUTHORITY} for ME-ID tenant type: https://sts.windows.net/{TENANT ID} + // Authority format {AUTHORITY} for ME-ID tenant type (V1 STS token): https://sts.windows.net/{TENANT ID} // Authority format {AUTHORITY} for ME External ID tenant type: https://{DIRECTORY NAME}.ciamlogin.com/{TENANT ID}/v2.0 // Authority format {AUTHORITY} for B2C tenant type: https://login.microsoftonline.com/{TENANT ID}/v2.0 + // The format of the authority URL depends on the tenant type and the version of the tokens issued by the identity provider. + // For guidance on adopting V2 tokens and the corresponding authority URL format, see the article. // jwtOptions.Authority = "{AUTHORITY}"; // diff --git a/9.0/BlazorWebAppOidcBffAutoYarpAspire/MinimalApiJwt/Program.cs b/9.0/BlazorWebAppOidcBffAutoYarpAspire/MinimalApiJwt/Program.cs index 8497318c1..77ea2ab85 100644 --- a/9.0/BlazorWebAppOidcBffAutoYarpAspire/MinimalApiJwt/Program.cs +++ b/9.0/BlazorWebAppOidcBffAutoYarpAspire/MinimalApiJwt/Program.cs @@ -10,9 +10,11 @@ // // Authority format {AUTHORITY} matches the issurer (`iss`) of the JWT returned by the identity provider. // - // Authority format {AUTHORITY} for ME-ID tenant type: https://sts.windows.net/{TENANT ID} + // Authority format {AUTHORITY} for ME-ID tenant type (V1 STS token): https://sts.windows.net/{TENANT ID} // Authority format {AUTHORITY} for ME External ID tenant type: https://{DIRECTORY NAME}.ciamlogin.com/{TENANT ID}/v2.0 // Authority format {AUTHORITY} for B2C tenant type: https://login.microsoftonline.com/{TENANT ID}/v2.0 + // The format of the authority URL depends on the tenant type and the version of the tokens issued by the identity provider. + // For guidance on adopting V2 tokens and the corresponding authority URL format, see the article. // jwtOptions.Authority = "{AUTHORITY}"; // diff --git a/9.0/BlazorWebAppOidcBffServer/MinimalApiJwt/Program.cs b/9.0/BlazorWebAppOidcBffServer/MinimalApiJwt/Program.cs index e473e31b5..29d947cdd 100644 --- a/9.0/BlazorWebAppOidcBffServer/MinimalApiJwt/Program.cs +++ b/9.0/BlazorWebAppOidcBffServer/MinimalApiJwt/Program.cs @@ -7,9 +7,11 @@ // // Authority format {AUTHORITY} matches the issurer (`iss`) of the JWT returned by the identity provider. // - // Authority format {AUTHORITY} for ME-ID tenant type: https://sts.windows.net/{TENANT ID} + // Authority format {AUTHORITY} for ME-ID tenant type (V1 STS token): https://sts.windows.net/{TENANT ID} // Authority format {AUTHORITY} for ME External ID tenant type: https://{DIRECTORY NAME}.ciamlogin.com/{TENANT ID}/v2.0 // Authority format {AUTHORITY} for B2C tenant type: https://login.microsoftonline.com/{TENANT ID}/v2.0 + // The format of the authority URL depends on the tenant type and the version of the tokens issued by the identity provider. + // For guidance on adopting V2 tokens and the corresponding authority URL format, see the article. // jwtOptions.Authority = "{AUTHORITY}"; //