Forums

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

JIRA REST API for local installation: Is there an EASY authentication method?

Christian S September 7, 2018

I want to write a small script locally accessing a local Jira server. My problem is finding a fast and easy authentication method.

According to https://developer.atlassian.com/cloud/jira/platform/jira-rest-api-cookie-based-authentication/ cookie authentication is depracated.

According to https://developer.atlassian.com/cloud/jira/platform/jira-rest-api-basic-authentication/ basic authentication with password is deprecated.

According to this answer https://community.atlassian.com/t5/Jira-questions/Create-API-token-for-a-user-in-Jira-Server-Locally/qaq-p/834864 Basic Auth with Tokens is not possible on a local insallation, since you cannot create a token.

So, the only possible options is OAuth - which seems complicated and way over the top for a tiny script running on a the same local machine as the Jira server. So, what option to choose? Am I missing something?

2 answers

1 accepted

1 vote
Answer accepted
Charlie Misonne
Community Champion
September 7, 2018

Hi Christian

The link you are referring to is only applicable to Jira Cloud. As you are on a local installation you must be on a server instance.

I'm not aware of any deprecation of authentication methods for Jira Server.

Please check out this documentation page. Basic auth should work fine

0 votes
Arun_Thundyill_Saseendran
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.
September 7, 2018

Hi @Christian S

As @Charlie Misonne has mentioned, if you are using a local instance and you are using the script in your env, then basic authentication is good enough and is not deprecated.

If you are using the cloud instance, then you can use the basic authentication with username and API token instead of password. 

Only the Basic Authentication with username and password is deprecated. The username with API token basic authentication is still supported.

 

- Arun

Suggest an answer

Log in or Sign up to answer