SignInManager fix for external auth
This commit is contained in:
parent
8bace4b197
commit
670614cdc5
|
|
@ -398,8 +398,8 @@ namespace Microsoft.AspNet.Identity
|
||||||
public virtual async Task<ExternalLoginInfo> GetExternalLoginInfoAsync(string expectedXsrf = null)
|
public virtual async Task<ExternalLoginInfo> GetExternalLoginInfoAsync(string expectedXsrf = null)
|
||||||
{
|
{
|
||||||
var auth = new AuthenticateContext(IdentityOptions.ExternalCookieAuthenticationScheme);
|
var auth = new AuthenticateContext(IdentityOptions.ExternalCookieAuthenticationScheme);
|
||||||
await Context.Authentication.AuthenticateAsync(IdentityOptions.ExternalCookieAuthenticationScheme);
|
await Context.Authentication.AuthenticateAsync(auth);
|
||||||
if (auth == null || auth.Principal == null || auth.Properties == null || !auth.Properties.ContainsKey(LoginProviderKey))
|
if (auth.Principal == null || auth.Properties == null || !auth.Properties.ContainsKey(LoginProviderKey))
|
||||||
{
|
{
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue