@rockcarver/frodo-lib 0.16.2-2 → 0.16.2-4
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/CHANGELOG.md +9 -1
- package/cjs/api/AgentApi.js +221 -0
- package/cjs/api/AgentApi.js.map +1 -0
- package/cjs/api/AgentApi.test.js.map +1 -0
- package/cjs/api/ApiTypes.js.map +1 -1
- package/cjs/api/BaseApi.js +17 -13
- package/cjs/api/BaseApi.js.map +1 -1
- package/cjs/ext/axios-curlirize/curlirize.js +47 -0
- package/cjs/ext/axios-curlirize/curlirize.js.map +1 -0
- package/cjs/ext/axios-curlirize/lib/CurlHelper.js +74 -0
- package/cjs/ext/axios-curlirize/lib/CurlHelper.js.map +1 -0
- package/cjs/index.js +5 -1
- package/cjs/index.js.map +1 -1
- package/cjs/ops/AgentOps.js +805 -0
- package/cjs/ops/AgentOps.js.map +1 -0
- package/cjs/ops/AgentOps.test.js.map +1 -0
- package/cjs/ops/AuthenticateOps.js +8 -8
- package/cjs/ops/AuthenticateOps.js.map +1 -1
- package/cjs/ops/JourneyOps.test.js.map +1 -1
- package/cjs/ops/OpsTypes.js.map +1 -1
- package/cjs/test/mocks/AgentApi/deleteAgentByTypeAndId/IdentityGatewayAgent/ajays_client.json +22 -0
- package/cjs/test/mocks/AgentApi/deleteAgentByTypeAndId/IdentityGatewayAgent/api_client.json +22 -0
- package/cjs/test/mocks/AgentApi/deleteAgentByTypeAndId/IdentityGatewayAgent/ig_chico.json +22 -0
- package/cjs/test/mocks/AgentApi/deleteAgentByTypeAndId/IdentityGatewayAgent/ig_mytestrun_com.json +32 -0
- package/cjs/test/mocks/AgentApi/deleteAgentByTypeAndId/J2EEAgent/javaAgent.json +623 -0
- package/cjs/test/mocks/AgentApi/deleteAgentByTypeAndId/J2EEAgent/tomcatagent.json +630 -0
- package/cjs/test/mocks/AgentApi/deleteAgentByTypeAndId/WebAgent/apacheagent.json +456 -0
- package/cjs/test/mocks/AgentApi/deleteAgentByTypeAndId/WebAgent/webserver.json +455 -0
- package/cjs/test/mocks/AgentApi/findAgentById/ajays_client.json +19 -0
- package/cjs/test/mocks/AgentApi/findAgentById/apacheagent.json +142 -0
- package/cjs/test/mocks/AgentApi/findAgentById/api_client.json +19 -0
- package/cjs/test/mocks/AgentApi/findAgentById/ig_chico.json +19 -0
- package/cjs/test/mocks/AgentApi/findAgentById/ig_mytestrun_com.json +29 -0
- package/cjs/test/mocks/AgentApi/findAgentById/javaAgent.json +190 -0
- package/cjs/test/mocks/AgentApi/findAgentById/tomcatagent.json +191 -0
- package/cjs/test/mocks/AgentApi/findAgentById/webserver.json +144 -0
- package/cjs/test/mocks/AgentApi/findAgentByTypeAndId/IdentityGatewayAgent/ajays_client.json +23 -0
- package/cjs/test/mocks/AgentApi/findAgentByTypeAndId/IdentityGatewayAgent/api_client.json +22 -0
- package/cjs/test/mocks/AgentApi/findAgentByTypeAndId/IdentityGatewayAgent/ig_chico.json +22 -0
- package/cjs/test/mocks/AgentApi/findAgentByTypeAndId/IdentityGatewayAgent/ig_mytestrun_com.json +33 -0
- package/cjs/test/mocks/AgentApi/findAgentByTypeAndId/J2EEAgent/javaAgent.json +193 -0
- package/cjs/test/mocks/AgentApi/findAgentByTypeAndId/J2EEAgent/tomcatagent.json +195 -0
- package/cjs/test/mocks/AgentApi/findAgentByTypeAndId/WebAgent/apacheagent.json +145 -0
- package/cjs/test/mocks/AgentApi/findAgentByTypeAndId/WebAgent/webserver.json +148 -0
- package/cjs/test/mocks/AgentApi/findAgentByTypeAndId/not_found.json +8 -0
- package/cjs/test/mocks/AgentApi/getAgentByTypeAndId/IdentityGatewayAgent/ajays_client.json +22 -0
- package/cjs/test/mocks/AgentApi/getAgentByTypeAndId/IdentityGatewayAgent/api_client.json +22 -0
- package/cjs/test/mocks/AgentApi/getAgentByTypeAndId/IdentityGatewayAgent/ig_chico.json +22 -0
- package/cjs/test/mocks/AgentApi/getAgentByTypeAndId/IdentityGatewayAgent/ig_mytestrun_com.json +32 -0
- package/cjs/test/mocks/AgentApi/getAgentByTypeAndId/J2EEAgent/javaAgent.json +623 -0
- package/cjs/test/mocks/AgentApi/getAgentByTypeAndId/J2EEAgent/tomcatagent.json +630 -0
- package/cjs/test/mocks/AgentApi/getAgentByTypeAndId/WebAgent/apacheagent.json +456 -0
- package/cjs/test/mocks/AgentApi/getAgentByTypeAndId/WebAgent/webserver.json +455 -0
- package/cjs/test/mocks/AgentApi/getAgentTypes/agentTypes.json +54 -0
- package/cjs/test/mocks/AgentApi/getAgents/agents.json +3862 -0
- package/cjs/test/mocks/AgentApi/getAgentsByType/IdentityGatewayAgents.json +73 -0
- package/cjs/test/mocks/AgentApi/getAgentsByType/J2EEAgents.json +379 -0
- package/cjs/test/mocks/AgentApi/getAgentsByType/WebAgents.json +284 -0
- package/cjs/test/mocks/ForgeRockApiMockEngine.js +147 -20
- package/cjs/test/mocks/ForgeRockApiMockEngine.js.map +1 -1
- package/esm/api/AgentApi.mjs +164 -0
- package/esm/api/AgentApi.test.mjs +267 -0
- package/esm/api/BaseApi.mjs +17 -5
- package/esm/ext/axios-curlirize/curlirize.mjs +38 -0
- package/esm/ext/axios-curlirize/lib/CurlHelper.mjs +67 -0
- package/esm/index.mjs +2 -0
- package/esm/ops/AgentOps.mjs +576 -0
- package/esm/ops/AgentOps.test.mjs +1212 -0
- package/esm/ops/AuthenticateOps.mjs +8 -8
- package/esm/ops/JourneyOps.test.mjs +4 -8
- package/esm/test/mocks/AgentApi/deleteAgentByTypeAndId/IdentityGatewayAgent/ajays_client.json +22 -0
- package/esm/test/mocks/AgentApi/deleteAgentByTypeAndId/IdentityGatewayAgent/api_client.json +22 -0
- package/esm/test/mocks/AgentApi/deleteAgentByTypeAndId/IdentityGatewayAgent/ig_chico.json +22 -0
- package/esm/test/mocks/AgentApi/deleteAgentByTypeAndId/IdentityGatewayAgent/ig_mytestrun_com.json +32 -0
- package/esm/test/mocks/AgentApi/deleteAgentByTypeAndId/J2EEAgent/javaAgent.json +623 -0
- package/esm/test/mocks/AgentApi/deleteAgentByTypeAndId/J2EEAgent/tomcatagent.json +630 -0
- package/esm/test/mocks/AgentApi/deleteAgentByTypeAndId/WebAgent/apacheagent.json +456 -0
- package/esm/test/mocks/AgentApi/deleteAgentByTypeAndId/WebAgent/webserver.json +455 -0
- package/esm/test/mocks/AgentApi/findAgentById/ajays_client.json +19 -0
- package/esm/test/mocks/AgentApi/findAgentById/apacheagent.json +142 -0
- package/esm/test/mocks/AgentApi/findAgentById/api_client.json +19 -0
- package/esm/test/mocks/AgentApi/findAgentById/ig_chico.json +19 -0
- package/esm/test/mocks/AgentApi/findAgentById/ig_mytestrun_com.json +29 -0
- package/esm/test/mocks/AgentApi/findAgentById/javaAgent.json +190 -0
- package/esm/test/mocks/AgentApi/findAgentById/tomcatagent.json +191 -0
- package/esm/test/mocks/AgentApi/findAgentById/webserver.json +144 -0
- package/esm/test/mocks/AgentApi/findAgentByTypeAndId/IdentityGatewayAgent/ajays_client.json +23 -0
- package/esm/test/mocks/AgentApi/findAgentByTypeAndId/IdentityGatewayAgent/api_client.json +22 -0
- package/esm/test/mocks/AgentApi/findAgentByTypeAndId/IdentityGatewayAgent/ig_chico.json +22 -0
- package/esm/test/mocks/AgentApi/findAgentByTypeAndId/IdentityGatewayAgent/ig_mytestrun_com.json +33 -0
- package/esm/test/mocks/AgentApi/findAgentByTypeAndId/J2EEAgent/javaAgent.json +193 -0
- package/esm/test/mocks/AgentApi/findAgentByTypeAndId/J2EEAgent/tomcatagent.json +195 -0
- package/esm/test/mocks/AgentApi/findAgentByTypeAndId/WebAgent/apacheagent.json +145 -0
- package/esm/test/mocks/AgentApi/findAgentByTypeAndId/WebAgent/webserver.json +148 -0
- package/esm/test/mocks/AgentApi/findAgentByTypeAndId/not_found.json +8 -0
- package/esm/test/mocks/AgentApi/getAgentByTypeAndId/IdentityGatewayAgent/ajays_client.json +22 -0
- package/esm/test/mocks/AgentApi/getAgentByTypeAndId/IdentityGatewayAgent/api_client.json +22 -0
- package/esm/test/mocks/AgentApi/getAgentByTypeAndId/IdentityGatewayAgent/ig_chico.json +22 -0
- package/esm/test/mocks/AgentApi/getAgentByTypeAndId/IdentityGatewayAgent/ig_mytestrun_com.json +32 -0
- package/esm/test/mocks/AgentApi/getAgentByTypeAndId/J2EEAgent/javaAgent.json +623 -0
- package/esm/test/mocks/AgentApi/getAgentByTypeAndId/J2EEAgent/tomcatagent.json +630 -0
- package/esm/test/mocks/AgentApi/getAgentByTypeAndId/WebAgent/apacheagent.json +456 -0
- package/esm/test/mocks/AgentApi/getAgentByTypeAndId/WebAgent/webserver.json +455 -0
- package/esm/test/mocks/AgentApi/getAgentTypes/agentTypes.json +54 -0
- package/esm/test/mocks/AgentApi/getAgents/agents.json +3862 -0
- package/esm/test/mocks/AgentApi/getAgentsByType/IdentityGatewayAgents.json +73 -0
- package/esm/test/mocks/AgentApi/getAgentsByType/J2EEAgents.json +379 -0
- package/esm/test/mocks/AgentApi/getAgentsByType/WebAgents.json +284 -0
- package/esm/test/mocks/ForgeRockApiMockEngine.mjs +136 -20
- package/package.json +3 -4
- package/types/api/AgentApi.d.ts +51 -0
- package/types/api/AgentApi.d.ts.map +1 -0
- package/types/api/ApiTypes.d.ts +3 -0
- package/types/api/ApiTypes.d.ts.map +1 -1
- package/types/api/BaseApi.d.ts.map +1 -1
- package/types/ext/axios-curlirize/curlirize.d.ts +3 -0
- package/types/ext/axios-curlirize/curlirize.d.ts.map +1 -0
- package/types/ext/axios-curlirize/lib/CurlHelper.d.ts +11 -0
- package/types/ext/axios-curlirize/lib/CurlHelper.d.ts.map +1 -0
- package/types/index.d.ts +2 -0
- package/types/index.d.ts.map +1 -1
- package/types/ops/AgentOps.d.ts +210 -0
- package/types/ops/AgentOps.d.ts.map +1 -0
- package/types/ops/AuthenticateOps.d.ts.map +1 -1
- package/types/ops/OpsTypes.d.ts +5 -1
- package/types/ops/OpsTypes.d.ts.map +1 -1
- package/types/test/mocks/ForgeRockApiMockEngine.d.ts +35 -2
- package/types/test/mocks/ForgeRockApiMockEngine.d.ts.map +1 -1
|
@@ -0,0 +1,284 @@
|
|
|
1
|
+
{
|
|
2
|
+
"result": [
|
|
3
|
+
{
|
|
4
|
+
"_id": "apacheagent",
|
|
5
|
+
"_rev": "-470024024",
|
|
6
|
+
"miscWebAgentConfig": {
|
|
7
|
+
"anonymousUserId": "anonymous",
|
|
8
|
+
"profileAttributesCookieMaxAge": 300,
|
|
9
|
+
"urlJsonResponse": [""],
|
|
10
|
+
"caseInsensitiveUrlComparison": true,
|
|
11
|
+
"compositeAdviceRedirect": false,
|
|
12
|
+
"compositeAdviceEncode": false,
|
|
13
|
+
"addCacheControlHeader": true,
|
|
14
|
+
"anonymousUserEnabled": false,
|
|
15
|
+
"invalidUrlRegex": null,
|
|
16
|
+
"ignorePathInfo": false,
|
|
17
|
+
"invertUrlJsonResponse": false,
|
|
18
|
+
"statusCodeJsonResponse": 202,
|
|
19
|
+
"headerJsonResponse": {},
|
|
20
|
+
"encodeSpecialCharsInCookies": false,
|
|
21
|
+
"gotoParameterName": "goto",
|
|
22
|
+
"encodeUrlSpecialCharacters": false,
|
|
23
|
+
"mineEncodeHeader": 0,
|
|
24
|
+
"profileAttributesCookiePrefix": "HTTP_"
|
|
25
|
+
},
|
|
26
|
+
"ssoWebAgentConfig": {
|
|
27
|
+
"cookieResetList": [""],
|
|
28
|
+
"cdssoRedirectUri": "agent/cdsso-oauth2",
|
|
29
|
+
"persistentJwtCookie": false,
|
|
30
|
+
"acceptSsoToken": false,
|
|
31
|
+
"secureCookies": false,
|
|
32
|
+
"cookieResetOnRedirect": false,
|
|
33
|
+
"sameSite": null,
|
|
34
|
+
"cdssoCookieDomain": [""],
|
|
35
|
+
"cookieResetEnabled": false,
|
|
36
|
+
"cookieName": "iPlanetDirectoryPro",
|
|
37
|
+
"multivaluePreAuthnCookie": false,
|
|
38
|
+
"httpOnly": true
|
|
39
|
+
},
|
|
40
|
+
"advancedWebAgentConfig": {
|
|
41
|
+
"overrideRequestHost": true,
|
|
42
|
+
"pdpSkipPostUrl": [""],
|
|
43
|
+
"pdpStickySessionValue": null,
|
|
44
|
+
"postDataPreservation": false,
|
|
45
|
+
"hostnameToIpAddress": [],
|
|
46
|
+
"showPasswordInHeader": false,
|
|
47
|
+
"overrideRequestProtocol": true,
|
|
48
|
+
"clientIpHeader": null,
|
|
49
|
+
"replayPasswordKey": null,
|
|
50
|
+
"customProperties": [],
|
|
51
|
+
"postDataCachePeriod": 10,
|
|
52
|
+
"retainSessionCache": false,
|
|
53
|
+
"pdpJavascriptRepost": false,
|
|
54
|
+
"pdpStickySessionMode": "OFF",
|
|
55
|
+
"overrideRequestPort": true,
|
|
56
|
+
"apacheAuthDirectives": null,
|
|
57
|
+
"fragmentRedirectEnabled": false,
|
|
58
|
+
"clientHostnameHeader": null,
|
|
59
|
+
"pdpStickySessionCookieName": null,
|
|
60
|
+
"logonAndImpersonation": false
|
|
61
|
+
},
|
|
62
|
+
"amServicesWebAgent": {
|
|
63
|
+
"policyClockSkew": 0,
|
|
64
|
+
"enableLogoutRegex": false,
|
|
65
|
+
"policyEvaluationRealm": "/alpha",
|
|
66
|
+
"fetchPoliciesFromRootResource": false,
|
|
67
|
+
"logoutUrlRegex": null,
|
|
68
|
+
"conditionalLoginUrl": [
|
|
69
|
+
"mytestrun.com|https://idc.scheuber.io:443/am/oauth2/authorize?realm=/alpha"
|
|
70
|
+
],
|
|
71
|
+
"customLoginMode": 0,
|
|
72
|
+
"invalidateLogoutSession": true,
|
|
73
|
+
"logoutResetCookies": [""],
|
|
74
|
+
"logoutRedirectUrl": null,
|
|
75
|
+
"regexConditionalLoginUrl": [""],
|
|
76
|
+
"policyCachePollingInterval": 3,
|
|
77
|
+
"regexConditionalLoginPattern": [""],
|
|
78
|
+
"logoutRedirectDisabled": false,
|
|
79
|
+
"retrieveClientHostname": false,
|
|
80
|
+
"applicationLogoutUrls": [""],
|
|
81
|
+
"userIdParameterType": "session",
|
|
82
|
+
"publicAmUrl": null,
|
|
83
|
+
"userIdParameter": "UserToken",
|
|
84
|
+
"amLoginUrl": ["https://idc.scheuber.io/login?realm=/alpha"],
|
|
85
|
+
"policyEvaluationApplication": "apps",
|
|
86
|
+
"amLogoutUrl": ["https://idc.scheuber.io:443/am/UI/Logout"],
|
|
87
|
+
"ssoCachePollingInterval": 3
|
|
88
|
+
},
|
|
89
|
+
"applicationWebAgentConfig": {
|
|
90
|
+
"profileAttributeFetchMode": "NONE",
|
|
91
|
+
"clientIpValidation": false,
|
|
92
|
+
"notEnforcedIpsRegex": false,
|
|
93
|
+
"continuousSecurityCookies": {},
|
|
94
|
+
"fetchAttributesForNotEnforcedUrls": false,
|
|
95
|
+
"ignorePathInfoForNotEnforcedUrls": true,
|
|
96
|
+
"responseAttributeFetchMode": "NONE",
|
|
97
|
+
"attributeMultiValueSeparator": "|",
|
|
98
|
+
"profileAttributeMap": {},
|
|
99
|
+
"sessionAttributeFetchMode": "NONE",
|
|
100
|
+
"continuousSecurityHeaders": {},
|
|
101
|
+
"notEnforcedIpsList": [""],
|
|
102
|
+
"responseAttributeMap": {},
|
|
103
|
+
"notEnforcedUrls": ["", "https://apps.mytestrun.com/app1/*"],
|
|
104
|
+
"sessionAttributeMap": {},
|
|
105
|
+
"notEnforcedUrlsRegex": false,
|
|
106
|
+
"invertNotEnforcedUrls": false,
|
|
107
|
+
"notEnforcedIps": [""]
|
|
108
|
+
},
|
|
109
|
+
"globalWebAgentConfig": {
|
|
110
|
+
"agentDebugLevel": "Info",
|
|
111
|
+
"fqdnDefault": "apps.mytestrun.com",
|
|
112
|
+
"userpassword": null,
|
|
113
|
+
"webSocketConnectionIntervalInMinutes": 30,
|
|
114
|
+
"status": "Active",
|
|
115
|
+
"configurationPollingInterval": 60,
|
|
116
|
+
"auditLogLocation": "ALL",
|
|
117
|
+
"fqdnCheck": false,
|
|
118
|
+
"amLbCookieEnable": false,
|
|
119
|
+
"fqdnMapping": {},
|
|
120
|
+
"accessDeniedUrl": null,
|
|
121
|
+
"resetIdleTime": false,
|
|
122
|
+
"auditAccessType": "LOG_BOTH",
|
|
123
|
+
"ssoOnlyMode": false,
|
|
124
|
+
"notificationsEnabled": true,
|
|
125
|
+
"agentUriPrefix": "https://apps.mytestrun.com:443/amagent",
|
|
126
|
+
"disableJwtAudit": false,
|
|
127
|
+
"jwtName": "am-auth-jwt",
|
|
128
|
+
"repositoryLocation": "centralized",
|
|
129
|
+
"cdssoRootUrl": ["agentRootURL=https://apps.mytestrun.com:443/"],
|
|
130
|
+
"agentConfigChangeNotificationsEnabled": true,
|
|
131
|
+
"jwtAuditWhitelist": null
|
|
132
|
+
},
|
|
133
|
+
"_type": {
|
|
134
|
+
"_id": "WebAgent",
|
|
135
|
+
"name": "Web Agents",
|
|
136
|
+
"collection": true
|
|
137
|
+
}
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
"_id": "webserver",
|
|
141
|
+
"_rev": "-309240002",
|
|
142
|
+
"miscWebAgentConfig": {
|
|
143
|
+
"anonymousUserId": "anonymous",
|
|
144
|
+
"profileAttributesCookieMaxAge": 300,
|
|
145
|
+
"urlJsonResponse": [""],
|
|
146
|
+
"caseInsensitiveUrlComparison": true,
|
|
147
|
+
"compositeAdviceRedirect": false,
|
|
148
|
+
"compositeAdviceEncode": false,
|
|
149
|
+
"addCacheControlHeader": false,
|
|
150
|
+
"anonymousUserEnabled": false,
|
|
151
|
+
"invalidUrlRegex": null,
|
|
152
|
+
"ignorePathInfo": false,
|
|
153
|
+
"invertUrlJsonResponse": false,
|
|
154
|
+
"statusCodeJsonResponse": 202,
|
|
155
|
+
"headerJsonResponse": {},
|
|
156
|
+
"encodeSpecialCharsInCookies": false,
|
|
157
|
+
"gotoParameterName": "goto",
|
|
158
|
+
"encodeUrlSpecialCharacters": false,
|
|
159
|
+
"mineEncodeHeader": 0,
|
|
160
|
+
"profileAttributesCookiePrefix": "HTTP_"
|
|
161
|
+
},
|
|
162
|
+
"advancedWebAgentConfig": {
|
|
163
|
+
"overrideRequestHost": false,
|
|
164
|
+
"pdpSkipPostUrl": [""],
|
|
165
|
+
"pdpStickySessionValue": null,
|
|
166
|
+
"postDataPreservation": false,
|
|
167
|
+
"hostnameToIpAddress": [],
|
|
168
|
+
"showPasswordInHeader": false,
|
|
169
|
+
"overrideRequestProtocol": false,
|
|
170
|
+
"clientIpHeader": null,
|
|
171
|
+
"replayPasswordKey": null,
|
|
172
|
+
"customProperties": [],
|
|
173
|
+
"postDataCachePeriod": 10,
|
|
174
|
+
"retainSessionCache": false,
|
|
175
|
+
"pdpJavascriptRepost": false,
|
|
176
|
+
"pdpStickySessionMode": "OFF",
|
|
177
|
+
"overrideRequestPort": false,
|
|
178
|
+
"apacheAuthDirectives": null,
|
|
179
|
+
"clientHostnameHeader": null,
|
|
180
|
+
"fragmentRedirectEnabled": false,
|
|
181
|
+
"pdpStickySessionCookieName": null,
|
|
182
|
+
"logonAndImpersonation": false
|
|
183
|
+
},
|
|
184
|
+
"ssoWebAgentConfig": {
|
|
185
|
+
"cookieResetList": [""],
|
|
186
|
+
"cdssoRedirectUri": "agent/cdsso-oauth2",
|
|
187
|
+
"persistentJwtCookie": false,
|
|
188
|
+
"secureCookies": false,
|
|
189
|
+
"acceptSsoToken": false,
|
|
190
|
+
"cookieResetOnRedirect": false,
|
|
191
|
+
"sameSite": null,
|
|
192
|
+
"cdssoCookieDomain": [""],
|
|
193
|
+
"cookieResetEnabled": false,
|
|
194
|
+
"cookieName": "iPlanetDirectoryPro",
|
|
195
|
+
"multivaluePreAuthnCookie": false,
|
|
196
|
+
"httpOnly": true
|
|
197
|
+
},
|
|
198
|
+
"amServicesWebAgent": {
|
|
199
|
+
"policyClockSkew": 0,
|
|
200
|
+
"enableLogoutRegex": false,
|
|
201
|
+
"policyEvaluationRealm": "/alpha",
|
|
202
|
+
"fetchPoliciesFromRootResource": false,
|
|
203
|
+
"logoutUrlRegex": null,
|
|
204
|
+
"conditionalLoginUrl": [
|
|
205
|
+
"|https://openam-volker-dev.forgeblocks.com:443/am/oauth2/authorize?realm=/alpha"
|
|
206
|
+
],
|
|
207
|
+
"customLoginMode": 0,
|
|
208
|
+
"invalidateLogoutSession": true,
|
|
209
|
+
"logoutResetCookies": [""],
|
|
210
|
+
"logoutRedirectUrl": null,
|
|
211
|
+
"regexConditionalLoginUrl": [""],
|
|
212
|
+
"policyCachePollingInterval": 3,
|
|
213
|
+
"regexConditionalLoginPattern": [""],
|
|
214
|
+
"logoutRedirectDisabled": false,
|
|
215
|
+
"retrieveClientHostname": false,
|
|
216
|
+
"applicationLogoutUrls": [""],
|
|
217
|
+
"userIdParameterType": "session",
|
|
218
|
+
"publicAmUrl": null,
|
|
219
|
+
"userIdParameter": "UserToken",
|
|
220
|
+
"amLoginUrl": [],
|
|
221
|
+
"policyEvaluationApplication": null,
|
|
222
|
+
"amLogoutUrl": [
|
|
223
|
+
"https://openam-volker-dev.forgeblocks.com:443/am/UI/Logout"
|
|
224
|
+
],
|
|
225
|
+
"ssoCachePollingInterval": 3
|
|
226
|
+
},
|
|
227
|
+
"applicationWebAgentConfig": {
|
|
228
|
+
"profileAttributeFetchMode": "NONE",
|
|
229
|
+
"clientIpValidation": false,
|
|
230
|
+
"notEnforcedIpsRegex": false,
|
|
231
|
+
"continuousSecurityCookies": {},
|
|
232
|
+
"fetchAttributesForNotEnforcedUrls": false,
|
|
233
|
+
"ignorePathInfoForNotEnforcedUrls": true,
|
|
234
|
+
"responseAttributeFetchMode": "NONE",
|
|
235
|
+
"attributeMultiValueSeparator": "|",
|
|
236
|
+
"profileAttributeMap": {},
|
|
237
|
+
"sessionAttributeFetchMode": "NONE",
|
|
238
|
+
"continuousSecurityHeaders": {},
|
|
239
|
+
"notEnforcedIpsList": [""],
|
|
240
|
+
"responseAttributeMap": {},
|
|
241
|
+
"notEnforcedUrls": [""],
|
|
242
|
+
"sessionAttributeMap": {},
|
|
243
|
+
"notEnforcedUrlsRegex": false,
|
|
244
|
+
"invertNotEnforcedUrls": false,
|
|
245
|
+
"notEnforcedIps": [""]
|
|
246
|
+
},
|
|
247
|
+
"globalWebAgentConfig": {
|
|
248
|
+
"agentDebugLevel": "Error",
|
|
249
|
+
"fqdnDefault": "www.mytestrun.com",
|
|
250
|
+
"userpassword": null,
|
|
251
|
+
"webSocketConnectionIntervalInMinutes": 30,
|
|
252
|
+
"status": "Active",
|
|
253
|
+
"configurationPollingInterval": 60,
|
|
254
|
+
"auditLogLocation": "REMOTE",
|
|
255
|
+
"fqdnCheck": false,
|
|
256
|
+
"amLbCookieEnable": false,
|
|
257
|
+
"fqdnMapping": {},
|
|
258
|
+
"accessDeniedUrl": null,
|
|
259
|
+
"resetIdleTime": false,
|
|
260
|
+
"ssoOnlyMode": false,
|
|
261
|
+
"auditAccessType": "LOG_NONE",
|
|
262
|
+
"agentgroup": null,
|
|
263
|
+
"notificationsEnabled": true,
|
|
264
|
+
"agentUriPrefix": "https://www.mytestrun.com:443/amagent",
|
|
265
|
+
"disableJwtAudit": false,
|
|
266
|
+
"jwtName": "am-auth-jwt",
|
|
267
|
+
"repositoryLocation": "centralized",
|
|
268
|
+
"cdssoRootUrl": ["agentRootURL=https://www.mytestrun.com:443/"],
|
|
269
|
+
"agentConfigChangeNotificationsEnabled": true,
|
|
270
|
+
"jwtAuditWhitelist": null
|
|
271
|
+
},
|
|
272
|
+
"_type": {
|
|
273
|
+
"_id": "WebAgent",
|
|
274
|
+
"name": "Web Agents",
|
|
275
|
+
"collection": true
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
],
|
|
279
|
+
"resultCount": 2,
|
|
280
|
+
"pagedResultsCookie": null,
|
|
281
|
+
"totalPagedResultsPolicy": "EXACT",
|
|
282
|
+
"totalPagedResults": 2,
|
|
283
|
+
"remainingPagedResults": -1
|
|
284
|
+
}
|
|
@@ -9,8 +9,14 @@ export function readJsonFile(file) {
|
|
|
9
9
|
return json;
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
+
/****
|
|
13
|
+
**
|
|
14
|
+
** AM Mocks and Utils
|
|
15
|
+
**
|
|
16
|
+
**/
|
|
17
|
+
|
|
12
18
|
/**
|
|
13
|
-
*
|
|
19
|
+
* Tree Mocks
|
|
14
20
|
*/
|
|
15
21
|
|
|
16
22
|
export function getTrees() {
|
|
@@ -49,6 +55,11 @@ export function mockPutTree(mock, callback) {
|
|
|
49
55
|
return [mockStatus, mockTreeObj];
|
|
50
56
|
});
|
|
51
57
|
}
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* Node Mocks
|
|
61
|
+
*/
|
|
62
|
+
|
|
52
63
|
export function mockGetNode(mock) {
|
|
53
64
|
mock.onGet(/\/json\/realms\/root\/realms\/alpha\/realm-config\/authentication\/authenticationtrees\/nodes\/.+/).reply(function (config) {
|
|
54
65
|
const elements = config.url ? config.url.split('/') : [];
|
|
@@ -70,6 +81,11 @@ export function mockPutNode(mock, callback) {
|
|
|
70
81
|
return [mockStatus, mockNodeObj];
|
|
71
82
|
});
|
|
72
83
|
}
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* Script Mocks
|
|
87
|
+
*/
|
|
88
|
+
|
|
73
89
|
export function getScript(scriptId) {
|
|
74
90
|
const treeObject = JSON.parse(fs.readFileSync(path.resolve(__dirname, `./ScriptApi/getScript/${scriptId}.json`), 'utf8'));
|
|
75
91
|
return treeObject;
|
|
@@ -84,8 +100,6 @@ export function mockGetScript(mock) {
|
|
|
84
100
|
return [mockStatus, mockResponse];
|
|
85
101
|
});
|
|
86
102
|
}
|
|
87
|
-
|
|
88
|
-
// mockPutScript(mock);
|
|
89
103
|
export function mockPutScript(mock, callback) {
|
|
90
104
|
mock.onPut(/.*?\/json\/realms\/root\/realms\/alpha\/scripts\/.+/).reply(function (config) {
|
|
91
105
|
const elements = config.url ? config.url.split('/') : [];
|
|
@@ -101,20 +115,9 @@ export function getScriptByName(scriptName) {
|
|
|
101
115
|
return treeObject;
|
|
102
116
|
}
|
|
103
117
|
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
// /\/json\/realms\/root\/realms\/alpha\/scripts\?_queryFilter=name\+eq\+'.+'/
|
|
108
|
-
// )
|
|
109
|
-
// .reply(function (config) {
|
|
110
|
-
// const elements = config.url ? config.url.split('/') : [];
|
|
111
|
-
// const scriptId = elements[elements?.length - 1];
|
|
112
|
-
// const mockStatus = 200;
|
|
113
|
-
// const mockResponse = getScript(scriptId);
|
|
114
|
-
// expect(mockResponse._id).toBe(scriptId);
|
|
115
|
-
// return [mockStatus, mockResponse];
|
|
116
|
-
// });
|
|
117
|
-
// }
|
|
118
|
+
/**
|
|
119
|
+
* SAML Mocks
|
|
120
|
+
*/
|
|
118
121
|
|
|
119
122
|
export function getSaml2Providers() {
|
|
120
123
|
const treeObjects = JSON.parse(fs.readFileSync(path.resolve(__dirname, './Saml2Api/getProviders/providers.json'), 'utf8'));
|
|
@@ -224,9 +227,14 @@ export function mockGetSaml2ProviderMetadata(mock) {
|
|
|
224
227
|
return [mockStatus, mockResponse];
|
|
225
228
|
});
|
|
226
229
|
}
|
|
230
|
+
|
|
231
|
+
/**
|
|
232
|
+
* Social Identity Provider Mocks
|
|
233
|
+
*/
|
|
234
|
+
|
|
227
235
|
export function getSocialProviders() {
|
|
228
|
-
const
|
|
229
|
-
return
|
|
236
|
+
const objects = JSON.parse(fs.readFileSync(path.resolve(__dirname, './SocialIdentityProvidersApi/getSocialIdentityProviders/socialIdentityProviders.json'), 'utf8'));
|
|
237
|
+
return objects;
|
|
230
238
|
}
|
|
231
239
|
export function mockGetSocialProviders(mock) {
|
|
232
240
|
mock.onPost(/.*?\/json\/realms\/root\/realms\/alpha\/realm-config\/services\/SocialIdentityProviders\?_action=nextdescendents/).reply(function () {
|
|
@@ -249,9 +257,117 @@ export function mockPutSocialProviderByTypeAndId(mock, callback) {
|
|
|
249
257
|
}
|
|
250
258
|
|
|
251
259
|
/**
|
|
252
|
-
*
|
|
260
|
+
* Agent mocks and utils
|
|
253
261
|
*/
|
|
254
262
|
|
|
263
|
+
export function getAgentTypes() {
|
|
264
|
+
const objects = JSON.parse(fs.readFileSync(path.resolve(__dirname, './AgentApi/getAgentTypes/agentTypes.json'), 'utf8'));
|
|
265
|
+
return objects;
|
|
266
|
+
}
|
|
267
|
+
export function getAgents() {
|
|
268
|
+
const objects = JSON.parse(fs.readFileSync(path.resolve(__dirname, './AgentApi/getAgents/agents.json'), 'utf8'));
|
|
269
|
+
return objects;
|
|
270
|
+
}
|
|
271
|
+
export function getAgent(agentType, agentId) {
|
|
272
|
+
const objects = JSON.parse(fs.readFileSync(path.resolve(__dirname, `./AgentApi/getAgentByTypeAndId/${agentType}/${agentId}.json`), 'utf8'));
|
|
273
|
+
return objects;
|
|
274
|
+
}
|
|
275
|
+
export function mockGetAgentTypes(mock) {
|
|
276
|
+
mock.onGet(/\/json\/realms\/root\/realms\/alpha\/realm-config\/agents\?_action=getAllTypes/).reply(function () {
|
|
277
|
+
const mockStatus = 200;
|
|
278
|
+
const mockResponse = getAgentTypes();
|
|
279
|
+
expect(mockResponse).toBeTruthy();
|
|
280
|
+
return [mockStatus, mockResponse];
|
|
281
|
+
});
|
|
282
|
+
}
|
|
283
|
+
export function mockGetAgentsByType(mock) {
|
|
284
|
+
mock.onGet(/\/json\/realms\/root\/realms\/alpha\/realm-config\/agents\/.+?\?_queryFilter=true/).reply(function (config) {
|
|
285
|
+
const parsed = parseUrl(config.url);
|
|
286
|
+
const elements = parsed.pathname ? parsed.pathname.split('/') : [];
|
|
287
|
+
const agentType = elements[(elements === null || elements === void 0 ? void 0 : elements.length) - 1];
|
|
288
|
+
const mockStatus = 200;
|
|
289
|
+
const mockResponse = JSON.parse(fs.readFileSync(path.resolve(__dirname, `./AgentApi/getAgentsByType/${agentType}s.json`), 'utf8'));
|
|
290
|
+
expect(mockResponse).toBeTruthy();
|
|
291
|
+
return [mockStatus, mockResponse];
|
|
292
|
+
});
|
|
293
|
+
}
|
|
294
|
+
export function mockGetAgents(mock) {
|
|
295
|
+
mock.onPost(/\/json\/realms\/root\/realms\/alpha\/realm-config\/agents\?_action=nextdescendents/).reply(function () {
|
|
296
|
+
const mockStatus = 200;
|
|
297
|
+
const mockResponse = getAgents();
|
|
298
|
+
expect(mockResponse).toBeTruthy();
|
|
299
|
+
return [mockStatus, mockResponse];
|
|
300
|
+
});
|
|
301
|
+
}
|
|
302
|
+
export function mockFindAgentById(mock) {
|
|
303
|
+
mock.onGet(/\/json\/realms\/root\/realms\/alpha\/realm-config\/agents\?_queryFilter=_id\+eq\+'.+?'/).reply(function (config) {
|
|
304
|
+
const parsed = parseUrl(config.url);
|
|
305
|
+
const filter = parsed.searchParam['_queryFilter'];
|
|
306
|
+
const agentId = filter.match(/_id\+eq\+'(.+?)'/)[1];
|
|
307
|
+
const mockStatus = 200;
|
|
308
|
+
const mockResponse = JSON.parse(fs.readFileSync(path.resolve(__dirname, `./AgentApi/findAgentById/${agentId}.json`), 'utf8'));
|
|
309
|
+
expect(mockResponse.result[0]._id).toBe(agentId);
|
|
310
|
+
return [mockStatus, mockResponse];
|
|
311
|
+
});
|
|
312
|
+
}
|
|
313
|
+
export function mockFindAgentByTypeAndId(mock) {
|
|
314
|
+
mock.onGet(/\/json\/realms\/root\/realms\/alpha\/realm-config\/agents\/.+?\?_queryFilter=_id\+eq\+'.+?'/).reply(function (config) {
|
|
315
|
+
const parsed = parseUrl(config.url);
|
|
316
|
+
const elements = parsed.pathname ? parsed.pathname.split('/') : [];
|
|
317
|
+
const agentType = elements[(elements === null || elements === void 0 ? void 0 : elements.length) - 1];
|
|
318
|
+
const filter = parsed.searchParam['_queryFilter'];
|
|
319
|
+
const agentId = filter.match(/_id\+eq\+'(.+?)'/)[1];
|
|
320
|
+
const mockStatus = 200;
|
|
321
|
+
let mockResponse = JSON.parse(fs.readFileSync(path.resolve(__dirname, `./AgentApi/findAgentByTypeAndId/not_found.json`), 'utf8'));
|
|
322
|
+
try {
|
|
323
|
+
mockResponse = JSON.parse(fs.readFileSync(path.resolve(__dirname, `./AgentApi/findAgentByTypeAndId/${agentType}/${agentId}.json`), 'utf8'));
|
|
324
|
+
expect(mockResponse.result[0]._id).toBe(agentId);
|
|
325
|
+
} catch (error) {
|
|
326
|
+
// ignore errors
|
|
327
|
+
}
|
|
328
|
+
return [mockStatus, mockResponse];
|
|
329
|
+
});
|
|
330
|
+
}
|
|
331
|
+
export function mockGetAgentByTypeAndId(mock) {
|
|
332
|
+
mock.onGet(/\/json\/realms\/root\/realms\/alpha\/realm-config\/agents\/[a-zA-Z0-9/_-]+$/).reply(function (config) {
|
|
333
|
+
const elements = config.url ? config.url.split('/') : [];
|
|
334
|
+
const agentType = elements[(elements === null || elements === void 0 ? void 0 : elements.length) - 2];
|
|
335
|
+
const agentId = elements[(elements === null || elements === void 0 ? void 0 : elements.length) - 1];
|
|
336
|
+
const mockStatus = 200;
|
|
337
|
+
const mockResponse = JSON.parse(fs.readFileSync(path.resolve(__dirname, `./AgentApi/getAgentByTypeAndId/${agentType}/${agentId}.json`), 'utf8'));
|
|
338
|
+
expect(mockResponse._id).toBe(agentId);
|
|
339
|
+
return [mockStatus, mockResponse];
|
|
340
|
+
});
|
|
341
|
+
}
|
|
342
|
+
export function mockPutAgentByTypeAndId(mock, callback) {
|
|
343
|
+
mock.onPut(/\/json\/realms\/root\/realms\/alpha\/realm-config\/agents\/.+/).reply(function (config) {
|
|
344
|
+
const elements = config.url ? config.url.split('/') : [];
|
|
345
|
+
const agentType = elements[(elements === null || elements === void 0 ? void 0 : elements.length) - 2];
|
|
346
|
+
const agentId = elements[(elements === null || elements === void 0 ? void 0 : elements.length) - 1];
|
|
347
|
+
const mockStatus = 200;
|
|
348
|
+
const mockAgentObj = JSON.parse(config.data);
|
|
349
|
+
callback(agentType, agentId, mockAgentObj);
|
|
350
|
+
return [mockStatus, mockAgentObj];
|
|
351
|
+
});
|
|
352
|
+
}
|
|
353
|
+
export function mockDeleteAgentByTypeAndId(mock, callback) {
|
|
354
|
+
mock.onDelete(/\/json\/realms\/root\/realms\/alpha\/realm-config\/agents\/.+/).reply(function (config) {
|
|
355
|
+
const elements = config.url ? config.url.split('/') : [];
|
|
356
|
+
const agentType = elements[(elements === null || elements === void 0 ? void 0 : elements.length) - 2];
|
|
357
|
+
const agentId = elements[(elements === null || elements === void 0 ? void 0 : elements.length) - 1];
|
|
358
|
+
const mockStatus = 200;
|
|
359
|
+
const mockAgentObj = getAgent(agentType, agentId);
|
|
360
|
+
callback(agentType, agentId, mockAgentObj);
|
|
361
|
+
return [mockStatus, mockAgentObj];
|
|
362
|
+
});
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
/****
|
|
366
|
+
**
|
|
367
|
+
** IDM Mocks and Utils
|
|
368
|
+
**
|
|
369
|
+
**/
|
|
370
|
+
|
|
255
371
|
export function mockListAllConfigEntities(mock) {
|
|
256
372
|
mock.onGet(/.*?\/openidm\/config$/).reply(function () {
|
|
257
373
|
const mockStatus = 200;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rockcarver/frodo-lib",
|
|
3
|
-
"version": "0.16.2-
|
|
3
|
+
"version": "0.16.2-4",
|
|
4
4
|
"type": "commonjs",
|
|
5
5
|
"main": "./cjs/index.js",
|
|
6
6
|
"module": "./esm/index.mjs",
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"scripts": {
|
|
16
16
|
"test": "npx gulp && node --no-warnings --experimental-vm-modules --experimental-specifier-resolution=node node_modules/jest/bin/jest.js --silent",
|
|
17
17
|
"test:only": "node --no-warnings --experimental-vm-modules --experimental-specifier-resolution=node node_modules/jest/bin/jest.js --silent",
|
|
18
|
-
"test:debug": "
|
|
18
|
+
"test:debug": "node --no-warnings --experimental-vm-modules --experimental-specifier-resolution=node node_modules/jest/bin/jest.js --verbose=true --silent=false",
|
|
19
19
|
"lint": "npx eslint --ext .ts --ignore-path .gitignore .",
|
|
20
20
|
"build": "npx gulp",
|
|
21
21
|
"watch": "npx gulp watch"
|
|
@@ -85,8 +85,7 @@
|
|
|
85
85
|
"license": "MIT",
|
|
86
86
|
"dependencies": {
|
|
87
87
|
"agentkeepalive": "^4.2.1",
|
|
88
|
-
"axios": "^
|
|
89
|
-
"axios-curlirize": "^1.3.7",
|
|
88
|
+
"axios": "^0.27.2",
|
|
90
89
|
"axios-retry": "^3.3.1",
|
|
91
90
|
"cli-table3": "^0.6.2",
|
|
92
91
|
"colors": "^1.4.0",
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Get agent types
|
|
3
|
+
* @returns {Promise} a promise that resolves to an object containing an array of agent types
|
|
4
|
+
*/
|
|
5
|
+
export declare function getAgentTypes(): Promise<any>;
|
|
6
|
+
/**
|
|
7
|
+
* Get agents
|
|
8
|
+
* @param {string} agentType agent type (IdentityGatewayAgent, J2EEAgent, WebAgent)
|
|
9
|
+
* @returns {Promise} a promise that resolves to an object containing an array of agent objects of the specified type
|
|
10
|
+
*/
|
|
11
|
+
export declare function getAgentsByType(agentType: string): Promise<any>;
|
|
12
|
+
/**
|
|
13
|
+
* Get all agents
|
|
14
|
+
* @returns {Promise} a promise that resolves to an object containing an array of agent objects
|
|
15
|
+
*/
|
|
16
|
+
export declare function getAgents(): Promise<any>;
|
|
17
|
+
/**
|
|
18
|
+
* Find agent by id
|
|
19
|
+
* @param {string} agentId agent id
|
|
20
|
+
* @returns {Promise} a promise that resolves to an array with one or zero agent objects
|
|
21
|
+
*/
|
|
22
|
+
export declare function findAgentById(agentId: string): Promise<any>;
|
|
23
|
+
/**
|
|
24
|
+
* Find agent by id
|
|
25
|
+
* @param {string} agentType agent type (IdentityGatewayAgent, J2EEAgent, WebAgent)
|
|
26
|
+
* @param {string} agentId agent id
|
|
27
|
+
* @returns {Promise} a promise that resolves to an array with one or zero agent objects
|
|
28
|
+
*/
|
|
29
|
+
export declare function findAgentByTypeAndId(agentType: string, agentId: string): Promise<any>;
|
|
30
|
+
/**
|
|
31
|
+
* Get agent
|
|
32
|
+
* @param {string} agentType agent type (IdentityGatewayAgent, J2EEAgent, WebAgent)
|
|
33
|
+
* @param {string} agentId agent id
|
|
34
|
+
* @returns {Promise} a promise that resolves to an object containing an agent object of the specified type
|
|
35
|
+
*/
|
|
36
|
+
export declare function getAgentByTypeAndId(agentType: string, agentId: string): Promise<any>;
|
|
37
|
+
/**
|
|
38
|
+
* Put agent
|
|
39
|
+
* @param {string} agentType agent type (IdentityGatewayAgent, J2EEAgent, WebAgent)
|
|
40
|
+
* @param {string} agentId agent id
|
|
41
|
+
* @param {Object} agentData agent object
|
|
42
|
+
* @returns {Promise} a promise that resolves to an object containing an agent object
|
|
43
|
+
*/
|
|
44
|
+
export declare function putAgentByTypeAndId(agentType: string, agentId: string, agentData: any): Promise<any>;
|
|
45
|
+
/**
|
|
46
|
+
* Delete agent
|
|
47
|
+
* @param agentType agent type (IdentityGatewayAgent, J2EEAgent, WebAgent)
|
|
48
|
+
* @param agentId agent id
|
|
49
|
+
* @returns a promise that resolves to an object containing an agent object
|
|
50
|
+
*/
|
|
51
|
+
export declare function deleteAgentByTypeAndId(agentType: string, agentId: string): Promise<any>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/api/AgentApi.ts"],"names":[],"mappings":"AA0BA;;;GAGG;AACH,wBAAsB,aAAa,iBAYlC;AAED;;;;GAIG;AACH,wBAAsB,eAAe,CAAC,SAAS,EAAE,MAAM,gBAatD;AAED;;;GAGG;AACH,wBAAsB,SAAS,iBAgB9B;AAED;;;;GAIG;AACH,wBAAsB,aAAa,CAAC,OAAO,EAAE,MAAM,gBAalD;AAED;;;;;GAKG;AACH,wBAAsB,oBAAoB,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,gBAc5E;AAED;;;;;GAKG;AACH,wBAAsB,mBAAmB,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,gBAc3E;AAED;;;;;;GAMG;AACH,wBAAsB,mBAAmB,CACvC,SAAS,EAAE,MAAM,EACjB,OAAO,EAAE,MAAM,EACf,SAAS,KAAA,gBAoBV;AAED;;;;;GAKG;AACH,wBAAsB,sBAAsB,CAC1C,SAAS,EAAE,MAAM,EACjB,OAAO,EAAE,MAAM,gBAehB","file":"AgentApi.d.ts","sourcesContent":["import util from 'util';\nimport { generateAmApi } from './BaseApi';\nimport { deleteDeepByKey, getCurrentRealmPath } from './utils/ApiUtils';\nimport storage from '../storage/SessionStorage';\nimport { debugMessage } from '../ops/utils/Console';\n\nconst getAgentTypesURLTemplate =\n '%s/json%s/realm-config/agents?_action=getAllTypes';\nconst getAllAgentsURLTemplate =\n '%s/json%s/realm-config/agents?_action=nextdescendents';\nconst queryAgentURLTemplate =\n \"%s/json%s/realm-config/agents?_queryFilter=_id+eq+'%s'\";\nconst queryAgentByTypeURLTemplate =\n \"%s/json%s/realm-config/agents/%s?_queryFilter=_id+eq+'%s'\";\nconst agentURLTemplate = '%s/json%s/realm-config/agents/%s/%s';\nconst agentListURLTemplate =\n '%s/json%s/realm-config/agents/%s?_queryFilter=true';\nconst apiVersion = 'protocol=2.1,resource=1.0';\nconst getApiConfig = () => {\n const configPath = getCurrentRealmPath();\n return {\n path: `${configPath}/realm-config/agents`,\n apiVersion,\n };\n};\n\n/**\n * Get agent types\n * @returns {Promise} a promise that resolves to an object containing an array of agent types\n */\nexport async function getAgentTypes() {\n debugMessage(`AgentApi.getAgentTypes: start`);\n const urlString = util.format(\n getAgentTypesURLTemplate,\n storage.session.getTenant(),\n getCurrentRealmPath()\n );\n const { data } = await generateAmApi(getApiConfig()).get(urlString, {\n withCredentials: true,\n });\n debugMessage(`AgentApi.getAgentTypes: end`);\n return data;\n}\n\n/**\n * Get agents\n * @param {string} agentType agent type (IdentityGatewayAgent, J2EEAgent, WebAgent)\n * @returns {Promise} a promise that resolves to an object containing an array of agent objects of the specified type\n */\nexport async function getAgentsByType(agentType: string) {\n debugMessage(`AgentApi.getAgentsByType: start`);\n const urlString = util.format(\n agentListURLTemplate,\n storage.session.getTenant(),\n getCurrentRealmPath(),\n agentType\n );\n const { data } = await generateAmApi(getApiConfig()).get(urlString, {\n withCredentials: true,\n });\n debugMessage(`AgentApi.getAgentsByType: end`);\n return data;\n}\n\n/**\n * Get all agents\n * @returns {Promise} a promise that resolves to an object containing an array of agent objects\n */\nexport async function getAgents() {\n debugMessage(`AgentApi.getAgents: start`);\n const urlString = util.format(\n getAllAgentsURLTemplate,\n storage.session.getTenant(),\n getCurrentRealmPath()\n );\n const { data } = await generateAmApi(getApiConfig()).post(\n urlString,\n {},\n {\n withCredentials: true,\n }\n );\n debugMessage(`AgentApi.getAgents: end`);\n return data;\n}\n\n/**\n * Find agent by id\n * @param {string} agentId agent id\n * @returns {Promise} a promise that resolves to an array with one or zero agent objects\n */\nexport async function findAgentById(agentId: string) {\n debugMessage(`AgentApi.findAgentById: start`);\n const urlString = util.format(\n queryAgentURLTemplate,\n storage.session.getTenant(),\n getCurrentRealmPath(),\n agentId\n );\n const { data } = await generateAmApi(getApiConfig()).get(urlString, {\n withCredentials: true,\n });\n debugMessage(`AgentApi.findAgentById: end`);\n return data.result;\n}\n\n/**\n * Find agent by id\n * @param {string} agentType agent type (IdentityGatewayAgent, J2EEAgent, WebAgent)\n * @param {string} agentId agent id\n * @returns {Promise} a promise that resolves to an array with one or zero agent objects\n */\nexport async function findAgentByTypeAndId(agentType: string, agentId: string) {\n debugMessage(`AgentApi.findAgentById: start`);\n const urlString = util.format(\n queryAgentByTypeURLTemplate,\n storage.session.getTenant(),\n getCurrentRealmPath(),\n agentType,\n agentId\n );\n const { data } = await generateAmApi(getApiConfig()).get(urlString, {\n withCredentials: true,\n });\n debugMessage(`AgentApi.findAgentById: end`);\n return data.result;\n}\n\n/**\n * Get agent\n * @param {string} agentType agent type (IdentityGatewayAgent, J2EEAgent, WebAgent)\n * @param {string} agentId agent id\n * @returns {Promise} a promise that resolves to an object containing an agent object of the specified type\n */\nexport async function getAgentByTypeAndId(agentType: string, agentId: string) {\n debugMessage(`AgentApi.getAgentByTypeAndId: start`);\n const urlString = util.format(\n agentURLTemplate,\n storage.session.getTenant(),\n getCurrentRealmPath(),\n agentType,\n agentId\n );\n const { data } = await generateAmApi(getApiConfig()).get(urlString, {\n withCredentials: true,\n });\n debugMessage(`AgentApi.getAgentByTypeAndId: end`);\n return data;\n}\n\n/**\n * Put agent\n * @param {string} agentType agent type (IdentityGatewayAgent, J2EEAgent, WebAgent)\n * @param {string} agentId agent id\n * @param {Object} agentData agent object\n * @returns {Promise} a promise that resolves to an object containing an agent object\n */\nexport async function putAgentByTypeAndId(\n agentType: string,\n agentId: string,\n agentData\n) {\n debugMessage(`AgentApi.putAgentByTypeAndId: start`);\n // until we figure out a way to use transport keys in Frodo,\n // we'll have to drop those encrypted attributes.\n const agent = deleteDeepByKey(agentData, '-encrypted');\n delete agent._provider;\n delete agent._rev;\n const urlString = util.format(\n agentURLTemplate,\n storage.session.getTenant(),\n getCurrentRealmPath(),\n agentType,\n agentId\n );\n const { data } = await generateAmApi(getApiConfig()).put(urlString, agent, {\n withCredentials: true,\n });\n debugMessage(`AgentApi.putAgentByTypeAndId: end`);\n return data;\n}\n\n/**\n * Delete agent\n * @param agentType agent type (IdentityGatewayAgent, J2EEAgent, WebAgent)\n * @param agentId agent id\n * @returns a promise that resolves to an object containing an agent object\n */\nexport async function deleteAgentByTypeAndId(\n agentType: string,\n agentId: string\n) {\n debugMessage(`AgentApi.deleteAgentByTypeAndId: start`);\n const urlString = util.format(\n agentURLTemplate,\n storage.session.getTenant(),\n getCurrentRealmPath(),\n agentType,\n agentId\n );\n const { data } = await generateAmApi(getApiConfig()).delete(urlString, {\n withCredentials: true,\n });\n debugMessage(`AgentApi.deleteAgentByTypeAndId: end`);\n return data;\n}\n"]}
|
package/types/api/ApiTypes.d.ts
CHANGED
|
@@ -38,6 +38,9 @@ export declare type SocialIdpSkeleton = ObjectSkeletonInterface & {
|
|
|
38
38
|
_type: AmServiceType;
|
|
39
39
|
enabled: boolean;
|
|
40
40
|
};
|
|
41
|
+
export declare type AgentSkeleton = ObjectSkeletonInterface & {
|
|
42
|
+
_type: AmServiceType;
|
|
43
|
+
};
|
|
41
44
|
export declare type EmailTemplateSkeleton = ObjectSkeletonInterface & {
|
|
42
45
|
defaultLocale?: string;
|
|
43
46
|
displayName?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/api/ApiTypes.ts"],"names":[],"mappings":"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","file":"ApiTypes.d.ts","sourcesContent":["interface ObjectSkeletonInterface {\n _id: string;\n _rev?: number;\n [k: string]: string | number | boolean | string[] | ObjectSkeletonInterface;\n}\n\nexport interface UiConfigInterface {\n categories: string;\n}\n\nexport interface NodeRefSkeletonInterface {\n connections: Record<string, string>;\n displayName: string;\n nodeType: string;\n x: number;\n y: number;\n}\n\nexport interface InnerNodeRefSkeletonInterface {\n _id: string;\n displayName: string;\n nodeType: string;\n}\n\nexport type TreeSkeleton = ObjectSkeletonInterface & {\n entryNodeId: string;\n nodes: Record<string, NodeRefSkeletonInterface>;\n identityResource?: string;\n uiConfig?: UiConfigInterface;\n enabled?: boolean;\n};\n\nexport type AmServiceType = ObjectSkeletonInterface & {\n name: string;\n};\n\nexport type NodeSkeleton = ObjectSkeletonInterface & {\n _type: AmServiceType;\n nodes?: InnerNodeRefSkeletonInterface[];\n tree?: string;\n identityResource?: string;\n};\n\nexport type SocialIdpSkeleton = ObjectSkeletonInterface & {\n _type: AmServiceType;\n enabled: boolean;\n};\n\nexport type EmailTemplateSkeleton = ObjectSkeletonInterface & {\n defaultLocale?: string;\n displayName?: string;\n enabled?: boolean;\n from: string;\n subject: Record<string, string>;\n};\n\nexport type ThemeSkeleton = ObjectSkeletonInterface & {\n name: string;\n isDefault: boolean;\n linkedTrees: string[];\n};\n\nexport type UiThemeRealmObject = ObjectSkeletonInterface & {\n name: string;\n realm: Map<string, ThemeSkeleton[]>;\n};\n\nexport enum ScriptLanguage {\n GROOVY = 'GROOVY',\n JAVASCRIPT = 'JAVASCRIPT',\n}\n\nexport enum ScriptContext {\n OAUTH2_ACCESS_TOKEN_MODIFICATION = 'OAUTH2_ACCESS_TOKEN_MODIFICATION',\n AUTHENTICATION_CLIENT_SIDE = 'AUTHENTICATION_CLIENT_SIDE',\n AUTHENTICATION_TREE_DECISION_NODE = 'AUTHENTICATION_TREE_DECISION_NODE',\n AUTHENTICATION_SERVER_SIDE = 'AUTHENTICATION_SERVER_SIDE',\n SOCIAL_IDP_PROFILE_TRANSFORMATION = 'SOCIAL_IDP_PROFILE_TRANSFORMATION',\n OAUTH2_VALIDATE_SCOPE = 'OAUTH2_VALIDATE_SCOPE',\n CONFIG_PROVIDER_NODE = 'CONFIG_PROVIDER_NODE',\n OAUTH2_AUTHORIZE_ENDPOINT_DATA_PROVIDER = 'OAUTH2_AUTHORIZE_ENDPOINT_DATA_PROVIDER',\n OAUTH2_EVALUATE_SCOPE = 'OAUTH2_EVALUATE_SCOPE',\n POLICY_CONDITION = 'POLICY_CONDITION',\n OIDC_CLAIMS = 'OIDC_CLAIMS',\n SAML2_IDP_ADAPTER = 'SAML2_IDP_ADAPTER',\n SAML2_IDP_ATTRIBUTE_MAPPER = 'SAML2_IDP_ATTRIBUTE_MAPPER',\n OAUTH2_MAY_ACT = 'OAUTH2_MAY_ACT',\n}\n\nexport type ScriptSkeleton = ObjectSkeletonInterface & {\n name: string;\n description: string;\n isDefault: boolean;\n script: string;\n language: ScriptLanguage;\n context: ScriptContext;\n createdBy: string;\n creationDate: number;\n lastModifiedBy: string;\n lastModifiedDate: number;\n};\n\nexport enum Saml2ProiderLocation {\n HOSTED = 'hosted',\n REMOTE = 'remote',\n}\n\nexport type Saml2ProviderSkeleton = ObjectSkeletonInterface & {\n entityId: string;\n entityLocation: Saml2ProiderLocation;\n serviceProvider: unknown;\n identityProvider: unknown;\n attributeQueryProvider: unknown;\n xacmlPolicyEnforcementPoint: unknown;\n};\n\nexport type CircleOfTrustSkeleton = ObjectSkeletonInterface & {\n _type: AmServiceType;\n status: string;\n trustedProviders: string[];\n};\n"]}
|
|
1
|
+
{"version":3,"sources":["../src/api/ApiTypes.ts"],"names":[],"mappings":"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","file":"ApiTypes.d.ts","sourcesContent":["interface ObjectSkeletonInterface {\n _id: string;\n _rev?: number;\n [k: string]: string | number | boolean | string[] | ObjectSkeletonInterface;\n}\n\nexport interface UiConfigInterface {\n categories: string;\n}\n\nexport interface NodeRefSkeletonInterface {\n connections: Record<string, string>;\n displayName: string;\n nodeType: string;\n x: number;\n y: number;\n}\n\nexport interface InnerNodeRefSkeletonInterface {\n _id: string;\n displayName: string;\n nodeType: string;\n}\n\nexport type TreeSkeleton = ObjectSkeletonInterface & {\n entryNodeId: string;\n nodes: Record<string, NodeRefSkeletonInterface>;\n identityResource?: string;\n uiConfig?: UiConfigInterface;\n enabled?: boolean;\n};\n\nexport type AmServiceType = ObjectSkeletonInterface & {\n name: string;\n};\n\nexport type NodeSkeleton = ObjectSkeletonInterface & {\n _type: AmServiceType;\n nodes?: InnerNodeRefSkeletonInterface[];\n tree?: string;\n identityResource?: string;\n};\n\nexport type SocialIdpSkeleton = ObjectSkeletonInterface & {\n _type: AmServiceType;\n enabled: boolean;\n};\n\nexport type AgentSkeleton = ObjectSkeletonInterface & {\n _type: AmServiceType;\n};\n\nexport type EmailTemplateSkeleton = ObjectSkeletonInterface & {\n defaultLocale?: string;\n displayName?: string;\n enabled?: boolean;\n from: string;\n subject: Record<string, string>;\n};\n\nexport type ThemeSkeleton = ObjectSkeletonInterface & {\n name: string;\n isDefault: boolean;\n linkedTrees: string[];\n};\n\nexport type UiThemeRealmObject = ObjectSkeletonInterface & {\n name: string;\n realm: Map<string, ThemeSkeleton[]>;\n};\n\nexport enum ScriptLanguage {\n GROOVY = 'GROOVY',\n JAVASCRIPT = 'JAVASCRIPT',\n}\n\nexport enum ScriptContext {\n OAUTH2_ACCESS_TOKEN_MODIFICATION = 'OAUTH2_ACCESS_TOKEN_MODIFICATION',\n AUTHENTICATION_CLIENT_SIDE = 'AUTHENTICATION_CLIENT_SIDE',\n AUTHENTICATION_TREE_DECISION_NODE = 'AUTHENTICATION_TREE_DECISION_NODE',\n AUTHENTICATION_SERVER_SIDE = 'AUTHENTICATION_SERVER_SIDE',\n SOCIAL_IDP_PROFILE_TRANSFORMATION = 'SOCIAL_IDP_PROFILE_TRANSFORMATION',\n OAUTH2_VALIDATE_SCOPE = 'OAUTH2_VALIDATE_SCOPE',\n CONFIG_PROVIDER_NODE = 'CONFIG_PROVIDER_NODE',\n OAUTH2_AUTHORIZE_ENDPOINT_DATA_PROVIDER = 'OAUTH2_AUTHORIZE_ENDPOINT_DATA_PROVIDER',\n OAUTH2_EVALUATE_SCOPE = 'OAUTH2_EVALUATE_SCOPE',\n POLICY_CONDITION = 'POLICY_CONDITION',\n OIDC_CLAIMS = 'OIDC_CLAIMS',\n SAML2_IDP_ADAPTER = 'SAML2_IDP_ADAPTER',\n SAML2_IDP_ATTRIBUTE_MAPPER = 'SAML2_IDP_ATTRIBUTE_MAPPER',\n OAUTH2_MAY_ACT = 'OAUTH2_MAY_ACT',\n}\n\nexport type ScriptSkeleton = ObjectSkeletonInterface & {\n name: string;\n description: string;\n isDefault: boolean;\n script: string;\n language: ScriptLanguage;\n context: ScriptContext;\n createdBy: string;\n creationDate: number;\n lastModifiedBy: string;\n lastModifiedDate: number;\n};\n\nexport enum Saml2ProiderLocation {\n HOSTED = 'hosted',\n REMOTE = 'remote',\n}\n\nexport type Saml2ProviderSkeleton = ObjectSkeletonInterface & {\n entityId: string;\n entityLocation: Saml2ProiderLocation;\n serviceProvider: unknown;\n identityProvider: unknown;\n attributeQueryProvider: unknown;\n xacmlPolicyEnforcementPoint: unknown;\n};\n\nexport type CircleOfTrustSkeleton = ObjectSkeletonInterface & {\n _type: AmServiceType;\n status: string;\n trustedProviders: string[];\n};\n"]}
|