From a3e0a45d208fe3c3891c34369a0675bbbbcf1fa4 Mon Sep 17 00:00:00 2001 From: Jiping Date: Fri, 18 Jan 2019 18:14:31 -0500 Subject: [PATCH] [Azure][Fixes #6669] AccessDeniedPath is wrong --- .../src/CookieOptionsConfiguration.cs | 4 ++-- .../src/CookieOptionsConfiguration.cs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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; }