@itentialopensource/adapter-thingspace 0.1.1 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AUTH.md +44 -16
- package/CHANGELOG.md +16 -1
- package/package.json +4 -4
- package/refs?service=git-upload-pack +0 -0
- package/report/adapterInfo.json +1 -1
package/AUTH.md
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
This document will go through the steps for authenticating the Thingspace adapter with Basic Authentication. Properly configuring the properties for an adapter in IAP is critical for getting the adapter online. You can read more about adapter authentication <a href="https://www.itential.com/automation-platform/integrations/adapters-resources/authentication/" target="_blank">HERE</a>.
|
|
4
4
|
|
|
5
|
-
###
|
|
6
|
-
The Thingspace adapter requires
|
|
5
|
+
### Multi Step Authentication
|
|
6
|
+
The Thingspace adapter requires Multi Step Authentication. If you change authentication methods, you should change this section accordingly and merge it back into the adapter repository.
|
|
7
7
|
|
|
8
8
|
STEPS
|
|
9
9
|
1. Ensure you have access to a Thingspace server and that it is running
|
|
@@ -11,20 +11,48 @@ STEPS
|
|
|
11
11
|
3. Use the properties below for the ```properties.authentication``` field
|
|
12
12
|
```json
|
|
13
13
|
"authentication": {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
14
|
+
"auth_method": "multi_step_authentication",
|
|
15
|
+
"multiStepAuthCalls": [
|
|
16
|
+
{
|
|
17
|
+
"name": "getAccessToken",
|
|
18
|
+
"requestFields": {
|
|
19
|
+
"grant_type": "client_credentials",
|
|
20
|
+
"header.Authorization": "Basic <token>"
|
|
21
|
+
},
|
|
22
|
+
"responseFields": {
|
|
23
|
+
"accessToken": "access_token"
|
|
24
|
+
},
|
|
25
|
+
"successfullResponseCode": 200
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"name": "getSessionToken",
|
|
29
|
+
"requestFields": {
|
|
30
|
+
"header.Authorization": "Bearer {getAccessToken.responseFields.accessToken}",
|
|
31
|
+
"username": "<username>",
|
|
32
|
+
"password": "<password>"
|
|
33
|
+
},
|
|
34
|
+
"responseFields": {
|
|
35
|
+
"token": "sessionToken"
|
|
36
|
+
},
|
|
37
|
+
"successfullResponseCode": 200
|
|
38
|
+
}
|
|
39
|
+
],
|
|
40
|
+
"token_timeout": 600000,
|
|
41
|
+
"token_cache": "local",
|
|
42
|
+
"invalid_token_error": 401,
|
|
43
|
+
"auth_field": [
|
|
44
|
+
"header.headers.VZ-M2M-Token",
|
|
45
|
+
"header.headers.Authorization"
|
|
46
|
+
],
|
|
47
|
+
"auth_field_format": [
|
|
48
|
+
"{token}",
|
|
49
|
+
"Bearer {getAccessToken.responseFields.accessToken}"
|
|
50
|
+
],
|
|
51
|
+
"auth_logging": false,
|
|
52
|
+
"client_id": "",
|
|
53
|
+
"client_secret": "",
|
|
54
|
+
"grant_type": ""
|
|
55
|
+
}
|
|
28
56
|
```
|
|
29
57
|
4. Restart the adapter. If your properties were set correctly, the adapter should go online.
|
|
30
58
|
|
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,20 @@
|
|
|
1
1
|
|
|
2
|
+
## 0.1.3 [02-02-2023]
|
|
3
|
+
|
|
4
|
+
* Bug fixes and performance improvements
|
|
5
|
+
|
|
6
|
+
See commit f5f408c
|
|
7
|
+
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
## 0.1.2 [02-02-2023]
|
|
11
|
+
|
|
12
|
+
* Bug fixes and performance improvements
|
|
13
|
+
|
|
14
|
+
See commit e9edc79
|
|
15
|
+
|
|
16
|
+
---
|
|
17
|
+
|
|
2
18
|
## 0.1.1 [02-02-2023]
|
|
3
19
|
|
|
4
20
|
* Bug fixes and performance improvements
|
|
@@ -6,4 +22,3 @@
|
|
|
6
22
|
See commit 4d71468
|
|
7
23
|
|
|
8
24
|
---
|
|
9
|
-
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@itentialopensource/adapter-thingspace",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"description": "This adapter integrates with system described as: ThingSpace.",
|
|
5
5
|
"main": "adapter.js",
|
|
6
6
|
"wizardVersion": "2.44.15",
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"author": "Itential",
|
|
53
53
|
"homepage": "https://gitlab.com/itentialopensource/adapters/adapter-thingspace#readme",
|
|
54
54
|
"dependencies": {
|
|
55
|
-
"@itentialopensource/adapter-utils": "^4.48.
|
|
55
|
+
"@itentialopensource/adapter-utils": "^4.48.7",
|
|
56
56
|
"ajv": "^6.12.0",
|
|
57
57
|
"axios": "^0.21.0",
|
|
58
58
|
"commander": "^2.20.0",
|
|
@@ -64,10 +64,10 @@
|
|
|
64
64
|
"mongodb": "^4.1.0",
|
|
65
65
|
"network-diagnostics": "^0.5.3",
|
|
66
66
|
"nyc": "^15.1.0",
|
|
67
|
+
"prompts": "^2.4.2",
|
|
67
68
|
"readline-sync": "^1.4.10",
|
|
68
69
|
"semver": "^7.3.2",
|
|
69
|
-
"winston": "^3.3.3"
|
|
70
|
-
"prompts": "^2.4.2"
|
|
70
|
+
"winston": "^3.3.3"
|
|
71
71
|
},
|
|
72
72
|
"devDependencies": {
|
|
73
73
|
"chai": "^4.3.4",
|
|
Binary file
|
package/report/adapterInfo.json
CHANGED