login/register

Snip!t from collection of Alan Dix

see all channels for Alan Dix

Snip
summary

Adding OAuth authentication to your server is very easy....
You will need a couple of controllers:
1. oauth_register.php to let an user obtain a consume ...
2. request_token.php to return a request token.
... xchange an authorized request token for

ServerHowTo - oauth-php - Quick How To for OAuth enabling a server - Project Hosting on Google Code
http://code.google.com/p/oauth-php/wiki/ServerHowTo

Categories

/Channels/techie/web development

[ go to category ]

For Snip

loading snip actions ...

For Page

loading url actions ...

Adding OAuth authentication to your server is very easy. You will need to check the incoming requests for any OAuth authentication details. Some simple templates will be needed to handle the authorization of request tokens and for handling requests for access tokens.

You will need a couple of controllers:

  1. oauth_register.php to let an user obtain a consumer key and secret.
  2. request_token.php to return a request token.
  3. authorize.php to let the user authorize a request token.
  4. access_token.php to exchange an authorized request token for an access token.

HTML

<p>Adding OAuth authentication to your server is very easy. You will need to check the incoming requests for any OAuth authentication details. Some simple templates will be needed to handle the authorization of request tokens and for handling requests for access tokens. </p><p>You will need a couple of controllers: </p><ol><li><tt>oauth_register.php</tt> to let an user obtain a consumer key and secret. </li><li><tt>request_token.php</tt> to return a request token. </li><li><tt>authorize.php</tt> to let the user authorize a request token. </li><li><tt>access_token.php</tt> to exchange an authorized request token for an access token. </li></ol>