@itentialopensource/adapter-paragon_iam 0.2.4 → 0.3.0

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.
@@ -25,6 +25,46 @@
25
25
  }
26
26
  ]
27
27
  },
28
+ {
29
+ "name": "MFA_Step_1",
30
+ "protocol": "REST",
31
+ "method": "POST",
32
+ "entitypath": "{base_path}/{version}/iam/authenticate",
33
+ "requestSchema": "schemaTokenReq_MFA_Step_1.json",
34
+ "responseSchema": "schemaTokenResp_MFA_Step_1.json",
35
+ "timeout": 0,
36
+ "sendEmpty": false,
37
+ "requestDatatype": "JSON",
38
+ "responseDatatype": "JSON",
39
+ "headers": {},
40
+ "responseObjects": [
41
+ {
42
+ "type": "default",
43
+ "key": "",
44
+ "mockFile": "mockdatafiles/MFA_Step_1-default.json"
45
+ }
46
+ ]
47
+ },
48
+ {
49
+ "name": "MFA_Step_2",
50
+ "protocol": "REST",
51
+ "method": "POST",
52
+ "entitypath": "{base_path}/{version}/iam/authenticate",
53
+ "requestSchema": "schemaTokenReq_MFA_Step_2.json",
54
+ "responseSchema": "schemaTokenResp_MFA_Step_2.json",
55
+ "timeout": 0,
56
+ "sendEmpty": false,
57
+ "requestDatatype": "JSON",
58
+ "responseDatatype": "JSON",
59
+ "headers": {},
60
+ "responseObjects": [
61
+ {
62
+ "type": "default",
63
+ "key": "",
64
+ "mockFile": "mockdatafiles/MFA_Step_2-default.json"
65
+ }
66
+ ]
67
+ },
28
68
  {
29
69
  "name": "healthcheck",
30
70
  "protocol": "REST",
@@ -0,0 +1,31 @@
1
+ {
2
+ "status": "AUTHENTICATED",
3
+ "user_id": "string",
4
+ "id_token": "eyJh",
5
+ "token": {
6
+ "user_id": "string",
7
+ "user_name": "admin",
8
+ "iat": "string",
9
+ "exp": "string",
10
+ "unique_identifier": "string",
11
+ "identity_provider_type": "Local"
12
+ },
13
+ "scopes": [
14
+ {
15
+ "id": "string",
16
+ "name": "default",
17
+ "display_name": "default",
18
+ "type": "string"
19
+ },
20
+ {
21
+ "id": "string",
22
+ "name": "string",
23
+ "display_name": "string",
24
+ "type": "Tenant",
25
+ "parent_id": "string",
26
+ "parent_name": "default",
27
+ "parent_type": "string"
28
+ }
29
+ ],
30
+ "identity_provider_type": "Local"
31
+ }
@@ -0,0 +1,107 @@
1
+ {
2
+ "status": "AUTHENTICATED",
3
+ "user_id": "string",
4
+ "id_token": "eyJhbGc",
5
+ "token": {
6
+ "user_id": "string",
7
+ "user_name": "admin",
8
+ "iat": "string",
9
+ "exp": "string",
10
+ "roles": [
11
+ {
12
+ "id": "string",
13
+ "name": "string",
14
+ "type": "string",
15
+ "predefined": true
16
+ }
17
+ ],
18
+ "intents": [],
19
+ "scope": {
20
+ "id": "string",
21
+ "name": "default",
22
+ "type": "string",
23
+ "display_name": "default"
24
+ },
25
+ "capabilities": [
26
+ {
27
+ "service": "string",
28
+ "methods": []
29
+ },
30
+ {
31
+ "service": "string",
32
+ "methods": []
33
+ },
34
+ {
35
+ "service": "string",
36
+ "methods": []
37
+ },
38
+ {
39
+ "service": "string",
40
+ "methods": []
41
+ },
42
+ {
43
+ "service": "string",
44
+ "methods": []
45
+ },
46
+ {
47
+ "service": "string",
48
+ "methods": []
49
+ },
50
+ {
51
+ "service": "string",
52
+ "methods": []
53
+ },
54
+ {
55
+ "service": "string",
56
+ "methods": []
57
+ },
58
+ {
59
+ "service": "string",
60
+ "methods": []
61
+ },
62
+ {
63
+ "service": "string",
64
+ "methods": []
65
+ },
66
+ {
67
+ "service": "string",
68
+ "methods": []
69
+ },
70
+ {
71
+ "service": "string",
72
+ "methods": []
73
+ },
74
+ {
75
+ "service": "string",
76
+ "methods": []
77
+ },
78
+ {
79
+ "service": "string",
80
+ "methods": []
81
+ },
82
+ {
83
+ "service": "string",
84
+ "methods": []
85
+ },
86
+ {
87
+ "service": "string",
88
+ "methods": []
89
+ },
90
+ {
91
+ "service": "string",
92
+ "methods": []
93
+ },
94
+ {
95
+ "service": "string",
96
+ "methods": []
97
+ },
98
+ {
99
+ "service": "string",
100
+ "methods": []
101
+ }
102
+ ],
103
+ "unique_identifier": "string",
104
+ "identity_provider_type": "Local"
105
+ },
106
+ "identity_provider_type": "Local"
107
+ }
@@ -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",
@@ -0,0 +1,19 @@
1
+ {
2
+ "$id": ".system-schemaTokenReq_MFA_Step_1.json",
3
+ "type": "object",
4
+ "schema": "http://json-schema.org/draft-07/schema#",
5
+ "translate": true,
6
+ "dynamicfields": true,
7
+ "properties": {
8
+ "ph_request_type": {
9
+ "type": "string",
10
+ "description": "type of request (internal to adapter)",
11
+ "default": "MFA_Step_1",
12
+ "enum": [
13
+ "MFA_Step_1"
14
+ ],
15
+ "external_name": "ph_request_type"
16
+ }
17
+ },
18
+ "definitions": {}
19
+ }
@@ -0,0 +1,24 @@
1
+ {
2
+ "$id": ".system-schemaTokenReq_MFA_Step_2.json",
3
+ "type": "object",
4
+ "schema": "http://json-schema.org/draft-07/schema#",
5
+ "translate": true,
6
+ "dynamicfields": true,
7
+ "properties": {
8
+ "ph_request_type": {
9
+ "type": "string",
10
+ "description": "type of request (internal to adapter)",
11
+ "default": "MFA_Step_2",
12
+ "enum": [
13
+ "MFA_Step_2"
14
+ ],
15
+ "external_name": "ph_request_type"
16
+ },
17
+ "scopeId": {
18
+ "type": "string",
19
+ "description": "scopeId",
20
+ "external_name": "scope_id"
21
+ }
22
+ },
23
+ "definitions": {}
24
+ }
@@ -0,0 +1,38 @@
1
+ {
2
+ "$id": ".system-schemaTokenResp_MFA_Step_1.json",
3
+ "type": "object",
4
+ "schema": "http://json-schema.org/draft-07/schema#",
5
+ "translate": true,
6
+ "dynamicfields": false,
7
+ "properties": {
8
+ "ph_request_type": {
9
+ "type": "string",
10
+ "description": "type of request (internal to adapter)",
11
+ "default": "MFA_Step_1",
12
+ "enum": [
13
+ "MFA_Step_1"
14
+ ],
15
+ "external_name": "ph_request_type"
16
+ },
17
+ "token": {
18
+ "description": "token returned by system",
19
+ "parse": false,
20
+ "encode": false,
21
+ "placement": "BODY",
22
+ "external_name": "id_token"
23
+ },
24
+ "tokenp2": {
25
+ "description": "token returned by system",
26
+ "parse": false,
27
+ "encode": false,
28
+ "placement": "BODY",
29
+ "encrypt": {
30
+ "type": "AES",
31
+ "key": ""
32
+ },
33
+ "external_name": "scopes.0.id"
34
+ }
35
+
36
+ },
37
+ "definitions": {}
38
+ }
@@ -0,0 +1,33 @@
1
+ {
2
+ "$id": ".system-schemaTokenResp_MFA_Step_2.json",
3
+ "type": "object",
4
+ "schema": "http://json-schema.org/draft-07/schema#",
5
+ "translate": true,
6
+ "dynamicfields": true,
7
+ "properties": {
8
+ "ph_request_type": {
9
+ "type": "string",
10
+ "description": "type of request (internal to adapter)",
11
+ "default": "MFA_Step_2",
12
+ "enum": [
13
+ "MFA_Step_2"
14
+ ],
15
+ "external_name": "ph_request_type"
16
+ },
17
+ "token": {
18
+ "description": "token returned by system",
19
+ "parse": false,
20
+ "encode": false,
21
+ "placement": "BODY",
22
+ "external_name": "token"
23
+ },
24
+ "tokenp2": {
25
+ "description": "token returned by system",
26
+ "parse": false,
27
+ "encode": false,
28
+ "placement": "BODY",
29
+ "external_name": "id_token"
30
+ }
31
+ },
32
+ "definitions": {}
33
+ }
package/metadata.json CHANGED
@@ -18,37 +18,41 @@
18
18
  ],
