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.
I try to get groups - /wiki/rest/api/group
To generate the token I’m passing in (GET, https://my-domain.atlassian.net/wiki/rest/api/group, my-connect-app-key, shared-secret) into the encode_token function from the library above.
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!