Max says…

Avatar

thoughts of a web developer

Use Your Own URL As An OpenID

You may already have an OpenID from one of the many providers, for example username.myopenid.com. Wouldn’t it be nice if you could use your own domain name instead? Well you can! You may not actually host an identity provider capable of vouching for your ownership of your own domain, but you can always get username.myopenid.com to vouch for you.

This process is called delegation. You use your own domain name as your OpenID, but add some extra markup to the head element of your homepage that tells the relying party that you are delegating the responsibility of authentication to another server. The markup you need is:



This will tell the relying party, that it should instead visit username.myopenid.com. You will then authenticate to this delegate server. Once successful, by implication of having authenticated to the delegate server, you have also proved that you own the domain from which you were directed.

The link tags are used for OpenID 1.x server discovery, and the meta tag for OpenID 2.x server discover. In order to be as compatible with OpenID consumers as possible, you should use both link and meta elements.

No Comments, Comment or Ping

Reply to “Use Your Own URL As An OpenID”