19
19
  "tags": [
20
20
  "Security Policy Management",
21
- "Configuration & Compliance",
22
- "Network Infrastructure Changes",
23
- "Software Upgrades & Device Maintenance"
21
+ "Configuration & Compliance"
24
22
  ],
25
23
  "useCases": [
26
24
  "Security Group updates",
27
25
  "Security Rule Removal",
28
- "Security Rule Creation",
29
- "Run network compliance checks and remediation",
30
- "Determine configuration drift",
31
- "Device Onboarding",
32
- "Software Upgrade",
33
- "Firewall Configuration backup or restore"
26
+ "Security Rule Creation"
34
27
  ],
35
28
  "deprecated": {
36
29
  "isDeprecated": false
37
30
  },
38
31
  "brokerSince": "",
32
+ "authMethods": [
33
+ {
34
+ "type": "Multi Factor Auth",
35
+ "primary": true
36
+ }
37
+ ],
39
38
  "documentation": {
40
39
  "storeLink": "",
41
40
  "npmLink": "https://www.npmjs.com/package/@itentialopensource/adapter-paragon_iam",
42
- "repoLink": "https://gitlab.com/itentialopensource/adapters/security/adapter-paragon_iam",
41
+ "repoLink": "https://gitlab.com/itentialopensource/adapters/adapter-paragon_iam",
43
42
  "docLink": "",
44
43
  "demoLinks": [],
45
- "trainingLinks": [],
44
+ "trainingLinks": [
45
+ {
46
+ "title": "Itential Academy",
47
+ "link": "https://www.itential.com/itential-academy/"
48
+ }
49
+ ],
46
50
  "faqLink": "https://docs.itential.com/opensource/docs/troubleshooting-an-adapter",
47
51
  "contributeLink": "https://gitlab.com/itentialopensource/adapters/contributing-guide",
48
52
  "issueLink": "https://itential.atlassian.net/servicedesk/customer/portals",
49
53
  "webLink": "",
50
- "vendorLink": "",
51
- "productLink": "",
54
+ "vendorLink": "https://www.juniper.net/us/en.html",
55
+ "productLink": "https://www.juniper.net/documentation/product/us/en/paragon-automation/",
52
56
  "apiLinks": []
53
57
  },
