 | News Feed |
 | Jobs Feed |
Sections
|
| feed this: |  |
Richard McIntyre's Blog: Using OAuth in Lithium
by Chris Cornutt 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.
voice your opinion now!
lithium framework oauth tutorial refactor plugin
PHPMaster.com: Understanding OAuth - Tweeting from Scratch, Part 2
by Chris Cornutt October 25, 2011 @ 10:09:48
On PHPMaster.com today they're posted the second part of their OAuth series showing you how to use the authentication mechanism to connect to Twitter's API. (Part one is here.
Welcome back to Understanding OAuth - Tweeting from Scratch. This is Part 2 of the two-part series and picks up right where we left off in Part 1 with your returned Access Credentials. Since obtaining the credentials is the grueling part of the process, there's not much more left to do except posting a tweet on the user's behalf. Hopefully you'll find the final steps to be a lot easier to follow and more fun to implement.
They show you how to store the credentials from Part 1 into your session for safe keeping and include a simple form you will use to send a tweet to Twitter. They choose to manually build the HTTP POST request, including the credential headers along with the payload (oauth_consumer_key, oauth_signature, oauth_token, etc).
voice your opinion now!
oauth tutorial tweet series connection authentication api
PHPMaster.com: Understanding OAuth - Tweeting from Scratch, Part 1
by Chris Cornutt October 18, 2011 @ 10:27:41
PHPMaster.com has posted the first part of a new series they're presenting on working with OAuth in PHP, specifically using it to connect to the Twitter API. This first part of the series introduces you to the concepts of OAuth and some early code to work with user credentials.
A common complaint about OAuth is that it is very difficult to understand, but perhaps some of that confusion is because of an expectation that the abstraction provided by a third-party library will erase the need to understand the steps of an OAuth transaction - it does not. This two-part article demonstrates how OAuth v1 works by explaining the process of connecting a PHP application to the Twitter API using only a few built-in functions to post a message to a user's Twitter stream.
The process is broken up into two steps - first you'll need to set up the request credentials so your application can connect to the Twitter service (as created here) then use that connection to fetch the rest of the necessary credentials (three total: Consumer, Request and Access Credentials). Cut and pasteable code is provided.
voice your opinion now!
tutorial oauth twitter api series
Lorna Mitchell' Blog: PHP OAuth Provider Access Tokens
by Chris Cornutt August 30, 2011 @ 08:28:04
Lorna Mitchell has posted the latest in her look at OAuth in PHP to her blog today, an introduction to access tokens - generating and handling them in your application.
I've been working with OAuth, as a provider and consumer, and there isn't a lot of documentation around it for PHP at the moment so I thought I'd share my experience in this series of articles. [...] This entry follows on from the ones about the initial requirements, how to how to handle request tokens, and authenticating users.
In this latest post, she talks about the three different types of tokens - consumer, request and verififier - and how to use them to locate a user in your app's users. Her code validates the request token and verifier against the database and, if successful, inserts the rest of the token information for the user.
voice your opinion now!
oauth provider tutorial access token consumer secret verifier
|
Community Events
Don't see your event here? Let us know!
|