Is it possible to open an API for my own website ... but use oAuth for api authentication?

I am currently exposing the Api for my website. Works great. I am using Basic Authentication to authenticate users to access data.

eg.

http://www.MyWebSite.com  <-- main site.
http://api.MyWebSite.com  <-- my api website.

      

sample api RESTful url

http://user1:pass1@api.MyWebSite.com/games?type=battlefield2

      

(yes, yes, I know browsers stop people from entering user1: pass1 (Basic Auth) directly in the url .. security reason, but that means we are using Basic Auth)).

So how can I do this with oAuth?

+2


a source to share


1 answer


You might consider looking at these resources to access OAuth in an ASP.NET application or using WCF services:



0


a source







All Articles