I''m using the open_id_authentication plugin just like the README says. However, when I submit my openid_url, the authenticate_with_open_id method gives me the error below. vendor/plugins/open_id_authentication/lib/open_id_authentication.rb: 150:in `+'' vendor/plugins/open_id_authentication/lib/open_id_authentication.rb: 150:in `requested_url'' vendor/plugins/open_id_authentication/lib/open_id_authentication.rb: 146:in `open_id_redirect_url'' vendor/plugins/open_id_authentication/lib/open_id_authentication.rb: 97:in `begin_open_id_authentication'' vendor/plugins/open_id_authentication/lib/open_id_authentication.rb: 86:in `authenticate_with_open_id'' app/controllers/account_controller.rb:33:in `open_id_authentication'' app/controllers/account_controller.rb:12:in `create'' It seems to be failing here, but I have no idea why... def requested_url "#{request.protocol + request.host_with_port + request.relative_url_root + request.path}" end I''ve tested to ensure that "username.myopenid.com" is being passed as the openid_url parameter. Am I missing something else? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
If I change the url, it starts works except the redirect back is wrong... def requested_url "#{open_id_complete_url}" end Any ideas why the normal request would be null?... "#{request.protocol + request.host_with_port + request.relative_url_root + request.path}" --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
If anyone else ever runs into this problem (because I just did again), I removed request.relative_url_root and it works now... def requested_url # "#{request.protocol + request.host_with_port + request.relative_url_root + request.path}" "#{request.protocol + request.host_with_port + request.path}" end The original code gave this error... can''t convert nil into String vendor/plugins/open_id_authentication/lib/open_id_authentication.rb: 154:in `+'' On Apr 20, 10:30 am, Sav <savar...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> If I change the url, it starts works except the redirect back is > wrong... > > def requested_url > "#{open_id_complete_url}" > end > > Any ideas why the normal request would be null?... > "#{request.protocol + request.host_with_port + > request.relative_url_root + request.path}"--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---