diff --git a/Directory.Packages.props b/Directory.Packages.props index 8c831008..f910a1a7 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -39,7 +39,7 @@ - + @@ -55,7 +55,7 @@ - + @@ -85,9 +85,9 @@ - - - + + + diff --git a/sandbox/OpenIddict.Sandbox.AspNet.Client/Web.config b/sandbox/OpenIddict.Sandbox.AspNet.Client/Web.config index 4d8a81c1..611c0da5 100644 --- a/sandbox/OpenIddict.Sandbox.AspNet.Client/Web.config +++ b/sandbox/OpenIddict.Sandbox.AspNet.Client/Web.config @@ -55,7 +55,7 @@ - + diff --git a/sandbox/OpenIddict.Sandbox.AspNet.Server/Web.config b/sandbox/OpenIddict.Sandbox.AspNet.Server/Web.config index 0d83dfde..96487957 100644 --- a/sandbox/OpenIddict.Sandbox.AspNet.Server/Web.config +++ b/sandbox/OpenIddict.Sandbox.AspNet.Server/Web.config @@ -61,25 +61,25 @@ - + - + - + - + diff --git a/src/OpenIddict.Client.Owin/OpenIddictClientOwinConfiguration.cs b/src/OpenIddict.Client.Owin/OpenIddictClientOwinConfiguration.cs index 701f721b..1c1ca226 100644 --- a/src/OpenIddict.Client.Owin/OpenIddictClientOwinConfiguration.cs +++ b/src/OpenIddict.Client.Owin/OpenIddictClientOwinConfiguration.cs @@ -54,8 +54,7 @@ public sealed class OpenIddictClientOwinConfiguration : IConfigureOptions() switch { // See https://github.com/aspnet/AspNetKatana/pull/486 for more information. - IAppBuilder builder when builder.Properties.TryGetValue("infrastructure.CookieManager", - out object? property) && property is ICookieManager manager => manager, + IAppBuilder builder => builder.GetDefaultCookieManager(), _ => new CookieManager() }; @@ -69,9 +68,9 @@ public sealed class OpenIddictClientOwinConfiguration : IConfigureOptions>() .CurrentValue.Registrations - .Where(registration => !string.IsNullOrEmpty(registration.ProviderName)) - .GroupBy(registration => registration.ProviderName) - .Select(group => (ProviderName: group.Key, Registrations: group.ToList()))) + .Where(static registration => !string.IsNullOrEmpty(registration.ProviderName)) + .GroupBy(static registration => registration.ProviderName) + .Select(static group => (ProviderName: group.Key, Registrations: group.ToList()))) { // If an explicit mapping was already added, don't overwrite it. if (options.ForwardedAuthenticationTypes.Exists(type =>