Another dumb-mode PHP consumer demo

Alan J Castonguay codepoetica at gmail.com
Tue Jul 19 07:52:35 PDT 2005


Replaced stupid 'always-add-trailing-/' kludge with proper url regex,
so urls with a path component arn't fudged. Now not mangling query
string in openid.server url before handing it off to HTTP_Request.

Tests indicate POST & querystrings work fine:
http://verselogic.net/openid/schtuff.php

I entered http://users.schtuff.com/carl as the identity url, and was
redirected to the following location, presented with "OpenID Trust
Verification"/login/"Trust http://verselogic.net/ with your
identity?":

http://www.schtuff.com/?action=trust&cancel_to=http%3A%2F%2Fverselogic.net%2Fopenid%2Fguestbook.php%3Fopenid.mode%3Dcancel&dest=http%3A%2F%2Fwww.schtuff.com%2F%3Faction%3Dopenid_server%26openid.identity%3Dhttp%253A%252F%252Fusers.schtuff.com%252Fcarl%26openid.mode%3Dcheckid_setup%26openid.return_to%3Dhttp%253A%252F%252Fverselogic.net%252Fopenid%252Fguestbook.php%26openid.trust_root%3Dhttp%253A%252F%252Fverselogic.net%252F&identity=http%3A%2F%2Fusers.schtuff.com%2Fcarl&trust_root=http%3A%2F%2Fverselogic.net%2F

Which is, as far as I can tell, what /should/ be happening. Please
give it another shot, Carl.

On 7/19/05, Martin Atkins <mart at degeneration.co.uk> wrote:
> Carl Howells wrote:
> > Quoting Alan J Castonguay <codepoetica at gmail.com>:
> >
> >
> >>I've finished putting together a dumb-mode consumer demo in php. Still
> >>need to clean up the class' interface. Ugly source available.
> >>
> >> http://verselogic.net/openid/guestbook.php
> >>
> >>It's working with livejournal as an oid server, I would appreciate
> >>people testing it with other servers. C&C welcome.
> >
> >
> > Doesn't work with schtuff.com as an identity server.  It complains it can't find
> > the link tag.  My user profile page is at http://users.schtuff.com/carl for
> > debugging...
> >
> > Carl
> >
> 
> I entered your identity URL into the guestbook page and it redirected me to:
> 
> http://www.schtuff.com/?action=openid_server?action=openid_server&openid.mo[...]
> 
> so it appears that the ID server is reacting badly to the fact that your
>  ID server URL already has a query string. I'm not quite sure how it's
> ending up duplicating it like that, though!
> 
> 
>


More information about the yadis mailing list