jira icon indicating copy to clipboard operation
jira copied to clipboard

Can't access JIRA due to authentication being deprecated

Open bahjat1993 opened this issue 4 years ago • 6 comments

I can't access the latest JIRA instances using this library. Every time i try to do so i get an error, "Basic authentication with passwords is deprecated". I've tried substituting my password for my API key but i get the same error.

The whole library won't work with out this fix for latest versions of JIRA :(

bahjat1993 avatar Jan 20 '21 00:01 bahjat1993

This package also supports OAuth, Kerberos, and JWT. Here is the document

yo-ga avatar Mar 18 '21 08:03 yo-ga

https://github.com/pycontribs/jira/pull/893#pullrequestreview-656687337

studioj avatar May 11 '21 13:05 studioj

@bahjat1993 can you confirm if its working properly with version 3.0.1

studioj avatar May 13 '21 16:05 studioj

attempted to login with basic_auth('email', 'api_token") this afternoon, and got a JiraError. It appears that this is not "fixed". #893 is a doc only change, and doesn't change the behaviour, which is something in the Jira library is attempting a non-token based basic_auth request.

It looks like #991 is opened to create a Token based auth type. It'd be great to expedite that so people working on scripts can use API token based basic auth.

j5awry avatar Aug 13 '21 18:08 j5awry

@j5awry would you be able to check out that PR and validate?

@adehad is working on a implementation to get the CI system also to run for jira cloud ...

Thanks for willing to contribute!

studioj avatar Aug 28 '21 10:08 studioj

The problem, as I have just experienced it, is that when you try to do token authentication and your credentials are wrong, you also get the same error message about basic auth being deprecated, even though you where trying to use a token.

So I think the error message needs to be changed in this case. It is extremely confusing currently.

bodograumann avatar Jan 12 '22 10:01 bodograumann