50
Views
6
Comments
Solved
New Jira REST API Token length is not supported on Basic Authentication
Application Type
Service

Hello!

I need help with the Basic Authentication process of Jira's REST API. With the new updates, the number of characters of the API Key generated by Jira is no longer supported by the password field in Basic Authentication (supports up to 128 characters). Is there a solution that can be implemented to get the integration working again?

I was searching and one of the solutions indicated was that of custom authentication, but the option to create in this format does not appear in the method.

Any tips or suggestions will be greatly appreciated. Thanks in advance!

2023-04-06 11-24-23
Paulo Zacarias

Hi Caroline, 

Can you please provide more details about the API you referenced in this post?

Like the base URL, for instance. 

It will be easier for the community to help you if you provide more details.

Regards, 

PZ

2022-12-20 16-22-23
Caroline Caprini da Silveira

Hi @Paulo Zacarias ! Thanks for answering.

Of course, the base URL is https://<myenvironment>.atlassian.net. Here is how it's configured right now (the username and password were an email from the company and the old API Key, that was still supported.)

A request example is the following URL: https://<myenvironment>.atlassian.net/rest/api/3/issue/{issueIdOrKey}

2022-12-20 16-22-23
Caroline Caprini da Silveira

Hello! Just to give feedback about this: your solution worked! I used OnBeforeRequest to treat the authentication and with the email and the Atlassian API Key, it started returning all the information. 

Thank you so much!

2021-06-09 13-39-18
Agno Silveira
 
MVP

This solution also help me, thanks!

2024-01-12 13-38-48
Abhishek Babdi

Hey @Agno Silveira / @Caroline Caprini da Silveira I am stuck with this issue as well, can someone help me with clear explanation or snaps on how actually you implemented it. As it is bit confusing for me. Thank you in advance.

My query is listed in this form : https://www.outsystems.com/forums/discussion/104218/jira-rest-api-authentication-using-bearer-token/

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.