starterkits / rails4-starterkit

Rails 4.1 starter app with production ready performance, security, and authentication.
MIT License
388 stars 103 forks source link

OAuth not working on VPS hosting #9

Closed cvkmohan closed 10 years ago

cvkmohan commented 10 years ago

Thanks for a great starter kit. Worked great on heroku. However, when I deployed on a VPS ( Linode) - None of oauth providers are working. I have updated client key and secret code for my domain for each of the providers. Any thing else that has to be updated?

simple10 commented 10 years ago

Hard to say what the issue is without more information. With OAuth, issues like these are often related to the configuration of the authorized callback domains at each provider (Facebook, Twitter, etc.).

It's also possible that there's something amiss with the ENV vars on your VPS.

cvkmohan commented 10 years ago

Sorry to disturb again. Looks like the problem is with ssl being forced for the application. When we deploy on to VPS, it gets forcibly to https://domain.com. Now, I could change this behaviour by config.force_ssl=false in environments/production.rb. At this moment, I am getting error in oauth. Log shows that Error: URI::InvalidURIError - the scheme https does not accept registry part is the error message.

Can you please help me in resolving the error?

Regards,