Connect App JWT Token Giving 401 Error

Ye Hua October 31, 2024

I have my addon installed on my Jira Data Center instances and it had been working fine until I upgraded Jira version to be 9.12.14. When I am calling Jira REST APIs (eg: /rest/api/2/issue/123) with JWT token in the Authorization header, I am getting 401 responses with this error message:

"You do not have the permission to see the specified issue.\",\"Login Required\"

I am sure that I am using the correct shared secret for the addon and generating the JWT token in the correct way, otherwise I would get JWT verification errors.

Nothing else has changed. Why does it suddenly stop working? The error message kinda indicates that it is related to permission issue or Jira is not finding the Jira user associated to the addon? 

What should I be looking at?

Thanks

1 answer

0 votes
YY Brother
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
October 31, 2024

Hi @Ye Hua 

Welcome to our Community.

Please check if you could access this issue directly in our web browser through {{url}}/rest/api/2/issue/123. 

What app? Maybe you could raise a ticke to the APP support team.

Thanks,

YY Bro

Ye Hua November 1, 2024

hi @YY Brother 

it is actually my own app and one of my customers on Jira Data Center is having this issue. other customers are having no problem.

i found this old post here maybe i need to ask my customer to turn on DEBUG for com.atlassian.jwt and see if we can see the reason for 401 in the logs

Ye Hua November 3, 2024

hmmm i turned on com.atlassian.jwt but not seeing anything in the atlassian-jira.log. 

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
VERSION
9.12.14
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events