Journal / Use your own domain as your OpenID

You can easily use your own domain as your OpenID with just a free account and a couple of lines of code.

OpenID is starting to make an impact, and I’ve been using it for a good while to log into various sites I use which have the capabilities. The idea is that by logging in using your OpenID url, you only have to remember one url and then one password, and use them across many sites. Many services provide free OpenID urls, such as OpenID.org, myOpenID, Yahoo, LiveJournal, Vox and many more. But you can use your own domain as your OpenID, as long as you can add a snippet of code to the header of your index file. I thought this was widely known, but when a friend of mine, who is much more into these things than me, asked how I used my own domain as my OpenID recently, I thought I would share.

The procedure is as follows:

1. Sign up with myOpenID.
2. Add this code to the header of your website index page:

<link rel="openid.server" href="http://www.myopenid.com/server" />
<link rel="openid.delegate" href="http://*username*.myopenid.com/" />
<meta http-equiv="X-XRDS-Location" content="http://*username*.myopenid.com/xrds" />

3. Change the two instances of *username* to your myOpenID username.
4. That’s it.Now you can simply enter your own domain eg. nonimage.com on any site which allows OpenID login. When you do this, you will be redirected to your myOpenID page to enter your password, then returned to the site you were using.

You can also do this with other OpenID providers, but I like to keep it simple.

2 responses so far

  1. Kevin Fox

    3rd Apr, 2008 at 1:49 pm

    Nice post Andy, I work for Vidoop and we also run an OpenID provider at http://myvidoop.com

    It has some cool features like no passwords (you remember image categories), a plugin to manage your normal logins and passwords (my favorite), and we also support OpenID delegation and forwarding.

    We have actually been thinking quite a bit about delegation and how to make it easier to choose any URL to delegate to, like your Facebook or Linked In account. One of our developers posted his thoughts on his blog: http://steven.bitsetters.com/a.....elegation/

    I would be interested to hear what you think? I believe delegation is the way to actually make sure my OpenID endpoint is relevant to me… anywho hope I wasnt to spammy

    Cheers,
    Kevin

  2. Nonimage

    7th Apr, 2008 at 2:35 pm

    Hi Kevin

    Thanks for stopping by. Your service looks really interesting, and I’ll be checking it out properly very soon.

Leave a comment