@itentialopensource/adapter-paragon_ems_device_manager 0.1.1 → 0.1.2
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 +55 -17
- package/CHANGELOG.md +8 -1
- package/package.json +1 -1
- package/refs?service=git-upload-pack +0 -0
package/AUTH.md
CHANGED
|
@@ -2,29 +2,67 @@
|
|
|
2
2
|
|
|
3
3
|
This document will go through the steps for authenticating the Paragon_ems_device_manager 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 Paragon_ems_device_manager adapter requires
|
|
5
|
+
### Multi Step Authentication
|
|
6
|
+
The Paragon_ems_device_manager adapter requires Muti 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 Paragon_ems_device_manager server and that it is running
|
|
10
10
|
2. Follow the steps in the README.md to import the adapter into IAP if you have not already done so
|
|
11
11
|
3. Use the properties below for the ```properties.authentication``` field
|
|
12
12
|
```json
|
|
13
|
-
"authentication": {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
13
|
+
"authentication": {
|
|
14
|
+
"auth_method": "multi_step_authentication",
|
|
15
|
+
"username": "admin@pronghorn",
|
|
16
|
+
"password": "admin",
|
|
17
|
+
"token": "",
|
|
18
|
+
"token_user_field": "username",
|
|
19
|
+
"token_password_field": "password",
|
|
20
|
+
"token_result_field": "token",
|
|
21
|
+
"token_URI_path": "",
|
|
22
|
+
"invalid_token_error": 401,
|
|
23
|
+
"token_timeout": 600000,
|
|
24
|
+
"token_cache": "local",
|
|
25
|
+
"auth_field": "header.headers.x-iam-token",
|
|
26
|
+
"auth_field_format": "{tokenp2}",
|
|
27
|
+
"auth_logging": true,
|
|
28
|
+
"client_id": "",
|
|
29
|
+
"client_secret": "",
|
|
30
|
+
"grant_type": "",
|
|
31
|
+
"multiStepAuthCalls": [
|
|
32
|
+
{
|
|
33
|
+
"name": "getFirstToken",
|
|
34
|
+
"requestFields": {
|
|
35
|
+
"user": {
|
|
36
|
+
"domain": "",
|
|
37
|
+
"name": "admin"
|
|
38
|
+
},
|
|
39
|
+
"password": "Secretpassword",
|
|
40
|
+
"methods": [
|
|
41
|
+
"PASSWORD"
|
|
42
|
+
]
|
|
43
|
+
},
|
|
44
|
+
"responseFields": {
|
|
45
|
+
"firstIdToken": "id_token",
|
|
46
|
+
"scopeId": "scopes.0.id"
|
|
47
|
+
},
|
|
48
|
+
"successfullResponseCode": 200
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"name": "getSecondToken",
|
|
52
|
+
"requestFields": {
|
|
53
|
+
"token": "{getFirstToken.responseFields.firstIdToken}",
|
|
54
|
+
"scopeId": "{getFirstToken.responseFields.scopeId}",
|
|
55
|
+
"methods": [
|
|
56
|
+
"TOKEN"
|
|
57
|
+
]
|
|
58
|
+
},
|
|
59
|
+
"responseFields": {
|
|
60
|
+
"tokenp2": "id_token"
|
|
61
|
+
},
|
|
62
|
+
"successfullResponseCode": 200
|
|
63
|
+
}
|
|
64
|
+
]
|
|
65
|
+
}
|
|
28
66
|
```
|
|
29
67
|
4. Restart the adapter. If your properties were set correctly, the adapter should go online.
|
|
30
68
|
|
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@itentialopensource/adapter-paragon_ems_device_manager",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "This adapter integrates with system described as: naas/ems/devicemanager/proto/common.proto.",
|
|
5
5
|
"main": "adapter.js",
|
|
6
6
|
"wizardVersion": "2.44.15",
|
|
Binary file
|