Guest User

Untitled

a guest
Nov 20th, 2017
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. facebookOptions.Events = new Microsoft.AspNetCore.Authentication.OAuth.OAuthEvents
  2. {
  3. OnCreatingTicket = context => {
  4. string surName = context.User.Value<string>("last_name");
  5. context.Identity.AddClaim(new System.Security.Claims.Claim(ClaimTypes.Surname, surName));
  6.  
  7. return Task.FromResult(0);
  8. }
  9. };
Add Comment
Please, Sign In to add comment