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
* feat: Use confluence.js library to retrieve also data about page children, not only pages. The new version 2.1.0 of confluence.js supports passing pagination options to get all children pages.
23
+
* chore: Update confluence.js to 2.1.0
24
+
* refactor: Adapt error handling to the new confluence.js error structure.
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
+3-3Lines changed: 3 additions & 3 deletions
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",
0 commit comments