Skip to content
This repository has been archived by the owner on Apr 7, 2020. It is now read-only.

callback url doesn't keep custom port #41

Open
schmas opened this issue Jul 2, 2018 · 3 comments
Open

callback url doesn't keep custom port #41

schmas opened this issue Jul 2, 2018 · 3 comments

Comments

@schmas
Copy link

schmas commented Jul 2, 2018

I'm trying to configure the nginx with a custom port.
For example:
https://server.com:8443/

But the callback, is always set to https://server.com/_oauth, instead of https://server.com:8443/_oauth.

I was able to do this by adding ngo_callback_host to server.com:8443, but with this I cannot use the localhost approach (using ngo.lol).

@bobrik
Copy link
Contributor

bobrik commented Jul 8, 2018

but with this I cannot use the localhost approach (using ngo.lol).

Can you elaborate on this part?

@schmas
Copy link
Author

schmas commented Jul 9, 2018

Hi @bobrik,

I even if I add http://ngo.lol/_oauth as an "Authorized redirect URIs" in Google console, but I have ngo_callback_host configured as server.com:8443, the callback url is https://server.com:8443/_oauth and not https://ngo.lol/_oauth.

So, If I want to be able to use my custom server name and ngo.lol at the same nginx server with a custom port I cannot use ngo_callback_host, right?

I've made a pull request #42, so a custom port could be used. Can you have a look?

Thanks

@schmas
Copy link
Author

schmas commented Mar 22, 2019

Any update?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants