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 Authenticate User
May 31, 2011 @ 10:43:27

Lorna Mitchell has posted the next part in her series looking at working with OAuth in PHP, showing how to authenticate the user making the connection to your OAuth-enabled web service.

This phase is probably the most familiar to us as developers, as it's simply a login form. The consumer will send the user to us at the URL we provided in the request token, and the user will have the request token key as a parameter. The access control on this page will look the same as on the rest of the website; if the user has a session already then the page is displayed, otherwise they must be logged in to see it.

She talks about verifying the authentication token passed in (from the value already generated and put into a database table), the grant/deny process and the information to update in her sample table when the user falls into the "granted" side of things. She also briefly mentions the optional callback that can be passed to a service like this and how to handle its value.

0 comments voice your opinion now!
oauth tutorial provider authenticate user


blog comments powered by Disqus

Similar Posts

Fabien Potencier's Blog: Create your own framework... on top of the Symfony2 Components (part 1)

PHPImpact Blog: Run PHP scripts with different users on the same server

SitePoint PHP Blog: 3 Ways to Develop Cross Platform Desktop Apps with PHP

PacktPub.com: Develop PHP Web Applications with NetBeans, VirtualBox and Turnkey LAMP Appliance

Giorgio Sironi's Blog: HTTP verbs in PHP


Community Events

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


part2 opinion example release introduction api performance configure podcast language symfony2 conference interview install laravel series application community framework php7

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