You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: components/confluence-sync/README.md
+22-4Lines changed: 22 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -44,7 +44,7 @@ This library requires:
44
44
45
45
* A Confluence instance.
46
46
* The id of the Confluence space where the pages will be created.
47
-
*A personal access token to authenticate. You can create a personal access token following the instructions in the [Atlassian documentation](https://support.atlassian.com/atlassian-account/docs/manage-api-tokens-for-your-atlassian-account/).
47
+
*Valid authentication credentials to access the Confluence instance. It uses the `confluence.js` library internally, so it supports the [same authentication methods](https://github.com/MrRefactoring/confluence.js?tab=readme-ov-file#authentication) as it.
48
48
49
49
### Compatibility
50
50
@@ -68,7 +68,11 @@ import { ConfluenceSyncPages } from '@telefonica/confluence-sync';
The main class of the library. It receives a configuration object with the following properties:
215
223
216
224
*`url`: URL of the Confluence instance.
217
-
*`personalAccessToken`: Personal access token to authenticate in Confluence.
225
+
*`personalAccessToken`: Personal access token to authenticate in Confluence. To be DEPRECATED in future versions. Use the `authentication` property instead.
226
+
*`authentication`: Authentication options to access Confluence. It supports the following methods:
227
+
*`oauth2`: OAuth2 authentication. It requires:
228
+
*`accessToken`: Access token to authenticate.
229
+
*`basic`: Basic authentication.
230
+
*`email`: Email of the user.
231
+
*`apiToken`: API token to authenticate.
232
+
*`jwt`: JWT authentication.
233
+
*`issuer`: Issuer of the JWT.
234
+
*`secret`: Secret to sign the JWT.
235
+
*`expiryTimeSeconds`: Optional expiry time of the JWT in seconds.
218
236
*`spaceId`: Key of the space where the pages will be created.
219
237
*`rootPageId`: ID of the root page under the pages will be created. It only can be missing if the sync mode is `flat` and all the pages provided have an id.
220
238
*`logLevel`: One of `silly`, `debug`, `info`, `warn`, `error` or `silent`. Default is `silent`.
Copy file name to clipboardExpand all lines: components/confluence-sync/package.json
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
{
2
2
"name": "@telefonica/confluence-sync",
3
3
"description": "Creates/updates/deletes Confluence pages based on a list of objects containing the page contents. Supports nested pages and attachments upload",
Copy file name to clipboardExpand all lines: components/markdown-confluence-sync/README.md
+41-7Lines changed: 41 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -58,8 +58,8 @@ In order to be able to sync the markdown files with Confluence, you need to have
58
58
59
59
* A [Confluence](https://www.atlassian.com/es/software/confluence) instance.
60
60
* The id of the Confluence space where the pages will be created.
61
-
* A personal access token to authenticate. You can create a personal access token following the instructions in the [Atlassian documentation](https://support.atlassian.com/atlassian-account/docs/manage-api-tokens-for-your-atlassian-account/).
62
61
* Markdown file or files to be synced with Confluence. It can be as complex as a Docusaurus project docs folder, or as simple as a single README.md file.
62
+
* Valid authentication credentials to access the Confluence instance. It uses the `confluence.js` library internally, so it supports the [same authentication methods](https://github.com/MrRefactoring/confluence.js?tab=readme-ov-file#authentication) as it.
63
63
64
64
### Compatibility
65
65
@@ -144,7 +144,11 @@ module.exports = {
144
144
docsDir:"docs",
145
145
confluence: {
146
146
url:"https://my-confluence.es",
147
-
personalAccessToken:"*******",
147
+
authentication: {
148
+
oauth2: {
149
+
accessToken:"*******"
150
+
}
151
+
},
148
152
spaceKey:"MY-SPACE",
149
153
rootPageId:"my-root-page-id"
150
154
}
@@ -254,7 +258,11 @@ module.exports = {
254
258
filesPattern:"check*.{md,mdx}",
255
259
confluence: {
256
260
url:"https://my-confluence.es",
257
-
personalAccessToken:"*******",
261
+
authentication: {
262
+
oauth2: {
263
+
accessToken:"*******"
264
+
}
265
+
},
258
266
spaceKey:"MY-SPACE",
259
267
rootPageId:"my-root-page-id"
260
268
}
@@ -276,7 +284,17 @@ The namespace for the configuration of this library is `markdown-confluence-sync
276
284
|`filesMetadata`|`array`| Array of objects with the metadata of the files to sync. Each object must have the `path` property with the path of the file. For the rest of properties read the [Configuration per page](#configuration-per-page) section ||
277
285
|`docsDir`|`string`| Path to the docs directory. |`./docs`|
278
286
|`confluence.url`|`string`| URL of the Confluence instance. ||
279
-
|`confluence.personalAccessToken`|`string`| Personal access token to authenticate against the Confluence instance. ||
287
+
|`confluence.personalAccessToken`|`string`| Deprecated. Personal access token to authenticate against the Confluence instance. ||
288
+
|`confluence.authentication`|`object`| Object containing authentication options to access the Confluence instance. It supports the same methods [as the `confluence.js` library](https://github.com/MrRefactoring/confluence.js?tab=readme-ov-file#authentication). ||
Copy file name to clipboardExpand all lines: components/markdown-confluence-sync/package.json
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
{
2
2
"name": "@telefonica/markdown-confluence-sync",
3
3
"description": "Creates/updates/deletes Confluence pages based on markdown files in a directory. Supports Mermaid diagrams and per-page configuration using frontmatter metadata. Works great with Docusaurus",
0 commit comments