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

Add support for using personal access token accessing Jira Data Center #14

Closed
christofferholmstedt opened this issue Jul 2, 2021 · 1 comment

Comments

@christofferholmstedt
Copy link
Contributor

christofferholmstedt commented Jul 2, 2021

During the last year Atlassian added support to Jira Data Center for using Personal Access Tokens to access Jira API instead of basic auth with username and password. It has been available in cloud for some time and basic auth with username and password is not allowed for the cloud anymore.

Related to this library the pycontribs/jira library does not support PAT login but can be fixed in local script/application by just changing the HTTP headers. Workaround/solution available in a comment by skaiaa at pycontribs/jira#989 (comment) a pull request is available at pycontribs/jira#991 but is blocked by continuous integration infrastructure issues tracked in pycontribs/jira#896

I just had a few minutes in June to look into how to solve this with the python-insight library but couldn't find any straight forward solution. I will look at it again in August/September and filing this issue so others can come with suggestions in advance on how to best solve this. If it is possible already today I'm happy with such an answer as well ;)

Notes

@dstengele
Copy link
Owner

I have just released a new version that splits the auth logic in multiple parameters. One of them is token_auth which takes the token as a String and uses it as the Bearer token. This works with the DC PATs.

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