diff --git a/src/Azure/AzureAD/Authentication.AzureAD.UI/src/CookieOptionsConfiguration.cs b/src/Azure/AzureAD/Authentication.AzureAD.UI/src/CookieOptionsConfiguration.cs index 9f1726ca88..cd565c4d9c 100644 --- a/src/Azure/AzureAD/Authentication.AzureAD.UI/src/CookieOptionsConfiguration.cs +++ b/src/Azure/AzureAD/Authentication.AzureAD.UI/src/CookieOptionsConfiguration.cs @@ -1,4 +1,4 @@ -// Copyright (c) .NET Foundation. All rights reserved. +// Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Authentication.Cookies; @@ -39,7 +39,7 @@ namespace Microsoft.AspNetCore.Authentication.AzureAD.UI { foreach (var mapping in _schemeOptions.Value.OpenIDMappings) { - if (mapping.Value.OpenIdConnectScheme == name) + if (mapping.Value.CookieScheme == name) { return mapping.Key; } diff --git a/src/Azure/AzureAD/Authentication.AzureADB2C.UI/src/CookieOptionsConfiguration.cs b/src/Azure/AzureAD/Authentication.AzureADB2C.UI/src/CookieOptionsConfiguration.cs index b4052f2b04..b684031836 100644 --- a/src/Azure/AzureAD/Authentication.AzureADB2C.UI/src/CookieOptionsConfiguration.cs +++ b/src/Azure/AzureAD/Authentication.AzureADB2C.UI/src/CookieOptionsConfiguration.cs @@ -1,4 +1,4 @@ -// Copyright (c) .NET Foundation. All rights reserved. +// Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Authentication.Cookies; @@ -39,7 +39,7 @@ namespace Microsoft.AspNetCore.Authentication.AzureADB2C.UI { foreach (var mapping in _schemeOptions.Value.OpenIDMappings) { - if (mapping.Value.OpenIdConnectScheme == name) + if (mapping.Value.CookieScheme == name) { return mapping.Key; }