News Feed
Sections




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

PHPMaster.com:
Creating a PHP OAuth Server
January 01, 2013 @ 11:56:46

On PHPMaster.com today there's a new tutorial posted about creating your own OAuth server in PHP using the oauth-php package to do the "heavy lifting".

If you've ever integrated with another API that requires security (such as Twitter), you've probably consumed an OAuth service. In this article, I'll explore what it takes to create your own three-legged OAuth server allowing you, for example, to create your own secure API which you can release publicly.

They include a visual representation of the OAuth authentication flow (it's not the simplest thing) and the database structure/sample code you'll need to get the server up and listening. Also included is a registration form and how to generate a request token and give back an access token. There's also some sample code showing how to validate the request and it's access token to check for a correct (and allowed) request.

0 comments voice your opinion now!
tutorial oauth server oauthphp flow authentication access validate


blog comments powered by Disqus

Similar Posts

Kapustabrothers.com: Indexing PDF Documents with Zend_Search_Lucene

Zumba Engineering Blog: Mocking Singleton PHP classes with PHPUnit

SitePoint PHP Blog: Selling Downloads with Stripe and Laravel

Richard Thomas' Blog: Solar Framework Shorts - Creating your own OpenID Auth Adapter

The Code of a Ninja: Salt, Hash and Store Passwords Securely with Phpass


Community Events

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


framework voicesoftheelephpant series library interview api wordpress feature laravel opinion threedevsandamaybe laravel5 podcast extension language introduction community unittest release development

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