Typekey Authentication for PHP
Benjamin Trott released Authen::Typekey for Perl which I was thinking about how cool it would be for having a PEAR class which similar to the Perl version.
Doing some browsing online I've come across TK 0.1 which requires one to load an additional module to have access to the DSA stuff.
Comments
Hi Jacques, there's another PHP/PEAR library for TypeKey coming soon, that I'll be linking to on our upcoming Professional Network site, so if you haven't pre-registered, you'll want to sign up at sixapart.com/network and I'll let everyone know as soon as we've posted news on it.
Posted by: Anil Dash
|
August 19, 2004 5:51 PM
Hi Anil
I started hacking up some code for Auth_Typekey and found my one big problem is that there is no Crypt_DSA in PEAR, which would have made the job a bit easier for making some bits and pieces work for some other proof of concept guestbook application stuff I'm working on.
Also what might be useful is some sort of API document explaining how the Typekey API works, which should be easy enough to write in a document explaining how the bits and pieces works. I'll write something based on my experiments into the Typekey API.
Posted by: Jacques
|
August 20, 2004 9:08 AM
I found another implementation of TypeKey on PHP that I think Anil pointed me to. Then I read this document:
http://www.movabletype.org/docs/tk-apps.html
to get a better idea about what was going on.
Posted by: Andre Torrez
|
August 22, 2004 1:49 AM
I spent some time over the weekend hacking away at a typepad PECL module, which needs a lot of work still to get it to deal with the message array and figuring out how to validate a signature.
The TK 0.1 is quite useful where you want Movable Type to authenticate against your own 'TypeKey' style interface, but they don't provide any verification of the stuff back from TypeKey making it trivial to exploit in their code, but using curl and faking to have been refered by TypeKey etc. etc.
What I would like to see however is someone who has experience coding c and PHP extensions to give some pointers on how to get PHP to parse an array of variables being used for the verification and (b) TypeKey to use md5 verification of the data we are sending to TypeKey similar to World Pay, which is useful for checking that someone is not fiddling in the process.
Posted by: Jacques
|
August 23, 2004 8:25 AM