diff --git a/src/Microsoft.AspNetCore.Authentication.AzureAD.UI/CookieOptionsConfiguration.cs b/src/Microsoft.AspNetCore.Authentication.AzureAD.UI/CookieOptionsConfiguration.cs index 9f1726c..c56f19f 100644 --- a/src/Microsoft.AspNetCore.Authentication.AzureAD.UI/CookieOptionsConfiguration.cs +++ b/src/Microsoft.AspNetCore.Authentication.AzureAD.UI/CookieOptionsConfiguration.cs @@ -39,7 +39,7 @@ private string GetAzureADScheme(string name) { foreach (var mapping in _schemeOptions.Value.OpenIDMappings) { - if (mapping.Value.OpenIdConnectScheme == name) + if (mapping.Value.CookieScheme == name) { return mapping.Key; }