Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

unable to call cloud JIRA API with Base64 encoded Userid:Password

Rajeev Kumar June 4, 2019

I am getting authorization error  even when i tried accessing with correct id password (with Base64 encoded Userid:Password)

 

error msg :

GET : InboundJaxrsResponse{ClientResponse{method=GET, uri=https://atradius-naa.atlassian.net/rest/api/2/project/TA, status=401, reason=Unauthorized}}
java.lang.Exception: Unable to connect to JIRA

 

Any possible reason for this?

1 answer

1 accepted

0 votes
Answer accepted
Dario B
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 6, 2019

Hi @Rajeev Kumar ,

Basic and Cookie authentication methods have been deprecated as announced long time ago. For details please see:

In order to authenticate your REST API calls towards Jira Cloud you should use the combination  email-address:API Token instead.

You can find the instructions on how to create an API Token in below page:

 

Let me know if this helps.

 

Cheers,
Dario

Rajeev Kumar June 6, 2019

do we have to encode with base64 (emailaddress:token)

Rajeev Kumar June 6, 2019

it worked after encoding, thanks!!!!

Like Dario B likes this
Dario B
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 7, 2019

You are very welcome @Rajeev Kumar

I am happy this helped :)     

Suggest an answer

Log in or Sign up to answer