From 9822cf35e376e86c25640a963e4d90c2ef17f913 Mon Sep 17 00:00:00 2001 From: Kevin Blase <53231329+kblase@users.noreply.github.com> Date: Mon, 8 Jan 2024 11:34:03 +0100 Subject: [PATCH] [confluence] documentation of token authentication (#1288) Co-authored-by: Kevin Blase --- docs/index.rst | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/docs/index.rst b/docs/index.rst index d7d14474b..0704ce2c3 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -161,7 +161,7 @@ Or reuse cookie file: cookies=cookie_dict) Or using Personal Access Token -Note: this method is valid for Jira Data center / server editions only! For Jira cloud, see below. +Note: this method is valid for Jira and Confluence (<7.9) Data center / server editions only! For Jira cloud, see below. First, create your access token (check https://confluence.atlassian.com/enterprise/using-personal-access-tokens-1026032365.html for details) Then, just provide the token to the constructor: @@ -173,6 +173,11 @@ Then, just provide the token to the constructor: token=jira_access_token ) + confluence = Confluence( + url='https://your-confluence-instance.company.com', + token=confluence_access_token + ) + To authenticate to the Atlassian Cloud APIs Jira, Confluence, ServiceDesk: .. code-block:: python