News Feed
Jobs Feed
Sections




News Archive
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

MaltBlue.com: Zend Framework 2 - Hydrators, Models and the TableGateway Pattern

Abhinav Singh's Blog: MEMQ : Fast queue implementation using Memcached and PHP only

Elizabeth Smith's Blog: Treeviews and Cell Renderer Properties - Practical PHP-GTK

Carson McDonald's Blog: Google OAuth for Installed Apps PHP Example

Icant.co.uk: How to create thumbnails with PHP and gd


Community Events











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


opinion example podcast code series language introduction functional community release unittest development testing framework composer tool zendframework2 conference interview object

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