Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Best way to handle authentication on .NET WCF Web API

I'm mildly familiar with DotNetOpenAuth and OAuth in general, but in terms of Web API development, what is the best way to lock down a web service in terms of the following criteria:

  • Ease of implementation
  • Interoperability/compatibility with end-user facing platforms (iOS, Android, Win Phone, Flex...)
  • Whether or not it is clearly standards-based (like OAuth for example)

Thanks!

like image 829
tacos_tacos_tacos Avatar asked Oct 12 '11 15:10

tacos_tacos_tacos


1 Answers

please take a look here: OAuth 2.0 in Web API

Inside the WebApiContrib project there are also Basic Authentication samples which is straight forward but it should not be used without SSL.

like image 86
Alexander Zeitler Avatar answered Sep 20 '22 16:09

Alexander Zeitler