Skip to content

401 with scoped access token #1546

@lobeck

Description

@lobeck

I have created a scoped PAT with scopes:

read:page:confluence
write:page:confluence

Due to #1199, the client is then initiated as follows:

confluence = Confluence(
    url=CONFLUENCE_BASE_URL,
    username=CONFLUENCE_USER,
    password=CONFLUENCE_API_TOKEN,
    cloud=True
)

Now when doing a call like

page = confluence.get_page_by_id(CONFLUENCE_PAGE_ID)

It results in a requests.exceptions.HTTPError: Unauthorized (401)

It works when using an unscoped access token. This is version 4.0.4.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions