@itentialopensource/adapter-paragon_ems_device_manager 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 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
- ### Basic Authentication
6
- The Paragon_ems_device_manager adapter requires Basic Authentication. If you change authentication methods, you should change this section accordingly and merge it back into the adapter repository.
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
- "auth_method": "basic user_password",
15
- "username": "<username>",
16
- "password": "<password>",
17
- "token": "",
18
- "token_timeout": 1800000,
19
- "token_cache": "local",
20
- "invalid_token_error": 401,
21
- "auth_field": "header.headers.Authorization",
22
- "auth_field_format": "Basic {b64}{username}:{password}{/b64}",
23
- "auth_logging": false,
24
- "client_id": "",
25
- "client_secret": "",
26
- "grant_type": ""
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
@@ -1,4 +1,20 @@
1
1
 
2
+ ## 0.1.3 [09-19-2023]
3
+
4
+ * Bug fixes and performance improvements
5
+
6
+ See commit d9bd511
7
+
8
+ ---
9
+
10
+ ## 0.1.2 [09-19-2023]
11
+
12
+ * Bug fixes and performance improvements
13
+
14
+ See commit 318a557
15
+
16
+ ---
17
+
2
18
  ## 0.1.1 [07-20-2023]
3
19
 
4
20
  * Bug fixes and performance improvements
@@ -6,4 +22,3 @@
6
22
  See commit fbb4c81
7
23
 
8
24
  ---
9
-
@@ -4,7 +4,7 @@
4
4
  "name": "getToken",
5
5
  "protocol": "REST",
6
6
  "method": "POST",
7
- "entitypath": "{base_path}/{version}/login",
7
+ "entitypath": "/api/v2/login",
8
8
  "requestSchema": "schemaTokenReq.json",
9
9
  "responseSchema": "schemaTokenResp.json",
10
10
  "timeout": 0,
@@ -23,7 +23,7 @@
23
23
  "type": "AES",
24
24
  "key": ""
25
25
  },
26
- "external_name": "username"
26
+ "external_name": "userName"
27
27
  },
28
28
  "password": {
29
29
  "type": "string",
@@ -46,7 +46,7 @@
46
46
  "type": "AES",
47
47
  "key": ""
48
48
  },
49
- "external_name": "token"
49
+ "external_name": "accessToken"
50
50
  }
51
51
  },
52
52
  "definitions": {}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itentialopensource/adapter-paragon_ems_device_manager",
3
- "version": "0.1.1",
3
+ "version": "0.1.3",
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