Adding OpenID to your website

Saturday, 04 April 2009

A note on installing PHPMyId as the openid provider for your website.

With the advent of openid providers like Clickpass, having your own OpenID has become very easy. Services like clickpass use the APIs provided by popular service providers like Yahoo, Google to enable you to use those accounts as openids.

However, nothing beats having your website or blog act as your OpenID. After all, is shorter than

To make your website a OpenID provider, you need two files and 5 minutes.

  • Download phpMyID
  • Edit MyID.config.php
  • Create a md5 hashed password : $ echo -n 'username:realm:password' | openssl md5
  • Upload the files to your website root directory.
  • Add these two lines to head section of your frontpage (or the header template of your blog software).

<link rel="openid.server" href="">
<link rel="openid.delegate"  href="">

Thats it.

To test your setup, go to any openID enabled commenting system (eg: LiveJournal blogs) and enter your website's URL. The site you are on will make a request to your website, asking it to verify you. Your site will ask you for username and password. If the user name and password is correct, your site will in turn send a message to the requesting site saying that you are the genuine stuff.

Once you have logged into into your OpenID provider, as long you don't clear the browser cache, you should be able to just enter your website into any OpenID box and be automatically logged in. This is the major advantage over having to maintain a login for every site.

blog comments powered by Disqus