2.0 authentication
Kai Hendry
hendry at iki.fi
Mon Feb 4 04:49:39 PST 2008
So the big new feature I believe with 2.0 is that you can enter
myopenid.com, instead of hendry.myopenid.com.
With that in mind, if I go to:
http://openidenabled.com/php-openid/trunk/examples/consumer/
and enter in:
http://openidenabled.com/php-openid/trunk/examples/server/server.php
login as '1234' for example and then you'll be greeted with:
"""You must be logged in as
http://openidenabled.com/php-openid/trunk/examples/server/server.php
to approve this request.""" error message.
So this morning I thought I'd try fix the example myself, but I am not
succeeding. :) My first approach was to force the request for the
logged in user:
$info->request->identity = idURL($user);
$info->request->claimed_id = idURL($user);
That doesn't seem to work. I launched livehttpheaders on pibb &
myopenid and the claim_id seemed to be:
&openid.claimed_id=http%3A%2F%2Fspecs.openid.net%2Fauth%2F2.0%2Fidentifier_select
However if you feed in:
http://openidenabled.com/php-openid/trunk/examples/server/server.php
into pibb, the request looks like:
openid.claimed_id=http%3A%2F%2Fopenidenabled.com%2Fphp-openid%2Ftrunk%2Fexamples%2Fserver%2Fserver.php
So perhaps this only works on domains? Any clues? Kind regards,
More information about the Dev
mailing list