StephenOTT / GitLab-Time-Tracking

Lightweight Time Tracking application for GitLab Issue Queues
52 stars 7 forks source link

Omniauth redirect_uri wrong when using https #11

Open jfreax opened 9 years ago

jfreax commented 9 years ago

The "redirect_uri" from omniauth is always http, even when the gitlab-time-tracking app is served as https. For this reason, gitlab always response with this error:

The redirect uri included is not valid.

One possible solution is to set the variable "OmniAuth.config.full_host" to the correct URI. Maybe we can configure the host url through an env variable? Or auto-detect it correctly?

StephenOTT commented 9 years ago

Good catch!

I think a env is a good way to start for sure!

renatorozas commented 4 years ago

I am struggling with the same issue. Can you confirm if this is solved if you set config.force_ssl = true in config/environments/production.rb?