From 0ca23c7cc56a92f1f6222f2a7c2a665ce5d66313 Mon Sep 17 00:00:00 2001 From: guardrex <1622880+guardrex@users.noreply.github.com> Date: Mon, 20 Apr 2026 08:29:51 -0400 Subject: [PATCH] Add trailing slash to authority URLs --- 10.0/BlazorWebAppEntraBff/MinimalApiJwt/Program.cs | 2 +- .../MinimalApiJwt/Program.cs | 2 +- 10.0/BlazorWebAppOidcBffAuto/MinimalApiJwt/Program.cs | 2 +- .../MinimalApiJwt/Program.cs | 7 +++++-- 10.0/BlazorWebAppOidcBffServer/MinimalApiJwt/Program.cs | 2 +- 8.0/BlazorWebAppOidc/MinimalApiJwt/Program.cs | 2 +- 8.0/BlazorWebAppOidcBff/MinimalApiJwt/Program.cs | 2 +- 8.0/BlazorWebAppOidcServer/MinimalApiJwt/Program.cs | 2 +- 9.0/BlazorWebAppEntraBff/MinimalApiJwt/Program.cs | 2 +- .../MinimalApiJwt/Program.cs | 2 +- 9.0/BlazorWebAppOidcBffAuto/MinimalApiJwt/Program.cs | 2 +- .../MinimalApiJwt/Program.cs | 2 +- 9.0/BlazorWebAppOidcBffServer/MinimalApiJwt/Program.cs | 2 +- 13 files changed, 17 insertions(+), 14 deletions(-) diff --git a/10.0/BlazorWebAppEntraBff/MinimalApiJwt/Program.cs b/10.0/BlazorWebAppEntraBff/MinimalApiJwt/Program.cs index e95253ed5..28f422b36 100644 --- a/10.0/BlazorWebAppEntraBff/MinimalApiJwt/Program.cs +++ b/10.0/BlazorWebAppEntraBff/MinimalApiJwt/Program.cs @@ -10,7 +10,7 @@ // // Authority format {AUTHORITY} matches the issurer (`iss`) of the JWT returned by the identity provider. // - // Authority format {AUTHORITY} for ME-ID tenant type (V1 STS token): 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. diff --git a/10.0/BlazorWebAppEntraBffYarpAspire/MinimalApiJwt/Program.cs b/10.0/BlazorWebAppEntraBffYarpAspire/MinimalApiJwt/Program.cs index a6569c6ab..587ce16fd 100644 --- a/10.0/BlazorWebAppEntraBffYarpAspire/MinimalApiJwt/Program.cs +++ b/10.0/BlazorWebAppEntraBffYarpAspire/MinimalApiJwt/Program.cs @@ -10,7 +10,7 @@ // // Authority format {AUTHORITY} matches the issurer (`iss`) of the JWT returned by the identity provider. // - // Authority format {AUTHORITY} for ME-ID tenant type (V1 STS token): 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. diff --git a/10.0/BlazorWebAppOidcBffAuto/MinimalApiJwt/Program.cs b/10.0/BlazorWebAppOidcBffAuto/MinimalApiJwt/Program.cs index 40e7fca79..75da700e5 100644 --- a/10.0/BlazorWebAppOidcBffAuto/MinimalApiJwt/Program.cs +++ b/10.0/BlazorWebAppOidcBffAuto/MinimalApiJwt/Program.cs @@ -7,7 +7,7 @@ // // Authority format {AUTHORITY} matches the issurer (`iss`) of the JWT returned by the identity provider. // - // Authority format {AUTHORITY} for ME-ID tenant type (V1 STS token): 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. diff --git a/10.0/BlazorWebAppOidcBffAutoYarpAspire/MinimalApiJwt/Program.cs b/10.0/BlazorWebAppOidcBffAutoYarpAspire/MinimalApiJwt/Program.cs index a3b73c333..c1c0532eb 100644 --- a/10.0/BlazorWebAppOidcBffAutoYarpAspire/MinimalApiJwt/Program.cs +++ b/10.0/BlazorWebAppOidcBffAutoYarpAspire/MinimalApiJwt/Program.cs @@ -10,8 +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 B2C tenant type: https://login.microsoftonline.com/{TENANT ID}/v2.0/ + // 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 29d947cdd..3e1792c75 100644 --- a/10.0/BlazorWebAppOidcBffServer/MinimalApiJwt/Program.cs +++ b/10.0/BlazorWebAppOidcBffServer/MinimalApiJwt/Program.cs @@ -7,7 +7,7 @@ // // Authority format {AUTHORITY} matches the issurer (`iss`) of the JWT returned by the identity provider. // - // Authority format {AUTHORITY} for ME-ID tenant type (V1 STS token): 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. diff --git a/8.0/BlazorWebAppOidc/MinimalApiJwt/Program.cs b/8.0/BlazorWebAppOidc/MinimalApiJwt/Program.cs index a0c3a288a..1cc45cb67 100644 --- a/8.0/BlazorWebAppOidc/MinimalApiJwt/Program.cs +++ b/8.0/BlazorWebAppOidc/MinimalApiJwt/Program.cs @@ -7,7 +7,7 @@ // // Authority format {AUTHORITY} matches the issurer (`iss`) of the JWT returned by the identity provider. // - // Authority format {AUTHORITY} for ME-ID tenant type (V1 STS token): 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. diff --git a/8.0/BlazorWebAppOidcBff/MinimalApiJwt/Program.cs b/8.0/BlazorWebAppOidcBff/MinimalApiJwt/Program.cs index 9304f78dd..56900dcbd 100644 --- a/8.0/BlazorWebAppOidcBff/MinimalApiJwt/Program.cs +++ b/8.0/BlazorWebAppOidcBff/MinimalApiJwt/Program.cs @@ -10,7 +10,7 @@ // // Authority format {AUTHORITY} matches the issurer (`iss`) of the JWT returned by the identity provider. // - // Authority format {AUTHORITY} for ME-ID tenant type (V1 STS token): 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. diff --git a/8.0/BlazorWebAppOidcServer/MinimalApiJwt/Program.cs b/8.0/BlazorWebAppOidcServer/MinimalApiJwt/Program.cs index 29d947cdd..3e1792c75 100644 --- a/8.0/BlazorWebAppOidcServer/MinimalApiJwt/Program.cs +++ b/8.0/BlazorWebAppOidcServer/MinimalApiJwt/Program.cs @@ -7,7 +7,7 @@ // // Authority format {AUTHORITY} matches the issurer (`iss`) of the JWT returned by the identity provider. // - // Authority format {AUTHORITY} for ME-ID tenant type (V1 STS token): 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. diff --git a/9.0/BlazorWebAppEntraBff/MinimalApiJwt/Program.cs b/9.0/BlazorWebAppEntraBff/MinimalApiJwt/Program.cs index c303c141f..6babbcf42 100644 --- a/9.0/BlazorWebAppEntraBff/MinimalApiJwt/Program.cs +++ b/9.0/BlazorWebAppEntraBff/MinimalApiJwt/Program.cs @@ -7,7 +7,7 @@ // // Authority format {AUTHORITY} matches the issurer (`iss`) of the JWT returned by the identity provider. // - // Authority format {AUTHORITY} for ME-ID tenant type (V1 STS token): 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. diff --git a/9.0/BlazorWebAppEntraBffYarpAspire/MinimalApiJwt/Program.cs b/9.0/BlazorWebAppEntraBffYarpAspire/MinimalApiJwt/Program.cs index 57b7731dd..f6a490fbf 100644 --- a/9.0/BlazorWebAppEntraBffYarpAspire/MinimalApiJwt/Program.cs +++ b/9.0/BlazorWebAppEntraBffYarpAspire/MinimalApiJwt/Program.cs @@ -10,7 +10,7 @@ // // Authority format {AUTHORITY} matches the issurer (`iss`) of the JWT returned by the identity provider. // - // Authority format {AUTHORITY} for ME-ID tenant type (V1 STS token): 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. diff --git a/9.0/BlazorWebAppOidcBffAuto/MinimalApiJwt/Program.cs b/9.0/BlazorWebAppOidcBffAuto/MinimalApiJwt/Program.cs index dc5cc1afe..a1dc47a2f 100644 --- a/9.0/BlazorWebAppOidcBffAuto/MinimalApiJwt/Program.cs +++ b/9.0/BlazorWebAppOidcBffAuto/MinimalApiJwt/Program.cs @@ -7,7 +7,7 @@ // // Authority format {AUTHORITY} matches the issurer (`iss`) of the JWT returned by the identity provider. // - // Authority format {AUTHORITY} for ME-ID tenant type (V1 STS token): 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. diff --git a/9.0/BlazorWebAppOidcBffAutoYarpAspire/MinimalApiJwt/Program.cs b/9.0/BlazorWebAppOidcBffAutoYarpAspire/MinimalApiJwt/Program.cs index 77ea2ab85..bbc3b1d4c 100644 --- a/9.0/BlazorWebAppOidcBffAutoYarpAspire/MinimalApiJwt/Program.cs +++ b/9.0/BlazorWebAppOidcBffAutoYarpAspire/MinimalApiJwt/Program.cs @@ -10,7 +10,7 @@ // // Authority format {AUTHORITY} matches the issurer (`iss`) of the JWT returned by the identity provider. // - // Authority format {AUTHORITY} for ME-ID tenant type (V1 STS token): 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. diff --git a/9.0/BlazorWebAppOidcBffServer/MinimalApiJwt/Program.cs b/9.0/BlazorWebAppOidcBffServer/MinimalApiJwt/Program.cs index 29d947cdd..3e1792c75 100644 --- a/9.0/BlazorWebAppOidcBffServer/MinimalApiJwt/Program.cs +++ b/9.0/BlazorWebAppOidcBffServer/MinimalApiJwt/Program.cs @@ -7,7 +7,7 @@ // // Authority format {AUTHORITY} matches the issurer (`iss`) of the JWT returned by the identity provider. // - // Authority format {AUTHORITY} for ME-ID tenant type (V1 STS token): 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.