Created
December 15, 2012 22:58
-
-
Save anonymous/4300140 to your computer and use it in GitHub Desktop.
Working with Faraday or some other Ruby thing and want to use the Charles Web Debugging Proxy with SSL Proxy mode turned on so that you can listen to SSL request/responses? You want something like this.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
client = OAuth2::Client.new(API_CLIENT, API_SECRET, { | |
:authorize_url => 'https://accounts.google.com/o/oauth2/auth', | |
:token_url => 'https://accounts.google.com/o/oauth2/token', | |
# Set options that get passed on to Faraday | |
:connection_opts => {:proxy => { :uri => 'http://127.0.0.1:8888'} }, | |
:ssl => {:verify => false} | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Derp. Forgot to sign in before I made this.