-
-
Notifications
You must be signed in to change notification settings - Fork 622
Open
Description
Lines 1186 to 1201 in 3e18dc0
| ```ruby | |
| client = OAuth2::Client.new( | |
| id, | |
| secret, | |
| site: "https://provider.example.com", | |
| connection_opts: { | |
| request: 5, timeout: 15, | |
| proxy: ENV["HTTPS_PROXY"], | |
| ssl: true, | |
| }, | |
| ) do |faraday| | |
| faraday.request(:url_encoded) | |
| # faraday.response :logger, Logger.new($stdout) # see OAUTH_DEBUG below | |
| faraday.adapter(:net_http_persistent) # or any Faraday adapter you need | |
| end | |
| ``` |
It looks as if the connection_opts are in a wrong format and they were meant to be:
connection_opts: {
request: {open_timeout: 5, timeout: 15},
proxy: ENV["HTTPS_PROXY"],
ssl: {verify: true},
}just as in README.md. If that's the case, I'd be happy to open a PR.
Metadata
Metadata
Assignees
Labels
No labels