diff --git a/src/Microsoft.Identity.Web.TokenAcquisition/MergedOptions.cs b/src/Microsoft.Identity.Web.TokenAcquisition/MergedOptions.cs index 67563e824..c5ed2efae 100644 --- a/src/Microsoft.Identity.Web.TokenAcquisition/MergedOptions.cs +++ b/src/Microsoft.Identity.Web.TokenAcquisition/MergedOptions.cs @@ -222,6 +222,8 @@ internal static void UpdateMergedOptionsFromMicrosoftIdentityOptions(MicrosoftId mergedOptions.AdditionalAuthorizationParameters.Add(parameter.Key, parameter.Value); } } + + mergedOptions.PushedAuthorizationBehavior = microsoftIdentityOptions.PushedAuthorizationBehavior; #endif mergedOptions.TokenValidationParameters = microsoftIdentityOptions.TokenValidationParameters.Clone(); mergedOptions.UsePkce |= microsoftIdentityOptions.UsePkce; diff --git a/src/Microsoft.Identity.Web/WebAppExtensions/MicrosoftIdentityWebAppAuthenticationBuilderExtensions.cs b/src/Microsoft.Identity.Web/WebAppExtensions/MicrosoftIdentityWebAppAuthenticationBuilderExtensions.cs index de66b1397..1e731d0c0 100644 --- a/src/Microsoft.Identity.Web/WebAppExtensions/MicrosoftIdentityWebAppAuthenticationBuilderExtensions.cs +++ b/src/Microsoft.Identity.Web/WebAppExtensions/MicrosoftIdentityWebAppAuthenticationBuilderExtensions.cs @@ -544,6 +544,8 @@ internal static void PopulateOpenIdOptionsFromMergedOptions( options.AdditionalAuthorizationParameters.Add(parameter.Key, parameter.Value); } } + + options.PushedAuthorizationBehavior = mergedOptions.PushedAuthorizationBehavior; #endif } } diff --git a/tests/Microsoft.Identity.Web.Test/WebAppExtensionsTests.cs b/tests/Microsoft.Identity.Web.Test/WebAppExtensionsTests.cs index f0347ec0a..5d4076f82 100644 --- a/tests/Microsoft.Identity.Web.Test/WebAppExtensionsTests.cs +++ b/tests/Microsoft.Identity.Web.Test/WebAppExtensionsTests.cs @@ -913,7 +913,7 @@ public void PreventChangesInOpenIdConnectOptionsToBeOverlooked() // and diff the files to find what are the new properties. int numberOfProperties = typeof(OpenIdConnectOptions).GetProperties(System.Reflection.BindingFlags.Public | System.Reflection.BindingFlags.Instance).Length; #if NET9_0_OR_GREATER - int expectedNumberOfProperties = 61; + int expectedNumberOfProperties = 62; //string filePath = @"C:\temp\net9.txt"; #elif NET8_0 int expectedNumberOfProperties = 60;