News Feed
Sections




News Archive
feed this:

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

Hasin Hayder's Blog:
Using OAuth PECL Extension to Talk to Twitter
May 04, 2009 @ 10:28:26

In a recent post Hasin Hayder has taken a look at using the OAuth PECL extension (this one I assume) to connect your application's login system with Twitter's authentication backend.

if you are interested in developing twitter applications, you must have read about twitter API and it's authentication protocol. your application can fetch user's private data but it has to authenticate itself as the user for that. so there are two ways to do it: asking user to provide his twitter username and password [...] or let twitter handle the authentication on behalf of you.

This second option is where OAuth comes in. Once you've registered your application on Twitter, you can create a token and send it over to their site for validation. The idea is that, since the user has already authenticated on the Twitter site, they can allow an external application to "share" that login information/process and let the remote application fetch information about the user from he Twitter API.

0 comments voice your opinion now!
twitter oauth extension pecl tutorial token authorize


Padraic Brady's Blog:
Zend Framework Blog Tutorial - Part 7 Authorisation with Zend_Acl & Styling
May 12, 2008 @ 11:15:49

Padraic Brady is up to part seven of his blog creation (with the Zend Framework) series, tracking his development paths and though processes along the way. This new part of the seres looks at using Zend_Acl for user management and changing up some of the style of the site.

We previously covered how to authenticate an author to the blog, but we still have nothing ensuring only authenticated authors can access the new Administration Module. This is the domain of Zend_Acl, an implementation of an Access Control List system which limits access to resources by the roles assigned to a user.

He starts by helping you understand access control lists including roles and privileges. He plans out the different roles that he wants the application to have first (always a good first step) and then implements them in a class extending the Zend_Acl component. He wraps this all in a front controller to make it easy to use.

He also tosses in a bit there at the end about CSS and styling to handle the forms for login and the administration piece of the blog he created earlier.

0 comments voice your opinion now!
zendframework blog application example authorize zendacl styling



Community Events





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


list laravel community library interview bugfix podcast introduction developer deployment voicesoftheelephpant symfony tips api zendserver conference language release series framework

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