@itentialopensource/adapter-beyond_trust 0.1.1
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/.eslintignore +6 -0
- package/.eslintrc.js +18 -0
- package/.gitlab/.gitkeep +0 -0
- package/.gitlab/issue_templates/.gitkeep +0 -0
- package/.gitlab/issue_templates/Default.md +17 -0
- package/.gitlab/issue_templates/bugReportTemplate.md +76 -0
- package/.gitlab/issue_templates/featureRequestTemplate.md +14 -0
- package/.jshintrc +0 -0
- package/AUTH.md +39 -0
- package/BROKER.md +199 -0
- package/CALLS.md +1004 -0
- package/CHANGELOG.md +9 -0
- package/CODE_OF_CONDUCT.md +43 -0
- package/CONTRIBUTING.md +13 -0
- package/ENHANCE.md +69 -0
- package/LICENSE +201 -0
- package/PROPERTIES.md +641 -0
- package/README.md +346 -0
- package/SUMMARY.md +9 -0
- package/SYSTEMINFO.md +11 -0
- package/TAB1.md +5 -0
- package/TAB2.md +2226 -0
- package/TROUBLESHOOT.md +47 -0
- package/adapter.js +12401 -0
- package/adapterBase.js +1452 -0
- package/entities/.generic/action.json +214 -0
- package/entities/.generic/schema.json +28 -0
- package/entities/.system/action.json +50 -0
- package/entities/.system/mockdatafiles/getToken-default.json +3 -0
- package/entities/.system/mockdatafiles/healthcheck-default.json +3 -0
- package/entities/.system/schema.json +19 -0
- package/entities/.system/schemaTokenReq.json +53 -0
- package/entities/.system/schemaTokenResp.json +53 -0
- package/entities/GroupPolicy/action.json +495 -0
- package/entities/GroupPolicy/mockdatafiles/apiConfigGroupPolicyIndex-default.json +18 -0
- package/entities/GroupPolicy/mockdatafiles/apiConfigGroupPolicyJumpGroupIndex-default.json +12 -0
- package/entities/GroupPolicy/mockdatafiles/apiConfigGroupPolicyJumpointsIndex-default.json +8 -0
- package/entities/GroupPolicy/mockdatafiles/apiConfigGroupPolicyMemberIndex-default.json +26 -0
- package/entities/GroupPolicy/mockdatafiles/apiConfigGroupPolicyTeamIndex-default.json +10 -0
- package/entities/GroupPolicy/mockdatafiles/apiConfigGroupPolicyVaultAccountIndex-default.json +7 -0
- package/entities/GroupPolicy/schema.json +119 -0
- package/entities/JumpClient/action.json +147 -0
- package/entities/JumpClient/mockdatafiles/apiConfigJumpClientIndex-default.json +29 -0
- package/entities/JumpClient/schema.json +124 -0
- package/entities/JumpGroup/action.json +208 -0
- package/entities/JumpGroup/mockdatafiles/apiConfigJumpGroupIndex-default.json +30 -0
- package/entities/JumpGroup/mockdatafiles/apiConfigJumpGroupUserIndex-default.json +7 -0
- package/entities/JumpGroup/schema.json +72 -0
- package/entities/JumpItem/action.json +370 -0
- package/entities/JumpItem/mockdatafiles/apiConfigJumpItemRemoteRdpIndex-default.json +52 -0
- package/entities/JumpItem/mockdatafiles/apiConfigJumpItemShellJumpIndex-default.json +70 -0
- package/entities/JumpItem/mockdatafiles/apiConfigJumpItemWebJumpIndex-default.json +38 -0
- package/entities/JumpItem/schema.json +91 -0
- package/entities/JumpItemRole/action.json +46 -0
- package/entities/JumpItemRole/mockdatafiles/apiConfigJumpItemRoleIndex-default.json +34 -0
- package/entities/JumpItemRole/schema.json +42 -0
- package/entities/JumpPolicy/action.json +127 -0
- package/entities/JumpPolicy/mockdatafiles/apiConfigJumpPolicyIndex-default.json +86 -0
- package/entities/JumpPolicy/schema.json +57 -0
- package/entities/Jumpoint/action.json +230 -0
- package/entities/Jumpoint/mockdatafiles/apiConfigJumpointIndex-default.json +50 -0
- package/entities/Jumpoint/schema.json +95 -0
- package/entities/OpenapiYaml/action.json +25 -0
- package/entities/OpenapiYaml/schema.json +19 -0
- package/entities/SecurityProvider/action.json +25 -0
- package/entities/SecurityProvider/mockdatafiles/apiConfigSecurityProviderIndex-default.json +26 -0
- package/entities/SecurityProvider/schema.json +41 -0
- package/entities/SessionPolicy/action.json +25 -0
- package/entities/SessionPolicy/mockdatafiles/apiConfigSessionPolicyIndex-default.json +20 -0
- package/entities/SessionPolicy/schema.json +41 -0
- package/entities/Team/action.json +208 -0
- package/entities/Team/mockdatafiles/apiConfigTeamIndex-default.json +14 -0
- package/entities/Team/mockdatafiles/apiConfigTeamUserIndex-default.json +7 -0
- package/entities/Team/schema.json +72 -0
- package/entities/User/action.json +106 -0
- package/entities/User/mockdatafiles/apiConfigUserIndex-default.json +18 -0
- package/entities/User/schema.json +67 -0
- package/entities/Vault/action.json +676 -0
- package/entities/Vault/mockdatafiles/apiConfigVaultAccountGroupAccountIndex-default.json +18 -0
- package/entities/Vault/mockdatafiles/apiConfigVaultAccountGroupUserIndex-default.json +22 -0
- package/entities/Vault/mockdatafiles/apiConfigVaultAccountIndex-default.json +22 -0
- package/entities/Vault/mockdatafiles/apiConfigVaultAccountUserIndex-default.json +6 -0
- package/entities/Vault/schema.json +128 -0
- package/entities/Vendor/action.json +208 -0
- package/entities/Vendor/mockdatafiles/apiConfigVendorIndex-default.json +32 -0
- package/entities/Vendor/mockdatafiles/apiConfigVendorUserIndex-default.json +17 -0
- package/entities/Vendor/schema.json +61 -0
- package/error.json +190 -0
- package/metadata.json +50 -0
- package/package.json +83 -0
- package/pronghorn.json +9958 -0
- package/propertiesDecorators.json +14 -0
- package/propertiesSchema.json +1569 -0
- package/refs?service=git-upload-pack +0 -0
- package/report/adapterInfo.json +10 -0
- package/report/bt-pra-configuration.openapi.yaml-OpenApi3.json +13155 -0
- package/report/creationReport.json +970 -0
- package/sampleProperties.json +256 -0
- package/test/integration/adapterTestBasicGet.js +83 -0
- package/test/integration/adapterTestConnectivity.js +142 -0
- package/test/integration/adapterTestIntegration.js +4162 -0
- package/test/unit/adapterBaseTestUnit.js +1024 -0
- package/test/unit/adapterTestUnit.js +6145 -0
- package/utils/adapterInfo.js +206 -0
- package/utils/addAuth.js +94 -0
- package/utils/artifactize.js +146 -0
- package/utils/basicGet.js +50 -0
- package/utils/checkMigrate.js +63 -0
- package/utils/entitiesToDB.js +179 -0
- package/utils/findPath.js +74 -0
- package/utils/methodDocumentor.js +273 -0
- package/utils/modify.js +152 -0
- package/utils/packModificationScript.js +35 -0
- package/utils/patches2bundledDeps.js +90 -0
- package/utils/pre-commit.sh +32 -0
- package/utils/removeHooks.js +20 -0
- package/utils/setup.js +33 -0
- package/utils/taskMover.js +309 -0
- package/utils/tbScript.js +239 -0
- package/utils/tbUtils.js +489 -0
- package/utils/testRunner.js +298 -0
- package/utils/troubleshootingAdapter.js +193 -0
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
{
|
|
2
|
+
"actions": [
|
|
3
|
+
{
|
|
4
|
+
"name": "apiConfigUserIndex",
|
|
5
|
+
"protocol": "REST",
|
|
6
|
+
"method": "GET",
|
|
7
|
+
"entitypath": "{base_path}/{version}/user?{query}",
|
|
8
|
+
"requestSchema": "schema.json",
|
|
9
|
+
"responseSchema": "schema.json",
|
|
10
|
+
"timeout": 0,
|
|
11
|
+
"sendEmpty": false,
|
|
12
|
+
"sendGetBody": false,
|
|
13
|
+
"requestDatatype": "JSON",
|
|
14
|
+
"responseDatatype": "JSON",
|
|
15
|
+
"headers": {},
|
|
16
|
+
"responseObjects": [
|
|
17
|
+
{
|
|
18
|
+
"type": "default",
|
|
19
|
+
"key": "",
|
|
20
|
+
"mockFile": "mockdatafiles/apiConfigUserIndex-default.json"
|
|
21
|
+
}
|
|
22
|
+
]
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"name": "apiConfigUserStore",
|
|
26
|
+
"protocol": "REST",
|
|
27
|
+
"method": "POST",
|
|
28
|
+
"entitypath": "{base_path}/{version}/user?{query}",
|
|
29
|
+
"requestSchema": "schema.json",
|
|
30
|
+
"responseSchema": "schema.json",
|
|
31
|
+
"timeout": 0,
|
|
32
|
+
"sendEmpty": false,
|
|
33
|
+
"requestDatatype": "JSON",
|
|
34
|
+
"responseDatatype": "JSON",
|
|
35
|
+
"headers": {},
|
|
36
|
+
"responseObjects": [
|
|
37
|
+
{
|
|
38
|
+
"type": "default",
|
|
39
|
+
"key": "",
|
|
40
|
+
"mockFile": ""
|
|
41
|
+
}
|
|
42
|
+
]
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"name": "apiConfigUserShow",
|
|
46
|
+
"protocol": "REST",
|
|
47
|
+
"method": "GET",
|
|
48
|
+
"entitypath": "{base_path}/{version}/user/{pathv1}?{query}",
|
|
49
|
+
"requestSchema": "schema.json",
|
|
50
|
+
"responseSchema": "schema.json",
|
|
51
|
+
"timeout": 0,
|
|
52
|
+
"sendEmpty": false,
|
|
53
|
+
"sendGetBody": false,
|
|
54
|
+
"requestDatatype": "JSON",
|
|
55
|
+
"responseDatatype": "JSON",
|
|
56
|
+
"headers": {},
|
|
57
|
+
"responseObjects": [
|
|
58
|
+
{
|
|
59
|
+
"type": "default",
|
|
60
|
+
"key": "",
|
|
61
|
+
"mockFile": ""
|
|
62
|
+
}
|
|
63
|
+
]
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"name": "apiConfigUserUpdate",
|
|
67
|
+
"protocol": "REST",
|
|
68
|
+
"method": "PATCH",
|
|
69
|
+
"entitypath": "{base_path}/{version}/user/{pathv1}?{query}",
|
|
70
|
+
"requestSchema": "schema.json",
|
|
71
|
+
"responseSchema": "schema.json",
|
|
72
|
+
"timeout": 0,
|
|
73
|
+
"sendEmpty": false,
|
|
74
|
+
"requestDatatype": "JSON",
|
|
75
|
+
"responseDatatype": "JSON",
|
|
76
|
+
"headers": {},
|
|
77
|
+
"responseObjects": [
|
|
78
|
+
{
|
|
79
|
+
"type": "default",
|
|
80
|
+
"key": "",
|
|
81
|
+
"mockFile": ""
|
|
82
|
+
}
|
|
83
|
+
]
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"name": "apiConfigUserDestroy",
|
|
87
|
+
"protocol": "REST",
|
|
88
|
+
"method": "DELETE",
|
|
89
|
+
"entitypath": "{base_path}/{version}/user/{pathv1}?{query}",
|
|
90
|
+
"requestSchema": "schema.json",
|
|
91
|
+
"responseSchema": "schema.json",
|
|
92
|
+
"timeout": 0,
|
|
93
|
+
"sendEmpty": false,
|
|
94
|
+
"requestDatatype": "JSON",
|
|
95
|
+
"responseDatatype": "JSON",
|
|
96
|
+
"headers": {},
|
|
97
|
+
"responseObjects": [
|
|
98
|
+
{
|
|
99
|
+
"type": "default",
|
|
100
|
+
"key": "",
|
|
101
|
+
"mockFile": ""
|
|
102
|
+
}
|
|
103
|
+
]
|
|
104
|
+
}
|
|
105
|
+
]
|
|
106
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"id": 7,
|
|
4
|
+
"security_provider_id": 4,
|
|
5
|
+
"username": "string",
|
|
6
|
+
"password": "string",
|
|
7
|
+
"public_display_name": "string",
|
|
8
|
+
"password_expiration": "string",
|
|
9
|
+
"email_address": "string",
|
|
10
|
+
"preferred_email_language": "en-us",
|
|
11
|
+
"two_factor_required": false,
|
|
12
|
+
"enabled": true,
|
|
13
|
+
"last_authentication": "string",
|
|
14
|
+
"failed_logins": 10,
|
|
15
|
+
"password_reset_next_login": false,
|
|
16
|
+
"created_at": "string"
|
|
17
|
+
}
|
|
18
|
+
]
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$id": "schema.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": "apiConfigUserIndex",
|
|
12
|
+
"enum": [
|
|
13
|
+
"apiConfigUserIndex",
|
|
14
|
+
"apiConfigUserStore",
|
|
15
|
+
"apiConfigUserShow",
|
|
16
|
+
"apiConfigUserUpdate",
|
|
17
|
+
"apiConfigUserDestroy"
|
|
18
|
+
],
|
|
19
|
+
"external_name": "ph_request_type"
|
|
20
|
+
},
|
|
21
|
+
"perPage": {
|
|
22
|
+
"type": "number",
|
|
23
|
+
"description": "The number of items to include a paginated response.",
|
|
24
|
+
"parse": false,
|
|
25
|
+
"encode": false,
|
|
26
|
+
"encrypt": {
|
|
27
|
+
"type": "AES",
|
|
28
|
+
"key": ""
|
|
29
|
+
},
|
|
30
|
+
"external_name": "per_page"
|
|
31
|
+
},
|
|
32
|
+
"currentPage": {
|
|
33
|
+
"type": "number",
|
|
34
|
+
"description": "The 1-based index of the desired page.",
|
|
35
|
+
"parse": false,
|
|
36
|
+
"encode": false,
|
|
37
|
+
"encrypt": {
|
|
38
|
+
"type": "AES",
|
|
39
|
+
"key": ""
|
|
40
|
+
},
|
|
41
|
+
"external_name": "current_page"
|
|
42
|
+
},
|
|
43
|
+
"securityProviderId": {
|
|
44
|
+
"type": "number",
|
|
45
|
+
"description": "Filters results to include only users in the security provider with the given id.",
|
|
46
|
+
"parse": false,
|
|
47
|
+
"encode": false,
|
|
48
|
+
"encrypt": {
|
|
49
|
+
"type": "AES",
|
|
50
|
+
"key": ""
|
|
51
|
+
},
|
|
52
|
+
"external_name": "security_provider_id"
|
|
53
|
+
},
|
|
54
|
+
"emailAddress": {
|
|
55
|
+
"type": "string",
|
|
56
|
+
"description": "Filters results to include only the user with the given email address.",
|
|
57
|
+
"parse": false,
|
|
58
|
+
"encode": false,
|
|
59
|
+
"encrypt": {
|
|
60
|
+
"type": "AES",
|
|
61
|
+
"key": ""
|
|
62
|
+
},
|
|
63
|
+
"external_name": "email_address"
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
"definitions": {}
|
|
67
|
+
}
|