Skip getting AzureAdOptions for not AzureADUi Cookies scheme #13311 (#13327)

This commit is contained in:
vbornand 2019-08-27 18:39:41 +02:00 committed by Chris Ross
parent a2178e5097
commit b242d5426e
1 changed files with 5 additions and 0 deletions

View File

@ -21,6 +21,11 @@ namespace Microsoft.AspNetCore.Authentication.AzureAD.UI
public void Configure(string name, CookieAuthenticationOptions options)
{
var AzureADScheme = GetAzureADScheme(name);
if (AzureADScheme is null)
{
return;
}
var AzureADOptions = _AzureADOptions.Get(AzureADScheme);
if (name != AzureADOptions.CookieSchemeName)
{