[OpenID] Basic Consumer Problem

Peter Watkins peterw at tux.org
Fri May 25 18:13:59 UTC 2007


On Fri, May 25, 2007 at 01:48:48PM -0400, Amiri Barksdale wrote:

> I am new here. I am trying to set up an OpenID consumer using the  
> JanRain perl libraries (to integrate it into a Mason app). I have  
> managed to get my consumer to direct the user-agent to the OpenID  
> provider, myopenid.com in this case, but this error is awfully cryptic:
> 
> This request had a bad OpenID mode. The requested mode was p.
> 
> Does anyone know what it means?
> 
> My redirecturl is as follows:
> 
> http://www.myopenid.com/server? 
> openid.mode=checkid_setup;openid.identity=***;openid.trust_root=% 
> 2Fusers;openid.return_to=%2Fusers%2Fopenid2.html%3Fnonce% 
> 3DMR9c66Ro;openid.assoc_handle=%7BHMAC-SHA1%7D%7B4656da94%7D%7BmZCWxg% 
> 3D%3D%7D

The first thing I see is your request is using ";" to separate name=value
pairs rather than the "&" character that is specified in the HTML401 spec
(openid 2.0 draft 11 4.1.2; http://www.w3.org/TR/html401/interact/forms.html#form-content-type). 
I know that Perl's CGI.pm likes to use ";" as a separator; perhaps you need 
to pass the -oldstyle_urls flag in your "use CGI;" lines?

The second thing I see is your return_to value is not a full URL.

-Peter




More information about the general mailing list