Skip to content

Commit a32e8a3

Browse files
authored
Ingest: Confluence source connector - separate auth parameters for API token and personal access token (#546)
1 parent 7f0e55b commit a32e8a3

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

snippets/general-shared-text/confluence-cli-api.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ The following environment variables:
1313
- `CONFLUENCE_URL` - The target Confluence site's URL, represented by `--url` (CLI) or `url` (Python).
1414
- One of the following:
1515

16-
- For API token authentication: `CONFLUENCE_USERNAME` and `CONFLUENCE_TOKEN` - The name or email address,and API token of the target Confluence user, represented by `--username` (CLI) or `username` (Python) and `--token` (CLI) or `token` (Python), respectively.
17-
- For personal access token (PAT) authentication: `CONFLUENCE_TOKEN` - The PAT for the target Confluence user, represented by `--token` (CLI) or `token` (Python).
16+
- For API token authentication: `CONFLUENCE_USERNAME` and `CONFLUENCE_API_TOKEN` - The name or email address, and API token of the target Confluence user, represented by `--username` (CLI) or `username` (Python) and `--api-token` (CLI) or `api-token` (Python), respectively.
17+
- For personal access token (PAT) authentication: `CONFLUENCE_PERSONAL_ACCESS_TOKEN` - The PAT for the target Confluence user, represented by `--token` (CLI) or `token` (Python).
1818
- For password authentication: `CONFLUENCE_USERNAME` and `CONFLUENCE_PASSWORD` - The name or email address, and password of the target Confluence user, represented by `--username` (CLI) or `username` (Python) and `--password` (CLI) or `password` (Python), respectively.
1919

2020
Additional settings include:

snippets/source_connectors/confluence.sh.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# For API token authentication:
55
unstructured-ingest \
66
confluence \
7-
--token $CONFLUENCE_TOKEN \
7+
--api-token $CONFLUENCE_API_TOKEN \
88
--url $CONFLUENCE_URL \
99
--username $CONFLUENCE_USERNAME \
1010
--cloud \
@@ -24,7 +24,7 @@ unstructured-ingest \
2424
# For personal access token (PAT) authentication:
2525
unstructured-ingest \
2626
confluence \
27-
--token $CONFLUENCE_TOKEN \
27+
--token $CONFLUENCE_PERSONAL_ACCESS_TOKEN \
2828
--url $CONFLUENCE_URL \
2929
--spaces luke,paul \
3030
--max-num-of-spaces 500 \

snippets/source_connectors/confluence.v2.py.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ if __name__ == "__main__":
3636
# For API token authentication:
3737
source_connection_config=ConfluenceConnectionConfig(
3838
access_config=ConfluenceAccessConfig(
39-
token=os.getenv("CONFLUENCE_TOKEN")
39+
api_token=os.getenv("CONFLUENCE_API_TOKEN")
4040
),
4141
url=os.getenv("CONFLUENCE_URL"),
4242
username=os.getenv("CONFLUENCE_USERNAME"),
@@ -46,7 +46,7 @@ if __name__ == "__main__":
4646
# For personal access token (PAT) authentication:
4747
# source_connection_config=ConfluenceConnectionConfig(
4848
# access_config=ConfluenceAccessConfig(
49-
# token=os.getenv("CONFLUENCE_TOKEN")
49+
# token=os.getenv("CONFLUENCE_PERSON_ACCESS_TOKEN")
5050
# ),
5151
# url=os.getenv("CONFLUENCE_URL")
5252
# ),

0 commit comments

Comments
 (0)