Twitter dynamic callback support - Omniauth

I use omniauth-twitter gem to authenticate users in my rails application.

I am trying to implement a dynamic callback by passing callback_url as a parameter

/auth/twitter?oauth_callback=http://mynewwebsite.com

But twitter redirects the callback_url call specified in the Twitter app settings. Am I missing something here?

Is dynamic callback an unsupported twitter? any other stone to implement this function? Request for help

+3
source share
2 answers

No, you do not have a dynamic callback.

You can make a dispatcher: specify the cookie callback URL, send the user to Twitter, return him and redirect to where his cookie reports.

+3

url . cookie.

#url
"/auth/twitter?x_auth_access_type=read&target=customer_login"

#controller
def twitter
  if params[:target] == "customer_login"
    ...
  end
end

smth this QueryString

0

All Articles