Is it possible to expose an API for my own WebSite ... but use oAuth for the api authentication?

Posted by Pure.Krome on Stack Overflow See other posts from Stack Overflow or by Pure.Krome
Published on 2010-05-13T01:10:53Z Indexed on 2010/05/13 1:14 UTC
Read the original article Hit count: 206

Filed under:
|
|
|

Hi Folks,

currently I expose an api for my website. Works great .. and i use Basic Authentication to authenticate users to get access to the data.

eg.

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

sample api RESTful url

http://user1:[email protected]/games?type=battlefield2

(yes yes i know browsers stop people from putting in user1:pass1 (Basic Auth) into the url directly .. cause of security . but it's to highlight that we're using Basic Auth)).

So .. how can i do this with oAuth?

© Stack Overflow or respective owner

Related posts about oauth

Related posts about basic-authentication