PHP OpenID consumer working! [was: PHP hackers wanted -- here's a seed]

Phillip Pearson pp at myelin.co.nz
Thu May 26 04:38:04 PDT 2005


Finally - it works!

I've put everything together into an 'openid_consumer' PHP class, that
sort of mimics Net::OpenID::Consumer -- although I doubt implements
all the features - just the minimum required to get a login.

Here's a little guestbook script, like Mart's, to show it off:

	http://dev.myelin.co.nz/openid/guestbook.php

This will be open source sometime soon - when it's a little tidier :)

Note that it includes an LGPL sha1 library and Daiji Hirata's DSA
code, so the licensing might be a little weird, but probably
GPL-compatible.  The ASN parsing code is more *inspired* by dumpasn1
[which taught me what the ASN tags mean and how to decode lengths]
than a direct port, so dumpasn1's license probably doesn't matter.

Cheers,
Phil

On Thu, May 26, 2005 at 09:06:24PM +1200, Phillip Pearson wrote:
> OK... I've got it signing something using openssl, then verifying it
> using the new ASN file parser, Brad's signature parsing code, and
> Daiji Hirata's DSS code.
> 
> Starting on a PHP consumer module now.
> 
> (And repeating my call before: anyone want to write some DSS key
> generation and signing routines in PHP?  I think Brad or Ben mentioned
> that someone has done this in pure Perl - so anyone who can read Perl
> and write PHP should be able to take this on.)
> 
> Cheers,
> Phil
> 
> On Thu, May 26, 2005 at 01:16:46PM +1200, Phillip Pearson wrote:
> > Most likely -- especially if someone else can do the remaining pieces
> > of the DSS puzzle (key generation and signing) ...
> > 
> > Cheers,
> > Phil :)
> > 
> > On Wed, May 25, 2005 at 11:36:06AM -0700, Brad Fitzpatrick wrote:
> > > You going to open source your code when you're done?
> > > 
> > > - Brad
> > > 
> > > On Thu, 26 May 2005, Phillip Pearson wrote:
> > > 
> > > > OK, I've got some PHP code up and running now that mimics dumpasn1 and
> > > > manages to pull all four integers out of my own public key.  Looking
> > > > good so far... now to get them into whatever format those TypeKey
> > > > routines need.
> > > >
> > > > Anyone feel like writing some DSS key generation and signing routines
> > > > in PHP?  :-)
> _______________________________________________
> yadis mailing list
> yadis at lists.danga.com
> http://lists.danga.com/mailman/listinfo/yadis


More information about the yadis mailing list