phpMyID: roll your own OpenID provider
phpMyID is a pair of PHP files that allow you to easily use your domain name for authentication to OpenID-supporting sites like Sourceforge, Skitch, and Technorati.
To use phpMyID (substitute "yourwebsite" with your domain name or website address):
- Download the archive from the phpMyID website
- Upload the files to your web server (I chose to put them in an "openid" subfolder)
- Visit http://yourwebsite/MyID.config.php
- Make a note of your PHP realm
- Pick a username and password for phpMyID (remember, with OpenID you authenticate to your provider, and then OpenID sites trust your provider to permit/reject authentication)
- Create an MD5 hash of your username, password, and PHP realm. Mac and Linux users can just use OpenSSL (
echo -n 'username:realm:password' | openssl md5). Windows users will need an MD5 utility
- Edit your MyID.config.php by entering your chosen username for "auth_username" and the MD5 result from step 6 for the value of "auth_password"
- Reupload the MyID.config.php file to your web server
- Visit http://yourwebsite/MyID.config.php and login with your phpMyID username and password to make sure everything is working correctly
- Place the following HTML tags in the index document for your web site
<link rel="openid.server" href="http://yourwebsite/MyID.config.php">
<link rel="openid.delegate" href="http://yourwebsite/MyID.config.php">
You will now be able to use your domain name or website as your OpenID URL when logging in to OpenID sites. phpMyID is open source, requires PHP, and, yes, it does support the OpenID Simple Registration Extension (SREG) for providing default information to OpenID websites.