Closed chcg closed 1 month ago
See also usage at jira plugin https://github.com/jenkinsci/jira-plugin/blob/273cfb4b331f9334ef1e1dab00d7d810debb8dd6/src/main/java/hudson/plugins/jira/JiraSessionFactory.java#L33 and https://github.com/jenkinsci/jira-plugin/blob/273cfb4b331f9334ef1e1dab00d7d810debb8dd6/src/main/java/hudson/plugins/jira/auth/BearerHttpAuthenticationHandler.java and
What feature do you want to see added?
PAT token support for Jira authentication as Bearer token, see https://confluence.atlassian.com/enterprise/using-personal-access-tokens-1026032365.html and there the section "Using PATs". I think it is not necessary to also support the creation of the PAT by the plugin that could be done by the user via Jira.
Don't mix that with Jira cloud service, see https://developer.atlassian.com/cloud/jira/platform/basic-auth-for-rest-apis/ where the token could still be used instead of the password to basic auth.
On impl see: https://community.atlassian.com/t5/Jira-questions/How-do-I-use-a-personal-access-token-PAT-in-jira-rest-java/qaq-p/1859167
There seems to exist a PR for the java client: https://bitbucket.org/atlassian/jira-rest-java-client/pull-requests/125 which is not merged yet.
Upstream changes
No response
Are you interested in contributing this feature?
No response