From bc67aa580ab3d6987bd3c0146fa60e1fb81c9d42 Mon Sep 17 00:00:00 2001 From: Tomek Rabczak Date: Thu, 28 Apr 2022 11:06:26 -0500 Subject: [PATCH] Fix 'Faraday::Connection#authorization' deprecation warning --- lib/oktakit/client.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/oktakit/client.rb b/lib/oktakit/client.rb index 0705b7b..b42548a 100644 --- a/lib/oktakit/client.rb +++ b/lib/oktakit/client.rb @@ -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