rub-openid verification fails for openid.cn URLs

Mario Menti mmenti at gmail.com
Tue Feb 5 14:29:23 PST 2008


I've spent some time making sure I upgraded everything to the latest
versions and am now running rails 2.0.2 with ruby-openid 2.0.3, which
involved some tweaking of the login code to make it work - and the
"complete" code in my controller now also contains what you're suggesting
below, but any openid.cn URLs still fail Verification.

Could someone try to replicate this issue? You can sign up for a new account
at http://openid.cn, or if you get confused by the language (Chinese) use
mine for testing (I don't use it for anything real and can let you know the
username/password if you ask me by email).

Thanks for any help anyone could give me - I'm still not really sure if this
is an issue with openid.cn or ruby-openid

Cheers,
Mario.


 On Feb 3, 2008 1:52 AM, Leonardo <startrack79 at gmail.com> wrote:

> 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
> >
> >
>
> _______________________________________________
> Dev mailing list
> Dev at lists.openidenabled.com
> http://lists.openidenabled.com/mailman/listinfo/dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.openidenabled.com/pipermail/dev/attachments/20080205/c3632d8a/attachment-0001.htm 


More information about the Dev mailing list