-
-
Notifications
You must be signed in to change notification settings - Fork 252
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
enable google auth via proxy #183
Comments
Hi @yosefy, could have a look at this answer please? Basicaly, before starting the script server, could you try to export mentioned environment variables with your proxy config? |
Doesn't work
Found this one :
tornadoweb/tornado#754
…On Mon, Feb 18, 2019, 2:45 PM Iaroslav Shepilov ***@***.*** wrote:
Hi @yosefy <https://github.com/yosefy>, could have a look at this answer
please?
https://stackoverflow.com/a/31641300
Basicaly, before starting the script server, could you try to export
mentioned environment variables with your proxy config?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#183 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AMVy7R0gdUTKnZ026-wK5xtWXJewWVl8ks5vOqBpgaJpZM4bAw8T>
.
|
ok :( Thanks for checking it |
what worked for me on ubuntu 18 apt-get install libssl-dev libcurl4-openssl-dev python-dev add to src/auth/auth_google_oauth.py #################################### httpclient.AsyncHTTPClient.configure("tornado.curl_httpclient.CurlAsyncHTTPClient", defaults=defaults) |
Great thanks for checking it! Will refactor it somehow and add. A question: did you configure environment variable |
Yes I did
Thanks
May be better just add it in config
…On Mon, Feb 18, 2019, 4:51 PM Iaroslav Shepilov ***@***.*** wrote:
Great thanks for checking it! Will refactor it somehow and add.
A question: did you configure environment variable http_proxy before
that? With lowercase?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#183 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AMVy7WC_VUB1VRXrUe7VNzwsectzQihRks5vOr3dgaJpZM4bAw8T>
.
|
I would prefer to use default python approach with environment variables (as in stackoverflow answer). Just need to adjust code to it. |
Done. Now any environment variables (https_proxy or http_proxy, all lowercase or all uppercase) can be used. This feature requires pycurl to be installed @yosefy could you check please, if the latest version works for you? |
i think it can't get to google without proxy config
Feb 18 12:27:53 XXX python[31362]: 2019-02-18 12:27:53,088 [script_server.tornado_auth.INFO] Trying to authenticate user
Feb 18 12:28:13 XXX python[31362]: 2019-02-18 12:28:13,110 [script_server.GoogleOauthAuthorizer.ERROR] Failed to load access_token: Timeout while connecting
The text was updated successfully, but these errors were encountered: