I am unable to authenticate JIRA using API Key(Basic Authentication)

Yogitha_Kilambi
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 2, 2024

I am unable to authenticate JIRA using API Key(Basic Authentication)

2 answers

0 votes
Kalyan Sattaluri
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 2, 2024

@Yogitha_Kilambi 

You cant directly use the API token.

You need to base64 encode your email:API token first

See here --> LINK

Then you take that encoded string and use it to authenticate in the format Basic<space>encodedstring

 

 

Kalyan Sattaluri
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 2, 2024

From above link, If you are on windows, replace bolded parts with your details, open power shell, copy paste / hit enter, you get the encoded string. then you pass Basic<space>encodedstring during auth

 

$Text = ‘user@example.com:api_token_string
$Bytes = [System.Text.Encoding]::UTF8.GetBytes($Text)
$EncodedText = [Convert]::ToBase64String($Bytes)
$EncodedText
0 votes
Dexter de Vera
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
May 2, 2024

Hi @Yogitha_Kilambi ,

Welcome to Atlassian Community,

Try to create API token for authentication.

https://support.atlassian.com/atlassian-account/docs/manage-api-tokens-for-your-atlassian-account/ 

Yogitha_Kilambi
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 2, 2024

I did create API Key but unable to authenticate it... with username, API Key and URI... though every input is correct.

 

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Site Admin
TAGS
AUG Leaders

Atlassian Community Events