Skip to content

Commit

Permalink
Merge pull request #362 from dgonzalezmbc/Proxy_Option_For_Server_Oauth
Browse files Browse the repository at this point in the history
Supporting proxy option pass to oauth gem
  • Loading branch information
SimonMiaou authored Jul 21, 2020
2 parents 1b7962a + a36cdd8 commit 8271522
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/jira/oauth_client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ def init_oauth_consumer(_options)
@options[:request_token_path] = @options[:context_path] + @options[:request_token_path]
@options[:authorize_path] = @options[:context_path] + @options[:authorize_path]
@options[:access_token_path] = @options[:context_path] + @options[:access_token_path]
# proxy_address does not exist in oauth's gem context but proxy does
@options[:proxy] = @options[:proxy_address] if @options[:proxy_address]
OAuth::Consumer.new(@options[:consumer_key], @options[:consumer_secret], @options)
end

Expand Down

0 comments on commit 8271522

Please sign in to comment.