π I'm trying to get the confluence loader to work with a an OAuth 2.0 (3LO) confluence app.
I've set up the application with the correct callback URL and scopes, but when I use the access token with the loader, I get the following error:
{"message":"Current user not permitted to use Confluence","statusCode":403}
I'm setting up the loader as follows:
token = {
"access_token": result["access_token"],
"token_type": "Bearer",
}
oauth2_dict = {
"client_id": os.environ['CONFLUENCE_CLIENT_ID'],
"token": token,
}
logging.info("oauth2 dict: " + str(oauth2_dict))
c = download_loader('ConfluenceReader')
reader = c(base_url=r["base_url"], oauth2=oauth2_dict)
Does anyone have any pointers as to why this doesn't work?