News Feed
Sections




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

Richard McIntyre's Blog:
Using OAuth in Lithium
December 30, 2011 @ 13:11:34

Richard McIntyre has a new post to his blog showing how he set up OAuth support in a Lithium-based application with the help of a handy plugin (li3_oath).

The OAuth protocol is a fantastic way to login to remote services and websites. Unfortunately the spec is different in OAuth 1.0 and the yet un-solidified 2.0, the implementation is also different across different services. At the moment this is a bit of a goose chase, but libraries like li3_oauth can help! [...] I like to be in control and calling the shots! I also want to have users have the option to login to other services under the same umbrella. Working directly with OAuth is what I wanted to do. Of course I was doing this in Lithium because it is clearly the best PHP Framework!

His process is broken up into four steps:

  • Grab the latest version of the li3_oauth plugin
  • Fork and refactor the plugin
  • Create the Tweet and Facebook controllers
  • Refactor a bit more to turn it into a service

The code changes are pretty minimal and are included in the post.

0 comments voice your opinion now!
lithium framework oauth tutorial refactor plugin


blog comments powered by Disqus

Similar Posts

The Bakery: Basic User Authentication in (CakePHP) 1.2.x

DevShed: Using Recursive Methods in Object-based PHP Applications (Part 2)

DevShed: Completing an Extensible Website Engine with PHP 5

IBM developerWorks: Java and PHP technology on AIX - Integrate the Java business application w/ DB2

Zend Developer Zone: Generating and Validating Web Forms With PEAR HTML_QuickForm


Community Events

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


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

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