ruby on rails - How to force Twitter Single Sign-On to use https on port 443 -
i have set rails application uses twitter single sign-on.
in twitter configurations, call looks following: https://somesite.com/users/auth/twitter
but redirect code https://api.twitter.com/oauth/authenticate?oauth_token=someoauthtoken
has following code in html:
<meta http-equiv="refresh" content="0;url=https://somesite:80/users/auth/twitter/callback?oauth_token=someoauthtoken&oauth_verifier=someoauthverifier”>
how force twitter single sign-on use https on port 443?
i tried changing callback setting in twitter account https://somesite.com:443/users/auth/twitter
still uses port 80 on redirect.
any appreciated.
update
does have ruby on rails application using https twitter callback? not suppose use https if using twitter single sign on?
so going through problem, here solve problem form me.
i added middleware changes server port 443
env['server_port'] = '443' unless env['server_port'] == '443'
somewhere on web server using, env['server_port']
set 80. twitter using value on callback.
there web server setting can changed, not have access make change, have do.
hope helps someone.
Comments
Post a Comment