Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- facebookOptions.Events = new Microsoft.AspNetCore.Authentication.OAuth.OAuthEvents
- {
- OnCreatingTicket = context => {
- string surName = context.User.Value<string>("last_name");
- context.Identity.AddClaim(new System.Security.Claims.Claim(ClaimTypes.Surname, surName));
- return Task.FromResult(0);
- }
- };
Add Comment
Please, Sign In to add comment