Rails + openid-login generator = Parameter action does not match return_to URL
Kevin Turner
kevin at janrain.com
Mon Jan 28 12:45:48 PST 2008
I wasn't sure what was going on here at first, but someone else
encountered a similar problem over the weekend that sheds some light on
this one.
The hash you're sending to complete() includes "controller" and "action"
items. I'm guessing those weren't really parameters that were part of
the request like openid.mode is. Pass only the arguments that were sent
by the browser in the GET or POST and it should behave better.
The example code contains this line:
parameters = params.reject{|k,v|request.path_parameters[k]}
ew.
On Thu, 2008-01-24 at 08:35 -0800, Tick wrote:
> I've configured the rest of the skeletal app, and it almost works. When I
> drop in my OpenID I'm redirected to my provider, but after I authorize my
> site the 'complete' action tells me that verification failed
> (response.status == OpenID::FAILURE), and the response.message is
> "Parameter action does not match return_to URL". Inspecting the params
> hash before it's sent to consumer.complete() shows what I think are the
> relevant values:
>
> "controller" => "openid"
> "action" => "complete"
> "openid.mode" => "id_res"
> "openid.return_to" => "http://192.168.6.12:3000/openid/complete?..."
>
> The message appears to be coming from openid/consumer/idres.rb:172, but my
> Rails-fu isn't strong enough to figure out what that section of code is
> supposed to be doing. Do I need to make changes to my consumer.begin() or
> consumer.complete() calls?
>
> Thanks very much for any help.
>
>
> ____________________________________________________________________________________
> Looking for last minute shopping deals?
> Find them fast with Yahoo! Search. http://tools.search.yahoo.com/newsearch/category.php?category=shopping
>
> _______________________________________________
> Dev mailing list
> Dev at lists.openidenabled.com
> http://lists.openidenabled.com/mailman/listinfo/dev
>
>
More information about the Dev
mailing list