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

Development Seed Blog:
Simple Sign-On with OpenID
Mar 04, 2010 @ 18:18:43

On the Development Seed blog today there's a new post by Alex Barth about integrating OpenID support into your Drupal installation. You can check out an example of it in this github project.

After a survey of available single sign-on solutions [for a client], we decided to go with an OpenID based approach since we needed to support different domains, wanted to avoid sharing user tables and did not want to add complex system requirements for browser clients or the server. [...] The great advantage of this scenario is that we know which five sites need to play nicely together and all of them are Drupal sites under the client's control. This premise allows us to add an additional site as a designated OpenID provider that we call "Hub" and make all five sites point to the Hub as their default identity provider.

They use two modules to make everything work together - OpenID SSO and OpenID Provider SSO and a PubSubHubbub model for keeping the user information up to date.

tagged: simple signon user openid drupal module

Link:

Daniel Hofstetter's Blog:
Accepting the Google OpenID with PHP OpenID
Jan 02, 2010 @ 14:56:24

In a recent post to his blog Daniel Hofstetter talks about an issue you might been seeing with using the Google OpenID service and the PHP OpenID library.

It is possible that you get an “Invalid OpenID” error when you try to login with the Google OpenID (https://www.google.com/accounts/o8/id), or any other OpenID that uses “https”. In this case, the following steps might help to fix this issue.

He points out that you'll need curl and OpenSSL installed and set up to work with your PHP installation (ether compiled in or included as shared modules. Because of the change from the "http" to "https" format you'll need those two components to create that kind of connection.

tagged: openid google openssl curl

Link:

Richard Thomas' Blog:
Solar Framework Shorts - Creating your own OpenID Auth Adapter
Dec 21, 2009 @ 16:09:01

Richard Thomas has posted another Solar framework short today. This time it's about OpenID and how you cn easily create a custom adapter that integrates directly into the framework to support it.

Solar makes heavy use of Adapter based classes, Solar_Auth is one of these. This makes adding additional methods pretty easy and allows you to borrow from other Frameworks without having to Hack in a third party auth setup, You can use the basics provided by Solar.

He includes a code example showing how to extend the Solar_Auth_Adapter component to create an OpenID adapter you can use as a part of your authentication process. His Solar component encourages code reuse too by using the Zend Framework native OpenID implementation as its authetication functionality.

tagged: solar framework openid authentication adapter

Link:

Adam Jensen's Blog:
Flexible User Authentication with Zend_Auth
Apr 10, 2009 @ 12:56:35

Adam Jensen has written up a new article today on how you can use the Zend_Auth component of the Zend Framework to authenticate your users in a few different ways based on a strategy selected.

For this example, we’re going to allow our users to authenticate in one of multiple ways: e.g., against a database table, against an LDAP server, or by OpenID [1]. Zend_Auth already provides the necessary authentication adapters, so what we’ll be concerned with here is how to implement all three systems without ending up in an FSUC situation.

He defines the code for the basic controller and a simple view that allows the user to select how they want to log in - email/password, username/password or OpenID. The model does all of the heavy lifting by letting the controller set the authentication type (strategy) and pulling in the correct Zend_Form instance along with its validation rules. Code is also included for the model and each of these.

tagged: flexible user authentication zendauth zendframework email password username openid

Link:

Jamie Hammett's Blog:
Open ID edit one page on Wordpress
Mar 20, 2009 @ 15:52:47

Want the "quick and dirty" way to get OpenID support up and running on your WordPress blog? Check out this new post from Jamie Hemmett - short, sweet and to the point.

Some of the tools you'll need are the OpenID plugin, RoleScoper, Adminimise and some knowledge of working with the WordPress files directly to add in the OpenID support. You'll also need to set up your blog to accept new registrations.

Sample code is included for "OpenID-ing" the page with a new kind of login form.

tagged: openid wordpress login example edit rolescoper adminimise

Link:

Developer.com:
Authenticating Users with OpenID and the Zend Framework
Oct 30, 2008 @ 12:57:53

New on the Developer.com website is this tutorial from Jason Gilmore looking at OpenID authentication through the Zend Framework's Zend_Auth component.

I'll show you how to take advantage of a powerful open user identification service known as OpenID, and show you how to incorporate OpenID authentication and identification features into your Zend Framework-powered website. Even if you haven't started taking advantage of a web framework such as Zend's, this tutorial will serve two important purposes, demonstrating not only the allure of OpenID, but also how a framework such as the Zend Framework can greatly reduce development time.

He points to several places you can set up an OpenID account and mentions the Zend_Auth component that already includes all of the methods you'll need to validate a user based on their choice of provider. He creates a simple form and makes an indexAction in his controller that makes a Zend_OpenId_Consumer object to grab the user's information and verify the login.

tagged: authenticate openid zendframework user tutorial

Link:

AOL Developer Network:
A Primer for OpenID with PHP
Sep 12, 2008 @ 19:28:32

On the AOL Developer Network Jack Herrignton has posted an introduction to OpenID and how you can use it in your PHP application.

OpenID is another one of those "cool technologies you've never heard of" type of deals. OpenID is an open source initiative that provides a way for Web users to register their identity in one place and then use that identity anywhere on the Web that supports OpenID. [...] Before getting an OpenID, though, I should point out that it’s not required that you run an OpenID provider to OpenID-enable your application. In fact, no special software or service is required in your Web application. The only requirement is that your Web server programming language be able to make HTTP requests of the OpenID provider, which is something all of them can do.

Once you have your OpenID account set up, his simple script, making use of the ability that any version of PHP has to open URLs, can authenticate off of a remote OpenID service - that has the cURL extension compiled in.

tagged: openid curl authenticate tutorial developer

Link:

Evert Pot's Blog:
Integrating with Zend's OpenID
Aug 19, 2008 @ 15:28:52

In a new blog post today Evert Pot shares some of his thoughts on integrating the Zend implementation of the OpenID protocol, Zend_OpenId, into his application.

The Zend Framework has a pretty good OpenID library. I was looking for a library written for PHP5 (strict), and this seemed like a good choice...

He mentions some of both sides of the argument - (the good) the flexibility of the library to work with different backend storage methods and (the bad) the requirements it has for the Zend Framework sessions system for authentication.

tagged: zendframework openid integration flexible backend session requirement

Link:

Community News:
Identi.ca - a PHP-based Twitter clone
Jul 03, 2008 @ 14:34:20

According to the PHP::Impact blog, the PHP-based replacement for Twitter has finally arrived - identi.ca.

Identi.ca is a microblogging service. Users post short (140 character) notices which are broadcast to their friends and fans using the Web, RSS, or instant messages. It runs on the Free Software Laconica tool.

If you'd like to give it a shot you can register for an account of your own and start posting. It also supports OpenID authentication.

tagged: twitter clone identica microblogging laconia gnu openid

Link:

Zend Developer Zone:
Getting Started with OpenID and PHP
Jun 05, 2008 @ 15:27:20

Vikram Vaswani has a new tutorial posted to the Zend Developer Zone today about integrating PHP with an OpenID system via a few helpful packages.

OpenID, a free, open-source framework for "single sign-on" across different Web sites and applications. The even better news? There already exist a bunch of PHP widgets that allow developers to easily integrate OpenID into a PHP application, and this article is going to show you how to use them. So what are you waiting for? Flip the page, and let's get going!

For those not familiar with the authentication method, he defines OpenID and shows how it can help with the "too many passwords, too many accounts" problem many users face. He uses the PHP OpenID Library and the Authentication::OpenID_Consumer PEAR package (as well as several other PEAR packages to help with the connections and message formatting). He builds two simple forms to use the service - one to authenticate a user and another to create a new account.

tagged: openid tutorial connect authenticate myopenid pear package

Link:


Trending Topics: