TK v0.1 This is all pretty rough. If someone wants to help make it better that would be swell. :) You want to put all this stuff in some directory, modify build.sh to get your includes and libraries right and then build. After you've built everything, you'll want to run 'genkeys'. This will output 2 files in the current directory. 'priv.pem' which is your private key that you will sign things with. You should protect this file using permissions or put it someplace outside of your website (you'll have to modify makesig.c to look for it in some place other than cwd). It will also generate 'regkeys.txt' which contains, in a very odd format, your public key. Movabletype will fetch this file internally to verify the signatures. makesig.c has the code to do the signing and is a php module. I made it a module so it would run quickly. Perhaps building it in to your php install would be most efficient, but i'm just using dl() in these scripts here. You'll want to modify config.php with your database settings and then modify check.php to do some kind of sql query that meets your needs. In your MT install, you'll want to edit: lib/MT/ConfigMgr.pm change the following things how you see fit: $mgr->define('RegKeyURL', Default => 'http://www.pavlov.net/projects/tk/regkeys.txt'); $mgr->define('SignOnURL', Default => 'http://www.pavlov.net/projects/tk/login.php?'); $mgr->define('SignOffURL', Default => 'http://www.pavlov.net/projects/tk/logout.pcgi?'); You might also want to change (if you're going to use the icon link in your templates): $mgr->define('IdentityURL', Default => "http://profile.typekey.com/"); Once you do all of this, it should work. Its by no means perfect, but I think its mostly correct. A user registration page is left up as an exercise to the reader, since this is really meant for those of you who already have a user database and I assume you have your own registration pages already. Feel free to send me comments or patches.. espically patches -- Stuart Parmenter June 05 2004