<html>
<head>
<style>
P
{
margin:0px;
padding:0px
}
body
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body>Hi.<BR>
<BR>
I am trying to build on top of the JanRain open id library, version 2.0.0 rc2. I am using PHP 5.1.2/Apache 2.2/XP.<BR>
<BR>
I am getting this message:<BR>
<BR>
OpenID authentication failed: Invalid openid.mode '<NO set="" mode="">'<BR>
<BR>
The code that attempts to complete the transaction is:<BR>
<BR>
<BR>
<BR>
$consumer = $this->getConsumer();<BR>
// Complete the authentication process using the server's<BR> // response.<BR> $res = print_r( $_REQUEST, true );<BR> echo nl2br( $res );<BR> $response = $consumer->complete( $_REQUEST );</NO><BR>
<BR>
<BR>
<BR>
This generates the following output on the browser (sreg vars removed etc)<BR>
...<BR>
[openid_mode] => id_res<BR>[openid_ns] => http://specs.openid.net/auth/2.0<BR>[openid_ns_sreg] => http://openid.net/extensions/sreg/1.1<BR>[openid_op_endpoint] => <A href="https://www.myopenid.com/server">https://www.myopenid.com/server</A><BR>
...<BR>
<BR>
Having looked at the code, its seems valid to pass in any array and the $_REQUEST array appears to be populated from the print_r dump.<BR>
<BR>
<BR>
Does anybody know what/why the openid.mode is missing?? Is it that the server is responding openid_mode and the code is looking for openid.mode??? If so how do I fix this?<BR>
<BR>
Thanks<BR><br /><hr />With Live Spaces email straight to your blog. Upload jokes, photos and more. It's free! <a href='http://specials.uk.msn.com/spaces/default.aspx' target='_new'>It's free!</a></body>
</html>