rub-openid verification fails for openid.cn URLs

Leonardo startrack79 at gmail.com
Sat Feb 2 17:52:07 PST 2008


Hi,
sure that name can tricks anyone.. ;)
this piece of code restored my mood a few days ago:

 parameters = params.reject{|k,v|request.path_parameters[k]}
 response = consumer.complete parameters, 'http://'+request.host+request.path

you have to replace your actual "consumer.complete" call with this.

Let me know if it works.

bye
leo


2008/2/2 Mario Menti <mmenti at gmail.com>:
> Hi, not Italian, but Swiss (despite the name...)
>
> Anyway - I'm not sure how I get further details on the error, the response
> status is just "failure". In the logs I can see this:
>
> Processing AuthController#complete (for 89.241.154.67 at 2008-02-02
> 23:27:38) [GET]
>    Session ID: de1232bae4594566ab8e9e534a4f8d6c
>   Parameters: {"openid.mode"=>"id_res",
> "openid.return_to"=>"http://twitterfeed.com/auth/complete?nonce=oEld15Pe",
> "openid.sig"=>"Eyl//VmI2XJHY4KdEvBMPP6E1kk=", "action"=>"com
>  plete", "controller"=>"auth",
> "openid.identity"=>"http://mmtest.openid.cn/", "nonce"=>"oEld15Pe",
> "openid.assoc_handle"=>"{HMAC-SHA1}{47a1d842}{yu81Ig==}",
> "openid.signed"=>"i
>  dentity,mode,return_to"}
>
> ... and on my site I just get the "Verification error" because the openid
> consumer response was failure. This happens with all openid.cn URLs, but
> seemingly not with any others. But using my test openid.cn URL on other
> sites (probably not using ruby-openid?) it seems to work ok.
>
> Thanks,
> Mario.
>
>
>
>
> On Feb 1, 2008 7:16 PM, Leonardo <startrack79 at gmail.com> wrote:
> > Hi Mario,
> > are you from Italy?
> > what type of error are you getting?
> >
> >
> > 2008/2/1 Mario Menti <mmenti at gmail.com>:
> >
> >
> >
> > > Hi there,
> > >
> > > I've got an issue with OpenID URLs from openid.cn - for some reason they
> all
> > > fail verification.
> > > I'm using ruby-openid 2.0.3 with ruby 1.8.5. on Debian..
> > >
> > > Anyone else aware of this issue?
> > >
> > > Cheers,
> > > Mario.
> > >
> > > _______________________________________________
> > > Dev mailing list
> > > Dev at lists.openidenabled.com
> > > http://lists.openidenabled.com/mailman/listinfo/dev
> > >
> > >
> >
> > _______________________________________________
> > Dev mailing list
> > Dev at lists.openidenabled.com
> > http://lists.openidenabled.com/mailman/listinfo/dev
> >
>
>
> _______________________________________________
> Dev mailing list
> Dev at lists.openidenabled.com
> http://lists.openidenabled.com/mailman/listinfo/dev
>
>



More information about the Dev mailing list