54
58
  "assets": [],
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@itentialopensource/adapter-paragon_iam",
3
- "version": "0.2.4",
3
+ "version": "0.3.0",
4
4
  "description": "This adapter integrates with system described as: Paragon Pathfinder Iam.",
5
5
  "main": "adapter.js",
6
6
  "wizardVersion": "2.44.7",
7
- "engineVersion": "1.67.14",
7
+ "engineVersion": "1.67.19",
8
8
  "adapterType": "http",
9
9
  "scripts": {
10
10
  "artifactize": "npm i && node utils/packModificationScript.js",
@@ -15,7 +15,6 @@
15
15
  "test:baseunit": "mocha test/unit/adapterBaseTestUnit.js --LOG=error",
16
16
  "test:unit": "mocha test/unit/adapterTestUnit.js --LOG=error",
17
17
  "test:integration": "mocha test/integration/adapterTestIntegration.js --LOG=error",
18
- "test:cover": "nyc --reporter html --reporter text mocha --reporter dot test/*",
19
18
  "test": "npm run test:baseunit && npm run test:unit && npm run test:integration",
20
19
  "adapter:install": "npm i && node utils/tbScript.js install",
21
20
  "adapter:checkMigrate": "node utils/checkMigrate.js",
@@ -43,15 +42,15 @@
43
42
  ],
44
43
  "license": "Apache-2.0",
45
44
  "engines": {
46
- "node": ">= 8.0.0",
45
+ "node": ">= 14.0.0",
47
46
  "npm": ">= 6.0.0"
48
47
  },
49
48
  "repository": {
50
49
  "type": "git",
51
- "url": "git@gitlab.com:itentialopensource/adapters/security/adapter-paragon_iam.git"
50
+ "url": "git@gitlab.com:itentialopensource/adapters/adapter-paragon_iam.git"
52
51
  },
53
52
  "author": "Itential",
