Tuesday, June 5, 2007

How to use your own URL as an OpenID without running your own OpenID server.




It is easy to delegate your own URL to an OpenID server for authentication. For example, you may have an account on an OpenID server, http://yourname.myopenid.com/, but want to use http://yourname.com/ instead.

Simply embed the following into the HTML HEAD of the page you want to use:

< rel="openid.server" href="http://www.myopenid.com/server">

< rel="openid.delegate" href="http://yoururl.myopenid.com/">
< equiv="X-XRDS-Location" content="http://yoururl.myopenid.com/xrds">


The role of the OpenID server is to provide a page for you and make claims about user ownership of that page. By pointing a personal page to the page you own on your OpenID server, the consumer can discover your server information, ask you to prove that own the URL on the server, which then also proves that you own the personal URL.

No comments: