Browse Source

fix inconsistency in signing mangager how to doc

pull/3674/head
Galip Tolga Erdem 6 years ago
parent
commit
f8053f5238
  1. 4
      docs/en/How-To/Customize-SignIn-Manager.md

4
docs/en/How-To/Customize-SignIn-Manager.md

@ -42,14 +42,14 @@ public override async Task<Microsoft.AspNetCore.Identity.ExternalLoginInfo> GetE
{
var auth = await Context.AuthenticateAsync(Microsoft.AspNetCore.Identity.IdentityConstants.ExternalScheme);
var items = auth?.Properties?.Items;
if (auth?.Principal == null || items == null || !items.ContainsKey("LoginProviderKey"))
if (auth?.Principal == null || items == null || !items.ContainsKey(LoginProviderKey))
{
return null;
}
if (expectedXsrf != null)
{
if (!items.ContainsKey("XsrfKey"))
if (!items.ContainsKey(XsrfKey))
{
return null;
}

Loading…
Cancel
Save