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: openapi/alfresco/Module.md
+16-10Lines changed: 16 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,25 +7,30 @@ This Alfresco Content Services REST APIs enable you to access to the core featur
7
7
8
8
Before using this connector in your Ballerina application, complete the following:
9
9
10
-
* Create a [Alfresco Account](https://www.alfresco.com/try-alfresco-acs).
11
-
* Obtain tokens by following [this guide](https://docs.alfresco.com/content-services/latest/develop/repo-ext-points/authentication/).
10
+
* Create an [Alfresco Account](https://www.alfresco.com/try-alfresco-acs).
11
+
* Once registered, you will receive an email with instructions to set up your Alfresco environment, including the default username and password. Use these credentials to access the Alfresco Content Services API.
12
+
* Note: This connector only supports Basic Authentication (username/password) and does not require or support bearer tokens.
12
13
13
14
## Quickstart
14
15
15
16
To use the Alfresco connector in your Ballerina application, update the .bal file as follows:
16
17
17
-
### Step 1: Import connector
18
+
### Step 1: Import the module
18
19
First, import the `ballerinax/alfresco` module into the Ballerina project.
19
20
```ballerina
20
21
import ballerinax/alfresco;
21
22
```
22
23
23
24
### Step 2: Create a new connector instance
24
-
Create a `alfresco:ClientConfig` with the `Bearer_Token` obtained, and initialize the connector with it.
25
+
Create a `alfresco:ConnectionConfig` using the Basic Authentication credentials (i.e: username and password), and initialize the connector with it.
25
26
```ballerina
26
-
alfresco:ClientConfig clientConfig = {
27
+
configurable string username = ?;
28
+
configurable string password = ?;
29
+
30
+
alfresco:ConnectionConfig clientConfig = {
27
31
auth: {
28
-
token: <Bearer_Token>
32
+
username,
33
+
password
29
34
}
30
35
};
31
36
alfresco:Client baseClient = check new (clientConfig, serviceURL);
0 commit comments