Skip to content

Commit 9253071

Browse files
vbornandTratcher
authored andcommitted
Skip getting AzureAdOptions for not AzureADUi Cookies scheme #13311 (#13327)
1 parent 8d817f8 commit 9253071

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@ public AzureADCookieOptionsConfiguration(IOptions<AzureADSchemeOptions> schemeOp
2121
public void Configure(string name, CookieAuthenticationOptions options)
2222
{
2323
var AzureADScheme = GetAzureADScheme(name);
24+
if (AzureADScheme is null)
25+
{
26+
return;
27+
}
28+
2429
var AzureADOptions = _AzureADOptions.Get(AzureADScheme);
2530
if (name != AzureADOptions.CookieSchemeName)
2631
{

0 commit comments

Comments
 (0)