Tuesday, July 8, 2008

How to Delegate Your (Open)Identity Authentication to Wordpress

Everyone using Wordpress has an OpenID, e.g. mine is http://taroza.wordpress.com/. Yahoo and Google users also have an OpendID. Many other sites give it to you for free as well.

However, I don't like these imposed ids of mine. Fortunately I own a domain name evaldas-taroza.lt which is quite a friendly way to identify myself on the Web.

Here is how I set up my identity (according to the article on delegation):

  1. Since I link http://evaldas-taroza.lt to this blog, I configured a subdomain id.evaldas-taroza.lt to stand for my OpenID

  2. Then I configured my new subdomain to point to a simple Web page (http://id.evaldas-taroza.lt):
    <link rel="openid.server" href="http://taroza.wordpress.com/?openidserver=1" />
    <link rel="openid.delegate" href="http://taroza.wordpress.com/" />

    <link rel="openid2.provider" href="http://taroza.wordpress.com/?openidserver=1" />
    <link rel="openid2.local_id" href="http://taroza.wordpress.com/" />

The tricky part was to figure out what is the OpenID server at Wordpress (that's in bold).

Now I can login to every OpenID consumer with id.evaldas-taroza.lt which is the id I own. When I get bored using Worpress as an OpenID provider I can switch to Google, Yahoo, etc. and still keep it as id.evaldas-taroza.lt!

UPDATE: Looks that Wordpress openid support with delegation does not always work. So I switched to myopenid.com (I like that green color that they have). For an example how to configure delegation specifically for myopenid.com you can look, for instance, here.

1 comment: