Closed nikkomiu closed 7 years ago
Hi @nikkomiu, you can configure the callback_path
: https://github.com/ueberauth/ueberauth#customizing-paths
That doesn't seem to work with a URL it only seems to work with a path.
@nikkomiu sounds like something that might be worth incorporating into Ueberauth, would you be interested in opening a PR to add this?
I can take a look at it! Should I put an issue in on Ueberauth?
Please do!
Of course in looking through the source code there is a better way to handle my particular use case. :disappointed:
I can set the X-Forwarded-Proto
header from my NGINX instance to set https properly.
Perhaps the only thing needed is documentation around this header?
Sounds like a plan. @nikkomiu would you be up for a PR?
Yea I could do that. Should this go on Uberauth though and not the Google specific one?
The solution to my problem was with the NGINX configuration. I needed to add the X-Forwarded-Proto
header in my NGINX configuration for the site.
Using NGINX to do SSL offloading there doesn't seem to be a way to make the OAuth request with a callback URI that uses HTTPS instead of HTTP.
Is there any way to make it possible to either manually specify HTTPS or a Callback URI?