From e805074aedb98778c18947c0ed630cc6065ea287 Mon Sep 17 00:00:00 2001 From: Rafael Sales Date: Fri, 7 Oct 2022 21:45:55 -0300 Subject: [PATCH] Update README.md --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 41cc3552..eb55f720 100644 --- a/README.md +++ b/README.md @@ -148,8 +148,9 @@ api_token = API_TOKEN_OBTAINED_FROM_JIRA_UI options = { :site => 'http://mydomain.atlassian.net:443/', :context_path => '', - :auth_type => :basic, - :default_headers => { 'Authorization' => "Bearer #{api_token}"} + :username => '', + :password => api_token, + :auth_type => :basic } client = JIRA::Client.new(options)