Skip to content

Commit a3e0a45

Browse files
JipingWangjaviercn
authored andcommitted
[Azure][Fixes #6669] AccessDeniedPath is wrong
1 parent 78bc2a1 commit a3e0a45

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/Azure/AzureAD/Authentication.AzureAD.UI/src/CookieOptionsConfiguration.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) .NET Foundation. All rights reserved.
1+
// Copyright (c) .NET Foundation. All rights reserved.
22
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.using Microsoft.AspNetCore.Authorization;
33

44
using Microsoft.AspNetCore.Authentication.Cookies;
@@ -39,7 +39,7 @@ private string GetAzureADScheme(string name)
3939
{
4040
foreach (var mapping in _schemeOptions.Value.OpenIDMappings)
4141
{
42-
if (mapping.Value.OpenIdConnectScheme == name)
42+
if (mapping.Value.CookieScheme == name)
4343
{
4444
return mapping.Key;
4545
}

src/Azure/AzureAD/Authentication.AzureADB2C.UI/src/CookieOptionsConfiguration.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) .NET Foundation. All rights reserved.
1+
// Copyright (c) .NET Foundation. All rights reserved.
22
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.using Microsoft.AspNetCore.Authorization;
33

44
using Microsoft.AspNetCore.Authentication.Cookies;
@@ -39,7 +39,7 @@ private string GetAzureADB2CScheme(string name)
3939
{
4040
foreach (var mapping in _schemeOptions.Value.OpenIDMappings)
4141
{
42-
if (mapping.Value.OpenIdConnectScheme == name)
42+
if (mapping.Value.CookieScheme == name)
4343
{
4444
return mapping.Key;
4545
}

0 commit comments

Comments
 (0)