phpMyID:a standalone, single user, OpenID Identity Provider.

By Daki - Last updated: Monday, February 23, 2009 - Save & Share - One Comment

phpmyid 20090221 phpMyID:a standalone, single user, OpenID Identity Provider.

phpMyID is a single user (though, if you were so inclined, you could easily turn it into a multi-user setup) IdP, or “Identity Provider” for the OpenID framework. It’s a single PHP script with minimal dependancies. You don’t need a database, you don’t need to make your filesystem writable, you don’t need to download any libraries, and you don’t need to recompile PHP. Okay, well, you shouldn’t need to do any of that.

Installing phpMyID requires an MD5 hashing utility. Why? Because you have to authenticate to it using a password. phpMyID uses HTTP Digest authentication for security and your password must be encrypted when you enter it during installation. Say it with me: “passwords should never be stored or transmitted in plain text” (one of the advantages of phpMyID and OpenID is that they never are).

For Linux or OSX (or any other Unix-like OS), I suggest using OpenSSL to encrypt your password. For Windows, there are a number of utilities available, but I recommend this one by Colin Plumb. It’s public domain code, and it will do exactly what you need (yes, the hash it create is all upper-case – don’t worry, phpMyID will convert it for you). You can use PHP’s md5 function to generate your hash for you on the fly, but I must discourage doing so. Not only does it take all the fun out, but you have to store your password in plain text to make it go.

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.

URL: http://siege.org/projects/phpMyID

Technorati : ,

Posted in Misc • Tags: , Top Of Page

One Response to “phpMyID:a standalone, single user, OpenID Identity Provider.”

Pingback from Technology » Blog Archive » Turboftp 6.00 Build 716 Free Full Rapidshare Download Crack Serial …
Time February 23, 2009 at 2:23 pm

[...] phpMyID:a standalone, single user, OpenID Identity Provider … [...]

Write a comment