Earlier this month I converted from username/password to API token for my ruby script
options = {
:site => "<jira site>",
:context_path => "",
:auth_type => :basic,
"Authorization" => "Basic <base64 encoded email:apitoken>",
"Content-Type" => "application/json",
}
@client = JIRA::Client.new optionHowever, my ruby script only gets an HTTPError and when I try curl:
curl -D- -u <base64 encoded email:apitoken> -X GET -H "Content-Type: application/
json" <jira web page>
It prompts me:
Enter host password for user '<base64 encoded email:apitoken>':
If i enter the password curl gives me the web page. So I have two questions: 1) Why is curl prompting me and 2) why doesn't the script connect as it's using the same things as the curl command?