twilio / authy-ruby

**Deprecated** Ruby library to access the authy API
MIT License
156 stars 47 forks source link

Configurable HTTP proxy #42

Closed mccarths closed 2 years ago

mccarths commented 5 years ago

Is it/would it be possible to configure this gem to make HTTP calls via a proxy? Possibly via an extra configuration item:

Authy.http_proxy = 'http://myproxy:8080'

Then included in the call to IncludeClient in api.rb or something similar:

include_http_client(Authy.http_proxy, ...
igormoraisazevedo commented 2 years ago

This functionality is very important, especially for computers with Internet access via static or authenticated Proxy.

philnash commented 2 years ago

This project uses httpclient to make requests. You can provide a proxy to httpclient by setting the HTTP_PROXY environment variable.

I will also note that we currently recommend the use of Twilio Verify. The Verify API is an evolution of the Authy API and is where new features are built. The Verify API can be used with the twilio-ruby gem which also supports providing a proxy via a custom HTTP client.

I'm going to close this issue, but please let me know if you have any other questions.