Find answers from the community

Updated last year

πŸ‘‹ I'm trying to get the confluence

πŸ‘‹ 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:
Plain Text
{"message":"Current user not permitted to use Confluence","statusCode":403}


I'm setting up the loader as follows:
Plain Text
        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?
W
H
6 comments
Seems like your account does not have the proper access to use confluence via token.
I agree - this is a demo account i've set up so I am the owner. Are there any additional steps I need to take?
No I dont think so, I have tried this somewhere in the past too πŸ˜…
I had just created the confluence site for myself and from their create a token and it worked for me.
Did you create an API token in confluence or create a confluence app?
API token in Confluence
thanks, i'll try that
Add a reply
Sign up and join the conversation on Discord