News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Lorna Mitchell's Blog:
PHP OAuth Provider Request Tokens
May 20, 2011 @ 08:39:17

In the next of her series looking at OAuth in PHP, Lorna Mitchell has posted a look at request tokens and how to hand them out via your application.

The consumer requests a request token (see my earlier post about consuming OAuth), and as a provider, we need to handle that request. In my example, I chose to pass the variables as GET parameters, but you could adapt this to handle POST variables or information contained in HTTP headers.

She includes the code (using the functionality of the pecl_oauth extension) to provide a token and the three functions you'll need to define to get things working - the consumerHandler, the tokenHandler and timestampNonceHandler. She also includes a sample database table structure for storing the OAuth information for a user.

0 comments voice your opinion now!
tutorial oauth provider request token pecloauth extension


blog comments powered by Disqus

Similar Posts

Kevin Schroeder's Blog: Connecting to the Zend Developer Cloud using NetBeans for PHP

PHPMaster.com: Bulletproofing Database Interactions with PHPUnit's Database Extension

Till Klampaeckel's Blog: Cooking PHPUnit (and a chef-solo example on top)

Edd Mann: Storing PHP Sessions/File Caches in Memory using TMPFS

Lorna Mitchell's Blog: Missing pcre.h when installing pecl_oauth


Community Events





Don't see your event here?
Let us know!


language introduction developer api laravel library series application threedevsandamaybe configure release podcast code homestead wordpress interview install unittest list community

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework