@rockcarver/frodo-lib 0.17.3 → 0.17.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.
Files changed (63) hide show
  1. package/CHANGELOG.md +5 -1
  2. package/cjs/api/Saml2Api.js +36 -14
  3. package/cjs/api/Saml2Api.js.map +1 -1
  4. package/cjs/api/ScriptApi.js +23 -2
  5. package/cjs/api/ScriptApi.js.map +1 -1
  6. package/cjs/ops/IdpOps.js +3 -3
  7. package/cjs/ops/IdpOps.js.map +1 -1
  8. package/cjs/ops/JourneyOps.js +49 -35
  9. package/cjs/ops/JourneyOps.js.map +1 -1
  10. package/cjs/ops/JourneyOps.test.js.map +1 -1
  11. package/cjs/ops/OpsTypes.js.map +1 -1
  12. package/cjs/ops/Saml2Ops.js +104 -57
  13. package/cjs/ops/Saml2Ops.js.map +1 -1
  14. package/cjs/ops/Saml2Ops.test.js.map +1 -1
  15. package/cjs/ops/ScriptOps.js +193 -186
  16. package/cjs/ops/ScriptOps.js.map +1 -1
  17. package/cjs/ops/ScriptOps.test.js.map +1 -0
  18. package/cjs/test/mocks/ForgeRockApiMockEngine.js +5 -0
  19. package/cjs/test/mocks/ForgeRockApiMockEngine.js.map +1 -1
  20. package/cjs/test/mocks/JourneyOps/importJourney/FrodoTestJourney1.journey.json +148 -0
  21. package/cjs/test/mocks/JourneyOps/importJourney/FrodoTestJourney2.journey.json +76 -0
  22. package/cjs/test/mocks/JourneyOps/importJourney/FrodoTestJourney3.journey.json +873 -0
  23. package/cjs/test/mocks/JourneyOps/importJourney/FrodoTestJourney4.journey.json +930 -0
  24. package/cjs/test/mocks/JourneyOps/importJourney/FrodoTestJourney5.journey.json +873 -0
  25. package/cjs/test/mocks/JourneyOps/importJourney/FrodoTestJourney6.journey.json +148 -0
  26. package/cjs/test/mocks/JourneyOps/importJourney/FrodoTestJourney7.journey.json +148 -0
  27. package/cjs/test/mocks/JourneyOps/importJourney/FrodoTestJourney8.journey.json +148 -0
  28. package/cjs/test/mocks/JourneyOps/importJourney/FrodoTestJourney9.journey.json +148 -0
  29. package/esm/api/Saml2Api.mjs +17 -1
  30. package/esm/api/ScriptApi.mjs +17 -2
  31. package/esm/ops/IdpOps.mjs +4 -4
  32. package/esm/ops/JourneyOps.mjs +30 -21
  33. package/esm/ops/JourneyOps.test.mjs +220 -246
  34. package/esm/ops/Saml2Ops.mjs +66 -31
  35. package/esm/ops/Saml2Ops.test.mjs +399 -333
  36. package/esm/ops/ScriptOps.mjs +148 -152
  37. package/esm/ops/ScriptOps.test.mjs +282 -0
  38. package/esm/test/mocks/ForgeRockApiMockEngine.mjs +4 -0
  39. package/esm/test/mocks/JourneyOps/importJourney/FrodoTestJourney1.journey.json +148 -0
  40. package/esm/test/mocks/JourneyOps/importJourney/FrodoTestJourney2.journey.json +76 -0
  41. package/esm/test/mocks/JourneyOps/importJourney/FrodoTestJourney3.journey.json +873 -0
  42. package/esm/test/mocks/JourneyOps/importJourney/FrodoTestJourney4.journey.json +930 -0
  43. package/esm/test/mocks/JourneyOps/importJourney/FrodoTestJourney5.journey.json +873 -0
  44. package/esm/test/mocks/JourneyOps/importJourney/FrodoTestJourney6.journey.json +148 -0
  45. package/esm/test/mocks/JourneyOps/importJourney/FrodoTestJourney7.journey.json +148 -0
  46. package/esm/test/mocks/JourneyOps/importJourney/FrodoTestJourney8.journey.json +148 -0
  47. package/esm/test/mocks/JourneyOps/importJourney/FrodoTestJourney9.journey.json +148 -0
  48. package/package.json +10 -2
  49. package/types/api/Saml2Api.d.ts +8 -1
  50. package/types/api/Saml2Api.d.ts.map +1 -1
  51. package/types/api/ScriptApi.d.ts +7 -1
  52. package/types/api/ScriptApi.d.ts.map +1 -1
  53. package/types/ops/IdpOps.d.ts.map +1 -1
  54. package/types/ops/JourneyOps.d.ts +17 -3
  55. package/types/ops/JourneyOps.d.ts.map +1 -1
  56. package/types/ops/OpsTypes.d.ts +1 -1
  57. package/types/ops/OpsTypes.d.ts.map +1 -1
  58. package/types/ops/Saml2Ops.d.ts +24 -12
  59. package/types/ops/Saml2Ops.d.ts.map +1 -1
  60. package/types/ops/ScriptOps.d.ts +56 -20
  61. package/types/ops/ScriptOps.d.ts.map +1 -1
  62. package/types/test/mocks/ForgeRockApiMockEngine.d.ts +1 -0
  63. package/types/test/mocks/ForgeRockApiMockEngine.d.ts.map +1 -1
@@ -0,0 +1,148 @@
1
+ {
2
+ "meta": {
3
+ "origin": "https://openam-volker-dev.forgeblocks.com/am",
4
+ "originAmVersion": "7.3.0",
5
+ "exportedBy": "volker.scheuber@forgerock.com",
6
+ "exportDate": "2023-01-04T19:11:30.386Z",
7
+ "exportTool": "frodo",
8
+ "exportToolVersion": "v0.17.3 [v18.7.0]"
9
+ },
10
+ "innerNodes": {
11
+ "e16d346b-0d34-4f90-a7ec-059edf1d4af8": {
12
+ "_id": "e16d346b-0d34-4f90-a7ec-059edf1d4af8",
13
+ "_rev": "-712569190",
14
+ "usernameAttribute": "userName",
15
+ "validateInput": false,
16
+ "_type": {
17
+ "_id": "ValidatedUsernameNode",
18
+ "name": "Platform Username",
19
+ "collection": true
20
+ },
21
+ "_outcomes": [
22
+ {
23
+ "id": "outcome",
24
+ "displayName": "Outcome"
25
+ }
26
+ ]
27
+ },
28
+ "c6926f76-112c-4237-a99c-25193ef7aa2c": {
29
+ "_id": "c6926f76-112c-4237-a99c-25193ef7aa2c",
30
+ "_rev": "-1719690365",
31
+ "passwordAttribute": "password",
32
+ "validateInput": false,
33
+ "_type": {
34
+ "_id": "ValidatedPasswordNode",
35
+ "name": "Platform Password",
36
+ "collection": true
37
+ },
38
+ "_outcomes": [
39
+ {
40
+ "id": "outcome",
41
+ "displayName": "Outcome"
42
+ }
43
+ ]
44
+ }
45
+ },
46
+ "nodes": {
47
+ "20dde5d1-fe72-473a-b811-c16fe753fef5": {
48
+ "_id": "20dde5d1-fe72-473a-b811-c16fe753fef5",
49
+ "_rev": "311952855",
50
+ "_type": {
51
+ "_id": "DataStoreDecisionNode",
52
+ "name": "Data Store Decision",
53
+ "collection": true
54
+ },
55
+ "_outcomes": [
56
+ {
57
+ "id": "true",
58
+ "displayName": "True"
59
+ },
60
+ {
61
+ "id": "false",
62
+ "displayName": "False"
63
+ }
64
+ ]
65
+ },
66
+ "a2fda63a-859d-44c0-ba5e-ac0bd5d82040": {
67
+ "_id": "a2fda63a-859d-44c0-ba5e-ac0bd5d82040",
68
+ "_rev": "1061038036",
69
+ "nodes": [
70
+ {
71
+ "_id": "e16d346b-0d34-4f90-a7ec-059edf1d4af8",
72
+ "nodeType": "ValidatedUsernameNode",
73
+ "displayName": "Username"
74
+ },
75
+ {
76
+ "_id": "c6926f76-112c-4237-a99c-25193ef7aa2c",
77
+ "nodeType": "ValidatedPasswordNode",
78
+ "displayName": "Password"
79
+ }
80
+ ],
81
+ "pageDescription": {},
82
+ "pageHeader": {},
83
+ "_type": {
84
+ "_id": "PageNode",
85
+ "name": "Page Node",
86
+ "collection": true
87
+ },
88
+ "_outcomes": [
89
+ {
90
+ "id": "outcome",
91
+ "displayName": "Outcome"
92
+ }
93
+ ]
94
+ }
95
+ },
96
+ "scripts": {},
97
+ "emailTemplates": {},
98
+ "socialIdentityProviders": {},
99
+ "themes": [],
100
+ "saml2Entities": {},
101
+ "circlesOfTrust": {},
102
+ "tree": {
103
+ "_id": "FrodoTestJourney6",
104
+ "_rev": "-532542814",
105
+ "identityResource": "managed/alpha_user",
106
+ "uiConfig": {
107
+ "categories": "[\"Frodo\",\"Prototype\"]"
108
+ },
109
+ "entryNodeId": "a2fda63a-859d-44c0-ba5e-ac0bd5d82040",
110
+ "nodes": {
111
+ "20dde5d1-fe72-473a-b811-c16fe753fef5": {
112
+ "x": 455,
113
+ "y": 137.5,
114
+ "connections": {
115
+ "false": "e301438c-0bd0-429c-ab0c-66126501069a",
116
+ "true": "70e691a5-1e33-4ac3-a356-e7b6d60d92e0"
117
+ },
118
+ "nodeType": "DataStoreDecisionNode",
119
+ "displayName": "Validate Credentials"
120
+ },
121
+ "a2fda63a-859d-44c0-ba5e-ac0bd5d82040": {
122
+ "x": 210,
123
+ "y": 109,
124
+ "connections": {
125
+ "outcome": "20dde5d1-fe72-473a-b811-c16fe753fef5"
126
+ },
127
+ "nodeType": "PageNode",
128
+ "displayName": "Login Page"
129
+ }
130
+ },
131
+ "staticNodes": {
132
+ "startNode": {
133
+ "x": 70,
134
+ "y": 155
135
+ },
136
+ "70e691a5-1e33-4ac3-a356-e7b6d60d92e0": {
137
+ "x": 692,
138
+ "y": 230
139
+ },
140
+ "e301438c-0bd0-429c-ab0c-66126501069a": {
141
+ "x": 692,
142
+ "y": 80
143
+ }
144
+ },
145
+ "description": "Frodo test journey",
146
+ "enabled": true
147
+ }
148
+ }
@@ -0,0 +1,148 @@
1
+ {
2
+ "meta": {
3
+ "origin": "https://openam-volker-dev.forgeblocks.com/am",
4
+ "originAmVersion": "7.3.0",
5
+ "exportedBy": "volker.scheuber@forgerock.com",
6
+ "exportDate": "2023-01-04T19:11:39.199Z",
7
+ "exportTool": "frodo",
8
+ "exportToolVersion": "v0.17.3 [v18.7.0]"
9
+ },
10
+ "innerNodes": {
11
+ "533d2d2c-098d-40fe-8176-dc7e8c3fb870": {
12
+ "_id": "533d2d2c-098d-40fe-8176-dc7e8c3fb870",
13
+ "_rev": "-1207487356",
14
+ "usernameAttribute": "userName",
15
+ "validateInput": false,
16
+ "_type": {
17
+ "_id": "ValidatedUsernameNode",
18
+ "name": "Platform Username",
19
+ "collection": true
20
+ },
21
+ "_outcomes": [
22
+ {
23
+ "id": "outcome",
24
+ "displayName": "Outcome"
25
+ }
26
+ ]
27
+ },
28
+ "35d6bbfa-7f62-4798-9070-c163db504b70": {
29
+ "_id": "35d6bbfa-7f62-4798-9070-c163db504b70",
30
+ "_rev": "-182957717",
31
+ "passwordAttribute": "password",
32
+ "validateInput": false,
33
+ "_type": {
34
+ "_id": "ValidatedPasswordNode",
35
+ "name": "Platform Password",
36
+ "collection": true
37
+ },
38
+ "_outcomes": [
39
+ {
40
+ "id": "outcome",
41
+ "displayName": "Outcome"
42
+ }
43
+ ]
44
+ }
45
+ },
46
+ "nodes": {
47
+ "d6171ae2-903d-41cc-b851-af6414e56d56": {
48
+ "_id": "d6171ae2-903d-41cc-b851-af6414e56d56",
49
+ "_rev": "-1742098952",
50
+ "nodes": [
51
+ {
52
+ "_id": "533d2d2c-098d-40fe-8176-dc7e8c3fb870",
53
+ "nodeType": "ValidatedUsernameNode",
54
+ "displayName": "Username"
55
+ },
56
+ {
57
+ "_id": "35d6bbfa-7f62-4798-9070-c163db504b70",
58
+ "nodeType": "ValidatedPasswordNode",
59
+ "displayName": "Password"
60
+ }
61
+ ],
62
+ "pageDescription": {},
63
+ "pageHeader": {},
64
+ "_type": {
65
+ "_id": "PageNode",
66
+ "name": "Page Node",
67
+ "collection": true
68
+ },
69
+ "_outcomes": [
70
+ {
71
+ "id": "outcome",
72
+ "displayName": "Outcome"
73
+ }
74
+ ]
75
+ },
76
+ "a9adc345-4fef-4d86-831a-9d8bc952f844": {
77
+ "_id": "a9adc345-4fef-4d86-831a-9d8bc952f844",
78
+ "_rev": "-615114143",
79
+ "_type": {
80
+ "_id": "DataStoreDecisionNode",
81
+ "name": "Data Store Decision",
82
+ "collection": true
83
+ },
84
+ "_outcomes": [
85
+ {
86
+ "id": "true",
87
+ "displayName": "True"
88
+ },
89
+ {
90
+ "id": "false",
91
+ "displayName": "False"
92
+ }
93
+ ]
94
+ }
95
+ },
96
+ "scripts": {},
97
+ "emailTemplates": {},
98
+ "socialIdentityProviders": {},
99
+ "themes": [],
100
+ "saml2Entities": {},
101
+ "circlesOfTrust": {},
102
+ "tree": {
103
+ "_id": "FrodoTestJourney7",
104
+ "_rev": "753396247",
105
+ "identityResource": "managed/alpha_user",
106
+ "uiConfig": {
107
+ "categories": "[\"Frodo\",\"Prototype\"]"
108
+ },
109
+ "entryNodeId": "d6171ae2-903d-41cc-b851-af6414e56d56",
110
+ "nodes": {
111
+ "d6171ae2-903d-41cc-b851-af6414e56d56": {
112
+ "x": 210,
113
+ "y": 109,
114
+ "connections": {
115
+ "outcome": "a9adc345-4fef-4d86-831a-9d8bc952f844"
116
+ },
117
+ "nodeType": "PageNode",
118
+ "displayName": "Login Page"
119
+ },
120
+ "a9adc345-4fef-4d86-831a-9d8bc952f844": {
121
+ "x": 455,
122
+ "y": 137.5,
123
+ "connections": {
124
+ "false": "e301438c-0bd0-429c-ab0c-66126501069a",
125
+ "true": "70e691a5-1e33-4ac3-a356-e7b6d60d92e0"
126
+ },
127
+ "nodeType": "DataStoreDecisionNode",
128
+ "displayName": "Validate Credentials"
129
+ }
130
+ },
131
+ "staticNodes": {
132
+ "startNode": {
133
+ "x": 70,
134
+ "y": 155
135
+ },
136
+ "70e691a5-1e33-4ac3-a356-e7b6d60d92e0": {
137
+ "x": 692,
138
+ "y": 230
139
+ },
140
+ "e301438c-0bd0-429c-ab0c-66126501069a": {
141
+ "x": 692,
142
+ "y": 80
143
+ }
144
+ },
145
+ "description": "Frodo test journey",
146
+ "enabled": true
147
+ }
148
+ }
@@ -0,0 +1,148 @@
1
+ {
2
+ "meta": {
3
+ "origin": "https://openam-volker-dev.forgeblocks.com/am",
4
+ "originAmVersion": "7.3.0",
5
+ "exportedBy": "volker.scheuber@forgerock.com",
6
+ "exportDate": "2023-01-04T19:11:45.591Z",
7
+ "exportTool": "frodo",
8
+ "exportToolVersion": "v0.17.3 [v18.7.0]"
9
+ },
10
+ "innerNodes": {
11
+ "765eb91a-954c-4049-9ea4-30045093d09c": {
12
+ "_id": "765eb91a-954c-4049-9ea4-30045093d09c",
13
+ "_rev": "157839911",
14
+ "usernameAttribute": "userName",
15
+ "validateInput": false,
16
+ "_type": {
17
+ "_id": "ValidatedUsernameNode",
18
+ "name": "Platform Username",
19
+ "collection": true
20
+ },
21
+ "_outcomes": [
22
+ {
23
+ "id": "outcome",
24
+ "displayName": "Outcome"
25
+ }
26
+ ]
27
+ },
28
+ "18d52165-29d8-4ffb-b0f2-0ba1c6756a2b": {
29
+ "_id": "18d52165-29d8-4ffb-b0f2-0ba1c6756a2b",
30
+ "_rev": "-2052703081",
31
+ "passwordAttribute": "password",
32
+ "validateInput": false,
33
+ "_type": {
34
+ "_id": "ValidatedPasswordNode",
35
+ "name": "Platform Password",
36
+ "collection": true
37
+ },
38
+ "_outcomes": [
39
+ {
40
+ "id": "outcome",
41
+ "displayName": "Outcome"
42
+ }
43
+ ]
44
+ }
45
+ },
46
+ "nodes": {
47
+ "b20da99f-e162-4b03-be45-13379995867f": {
48
+ "_id": "b20da99f-e162-4b03-be45-13379995867f",
49
+ "_rev": "1577752767",
50
+ "nodes": [
51
+ {
52
+ "_id": "765eb91a-954c-4049-9ea4-30045093d09c",
53
+ "nodeType": "ValidatedUsernameNode",
54
+ "displayName": "Username"
55
+ },
56
+ {
57
+ "_id": "18d52165-29d8-4ffb-b0f2-0ba1c6756a2b",
58
+ "nodeType": "ValidatedPasswordNode",
59
+ "displayName": "Password"
60
+ }
61
+ ],
62
+ "pageDescription": {},
63
+ "pageHeader": {},
64
+ "_type": {
65
+ "_id": "PageNode",
66
+ "name": "Page Node",
67
+ "collection": true
68
+ },
69
+ "_outcomes": [
70
+ {
71
+ "id": "outcome",
72
+ "displayName": "Outcome"
73
+ }
74
+ ]
75
+ },
76
+ "277c21a5-1474-45f9-aa8c-b39eaffc1b2b": {
77
+ "_id": "277c21a5-1474-45f9-aa8c-b39eaffc1b2b",
78
+ "_rev": "-1228956628",
79
+ "_type": {
80
+ "_id": "DataStoreDecisionNode",
81
+ "name": "Data Store Decision",
82
+ "collection": true
83
+ },
84
+ "_outcomes": [
85
+ {
86
+ "id": "true",
87
+ "displayName": "True"
88
+ },
89
+ {
90
+ "id": "false",
91
+ "displayName": "False"
92
+ }
93
+ ]
94
+ }
95
+ },
96
+ "scripts": {},
97
+ "emailTemplates": {},
98
+ "socialIdentityProviders": {},
99
+ "themes": [],
100
+ "saml2Entities": {},
101
+ "circlesOfTrust": {},
102
+ "tree": {
103
+ "_id": "FrodoTestJourney8",
104
+ "_rev": "-1342780544",
105
+ "identityResource": "managed/alpha_user",
106
+ "uiConfig": {
107
+ "categories": "[\"Frodo\",\"Prototype\"]"
108
+ },
109
+ "entryNodeId": "b20da99f-e162-4b03-be45-13379995867f",
110
+ "nodes": {
111
+ "b20da99f-e162-4b03-be45-13379995867f": {
112
+ "x": 210,
113
+ "y": 109,
114
+ "connections": {
115
+ "outcome": "277c21a5-1474-45f9-aa8c-b39eaffc1b2b"
116
+ },
117
+ "nodeType": "PageNode",
118
+ "displayName": "Login Page"
119
+ },
120
+ "277c21a5-1474-45f9-aa8c-b39eaffc1b2b": {
121
+ "x": 455,
122
+ "y": 137.5,
123
+ "connections": {
124
+ "false": "e301438c-0bd0-429c-ab0c-66126501069a",
125
+ "true": "70e691a5-1e33-4ac3-a356-e7b6d60d92e0"
126
+ },
127
+ "nodeType": "DataStoreDecisionNode",
128
+ "displayName": "Validate Credentials"
129
+ }
130
+ },
131
+ "staticNodes": {
132
+ "startNode": {
133
+ "x": 70,
134
+ "y": 155
135
+ },
136
+ "70e691a5-1e33-4ac3-a356-e7b6d60d92e0": {
137
+ "x": 692,
138
+ "y": 230
139
+ },
140
+ "e301438c-0bd0-429c-ab0c-66126501069a": {
141
+ "x": 692,
142
+ "y": 80
143
+ }
144
+ },
145
+ "description": "Frodo test journey",
146
+ "enabled": false
147
+ }
148
+ }
@@ -0,0 +1,148 @@
1
+ {
2
+ "meta": {
3
+ "origin": "https://openam-volker-dev.forgeblocks.com/am",
4
+ "originAmVersion": "7.3.0",
5
+ "exportedBy": "volker.scheuber@forgerock.com",
6
+ "exportDate": "2023-01-04T19:11:51.651Z",
7
+ "exportTool": "frodo",
8
+ "exportToolVersion": "v0.17.3 [v18.7.0]"
9
+ },
10
+ "innerNodes": {
11
+ "dd0e269a-cefa-4912-94f9-2451adfcce87": {
12
+ "_id": "dd0e269a-cefa-4912-94f9-2451adfcce87",
13
+ "_rev": "-287244411",
14
+ "usernameAttribute": "userName",
15
+ "validateInput": false,
16
+ "_type": {
17
+ "_id": "ValidatedUsernameNode",
18
+ "name": "Platform Username",
19
+ "collection": true
20
+ },
21
+ "_outcomes": [
22
+ {
23
+ "id": "outcome",
24
+ "displayName": "Outcome"
25
+ }
26
+ ]
27
+ },
28
+ "79f55cbc-cc4b-4b56-9ae1-b4c863ffd154": {
29
+ "_id": "79f55cbc-cc4b-4b56-9ae1-b4c863ffd154",
30
+ "_rev": "2042446647",
31
+ "passwordAttribute": "password",
32
+ "validateInput": false,
33
+ "_type": {
34
+ "_id": "ValidatedPasswordNode",
35
+ "name": "Platform Password",
36
+ "collection": true
37
+ },
38
+ "_outcomes": [
39
+ {
40
+ "id": "outcome",
41
+ "displayName": "Outcome"
42
+ }
43
+ ]
44
+ }
45
+ },
46
+ "nodes": {
47
+ "82d90fa0-9345-46b5-b5b1-50f732a387ec": {
48
+ "_id": "82d90fa0-9345-46b5-b5b1-50f732a387ec",
49
+ "_rev": "-656439466",
50
+ "nodes": [
51
+ {
52
+ "_id": "dd0e269a-cefa-4912-94f9-2451adfcce87",
53
+ "nodeType": "ValidatedUsernameNode",
54
+ "displayName": "Username"
55
+ },
56
+ {
57
+ "_id": "79f55cbc-cc4b-4b56-9ae1-b4c863ffd154",
58
+ "nodeType": "ValidatedPasswordNode",
59
+ "displayName": "Password"
60
+ }
61
+ ],
62
+ "pageDescription": {},
63
+ "pageHeader": {},
64
+ "_type": {
65
+ "_id": "PageNode",
66
+ "name": "Page Node",
67
+ "collection": true
68
+ },
69
+ "_outcomes": [
70
+ {
71
+ "id": "outcome",
72
+ "displayName": "Outcome"
73
+ }
74
+ ]
75
+ },
76
+ "f07fba3c-b2fb-4298-94c7-c3379132ef74": {
77
+ "_id": "f07fba3c-b2fb-4298-94c7-c3379132ef74",
78
+ "_rev": "-1140480578",
79
+ "_type": {
80
+ "_id": "DataStoreDecisionNode",
81
+ "name": "Data Store Decision",
82
+ "collection": true
83
+ },
84
+ "_outcomes": [
85
+ {
86
+ "id": "true",
87
+ "displayName": "True"
88
+ },
89
+ {
90
+ "id": "false",
91
+ "displayName": "False"
92
+ }
93
+ ]
94
+ }
95
+ },
96
+ "scripts": {},
97
+ "emailTemplates": {},
98
+ "socialIdentityProviders": {},
99
+ "themes": [],
100
+ "saml2Entities": {},
101
+ "circlesOfTrust": {},
102
+ "tree": {
103
+ "_id": "FrodoTestJourney9",
104
+ "_rev": "352270679",
105
+ "identityResource": "managed/alpha_user",
106
+ "uiConfig": {
107
+ "categories": "[\"Frodo\",\"Prototype\"]"
108
+ },
109
+ "entryNodeId": "82d90fa0-9345-46b5-b5b1-50f732a387ec",
110
+ "nodes": {
111
+ "82d90fa0-9345-46b5-b5b1-50f732a387ec": {
112
+ "x": 210,
113
+ "y": 109,
114
+ "connections": {
115
+ "outcome": "f07fba3c-b2fb-4298-94c7-c3379132ef74"
116
+ },
117
+ "nodeType": "PageNode",
118
+ "displayName": "Login Page"
119
+ },
120
+ "f07fba3c-b2fb-4298-94c7-c3379132ef74": {
121
+ "x": 455,
122
+ "y": 137.5,
123
+ "connections": {
124
+ "false": "e301438c-0bd0-429c-ab0c-66126501069a",
125
+ "true": "70e691a5-1e33-4ac3-a356-e7b6d60d92e0"
126
+ },
127
+ "nodeType": "DataStoreDecisionNode",
128
+ "displayName": "Validate Credentials"
129
+ }
130
+ },
131
+ "staticNodes": {
132
+ "startNode": {
133
+ "x": 70,
134
+ "y": 155
135
+ },
136
+ "70e691a5-1e33-4ac3-a356-e7b6d60d92e0": {
137
+ "x": 692,
138
+ "y": 230
139
+ },
140
+ "e301438c-0bd0-429c-ab0c-66126501069a": {
141
+ "x": 692,
142
+ "y": 80
143
+ }
144
+ },
145
+ "description": "Frodo test journey",
146
+ "enabled": false
147
+ }
148
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rockcarver/frodo-lib",
3
- "version": "0.17.3",
3
+ "version": "0.17.4",
4
4
  "type": "commonjs",
5
5
  "main": "./cjs/index.js",
6
6
  "module": "./esm/index.mjs",
@@ -18,7 +18,7 @@
18
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
  "test:record": "FRODO_POLLY_MODE=record node --no-warnings --experimental-vm-modules --experimental-specifier-resolution=node node_modules/jest/bin/jest.js --verbose=true --silent=false --updateSnapshot --testPathIgnorePatterns cjs --testPathPattern",
20
20
  "test:record_noauth": "FRODO_POLLY_MODE=record_noauth node --no-warnings --experimental-vm-modules --experimental-specifier-resolution=node node_modules/jest/bin/jest.js --verbose=true --silent=false --updateSnapshot --testPathIgnorePatterns cjs --testPathPattern",
21
- "test:update": "node --no-warnings --experimental-vm-modules --experimental-specifier-resolution=node node_modules/jest/bin/jest.js --verbose=true --silent=false --updateSnapshot --testPathIgnorePatterns esm --testPathPattern",
21
+ "test:update": "node --no-warnings --experimental-vm-modules --experimental-specifier-resolution=node node_modules/jest/bin/jest.js --verbose=true --silent=false --updateSnapshot --testPathPattern",
22
22
  "lint": "npx eslint --ext .ts --ignore-path .gitignore .",
23
23
  "build": "npx gulp",
24
24
  "watch": "npx gulp watch"
@@ -74,10 +74,18 @@
74
74
  "name": "Adam Crockett",
75
75
  "email": "adam.crockett@forgerock.com"
76
76
  },
77
+ {
78
+ "name": "Mees van Dongen",
79
+ "email": "meesvandongen@gmail.com"
80
+ },
77
81
  {
78
82
  "name": "Ali Falahi",
79
83
  "email": "ali@falahi.com"
80
84
  },
85
+ {
86
+ "name": "Marcel Maas",
87
+ "email": "maas.marcel@gmail.com"
88
+ },
81
89
  {
82
90
  "name": "Joshua Sayers",
83
91
  "email": "joshua.sayers@forgerock.com"
@@ -17,6 +17,13 @@ export declare function findProviders(filter?: string, fields?: string[]): Promi
17
17
  * @returns {Promise} a promise that resolves to a saml2 entity provider object
18
18
  */
19
19
  export declare function getProviderByLocationAndId(location: string, entityId64: string): Promise<any>;
20
+ /**
21
+ * Geta SAML2 entity provider by location and id
22
+ * @param {string} location Entity provider location (hosted or remote)
23
+ * @param {string} entityId64 Base64-encoded provider entity id
24
+ * @returns {Promise} a promise that resolves to a saml2 entity provider object
25
+ */
26
+ export declare function deleteProviderByLocationAndId(location: string, entityId64: string): Promise<any>;
20
27
  /**
21
28
  * Get a SAML2 entity provider's metadata URL by entity id
22
29
  * @param {string} entityId SAML2 entity id
@@ -49,7 +56,7 @@ export declare function updateProvider(location: any, providerData: any): Promis
49
56
  * @param {string} entityId Provider entity id
50
57
  * @returns {Promise} a promise that resolves to a provider object
51
58
  */
52
- export declare function deleteProvider(entityId: any): Promise<any>;
59
+ export declare function deleteRawProvider(entityId: any): Promise<any>;
53
60
  /**
54
61
  * Retrieves all entity providers using the legacy federation enpoints.
55
62
  * @returns {Promise} a promise that resolves to an object containing an array of providers