How to Delegate Your (Open)Identity Authentication to WordPress

Everyone using WordPress has an OpenID, e.g. mine is https://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):
    <html>
    <head>
    <link rel="openid.server" href="https://taroza.wordpress.com/?openidserver=1" />
    <link rel="openid.delegate" href="https://taroza.wordpress.com/" />

    <link rel="openid2.provider" href="https://taroza.wordpress.com/?openidserver=1" />
    <link rel="openid2.local_id" href="https://taroza.wordpress.com/" />
    </head>
    <body>
    </body>
    </html>

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.

2 Responses to “How to Delegate Your (Open)Identity Authentication to WordPress”

  1. Anne Says:

    Thanks for this article :)

  2. Rodrigo Primo Says:

    I’ve created a simple plugin to manage OpenID delegation in WordPress. You give the plugin the URL of your identity in the provider and the plugin will discover the URL of the OpenID provider and add the required meta tags to the header of your WordPress home page.

    http://wordpress.org/extend/plugins/wordpress-openid-delegation/


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: