Hi,
I’m implementing external login in Asp.Net Web API application using Asp.Net core 2.0 with C#. While login using twitter option, the application is redirecting to twitter login page and after successful login, it is calling application’s call Back method. In that method, we’re trying to get logged in user’s email/username but unfortunately, it doesn’t return. Other provider like Google, LinkedIn are returning. The piece of code which I’m using to get an email address is given below:
var info = await _signInManager.GetExternalLoginInfoAsync();
var email = info.Principal.FindFirstValue(ClaimTypes.Email);