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
  • twitter

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

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -