ruby on rails - Passing hidden invitation token field after being redirected from openid authorization -


I Ryan Bates'm trying to combine and has been the way to set it up, that's signup form In the Hidden field, the invitation token that allows the user to sign up. The invitation is sent token URL: / signup /: invitation_token

However, when I redirect without token invitation to use open_id, just back / signup URL. How can I do that the token is still being passed after the redirect. Here's the relevant code in open_id_authorization plugin

  def open_id_redirect_url (open_id_request, return_to = zero, method = zero) open_id_request.return_to_args [ '_ Method "] = (method || request.method) open_id_request. to_s .return_to_args [ 'open_id_complete'] = '1' open_id_request.redirect_url (root_url, return_to || REQUESTED_URL) end def REQUESTED_URL relative_url_root = self.class.respond_to? (: Relative_url_root)? self.class.relative_url_root.to_s: request.relative_url_root "# {request.protocol} # {request.host_with_port} # {ActionController :: Base.relative_url_root} # {request.path}" end  
< P> Thank you.

I need to tell open_id plugin to / signup / : Invitation_token instead of / signup :

  SIGNUP_URL (: invitation_token = & gt; parameter [: invitation_token])  

pass it to open_id_redirect_url . I'm not 100% sure that this is your problem, though.


Comments

Popular posts from this blog

sql - dynamically varied number of conditions in the 'where' statement using LINQ -

asp.net mvc - Dynamically Generated Ajax.BeginForm -

Debug on symbian -