Hello. I’m attempting to build a Confluence Cloud connect application which accesses some resources related to the instance of confluence it’s installed on. This application is being built with Django if that’s of any consequence. To make create the Authorization header, I’m making use of a library named atlassian-jwt.
Whenever I make the request with the header Authorization: JWT <generated_token>, I get a 401 error. This error occurs for any resource I try to retrieve, not just groups. I’m now wondering if I have missed anything. This issue I’m having seems to be particular to Confluence as I have done the same for Jira and it works seamlessly.
Would be glad to receive any help I can get. Thanks in advance!
I finally got the reason.
For me the problem is the clientKey. I thought it is the clientKey of Atlassian tenant. But actually, it is the key defined in your descriptor. It is add-on’s key, which is defined by developer himself (probably you), like: ‘key’: f’com.yourcompany.jira.dev’.