node-jira-client icon indicating copy to clipboard operation
node-jira-client copied to clipboard

Auth error when using admin user

Open dnuzzolillo opened this issue 5 years ago • 1 comments

For some reason, when i try to use the admin account of my Jira server, it throws: 401 Basic Authentication Failure - Reason : AUTHENTICATED_FAILED

i'm preetty sure i'm using the right credentials cuz i can login on the web client with any problem.

`const jira = new JiraClient({

protocol: 'http',
host: 'jira.my-company.es',
port: '8080',
username: 'admin',
password: '12345',
apiVersion: '2',

}); (async () => { console.log(await jira.searchJira('status = "In Progress"')) })() `

is there any parameter that i'm missing?

dnuzzolillo avatar Dec 10 '20 15:12 dnuzzolillo

Question is old but maybe for somebody it will be useful

Basic authentication with passwords is deprecated.

You need to use the token instead of the password.

for more information https://developer.atlassian.com/cloud/confluence/deprecation-notice-basic-auth/

NamioL avatar Jul 13 '22 08:07 NamioL