1. Developers»
  2. Installing Clickpass»
  3. Install OpenID

Installing OpenID

The first thing you will need to do to support Clickpass is to install an OpenID library and adapt your database to store user's OpenIDs

Adapting your database

Allowing a user to log in using OpenID means that you need to store an OpenID for that user which means that you're going to have to make space in your database for OpenIDs.

Add a new table to store OpenIDs

In theory you could store just one OpenID per user and add an extra column to your user table to store it. However, it's much better practice to assume that a user may want to use multiple OpenIDs to access their account with you and therefore to give those OpenIDs a table all to themselves.

Why a whole new table?

Allowing a user to store multiple OpenIDs gives them a secondary or backup way to access your site in the case that something is wrong with their first OpenID provider. They may use Clickpass most of the time but switch to Yahoo as a failover.

OpenID libraries

Listed below are OpenID libraries for most of the major languages. Install the library, get the basic example code working and then you can move on to actually logging users in and processing new signups.

PHP
PHP

Framework plugins:

Java
Java
Ruby
Ruby

C#
C#
Python
Python

Framework plugins:

C++
C++
Perl
Perl
ColdFusion
ColdFusion

You can also try looking at the OpenID.net wiki.

User contributed notes

Have something to add to the docs or a question you want to ask? Get stuck in.

(We may occasionally prune notes to keep them as useful as possible to our readers)