Skip to content

Commit

Permalink
Skip getting AzureAdOptions for not AzureADUi Cookies scheme #13311 (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
vbornand authored and Tratcher committed Aug 27, 2019
1 parent a2178e5 commit b242d54
Showing 1 changed file with 5 additions and 0 deletions.
Expand Up @@ -21,6 +21,11 @@ public AzureADCookieOptionsConfiguration(IOptions<AzureADSchemeOptions> schemeOp
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)
{
Expand Down

0 comments on commit b242d54

Please sign in to comment.