Skip to Content

Free TUAW iPhone app -- try it now!
AOL Tech

Filed under: Internet, Security, Web services, Open Source

phpMyID: roll your own OpenID provider

phpMyIDWith more and more web sites and services offering OpenID for authentication, you may want to use your own domain name as an OpenID provider instead of selecting from the wide array of other providers (like Blogger, AOL, Wordpress.com).

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):


  1. Download the archive from the phpMyID website
  2. Upload the files to your web server (I chose to put them in an "openid" subfolder)
  3. Visit http://yourwebsite/MyID.config.php
  4. Make a note of your PHP realm
  5. 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)
  6. 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
  7. 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"
  8. Reupload the MyID.config.php file to your web server
  9. Visit http://yourwebsite/MyID.config.php and login with your phpMyID username and password to make sure everything is working correctly
  10. 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.
jobs & resumes
Lead Blogger

AOL Find a Job - New York, NY (3 weeks ago)

See More Relevant Jobs ›

Reader Comments (Page 1 of 1)

Featured Time Waster

The World's Hardest Game 2.0 - Time Waster

So, just how good at time waster games are you? Think you've got the stuff? Well, The World's Hardest Game 2.0 doesn't think you do. Yes, amazingly, it's possible to have a sequel to a game called "The World's Hardest Game". It doesn't seem logically possible, since if the first one was actually the world's hardest, how could another one come along and share the moniker? It made me doubt the name in the first place. That is, until I tried the game. The mechanics of the game are very simple. You are a small red square, ...

View more Time Wasters

Featured Galleries

Defective by Design, London: Protest Pictures
Microsoft Security Essentials
Chromium Pre-Alpha on CrunchBang Linux
Safari 4 Beta
10 Firefox themes that don't suck
IE8 RC1
Download Squad at the Crunchies After-Party
Download Squad at the Crunchies
WordPress 2.7
Cooking Mama: Mama Kills Animals
Windows 7 Hands On
Comodo Internet Security
Android First-look: Amazon.com MP3 Store
Android First-look: Twitroid
Google Reader Android
Android Hands-On
Twine 1.0
Photoshop Express Beta
Mozilla Birthday Cake
Palm stuff
Adobe Lightroom 1.1

 


Follow us on Twitter!

Flickr Pool

www.flickr.com

More Tech Coverage

AOL Radio

Joystiq

TUAW

Daily Finance

Autoblog

Urlesque

Engadget

WoW

Switched.com

FanHouse