c# - How to get Email address of external login in ASP.NET MVC 5 -
we using asp.net identity in mvc 5 allow user log in social media accounts.
var logininfo = await authenticationmanager.getexternallogininfoasync();
we use above api retrieve information of accounts, of accounts except facebook have empty value logininfo.email
, how can email address 2 social accounts:
- microsoft account
i believe none of providers propagate user email claims. have query apis directly obtain email addresses.
to email addresses microsoft account, poke the /me endpoint
twitter not allow retrieve user email address. advice here (as others have ended too) ask user email address within application.
Comments
Post a Comment