[Azure][Fixes #6669] AccessDeniedPath is wrong

This commit is contained in:
Jiping 2019-01-18 18:14:31 -05:00 committed by Javier Calvarro Nelson
parent 78bc2a10b9
commit a3e0a45d20
2 changed files with 4 additions and 4 deletions

View File

@ -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; // 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; using Microsoft.AspNetCore.Authentication.Cookies;
@ -39,7 +39,7 @@ namespace Microsoft.AspNetCore.Authentication.AzureAD.UI
{ {
foreach (var mapping in _schemeOptions.Value.OpenIDMappings) foreach (var mapping in _schemeOptions.Value.OpenIDMappings)
{ {
if (mapping.Value.OpenIdConnectScheme == name) if (mapping.Value.CookieScheme == name)
{ {
return mapping.Key; return mapping.Key;
} }

View File

@ -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; // 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; using Microsoft.AspNetCore.Authentication.Cookies;
@ -39,7 +39,7 @@ namespace Microsoft.AspNetCore.Authentication.AzureADB2C.UI
{ {
foreach (var mapping in _schemeOptions.Value.OpenIDMappings) foreach (var mapping in _schemeOptions.Value.OpenIDMappings)
{ {
if (mapping.Value.OpenIdConnectScheme == name) if (mapping.Value.CookieScheme == name)
{ {
return mapping.Key; return mapping.Key;
} }