Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auth error when using admin user #314

Open
dnuzzolillo opened this issue Dec 10, 2020 · 1 comment
Open

Auth error when using admin user #314

dnuzzolillo opened this issue Dec 10, 2020 · 1 comment

Comments

@dnuzzolillo
Copy link

dnuzzolillo commented Dec 10, 2020

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?

@NamioL
Copy link

NamioL commented Jul 13, 2022

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/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants