MVC 4 OAuth: How to Get an Email Address

I am developing an MVC 4 application and using the OAuth providers provided by MS, but I would like to get an email address for each user. For Google (default) and Facebook (using FacebookClient) I already get the users address, but what to do with the following:

  • Twitter (I read that this is not possible - is it still true?)
  • Microsoft - solved (see comments)
  • Yahoo - works (see comment)
  • LinkedIn - is solved through its own provider, for example, for MS

And what about when it's not possible through OAuth, like using Twitter?
I read in various threads that it is not good / safe, just ask the user. Is it "safe enough" if I also need an email check to actually use the address (but not the account at all), how will I (when) change the address?

+5
source share
1 answer

OAuth's goal is not to provide email addresses, but to provide authentication standardization. Just because many implementations also give you the option of an email address does not mean that they should all be consistent. Twitter is an example.

""? , , , ? - , , , ?

+1

All Articles