Merge branch 'patch-1' of git://github.com/YuriPetskus/OwinOAuthProviders into YuriPetskus-patch-1
This commit is contained in:
@@ -95,6 +95,10 @@ namespace Owin.Security.Providers.VKontakte
|
|||||||
var user = await GetUser(response, accessToken);
|
var user = await GetUser(response, accessToken);
|
||||||
|
|
||||||
var context = CreateAuthenticatedContext(user, accessToken, properties);
|
var context = CreateAuthenticatedContext(user, accessToken, properties);
|
||||||
|
|
||||||
|
// Email support. VK send it with access_token
|
||||||
|
context.Identity.AddClaim(new Claim(ClaimTypes.Email, response["email"].ToString(), XmlSchemaString,
|
||||||
|
Options.AuthenticationType));
|
||||||
|
|
||||||
await Options.Provider.Authenticated(context);
|
await Options.Provider.Authenticated(context);
|
||||||
|
|
||||||
@@ -226,4 +230,4 @@ namespace Owin.Security.Providers.VKontakte
|
|||||||
return context.IsRequestCompleted;
|
return context.IsRequestCompleted;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user