54
- "homepage": "https://gitlab.com/itentialopensource/adapters/security/adapter-paragon_iam#readme",
53
+ "homepage": "https://gitlab.com/itentialopensource/adapters/adapter-paragon_iam#readme",
55
54
  "dependencies": {
56
55
  "@itentialopensource/adapter-utils": "^5.3.10",
57
56
  "acorn": "^8.10.0",
@@ -64,7 +63,6 @@
64
63
  "mocha": "^10.3.0",
65
64
  "mocha-param": "^2.0.1",
66
65
  "mongodb": "^4.16.0",
67
- "nyc": "^15.1.0",
68
66
  "ping": "^0.4.4",
69
67
  "prompts": "^2.4.2",
70
68
  "readline-sync": "^1.4.10",
@@ -945,6 +945,11 @@
945
945
  "devicebroker": {
946
946
  "type": "object",
947
947
  "properties": {
948
+ "enabled": {
949
+ "type": "boolean",
950
+ "description": "Whether or not the device broker calls have been mapped",
951
+ "default": false
952
+ },
948
953
  "getDevice": {
949
954
  "type": "array",
950
955
  "description": "Broker call(s) to getDevice",
Binary file
@@ -1,10 +1,10 @@
1
1
  {
2
- "version": "0.1.1",
3
- "configLines": 30774,
2
+ "version": "0.2.4",
3
+ "configLines": 30779,
4
4
  "scriptLines": 1783,
5
5
  "codeLines": 17760,
6
- "testLines": 18638,
6
+ "testLines": 18637,
7
7
  "testCases": 691,
8
- "totalCodeLines": 38181,
8
+ "totalCodeLines": 38180,
9
9
  "wfTasks": 210
10
10
  }
@@ -0,0 +1,120 @@
1
+ {
2
+ "errors": [],
3
+ "statistics": [
4
+ {
5
+ "owner": "errorJson",
6
+ "description": "New adapter errors available for use",
7
+ "value": 0
8
+ },
9
+ {
10
+ "owner": "errorJson",
11
+ "description": "Adapter errors no longer available for use",
12
+ "value": 0
13
+ },
14
+ {
15
+ "owner": "errorJson",
16
+ "description": "Adapter errors that have been updated (e.g. recommendation changes)",
17
+ "value": 31
18
+ },
19
+ {
20
+ "owner": "packageJson",
21
+ "description": "Number of production dependencies",
22
+ "value": 16
23
+ },
24
+ {
25
+ "owner": "packageJson",
26
+ "description": "Number of development dependencies",
27
+ "value": 6
28
+ },
29
+ {
30
+ "owner": "packageJson",
31
+ "description": "Number of npm scripts",
32
+ "value": 21
33
+ },
34
+ {
35
+ "owner": "packageJson",
36
+ "description": "Runtime Library dependency",
37
+ "value": "^5.3.10"
38
+ },
39
+ {
40
+ "owner": "propertiesSchemaJson",
41
+ "description": "Adapter properties defined in the propertiesSchema file",
42
+ "value": 78
43
+ },
44
+ {
45
+ "owner": "markdown",
46
+ "description": "Number of lines in the README.md",
47
+ "value": 344
48
+ },
49
+ {
50
+ "owner": "markdown",
51
+ "description": "Number of lines in the SUMMARY.md",
52
+ "value": 9
53
+ },
54
+ {
55
+ "owner": "markdown",
56
+ "description": "Number of lines in the PROPERTIES.md",
57
+ "value": 647
58
+ },
59
+ {
60
+ "owner": "markdown",
61
+ "description": "Number of lines in the TROUBLESHOOT.md",
62
+ "value": 48
63
+ },
64
+ {
65
+ "owner": "markdown",
66
+ "description": "Number of lines in the ENHANCE.md",
67
+ "value": 70
68
+ },
69
+ {
70
+ "owner": "markdown",
71
+ "description": "Number of lines in the BROKER.md",
72
+ "value": 70
73
+ },
74
+ {
75
+ "owner": "unitTestJS",
76
+ "description": "Number of lines of code in unit tests",
77
+ "value": 6685
78
+ },
79
+ {
80
+ "owner": "unitTestJS",
81
+ "description": "Number of unit tests",
82
+ "value": 427
83
+ },
84
+ {
85
+ "owner": "integrationTestJS",
86
+ "description": "Number of lines of code in integration tests",
87
+ "value": 10700
88
+ },
89
+ {
90
+ "owner": "integrationTestJS",
91
+ "description": "Number of integration tests",
92
+ "value": 194
93
+ },
94
+ {
95
+ "owner": "staticFile",
96
+ "description": "Number of lines of code in adapterBase.js",
97
+ "value": 1453
98
+ },
99
+ {
100
+ "owner": "staticFile",
101
+ "description": "Number of static files added",
102
+ "value": 36
103
+ },
104
+ {
105
+ "owner": "Overall",
106
+ "description": "Total lines of Code",
107
+ "value": 18838
108
+ },
109
+ {
110
+ "owner": "Overall",
111
+ "description": "Total Tests",
112
+ "value": 621
113
+ },
114
+ {
115
+ "owner": "Overall",
116
+ "description": "Total Files",
117
+ "value": 6
118
+ }
119
+ ]
120
+ }