Merge branch 'patch-1' of git://github.com/YuriPetskus/OwinOAuthProviders into YuriPetskus-patch-1
This commit is contained in:
@@ -96,6 +96,10 @@ namespace Owin.Security.Providers.VKontakte
|
||||
|
||||
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);
|
||||
|
||||
return new AuthenticationTicket(context.Identity, context.Properties);
|
||||
|
||||
Reference in New Issue
Block a user