Skip to content

Commit

Permalink
Merge pull request #56 from tomekchime/fix-faraday-deprecation-warning
Browse files Browse the repository at this point in the history
Fix 'Faraday::Connection#authorization' deprecation warning
  • Loading branch information
ltk authored Jun 30, 2022
2 parents 1c58db5 + bc67aa5 commit 3b8c73f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/oktakit/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -189,8 +189,8 @@ def sawyer_agent
http.headers[:accept] = 'application/json'
http.headers[:content_type] = 'application/json'
http.headers[:user_agent] = "Oktakit v#{Oktakit::VERSION}"
http.authorization('SSWS ', @token) if @token
http.authorization(:Bearer, @access_token) if @access_token
http.headers[:authorization] = "SSWS #{@token}" if @token
http.headers[:authorization] = "Bearer #{@access_token}" if @access_token
end
end

Expand Down

0 comments on commit 3b8c73f

Please sign in to comment.