From 1219e560ab9c71fea7fb2147929ca7ee0a1fbc50 Mon Sep 17 00:00:00 2001 From: Dallin Sevy Date: Tue, 19 May 2026 15:09:58 -0600 Subject: [PATCH] feat: Add iga Scope commands --- src/cli/config/config-export.ts | 4 +- src/cli/config/config-import.ts | 6 +- src/cli/iga/iga.ts | 2 + src/cli/iga/scope/iga-scope-delete.ts | 83 + src/cli/iga/scope/iga-scope-describe.ts | 66 + src/cli/iga/scope/iga-scope-export.ts | 136 ++ src/cli/iga/scope/iga-scope-import.ts | 137 ++ src/cli/iga/scope/iga-scope-list.ts | 58 + src/cli/iga/scope/iga-scope.ts | 26 + src/ops/cloud/iga/IgaScopeOps.ts | 577 ++++++ src/ops/cloud/iga/IgaWorkflowOps.ts | 16 +- .../iga-scope-delete.e2e.test.js.snap | 15 + .../iga-scope-describe.e2e.test.js.snap | 47 + .../iga-scope-export.e2e.test.js.snap | 1731 +++++++++++++++++ .../iga-scope-import.e2e.test.js.snap | 36 + .../iga-scope-list.e2e.test.js.snap | 50 + .../cloud/global/scope/New-Scope.scope.json | 35 + .../global/scope/User-LCM-Test.scope.json | 53 + .../global/scope/contains-test.scope.json | 37 + .../scope/does-not-contain-test.scope.json | 37 + .../global/scope/ends-with-scope.scope.json | 37 + .../cloud/global/scope/equals-test.scope.json | 111 ++ .../cloud/global/scope/is-not-test.scope.json | 37 + .../scope/phh-delegate-visibility.scope.json | 53 + .../global/scope/random-scope.scope.json | 62 + .../global/scope/starts-with-test.scope.json | 128 ++ .../cloud/global/scope/test.scope.json | 78 + .../global/scope/testScopeExportFile1.json | 128 ++ test/e2e/exports/all/allScopes.scope.json | 548 ++++++ test/e2e/iga-scope-delete.e2e.test.ts | 79 + test/e2e/iga-scope-describe.e2e.test.ts | 84 + test/e2e/iga-scope-export.e2e.test.ts | 82 + test/e2e/iga-scope-import.e2e.test.ts | 107 + test/e2e/iga-scope-list.e2e.test.ts | 82 + .../am_1076162899/recording.har | 312 +++ .../environment_1072573434/recording.har | 125 ++ .../iga_2664973160/recording.har | 1302 +++++++++++++ .../oauth2_393036114/recording.har | 146 ++ .../openidm_3290118515/recording.har | 310 +++ .../am_1076162899/recording.har | 312 +++ .../environment_1072573434/recording.har | 125 ++ .../iga_2664973160/recording.har | 267 +++ .../oauth2_393036114/recording.har | 146 ++ .../openidm_3290118515/recording.har | 310 +++ .../am_1076162899/recording.har | 312 +++ .../environment_1072573434/recording.har | 125 ++ .../oauth2_393036114/recording.har | 146 ++ .../openidm_3290118515/recording.har | 310 +++ .../am_1076162899/recording.har | 312 +++ .../environment_1072573434/recording.har | 125 ++ .../oauth2_393036114/recording.har | 146 ++ .../openidm_3290118515/recording.har | 310 +++ .../am_1076162899/recording.har | 312 +++ .../environment_1072573434/recording.har | 125 ++ .../iga_2664973160/recording.har | 147 ++ .../oauth2_393036114/recording.har | 146 ++ .../openidm_3290118515/recording.har | 310 +++ .../am_1076162899/recording.har | 312 +++ .../environment_1072573434/recording.har | 125 ++ .../iga_2664973160/recording.har | 147 ++ .../oauth2_393036114/recording.har | 146 ++ .../openidm_3290118515/recording.har | 310 +++ .../am_1076162899/recording.har | 312 +++ .../environment_1072573434/recording.har | 125 ++ .../iga_2664973160/recording.har | 147 ++ .../oauth2_393036114/recording.har | 146 ++ .../openidm_3290118515/recording.har | 310 +++ .../am_1076162899/recording.har | 312 +++ .../environment_1072573434/recording.har | 125 ++ .../iga_2664973160/recording.har | 147 ++ .../oauth2_393036114/recording.har | 146 ++ .../openidm_3290118515/recording.har | 310 +++ .../am_1076162899/recording.har | 312 +++ .../environment_1072573434/recording.har | 125 ++ .../iga_2664973160/recording.har | 147 ++ .../oauth2_393036114/recording.har | 146 ++ .../openidm_3290118515/recording.har | 310 +++ .../am_1076162899/recording.har | 312 +++ .../environment_1072573434/recording.har | 125 ++ .../iga_2664973160/recording.har | 1313 +++++++++++++ .../oauth2_393036114/recording.har | 146 ++ .../openidm_3290118515/recording.har | 310 +++ .../am_1076162899/recording.har | 312 +++ .../environment_1072573434/recording.har | 125 ++ .../iga_2664973160/recording.har | 147 ++ .../oauth2_393036114/recording.har | 146 ++ .../openidm_3290118515/recording.har | 310 +++ .../am_1076162899/recording.har | 312 +++ .../environment_1072573434/recording.har | 125 ++ .../iga_2664973160/recording.har | 271 +++ .../oauth2_393036114/recording.har | 146 ++ .../openidm_3290118515/recording.har | 310 +++ .../am_1076162899/recording.har | 312 +++ .../environment_1072573434/recording.har | 125 ++ .../iga_2664973160/recording.har | 271 +++ .../oauth2_393036114/recording.har | 146 ++ .../openidm_3290118515/recording.har | 310 +++ .../am_1076162899/recording.har | 312 +++ .../environment_1072573434/recording.har | 125 ++ .../iga_2664973160/recording.har | 147 ++ .../oauth2_393036114/recording.har | 146 ++ .../openidm_3290118515/recording.har | 310 +++ .../0_890022063/am_1076162899/recording.har | 312 +++ .../environment_1072573434/recording.har | 125 ++ .../0_890022063/iga_2664973160/recording.har | 147 ++ .../oauth2_393036114/recording.har | 146 ++ .../openidm_3290118515/recording.har | 310 +++ .../am_1076162899/recording.har | 312 +++ .../environment_1072573434/recording.har | 125 ++ .../iga_2664973160/recording.har | 147 ++ .../oauth2_393036114/recording.har | 146 ++ .../openidm_3290118515/recording.har | 310 +++ .../am_1076162899/recording.har | 312 +++ .../environment_1072573434/recording.har | 125 ++ .../iga_2664973160/recording.har | 147 ++ .../oauth2_393036114/recording.har | 146 ++ .../openidm_3290118515/recording.har | 310 +++ 117 files changed, 24836 insertions(+), 7 deletions(-) create mode 100644 src/cli/iga/scope/iga-scope-delete.ts create mode 100644 src/cli/iga/scope/iga-scope-describe.ts create mode 100644 src/cli/iga/scope/iga-scope-export.ts create mode 100644 src/cli/iga/scope/iga-scope-import.ts create mode 100644 src/cli/iga/scope/iga-scope-list.ts create mode 100644 src/cli/iga/scope/iga-scope.ts create mode 100644 src/ops/cloud/iga/IgaScopeOps.ts create mode 100644 test/e2e/__snapshots__/iga-scope-delete.e2e.test.js.snap create mode 100644 test/e2e/__snapshots__/iga-scope-describe.e2e.test.js.snap create mode 100644 test/e2e/__snapshots__/iga-scope-export.e2e.test.js.snap create mode 100644 test/e2e/__snapshots__/iga-scope-import.e2e.test.js.snap create mode 100644 test/e2e/__snapshots__/iga-scope-list.e2e.test.js.snap create mode 100644 test/e2e/exports/all-separate/cloud/global/scope/New-Scope.scope.json create mode 100644 test/e2e/exports/all-separate/cloud/global/scope/User-LCM-Test.scope.json create mode 100644 test/e2e/exports/all-separate/cloud/global/scope/contains-test.scope.json create mode 100644 test/e2e/exports/all-separate/cloud/global/scope/does-not-contain-test.scope.json create mode 100644 test/e2e/exports/all-separate/cloud/global/scope/ends-with-scope.scope.json create mode 100644 test/e2e/exports/all-separate/cloud/global/scope/equals-test.scope.json create mode 100644 test/e2e/exports/all-separate/cloud/global/scope/is-not-test.scope.json create mode 100644 test/e2e/exports/all-separate/cloud/global/scope/phh-delegate-visibility.scope.json create mode 100644 test/e2e/exports/all-separate/cloud/global/scope/random-scope.scope.json create mode 100644 test/e2e/exports/all-separate/cloud/global/scope/starts-with-test.scope.json create mode 100644 test/e2e/exports/all-separate/cloud/global/scope/test.scope.json create mode 100644 test/e2e/exports/all-separate/cloud/global/scope/testScopeExportFile1.json create mode 100644 test/e2e/exports/all/allScopes.scope.json create mode 100644 test/e2e/iga-scope-delete.e2e.test.ts create mode 100644 test/e2e/iga-scope-describe.e2e.test.ts create mode 100644 test/e2e/iga-scope-export.e2e.test.ts create mode 100644 test/e2e/iga-scope-import.e2e.test.ts create mode 100644 test/e2e/iga-scope-list.e2e.test.ts create mode 100644 test/e2e/mocks/iga_2664973160/scope-delete_2021703181/0_all_1797740195/am_1076162899/recording.har create mode 100644 test/e2e/mocks/iga_2664973160/scope-delete_2021703181/0_all_1797740195/environment_1072573434/recording.har create mode 100644 test/e2e/mocks/iga_2664973160/scope-delete_2021703181/0_all_1797740195/iga_2664973160/recording.har create mode 100644 test/e2e/mocks/iga_2664973160/scope-delete_2021703181/0_all_1797740195/oauth2_393036114/recording.har create mode 100644 test/e2e/mocks/iga_2664973160/scope-delete_2021703181/0_all_1797740195/openidm_3290118515/recording.har create mode 100644 test/e2e/mocks/iga_2664973160/scope-delete_2021703181/0_n_2861796890/am_1076162899/recording.har create mode 100644 test/e2e/mocks/iga_2664973160/scope-delete_2021703181/0_n_2861796890/environment_1072573434/recording.har create mode 100644 test/e2e/mocks/iga_2664973160/scope-delete_2021703181/0_n_2861796890/iga_2664973160/recording.har create mode 100644 test/e2e/mocks/iga_2664973160/scope-delete_2021703181/0_n_2861796890/oauth2_393036114/recording.har create mode 100644 test/e2e/mocks/iga_2664973160/scope-delete_2021703181/0_n_2861796890/openidm_3290118515/recording.har create mode 100644 test/e2e/mocks/iga_2664973160/scope-describe_2316107699/0_file_174088422/am_1076162899/recording.har create mode 100644 test/e2e/mocks/iga_2664973160/scope-describe_2316107699/0_file_174088422/environment_1072573434/recording.har create mode 100644 test/e2e/mocks/iga_2664973160/scope-describe_2316107699/0_file_174088422/oauth2_393036114/recording.har create mode 100644 test/e2e/mocks/iga_2664973160/scope-describe_2316107699/0_file_174088422/openidm_3290118515/recording.har create mode 100644 test/e2e/mocks/iga_2664973160/scope-describe_2316107699/0_n_f_4242328059/am_1076162899/recording.har create mode 100644 test/e2e/mocks/iga_2664973160/scope-describe_2316107699/0_n_f_4242328059/environment_1072573434/recording.har create mode 100644 test/e2e/mocks/iga_2664973160/scope-describe_2316107699/0_n_f_4242328059/oauth2_393036114/recording.har create mode 100644 test/e2e/mocks/iga_2664973160/scope-describe_2316107699/0_n_f_4242328059/openidm_3290118515/recording.har create mode 100644 test/e2e/mocks/iga_2664973160/scope-describe_2316107699/0_name_1908898899/am_1076162899/recording.har create mode 100644 test/e2e/mocks/iga_2664973160/scope-describe_2316107699/0_name_1908898899/environment_1072573434/recording.har create mode 100644 test/e2e/mocks/iga_2664973160/scope-describe_2316107699/0_name_1908898899/iga_2664973160/recording.har create mode 100644 test/e2e/mocks/iga_2664973160/scope-describe_2316107699/0_name_1908898899/oauth2_393036114/recording.har create mode 100644 test/e2e/mocks/iga_2664973160/scope-describe_2316107699/0_name_1908898899/openidm_3290118515/recording.har create mode 100644 test/e2e/mocks/iga_2664973160/scope-export_236648464/0_NAD_1312604927/am_1076162899/recording.har create mode 100644 test/e2e/mocks/iga_2664973160/scope-export_236648464/0_NAD_1312604927/environment_1072573434/recording.har create mode 100644 test/e2e/mocks/iga_2664973160/scope-export_236648464/0_NAD_1312604927/iga_2664973160/recording.har create mode 100644 test/e2e/mocks/iga_2664973160/scope-export_236648464/0_NAD_1312604927/oauth2_393036114/recording.har create mode 100644 test/e2e/mocks/iga_2664973160/scope-export_236648464/0_NAD_1312604927/openidm_3290118515/recording.har create mode 100644 test/e2e/mocks/iga_2664973160/scope-export_236648464/0_all_file_3124693826/am_1076162899/recording.har create mode 100644 test/e2e/mocks/iga_2664973160/scope-export_236648464/0_all_file_3124693826/environment_1072573434/recording.har create mode 100644 test/e2e/mocks/iga_2664973160/scope-export_236648464/0_all_file_3124693826/iga_2664973160/recording.har create mode 100644 test/e2e/mocks/iga_2664973160/scope-export_236648464/0_all_file_3124693826/oauth2_393036114/recording.har create mode 100644 test/e2e/mocks/iga_2664973160/scope-export_236648464/0_all_file_3124693826/openidm_3290118515/recording.har create mode 100644 test/e2e/mocks/iga_2664973160/scope-export_236648464/0_no-metadata_a_directory_3627220595/am_1076162899/recording.har create mode 100644 test/e2e/mocks/iga_2664973160/scope-export_236648464/0_no-metadata_a_directory_3627220595/environment_1072573434/recording.har create mode 100644 test/e2e/mocks/iga_2664973160/scope-export_236648464/0_no-metadata_a_directory_3627220595/iga_2664973160/recording.har create mode 100644 test/e2e/mocks/iga_2664973160/scope-export_236648464/0_no-metadata_a_directory_3627220595/oauth2_393036114/recording.har create mode 100644 test/e2e/mocks/iga_2664973160/scope-export_236648464/0_no-metadata_a_directory_3627220595/openidm_3290118515/recording.har create mode 100644 test/e2e/mocks/iga_2664973160/scope-import_883436943/0_AD_3050885125/am_1076162899/recording.har create mode 100644 test/e2e/mocks/iga_2664973160/scope-import_883436943/0_AD_3050885125/environment_1072573434/recording.har create mode 100644 test/e2e/mocks/iga_2664973160/scope-import_883436943/0_AD_3050885125/iga_2664973160/recording.har create mode 100644 test/e2e/mocks/iga_2664973160/scope-import_883436943/0_AD_3050885125/oauth2_393036114/recording.har create mode 100644 test/e2e/mocks/iga_2664973160/scope-import_883436943/0_AD_3050885125/openidm_3290118515/recording.har create mode 100644 test/e2e/mocks/iga_2664973160/scope-import_883436943/0_af_3559436575/am_1076162899/recording.har create mode 100644 test/e2e/mocks/iga_2664973160/scope-import_883436943/0_af_3559436575/environment_1072573434/recording.har create mode 100644 test/e2e/mocks/iga_2664973160/scope-import_883436943/0_af_3559436575/iga_2664973160/recording.har create mode 100644 test/e2e/mocks/iga_2664973160/scope-import_883436943/0_af_3559436575/oauth2_393036114/recording.har create mode 100644 test/e2e/mocks/iga_2664973160/scope-import_883436943/0_af_3559436575/openidm_3290118515/recording.har create mode 100644 test/e2e/mocks/iga_2664973160/scope-import_883436943/0_all-separate_directory_3135850579/am_1076162899/recording.har create mode 100644 test/e2e/mocks/iga_2664973160/scope-import_883436943/0_all-separate_directory_3135850579/environment_1072573434/recording.har create mode 100644 test/e2e/mocks/iga_2664973160/scope-import_883436943/0_all-separate_directory_3135850579/iga_2664973160/recording.har create mode 100644 test/e2e/mocks/iga_2664973160/scope-import_883436943/0_all-separate_directory_3135850579/oauth2_393036114/recording.har create mode 100644 test/e2e/mocks/iga_2664973160/scope-import_883436943/0_all-separate_directory_3135850579/openidm_3290118515/recording.har create mode 100644 test/e2e/mocks/iga_2664973160/scope-import_883436943/0_f_2727575938/am_1076162899/recording.har create mode 100644 test/e2e/mocks/iga_2664973160/scope-import_883436943/0_f_2727575938/environment_1072573434/recording.har create mode 100644 test/e2e/mocks/iga_2664973160/scope-import_883436943/0_f_2727575938/iga_2664973160/recording.har create mode 100644 test/e2e/mocks/iga_2664973160/scope-import_883436943/0_f_2727575938/oauth2_393036114/recording.har create mode 100644 test/e2e/mocks/iga_2664973160/scope-import_883436943/0_f_2727575938/openidm_3290118515/recording.har create mode 100644 test/e2e/mocks/iga_2664973160/scope-import_883436943/0_n_f_4242328059/am_1076162899/recording.har create mode 100644 test/e2e/mocks/iga_2664973160/scope-import_883436943/0_n_f_4242328059/environment_1072573434/recording.har create mode 100644 test/e2e/mocks/iga_2664973160/scope-import_883436943/0_n_f_4242328059/iga_2664973160/recording.har create mode 100644 test/e2e/mocks/iga_2664973160/scope-import_883436943/0_n_f_4242328059/oauth2_393036114/recording.har create mode 100644 test/e2e/mocks/iga_2664973160/scope-import_883436943/0_n_f_4242328059/openidm_3290118515/recording.har create mode 100644 test/e2e/mocks/iga_2664973160/scope-import_883436943/0_scope-name_file_3296311755/am_1076162899/recording.har create mode 100644 test/e2e/mocks/iga_2664973160/scope-import_883436943/0_scope-name_file_3296311755/environment_1072573434/recording.har create mode 100644 test/e2e/mocks/iga_2664973160/scope-import_883436943/0_scope-name_file_3296311755/iga_2664973160/recording.har create mode 100644 test/e2e/mocks/iga_2664973160/scope-import_883436943/0_scope-name_file_3296311755/oauth2_393036114/recording.har create mode 100644 test/e2e/mocks/iga_2664973160/scope-import_883436943/0_scope-name_file_3296311755/openidm_3290118515/recording.har create mode 100644 test/e2e/mocks/iga_2664973160/scope-list_1484915438/0_890022063/am_1076162899/recording.har create mode 100644 test/e2e/mocks/iga_2664973160/scope-list_1484915438/0_890022063/environment_1072573434/recording.har create mode 100644 test/e2e/mocks/iga_2664973160/scope-list_1484915438/0_890022063/iga_2664973160/recording.har create mode 100644 test/e2e/mocks/iga_2664973160/scope-list_1484915438/0_890022063/oauth2_393036114/recording.har create mode 100644 test/e2e/mocks/iga_2664973160/scope-list_1484915438/0_890022063/openidm_3290118515/recording.har create mode 100644 test/e2e/mocks/iga_2664973160/scope-list_1484915438/0_l_2828241652/am_1076162899/recording.har create mode 100644 test/e2e/mocks/iga_2664973160/scope-list_1484915438/0_l_2828241652/environment_1072573434/recording.har create mode 100644 test/e2e/mocks/iga_2664973160/scope-list_1484915438/0_l_2828241652/iga_2664973160/recording.har create mode 100644 test/e2e/mocks/iga_2664973160/scope-list_1484915438/0_l_2828241652/oauth2_393036114/recording.har create mode 100644 test/e2e/mocks/iga_2664973160/scope-list_1484915438/0_l_2828241652/openidm_3290118515/recording.har create mode 100644 test/e2e/mocks/iga_2664973160/scope-list_1484915438/0_long_276218670/am_1076162899/recording.har create mode 100644 test/e2e/mocks/iga_2664973160/scope-list_1484915438/0_long_276218670/environment_1072573434/recording.har create mode 100644 test/e2e/mocks/iga_2664973160/scope-list_1484915438/0_long_276218670/iga_2664973160/recording.har create mode 100644 test/e2e/mocks/iga_2664973160/scope-list_1484915438/0_long_276218670/oauth2_393036114/recording.har create mode 100644 test/e2e/mocks/iga_2664973160/scope-list_1484915438/0_long_276218670/openidm_3290118515/recording.har diff --git a/src/cli/config/config-export.ts b/src/cli/config/config-export.ts index 5acecae67..5883787ff 100644 --- a/src/cli/config/config-export.ts +++ b/src/cli/config/config-export.ts @@ -176,7 +176,7 @@ export default function setup() { includeReadOnly: options.readOnly, onlyRealm: options.realmOnly, onlyGlobal: options.globalOnly, - onlyCustom: options.onlyCustom + onlyCustom: options.onlyCustom, } ); if (!outcome) process.exitCode = 1; @@ -209,7 +209,7 @@ export default function setup() { includeReadOnly: options.readOnly, onlyRealm: options.realmOnly, onlyGlobal: options.globalOnly, - onlyCustom: options.onlyCustom + onlyCustom: options.onlyCustom, } ); if (!outcome) process.exitCode = 1; diff --git a/src/cli/config/config-import.ts b/src/cli/config/config-import.ts index 20e887ad3..16c02d90c 100644 --- a/src/cli/config/config-import.ts +++ b/src/cli/config/config-import.ts @@ -135,7 +135,7 @@ export default function setup() { includeDefault: options.default, includeActiveValues: options.includeActiveValues, source: options.source, - onlyCustom: options.onlyCustom + onlyCustom: options.onlyCustom, }); if (!outcome) process.exitCode = 1; } @@ -159,7 +159,7 @@ export default function setup() { includeDefault: options.default, includeActiveValues: options.includeActiveValues, source: options.source, - onlyCustom: options.onlyCustom + onlyCustom: options.onlyCustom, }); if (!outcome) process.exitCode = 1; } @@ -177,7 +177,7 @@ export default function setup() { includeDefault: options.default, includeActiveValues: options.includeActiveValues, source: options.source, - onlyCustom: options.onlyCustom + onlyCustom: options.onlyCustom, } ); if (!outcome) process.exitCode = 1; diff --git a/src/cli/iga/iga.ts b/src/cli/iga/iga.ts index 3da94c735..68cace284 100644 --- a/src/cli/iga/iga.ts +++ b/src/cli/iga/iga.ts @@ -1,4 +1,5 @@ import { FrodoStubCommand } from '../FrodoCommand'; +import ScopeCmd from './scope/iga-scope'; import WorkflowCmd from './workflow/iga-workflow'; export default function setup() { @@ -7,6 +8,7 @@ export default function setup() { ); program.addCommand(WorkflowCmd().name('workflow').showHelpAfterError()); + program.addCommand(ScopeCmd().name('scope').showHelpAfterError()); program.showHelpAfterError(); return program; diff --git a/src/cli/iga/scope/iga-scope-delete.ts b/src/cli/iga/scope/iga-scope-delete.ts new file mode 100644 index 000000000..d46a4c439 --- /dev/null +++ b/src/cli/iga/scope/iga-scope-delete.ts @@ -0,0 +1,83 @@ +import { frodo, state } from '@rockcarver/frodo-lib'; +import { Option } from 'commander'; + +import { getTokens } from '../../../ops/AuthenticateOps'; +import { + deleteScopeByName, + deleteScopes, +} from '../../../ops/cloud/iga/IgaScopeOps'; +import { printMessage, verboseMessage } from '../../../utils/Console.js'; +import { FrodoCommand } from '../../FrodoCommand'; + +const { CLOUD_DEPLOYMENT_TYPE_KEY } = frodo.utils.constants; + +const deploymentTypes = [CLOUD_DEPLOYMENT_TYPE_KEY]; + +export default function setup() { + const program = new FrodoCommand('frodo iga scope delete'); + + program + .description('Delete scopes.') + .addOption( + new Option( + '-n, --scope-name ', + 'Scope name. If specified, -a is ignored.' + ) + ) + .addOption(new Option('-a, --all', 'Delete all scopes. Ignored with -n.')) + .action( + // implement command logic inside action handler + async (host, realm, user, password, options, command) => { + command.handleDefaultArgsAndOpts( + host, + realm, + user, + password, + options, + command + ); + if (!options.scopeName && !options.all) { + printMessage( + 'Unrecognized combination of options or no options...', + 'error' + ); + program.help(); + process.exitCode = 1; + return; + } + const getTokensIsSuccessful = await getTokens( + false, + true, + deploymentTypes + ); + if (!getTokensIsSuccessful) { + printMessage('Error getting tokens', 'error'); + process.exitCode = 1; + return; + } + if (!state.getIsIGA()) { + printMessage( + 'Command not supported for non-IGA cloud tenants', + 'error' + ); + process.exitCode = 1; + return; + } + // delete by id + if (options.scopeName) { + verboseMessage('Deleting scope...'); + const outcome = await deleteScopeByName(options.scopeName); + if (!outcome) process.exitCode = 1; + } + // --all -a + else if (options.all) { + verboseMessage('Deleting all scopes...'); + const outcome = await deleteScopes(); + if (!outcome) process.exitCode = 1; + } + } + // end command logic inside action handler + ); + + return program; +} diff --git a/src/cli/iga/scope/iga-scope-describe.ts b/src/cli/iga/scope/iga-scope-describe.ts new file mode 100644 index 000000000..c8c7d9adb --- /dev/null +++ b/src/cli/iga/scope/iga-scope-describe.ts @@ -0,0 +1,66 @@ +import { frodo, state } from '@rockcarver/frodo-lib'; +import { Option } from 'commander'; + +import { getTokens } from '../../../ops/AuthenticateOps'; +import { describeScope } from '../../../ops/cloud/iga/IgaScopeOps'; +import { printMessage, verboseMessage } from '../../../utils/Console'; +import { FrodoCommand } from '../../FrodoCommand'; + +const { CLOUD_DEPLOYMENT_TYPE_KEY } = frodo.utils.constants; +const deploymentTypes = [CLOUD_DEPLOYMENT_TYPE_KEY]; + +export default function setup() { + const program = new FrodoCommand('frodo iga scope describe'); + program + .description('Describe scopes.') + .addOption( + new Option( + '-n, --name ', + 'Scope name. If not specified, will describe the first scope in the provided export file, or the first scope in the tenant if no file is provided.' + ) + ) + .addOption( + new Option( + '-f, --file ', + 'Name of the scope export file to describe. If not specified, will pull scope data from the tenant.' + ) + ) + .action(async (host, realm, user, password, options, command) => { + command.handleDefaultArgsAndOpts( + host, + realm, + user, + password, + options, + command + ); + const getTokensIsSuccessful = await getTokens( + false, + true, + deploymentTypes + ); + if (!getTokensIsSuccessful) { + printMessage('Error getting tokens', 'error'); + process.exitCode = 1; + return; + } + if (!state.getIsIGA()) { + printMessage( + 'Command not supported for non-IGA cloud tenants', + 'error' + ); + process.exitCode = 1; + return; + } + verboseMessage( + options.name + ? `Describing scope ${options.name}...` + : options.file + ? `Describing first scope in ${options.file}...` + : 'Describing first scope in tenant...' + ); + const outcome = await describeScope(options.name, options.file); + if (!outcome) process.exitCode = 1; + }); + return program; +} diff --git a/src/cli/iga/scope/iga-scope-export.ts b/src/cli/iga/scope/iga-scope-export.ts new file mode 100644 index 000000000..d6be59cd3 --- /dev/null +++ b/src/cli/iga/scope/iga-scope-export.ts @@ -0,0 +1,136 @@ +import { frodo, state } from '@rockcarver/frodo-lib'; +import { Option } from 'commander'; + +import { getTokens } from '../../../ops/AuthenticateOps'; +import { + exportScopesToFile, + exportScopesToFiles, + exportScopeToFile, +} from '../../../ops/cloud/iga/IgaScopeOps'; +import { printMessage, verboseMessage } from '../../../utils/Console.js'; +import { FrodoCommand } from '../../FrodoCommand'; + +const { CLOUD_DEPLOYMENT_TYPE_KEY } = frodo.utils.constants; + +const deploymentTypes = [CLOUD_DEPLOYMENT_TYPE_KEY]; + +export default function setup() { + const program = new FrodoCommand( + 'frodo iga scope export', + [], + deploymentTypes + ); + + program + .description('Export scopes.') + .addOption( + new Option( + '-n, --scope-name ', + 'Scope name. If specified, -a and -A are ignored.' + ) + ) + .addOption( + new Option( + '-f, --file [file]', + 'Name of the export file. Ignored with -A. Defaults to .scope.json.' + ) + ) + .addOption( + new Option( + '-a, --all', + 'Export all scopes to a single file. Ignored with -i.' + ) + ) + .addOption( + new Option( + '-A, --all-separate', + 'Export all scopes as separate files .scope.json. Ignored with -i, and -a.' + ) + ) + .addOption( + new Option( + '-N, --no-metadata', + 'Do not include metadata in the export file.' + ) + ) + .addOption( + new Option( + '-M, --modified-properties', + 'Include modified properties in export (e.g. lastModifiedDate, lastModifiedBy, createdBy, creationDate, etc.)' + ).default(false, 'false') + ) + + .action( + // implement command logic inside action handler + async (host, realm, user, password, options, command) => { + command.handleDefaultArgsAndOpts( + host, + realm, + user, + password, + options, + command + ); + if (!options.scopeName && !options.all && !options.allSeparate) { + printMessage( + 'Unrecognized combination of options or no options...', + 'error' + ); + program.help(); + process.exitCode = 1; + return; + } + const getTokensIsSuccessful = await getTokens( + false, + true, + deploymentTypes + ); + if (!getTokensIsSuccessful) { + printMessage('Error getting tokens', 'error'); + process.exitCode = 1; + return; + } + if (!state.getIsIGA()) { + printMessage( + 'Command not supported for non-IGA cloud tenants', + 'error' + ); + process.exitCode = 1; + return; + } + // --scopeName -i + if (options.scopeName) { + verboseMessage(`Exporting scope "${options.scopeName}"...`); + const outcome = await exportScopeToFile( + options.scopeName, + options.file, + options.metadata, + options.modifiedProperties + ); + if (!outcome) process.exitCode = 1; + } + // --all -a + else if (options.all) { + verboseMessage('Exporting all scopes to a single file...'); + const outcome = await exportScopesToFile( + options.file, + options.metadata, + options.modifiedProperties + ); + if (!outcome) process.exitCode = 1; + } + // --all-separate -A + else if (options.allSeparate) { + verboseMessage('Exporting all scopes to separate files...'); + const outcome = await exportScopesToFiles( + options.metadata, + options.modifiedProperties + ); + if (!outcome) process.exitCode = 1; + } + } + // end command logic inside action handler + ); + + return program; +} diff --git a/src/cli/iga/scope/iga-scope-import.ts b/src/cli/iga/scope/iga-scope-import.ts new file mode 100644 index 000000000..97e148cef --- /dev/null +++ b/src/cli/iga/scope/iga-scope-import.ts @@ -0,0 +1,137 @@ +import { frodo, state } from '@rockcarver/frodo-lib'; +import { Option } from 'commander'; + +import { getTokens } from '../../../ops/AuthenticateOps'; +import { + importFirstScopeFromFile, + importScopeFromFile, + importScopesFromFile, + importScopesFromFiles, +} from '../../../ops/cloud/iga/IgaScopeOps'; +import { printMessage, verboseMessage } from '../../../utils/Console.js'; +import { FrodoCommand } from '../../FrodoCommand'; + +const { CLOUD_DEPLOYMENT_TYPE_KEY } = frodo.utils.constants; + +const deploymentTypes = [CLOUD_DEPLOYMENT_TYPE_KEY]; + +export default function setup() { + const program = new FrodoCommand( + 'frodo iga scope import', + [], + deploymentTypes + ); + + program + .description('Import scopes.') + .addOption( + new Option( + '-n, --scope-name ', + 'Scope id. If specified, -a and -A are ignored.' + ) + ) + .addOption(new Option('-f, --file ', 'Name of the import file.')) + .addOption( + new Option( + '-a, --all', + 'Import all scopes from single file. Ignored with -i.' + ) + ) + .addOption( + new Option( + '-A, --all-separate', + 'Import all scopes from separate files (*.scope.json) in the current directory. Ignored with -i or -a.' + ) + ) + .addOption( + new Option( + '--no-deps', + 'Do not import any dependencies (email templates, request forms, events, etc.).' + ) + ) + .action( + // implement program logic inside action handler + async (host, realm, user, password, options, command) => { + command.handleDefaultArgsAndOpts( + host, + realm, + user, + password, + options, + command + ); + const isImportById = options.scopeName && options.file; + const isImportAll = options.all && options.file; + const isImportAllSeparate = options.allSeparate && !options.file; + const isImportFirst = !!options.file; + if ( + !isImportById && + !isImportAll && + !isImportAllSeparate && + !isImportFirst + ) { + printMessage( + 'Unrecognized combination of options or no options...', + 'error' + ); + program.help(); + process.exitCode = 1; + return; + } + const getTokensIsSuccessful = await getTokens( + false, + true, + deploymentTypes + ); + if (!getTokensIsSuccessful) { + printMessage('Error getting tokens', 'error'); + process.exitCode = 1; + return; + } + if (!state.getIsIGA()) { + printMessage( + 'Command not supported for non-IGA cloud tenants', + 'error' + ); + process.exitCode = 1; + return; + } + // import by id + if (isImportById) { + verboseMessage(`Importing scope "${options.scopeName}"...`); + const outcome = await importScopeFromFile( + options.scopeName, + options.file + ); + if (!outcome) process.exitCode = 1; + } + // --all -a + else if (isImportAll) { + verboseMessage( + `Importing all scopes from a single file (${options.file})...` + ); + const outcome = await importScopesFromFile(options.file); + if (!outcome) process.exitCode = 1; + } + // --all-separate -A + else if (isImportAllSeparate) { + verboseMessage( + 'Importing all scopes from separate files (*.scope.json) in current directory...' + ); + const outcome = await importScopesFromFiles(); + if (!outcome) process.exitCode = 1; + } + // import first scope from file + else if (isImportFirst) { + verboseMessage( + `Importing first scope from file "${options.file}"...` + ); + const outcome = await importFirstScopeFromFile(options.file); + if (!outcome) process.exitCode = 1; + } + } + // end program logic inside action handler + ); + + return program; +} diff --git a/src/cli/iga/scope/iga-scope-list.ts b/src/cli/iga/scope/iga-scope-list.ts new file mode 100644 index 000000000..6e49f1fe3 --- /dev/null +++ b/src/cli/iga/scope/iga-scope-list.ts @@ -0,0 +1,58 @@ +import { frodo, state } from '@rockcarver/frodo-lib'; +import { Option } from 'commander'; + +import { getTokens } from '../../../ops/AuthenticateOps'; +import { listScopes } from '../../../ops/cloud/iga/IgaScopeOps'; +import { printMessage, verboseMessage } from '../../../utils/Console.js'; +import { FrodoCommand } from '../../FrodoCommand'; + +const { CLOUD_DEPLOYMENT_TYPE_KEY } = frodo.utils.constants; + +const deploymentTypes = [CLOUD_DEPLOYMENT_TYPE_KEY]; + +export default function setup() { + const program = new FrodoCommand('frodo iga scope list', [], deploymentTypes); + + program + .description('List scopes.') + .addOption( + new Option('-l, --long', 'Long with all fields.').default(false, 'false') + ) + .action( + // implement command logic inside action handler + async (host, realm, user, password, options, command) => { + command.handleDefaultArgsAndOpts( + host, + realm, + user, + password, + options, + command + ); + const getTokensIsSuccessful = await getTokens( + false, + true, + deploymentTypes + ); + if (!getTokensIsSuccessful) { + printMessage('Error getting tokens', 'error'); + process.exitCode = 1; + return; + } + if (!state.getIsIGA()) { + printMessage( + 'Command not supported for non-IGA cloud tenants', + 'error' + ); + process.exitCode = 1; + return; + } + verboseMessage(`Listing scopes ...`); + const outcome = await listScopes(options.long); + if (!outcome) process.exitCode = 1; + } + // end command logic inside action handler + ); + + return program; +} diff --git a/src/cli/iga/scope/iga-scope.ts b/src/cli/iga/scope/iga-scope.ts new file mode 100644 index 000000000..db305a2c6 --- /dev/null +++ b/src/cli/iga/scope/iga-scope.ts @@ -0,0 +1,26 @@ +import { FrodoStubCommand } from '../../FrodoCommand'; +import DeleteCmd from './iga-scope-delete.js'; +import DescribeCmd from './iga-scope-describe.js'; +import ExportCmd from './iga-scope-export.js'; +import ImportCmd from './iga-scope-import.js'; +import ListCmd from './iga-scope-list.js'; + +export default function setup() { + const program = new FrodoStubCommand('frodo iga scope'); + + program.description('Manage scopes.'); + + program.addCommand(DeleteCmd().name('delete').description('Delete scopes.')); + + program.addCommand(ListCmd().name('list').description('List scopes.')); + + program.addCommand(ExportCmd().name('export').description('Export scopes.')); + + program.addCommand(ImportCmd().name('import').description('Import scopes.')); + + program.addCommand( + DescribeCmd().name('describe').description('Describe scope.') + ); + + return program; +} diff --git a/src/ops/cloud/iga/IgaScopeOps.ts b/src/ops/cloud/iga/IgaScopeOps.ts new file mode 100644 index 000000000..f87ad7fd5 --- /dev/null +++ b/src/ops/cloud/iga/IgaScopeOps.ts @@ -0,0 +1,577 @@ +import { frodo, FrodoError } from '@rockcarver/frodo-lib'; +import { ScopeSkeleton } from '@rockcarver/frodo-lib/types/api/cloud/iga/IgaScopeApi'; +import { ScopeExportInterface } from '@rockcarver/frodo-lib/types/ops/cloud/iga/IgaScopeOps'; +import fs from 'fs'; + +import { + createKeyValueTable, + createProgressIndicator, + createTable, + getTableRowsFromArray, + printError, + printMessage, + stopProgressIndicator, + updateProgressIndicator, +} from '../../../utils/Console'; + +const { + getTypedFilename, + saveToFile, + saveJsonToFile, + getFilePath, + getWorkingDirectory, +} = frodo.utils; +const { + importScopes, + readScopes, + exportScope, + exportScopes, + deleteScopeByName: _deleteScopeByName, + deleteScopes: _deleteScopes, +} = frodo.cloud.iga.scope; +/** + * List all the scopes + * @param {boolean} long Long version, all the fields + * @returns {Promise} a promise resolving to true if successful, false otherwise + */ +export async function listScopes(long: boolean = false): Promise { + let scopes: ScopeSkeleton[] = []; + try { + scopes = await readScopes(); + if (!long) { + for (const scope of scopes) { + printMessage(`${scope.id ? scope.name : scope.entity}`, 'data'); + } + return true; + } else { + const table = createTable([ + 'ID', + 'Name', + 'Description', + 'Status', + 'Entity', + 'Source Conditions', + 'Target Conditions', + 'Permissions', + ]); + for (const scope of scopes) { + const sourceTypes = scope.sourceCondition + ? Object.keys(scope.sourceCondition).filter( + (k) => scope.sourceCondition[k] + ) + : []; + + const targetTypes = scope.targetCondition + ? Object.keys(scope.targetCondition).filter( + (k) => scope.targetCondition[k] + ) + : []; + + const permissionEntries = scope.permissions + ? Object.entries(scope.permissions) + : []; + + const enabledPermissions = permissionEntries.filter( + ([, v]) => v === true + ).length; + const totalPermissions = permissionEntries.length; + + table.push([ + scope.id, + scope.name, + scope.description ?? '', + scope.status === 'active' + ? 'active'['brightGreen'] + : scope.status === 'inactive' + ? 'inactive'['brightRed'] + : '-', + scope.entity?.displayName ?? + (Array.isArray(scope.entity?.type) + ? scope.entity.type.join(', ') + : scope.entity?.type) ?? + '-', + sourceTypes.length ? sourceTypes.join(', ') : '-', + targetTypes.length ? targetTypes.join(', ') : '-', + totalPermissions + ? `${enabledPermissions} / ${totalPermissions}` + : '-', + ]); + } + + printMessage(table.toString(), 'data'); + } + return true; + } catch (error) { + printError(error); + } + return false; +} + +/** + * Describe a scope + * @param {string} id scope id + * @param {string} file the scope export file + * @returns {Promise} true if successful, false otherwise + */ +export async function describeScope( + name?: string, + file?: string +): Promise { + try { + let scope: ScopeSkeleton; + + if (file) { + const data = fs.readFileSync(file, 'utf8'); + const scopeExport: ScopeExportInterface = JSON.parse(data); + const ids = Object.keys(scopeExport.scope); + if (ids.length === 0) { + throw new FrodoError(`No scopes found in export file ${file}`); + } + // If a name was provided, find the matching scope in the file + if (name) { + const match = Object.values(scopeExport.scope).find( + (s) => s.name === name + ); + if (!match) { + throw new FrodoError( + `No scope named '${name}' found in export file ${file}` + ); + } + scope = match; + } else { + scope = scopeExport.scope[ids[0]]; + } + } else if (name) { + const scopes = await readScopes(); + const match = scopes.find((s) => s.name === name); + if (!match) { + throw new FrodoError(`No scope named '${name}' found`); + } + scope = match; + } else { + const scopes = await readScopes(); + if (scopes.length === 0) { + throw new FrodoError(`No scopes found`); + } + scope = scopes[0]; + } + + const table = createKeyValueTable(); + table.push(['Id'['brightCyan'], scope.id]); + table.push(['Name'['brightCyan'], scope.name]); + table.push(['Description'['brightCyan'], scope.description ?? '']); + table.push([ + 'Status'['brightCyan'], + scope.status === 'active' + ? 'active'['brightGreen'] + : scope.status === 'inactive' + ? 'inactive'['brightRed'] + : '-', + ]); + if (scope.entity) { + if (scope.entity.displayName) + table.push(['Entity'['brightCyan'], scope.entity.displayName]); + if (scope.entity.type) { + const typeStr = Array.isArray(scope.entity.type) + ? scope.entity.type.join(', ') + : scope.entity.type; + table.push(['Entity Type'['brightCyan'], typeStr]); + } + if (scope.entity.class) + table.push(['Entity Class'['brightCyan'], scope.entity.class]); + } + const sourceKeys = scope.sourceCondition + ? Object.keys(scope.sourceCondition).filter( + (k) => scope.sourceCondition[k] + ) + : []; + table.push([ + 'Source Conditions'['brightCyan'], + sourceKeys.length ? sourceKeys.join(', ') : '-', + ]); + const targetKeys = scope.targetCondition + ? Object.keys(scope.targetCondition).filter( + (k) => scope.targetCondition[k] + ) + : []; + table.push([ + 'Target Conditions'['brightCyan'], + targetKeys.length ? targetKeys.join(', ') : '-', + ]); + if (scope.permissions) { + const enabled = Object.entries(scope.permissions) + .filter(([, v]) => v === true) + .map(([k]) => k); + getTableRowsFromArray(table, `Permissions (${enabled.length})`, enabled); + } else { + table.push(['Permissions'['brightCyan'], '-']); + } + printMessage(table.toString() + '\n', 'data'); + return true; + } catch (error) { + printError(error); + } + return false; +} /** + * Export scope to file + * @param {string} id scope id + * @param {string} file file name + * @param {boolean} includeMeta true to include metadata, false otherwise. Default: true + * @param {boolean} keepModifiedProperties true to keep modified properties, otherwise delete them. Default: false + * @param {boolean} extract extracts the scripts from the export into separate files if true. Default: false + * @returns {Promise} true if successful, false otherwise + */ +export async function exportScopeToFile( + name: string, + file: string, + includeMeta: boolean = true, + keepModifiedProperties: boolean = false +): Promise { + const indicatorId = createProgressIndicator( + 'determinate', + 1, + `Exporting ${name}...` + ); + try { + const scopes = await readScopes(); + const scope = scopes.find((s) => s.name === name); + if (!scope) { + throw new FrodoError(`No scope named '${name}' found`); + } + const exportData = await exportScope(scope.id); + if (!file) { + file = getTypedFilename(scope.name, 'scope'); + } + const filePath = getFilePath(file, true); + updateProgressIndicator( + indicatorId, + `Saving ${scope.name} to ${filePath}...` + ); + saveJsonToFile( + exportData, + filePath, + includeMeta, + false, + keepModifiedProperties + ); + stopProgressIndicator( + indicatorId, + `Exported scope ${scope.name} to file`, + 'success' + ); + return true; + } catch (error) { + stopProgressIndicator( + indicatorId, + `Error exporting scope ${name} to file`, + 'fail' + ); + printError(error); + } + return false; +} /** + * Export all scopes to file + * @param {string} file file name + * @param {boolean} includeMeta true to include metadata, false otherwise. Default: true + * @param {boolean} keepModifiedProperties true to keep modified properties, otherwise delete them. Default: false + * @returns {Promise} true if successful, false otherwise + */ +export async function exportScopesToFile( + file: string, + includeMeta: boolean = true, + keepModifiedProperties: boolean = false +): Promise { + try { + const exportData = await exportScopes(); + if (!file) { + file = getTypedFilename(`allScopes`, 'scope'); + } + saveJsonToFile( + exportData, + getFilePath(file, true), + includeMeta, + false, + keepModifiedProperties + ); + return true; + } catch (error) { + printError(error, `Error exporting scope to file`); + } + return false; +} + +/** + * Export all scope to separate files + * @param {boolean} includeMeta true to include metadata, false otherwise. Default: true + * @param {boolean} keepModifiedProperties true to keep modified properties, otherwise delete them. Default: false + * @param {boolean} extract extracts the scripts from the exports into separate files if true. Default: false + * @returns {Promise} true if successful, false otherwise + */ +export async function exportScopesToFiles( + includeMeta: boolean = true, + keepModifiedProperties: boolean = false +): Promise { + try { + const exportData = await exportScopes(); + for (const [, scope] of Object.entries(exportData.scope)) { + saveToFile( + 'scope', + scope, + 'name', + getFilePath(getTypedFilename(scope.name, 'scope'), true), + includeMeta, + keepModifiedProperties + ); + } + return true; + } catch (error) { + printError(error, `Error exporting scope to files`); + } + return false; +} + +/** + * Import a scope from file + * @param {string} name scope id + * @param {string} file import file name + * @returns {Promise} true if successful, false otherwise + */ +export async function importScopeFromFile( + name: string, + file: string +): Promise { + let indicatorId: string; + try { + indicatorId = createProgressIndicator( + 'indeterminate', + 0, + 'Importing scope...' + ); + updateProgressIndicator(indicatorId, 'Importing scope...'); + const filePath = getFilePath(file); + const importData = JSON.parse(fs.readFileSync(filePath, 'utf8')); + + const existingScopes = await readScopes(); + const scopes: ScopeExportInterface = { scope: {} }; + for (const id of Object.keys(importData.scope)) { + const scope = importData.scope[id]; + if (scope.name !== name) continue; + if ( + existingScopes.find((s) => s.id === scope.id || s.name === scope.name) + ) + continue; + scopes.scope[id] = scope; + } + + await importScopes(scopes); + stopProgressIndicator( + indicatorId, + `Successfully imported scope ${name}.`, + 'success' + ); + return true; + } catch (error) { + stopProgressIndicator(indicatorId, `Error importing scope ${name}`, 'fail'); + printError(error); + } + return false; +} +/** + * Import scopes from file + * @param {String} file file name + + * @returns {Promise} true if successful, false otherwise + */ +export async function importScopesFromFile(file: string): Promise { + let indicatorId: string; + try { + indicatorId = createProgressIndicator( + 'indeterminate', + 0, + 'Importing scopes...' + ); + updateProgressIndicator(indicatorId, 'Importing scopes...'); + const filePath = getFilePath(file); + const importData = JSON.parse(fs.readFileSync(filePath, 'utf8')); + + const existingScopes = await readScopes(); + const scopes: ScopeExportInterface = { scope: {} }; + for (const id of Object.keys(importData.scope)) { + const scope = importData.scope[id]; + if ( + existingScopes.find((s) => s.id === scope.id || s.name === scope.name) + ) + continue; + scopes.scope[id] = scope; + } + + await importScopes(scopes); + stopProgressIndicator( + indicatorId, + `Successfully imported scopes.`, + 'success' + ); + return true; + } catch (error) { + stopProgressIndicator(indicatorId, `Error importing scopes.`, 'fail'); + printError(error, `Error importing scopes from file`); + } + return false; +} + +/** + * Import all scopes from separate files + * @returns {Promise} true if successful, false otherwise + */ +export async function importScopesFromFiles(): Promise { + let indicatorId: string; + const errors: Error[] = []; + try { + const names = fs.readdirSync(getWorkingDirectory()); + const scopeFiles = names.filter((name) => + name.toLowerCase().endsWith('.scope.json') + ); + indicatorId = createProgressIndicator( + 'determinate', + scopeFiles.length, + 'Importing scopes...' + ); + + const existingScopes = await readScopes(); + + for (const file of scopeFiles) { + try { + updateProgressIndicator( + indicatorId, + `Importing scope from file ${file}...` + ); + const importData = JSON.parse( + fs.readFileSync(getFilePath(file), 'utf8') + ); + + const scopes: ScopeExportInterface = { scope: {} }; + for (const id of Object.keys(importData.scope)) { + const scope = importData.scope[id]; + if ( + existingScopes.find( + (s) => s.id === scope.id || s.name === scope.name + ) + ) + continue; + scopes.scope[id] = scope; + } + + await importScopes(scopes); + } catch (error) { + errors.push( + new FrodoError(`Error importing scopes from ${file}`, error) + ); + } + } + if (errors.length > 0) + throw new FrodoError(`One or more errors importing scopes`, errors); + stopProgressIndicator( + indicatorId, + `Successfully imported scopes.`, + 'success' + ); + return true; + } catch (error) { + stopProgressIndicator(indicatorId, `Error(s) importing scopes.`, 'fail'); + printError(error, `Error importing scopes from files`); + } + return false; +} +/** + * Import first scope from file + * @param {string} file import file name + * @returns {Promise} true if successful, false otherwise + */ +export async function importFirstScopeFromFile(file: string): Promise { + let indicatorId: string; + try { + indicatorId = createProgressIndicator( + 'indeterminate', + 0, + 'Importing scope...' + ); + const filePath = getFilePath(file); + const importData = JSON.parse(fs.readFileSync(filePath, 'utf8')); + const ids = Object.keys(importData.scope); + if (ids.length === 0) + throw new FrodoError(`No scopes found in import data`); + + const existingScopes = await readScopes(); + const scopes: ScopeExportInterface = { scope: {} }; + for (const id of ids) { + const scope = importData.scope[id]; + if ( + existingScopes.find((s) => s.id === scope.id || s.name === scope.name) + ) + continue; + scopes.scope[id] = scope; + break; // only first + } + + await importScopes(scopes); + stopProgressIndicator( + indicatorId, + `Imported scope from ${file}`, + 'success' + ); + return true; + } catch (error) { + stopProgressIndicator( + indicatorId, + `Error importing scope from ${file}`, + 'fail' + ); + printError(error); + } + return false; +} + +/** + * Delete scope by name. + * @param {string} name scope name + * @returns {Promise} true if successful, false otherwise + */ +export async function deleteScopeByName(name: string): Promise { + const spinnerId = createProgressIndicator( + 'indeterminate', + undefined, + `Deleting scope ${name}...` + ); + try { + const result = await _deleteScopeByName(name); + if (!result) { + throw new FrodoError(`Failed to delete scope ${name}`); + } + stopProgressIndicator(spinnerId, `Deleted scope ${name}.`, 'success'); + return true; + } catch (error) { + stopProgressIndicator(spinnerId, `Error: ${error.message}`, 'fail'); + printError(error); + } + return false; +} +/** + * Delete scopes. If both deleteDraft and deletePublished are truthy or falsy, attempt to delete all of both types, otherwise deletes only those of one type. + * @returns {Promise} true if successful, false otherwise + */ +export async function deleteScopes(): Promise { + const spinnerId = createProgressIndicator( + 'indeterminate', + undefined, + `Deleting scopes...` + ); + try { + await _deleteScopes(); + stopProgressIndicator(spinnerId, `Deleted scopes.`, 'success'); + return true; + } catch (error) { + stopProgressIndicator(spinnerId, `Error: ${error.message}`, 'fail'); + printError(error); + } + return false; +} diff --git a/src/ops/cloud/iga/IgaWorkflowOps.ts b/src/ops/cloud/iga/IgaWorkflowOps.ts index 37cbc5ad6..f1e1c44e9 100644 --- a/src/ops/cloud/iga/IgaWorkflowOps.ts +++ b/src/ops/cloud/iga/IgaWorkflowOps.ts @@ -246,7 +246,13 @@ export async function exportWorkflowToFile( indicatorId, `Saving ${workflowId} to ${filePath}...` ); - saveJsonToFile(exportData, filePath, includeMeta, false, keepModifiedProperties); + saveJsonToFile( + exportData, + filePath, + includeMeta, + false, + keepModifiedProperties + ); stopProgressIndicator( indicatorId, `Exported workflow ${workflowId} to file`, @@ -288,7 +294,13 @@ export async function exportWorkflowsToFile( if (!file) { file = getTypedFilename(`allWorkflows`, 'workflow'); } - saveJsonToFile(exportData, getFilePath(file, true), includeMeta, false, keepModifiedProperties); + saveJsonToFile( + exportData, + getFilePath(file, true), + includeMeta, + false, + keepModifiedProperties + ); return true; } catch (error) { printError(error, `Error exporting workflows to file`); diff --git a/test/e2e/__snapshots__/iga-scope-delete.e2e.test.js.snap b/test/e2e/__snapshots__/iga-scope-delete.e2e.test.js.snap new file mode 100644 index 000000000..53bcd5941 --- /dev/null +++ b/test/e2e/__snapshots__/iga-scope-delete.e2e.test.js.snap @@ -0,0 +1,15 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`frodo iga scope delete "frodo iga scope delete --all": should delete all scope 1`] = `""`; + +exports[`frodo iga scope delete "frodo iga scope delete --all": should delete all scope 2`] = ` +"✔ Deleted scopes. +" +`; + +exports[`frodo iga scope delete "frodo iga scope delete -n equals-test": Should delete scope equals-test by name 1`] = `""`; + +exports[`frodo iga scope delete "frodo iga scope delete -n equals-test": Should delete scope equals-test by name 2`] = ` +"✔ Deleted scope equals-test. +" +`; diff --git a/test/e2e/__snapshots__/iga-scope-describe.e2e.test.js.snap b/test/e2e/__snapshots__/iga-scope-describe.e2e.test.js.snap new file mode 100644 index 000000000..7b128782b --- /dev/null +++ b/test/e2e/__snapshots__/iga-scope-describe.e2e.test.js.snap @@ -0,0 +1,47 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`frodo iga scope describe "frodo iga scope describe --file test/e2e/exports/all/allScopes.scope.json": should describe first scope from file test/e2e/exports/all/allScopes.scope.json 1`] = ` +"Id │34153ec1-adde-472b-a1b3-65f9b0119df6 +Name │equals-test +Description │ +Status │active +Source Conditions│user +Target Conditions│application, entitlement, role, user +Permissions (11) │createEntitlement + │createRole + │createUser + │deleteRole + │deleteUser + │modifyEntitlement + │modifyRole + │modifyUser + │publishRole + │viewGrants + │viewUserAccess + +" +`; + +exports[`frodo iga scope describe "frodo iga scope describe --name contains-test ": should describe scope 'contains-test' 1`] = ` +"Id │c39062f0-ac60-4f72-ad8a-ef87bb8889b1 +Name │contains-test +Description │test scope for contains filter +Status │active +Source Conditions│user +Target Conditions│- +Permissions │- + +" +`; + +exports[`frodo iga scope describe "frodo iga scope describe -n contains-test -f test/e2e/exports/all/allScopes.scope.json": should describe scope 'contains-test' from file test/e2e/exports/all/allScopes.scope.json 1`] = ` +"Id │9ea91a47-1be1-4a70-8925-d25898a3c8d5 +Name │contains-test +Description │test scope for contains filter +Status │active +Source Conditions│user +Target Conditions│- +Permissions │- + +" +`; diff --git a/test/e2e/__snapshots__/iga-scope-export.e2e.test.js.snap b/test/e2e/__snapshots__/iga-scope-export.e2e.test.js.snap new file mode 100644 index 000000000..b409d43eb --- /dev/null +++ b/test/e2e/__snapshots__/iga-scope-export.e2e.test.js.snap @@ -0,0 +1,1731 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`frodo iga scope export "frodo iga scope export --all --file testScopeExportFile2.json": should export all scopes to file 1`] = `0`; + +exports[`frodo iga scope export "frodo iga scope export --all --file testScopeExportFile2.json": should export all scopes to file 2`] = `""`; + +exports[`frodo iga scope export "frodo iga scope export --all --file testScopeExportFile2.json": should export all scopes to file 3`] = ` +"✔ Exported 11 scopes +" +`; + +exports[`frodo iga scope export "frodo iga scope export --all --file testScopeExportFile2.json": should export all scopes to file: testScopeExportFile2.json 1`] = ` +{ + "meta": Any, + "scope": { + "2a61f823-aa13-414a-9724-ad95e9004dd7": { + "description": "test scope for does not contain filter", + "id": "2a61f823-aa13-414a-9724-ad95e9004dd7", + "metadata": {}, + "name": "does-not-contain-test", + "sourceCondition": { + "user": { + "filter": { + "or": [ + { + "not_contains": { + "in_string": "user.city", + "search_string": { + "literal": "Utah", + }, + }, + }, + ], + }, + "version": "v2", + }, + }, + "status": "active", + "targetCondition": {}, + }, + "3f63240d-2027-46fc-b8ee-96745be373a8": { + "description": "", + "id": "3f63240d-2027-46fc-b8ee-96745be373a8", + "metadata": {}, + "name": "test", + "permissions": { + "createEntitlement": true, + "createRole": true, + "createUser": true, + "deleteRole": true, + "deleteUser": true, + "modifyEntitlement": true, + "modifyRole": true, + "modifyUser": true, + "publishRole": true, + "viewGrants": true, + "viewUserAccess": true, + }, + "sourceCondition": { + "user": { + "filter": { + "and": [ + { + "not_contains": { + "in_string": "user.stateProvince", + "search_string": { + "literal": "Utah", + }, + }, + }, + ], + }, + "version": "v2", + }, + }, + "status": "active", + "targetCondition": { + "application": { + "filter": {}, + "version": "v2", + }, + "entitlement": { + "filter": {}, + "version": "v2", + }, + "role": { + "filter": {}, + "version": "v2", + }, + "user": { + "filter": { + "or": [ + { + "ends_with": { + "suffix": { + "literal": "s", + }, + "value": "user.accountStatus", + }, + }, + ], + }, + "version": "v2", + }, + }, + }, + "5b7f96f0-7b6d-4c0f-8703-b6a0030e0c81": { + "description": "", + "id": "5b7f96f0-7b6d-4c0f-8703-b6a0030e0c81", + "metadata": {}, + "name": "equals-test", + "permissions": { + "createEntitlement": true, + "createRole": true, + "createUser": true, + "deleteRole": true, + "deleteUser": true, + "modifyEntitlement": true, + "modifyRole": true, + "modifyUser": true, + "publishRole": true, + "viewGrants": true, + "viewUserAccess": true, + }, + "sourceCondition": { + "user": { + "filter": { + "or": [ + { + "equals": { + "left": "user.city", + "right": { + "literal": "Utah", + }, + }, + }, + ], + }, + "version": "v2", + }, + }, + "status": "active", + "targetCondition": { + "application": { + "filter": { + "or": [ + { + "equals": { + "left": "catalog.application.name", + "right": { + "literal": "temp", + }, + }, + }, + ], + }, + "version": "v2", + }, + "entitlement": { + "filter": { + "and": [ + { + "equals": { + "left": "catalog.entitlement.descriptor.displayName", + "right": { + "literal": "temp", + }, + }, + }, + ], + }, + "version": "v2", + }, + "role": { + "filter": { + "or": [ + { + "equals": { + "left": "catalog.role.description", + "right": { + "literal": "temp", + }, + }, + }, + ], + }, + "version": "v2", + }, + "user": { + "filter": { + "or": [ + { + "equals": { + "left": "user._id", + "right": { + "literal": "temp", + }, + }, + }, + ], + }, + "version": "v2", + }, + }, + }, + "75e1b352-b037-46f1-ba75-47dd388f89c2": { + "description": "A test scope for ends with filter", + "id": "75e1b352-b037-46f1-ba75-47dd388f89c2", + "metadata": {}, + "name": "ends-with-scope", + "sourceCondition": { + "user": { + "filter": { + "or": [ + { + "ends_with": { + "suffix": { + "literal": "1", + }, + "value": "user._id", + }, + }, + ], + }, + "version": "v2", + }, + }, + "status": "active", + "targetCondition": {}, + }, + "7c584440-83da-474b-9473-8a5d7a433947": { + "description": "this is a test", + "id": "7c584440-83da-474b-9473-8a5d7a433947", + "metadata": {}, + "name": "random-scope", + "sourceCondition": { + "user": { + "filter": { + "or": [ + { + "not_contains": { + "in_string_array": "user.adminOfOrg", + "search_string": { + "literal": "e74ffe7b-77be-4d6a-9564-3f9d8c4304e0", + }, + }, + }, + { + "equals": { + "left": "user.city", + "right": { + "literal": "Salt Lake City", + }, + }, + }, + ], + }, + "version": "v2", + }, + }, + "status": "active", + "targetCondition": { + "application": { + "filter": {}, + "version": "v2", + }, + "entitlement": { + "filter": {}, + "version": "v2", + }, + "role": { + "filter": {}, + "version": "v2", + }, + "user": { + "filter": {}, + "version": "v2", + }, + }, + }, + "8d252337-f031-4960-992a-3d773601d85f": { + "description": "Description of the put scope request", + "id": "8d252337-f031-4960-992a-3d773601d85f", + "metadata": {}, + "name": "New Scope", + "sourceCondition": { + "user": { + "filter": { + "and": [], + }, + "version": "v2", + }, + }, + "status": "active", + "targetCondition": { + "application": { + "filter": { + "and": [], + }, + "version": "v2", + }, + }, + }, + "8d8add50-011e-45a3-a268-958597d252ca": { + "description": "", + "id": "8d8add50-011e-45a3-a268-958597d252ca", + "metadata": {}, + "name": "starts-with-test", + "permissions": { + "createRole": true, + "createUser": true, + "deleteRole": true, + "deleteUser": true, + "modifyRole": true, + "modifyUser": true, + "publishRole": true, + "viewUserAccess": true, + }, + "sourceCondition": { + "user": { + "filter": { + "or": [ + { + "starts_with": { + "prefix": { + "literal": "1", + }, + "value": "user.frIndexedDate1", + }, + }, + { + "or": [ + { + "starts_with": { + "prefix": { + "literal": "U", + }, + "value": "user.city", + }, + }, + { + "starts_with": { + "prefix": { + "literal": "A", + }, + "value": "user.country", + }, + }, + ], + }, + ], + }, + "version": "v2", + }, + }, + "status": "active", + "targetCondition": { + "application": { + "filter": { + "or": [ + { + "starts_with": { + "prefix": { + "literal": "A", + }, + "value": "catalog.application._id", + }, + }, + ], + }, + "version": "v2", + }, + "entitlement": { + "filter": { + "or": [ + { + "starts_with": { + "prefix": { + "literal": "A", + }, + "value": "catalog.entitlement.descriptor.displayName", + }, + }, + ], + }, + "version": "v2", + }, + "role": { + "filter": { + "or": [ + { + "starts_with": { + "prefix": { + "literal": "A", + }, + "value": "catalog.role.description", + }, + }, + ], + }, + "version": "v2", + }, + "user": { + "filter": { + "or": [ + { + "starts_with": { + "prefix": { + "literal": "1", + }, + "value": "user._id", + }, + }, + ], + }, + "version": "v2", + }, + }, + }, + "98c735ce-6fdc-4a62-800f-6659388e441c": { + "description": "", + "id": "98c735ce-6fdc-4a62-800f-6659388e441c", + "metadata": {}, + "name": "User LCM Test", + "permissions": { + "createUser": true, + }, + "sourceCondition": { + "user": { + "filter": { + "or": [ + { + "equals": { + "left": "user._id", + "right": { + "literal": "6a2d0e09-a9ac-41ca-af24-8af052c480f2", + }, + }, + }, + { + "equals": { + "left": "user.userName", + "right": { + "literal": "phh-parent-org-admin", + }, + }, + }, + ], + }, + "version": "v2", + }, + }, + "status": "active", + "targetCondition": { + "user": { + "filter": {}, + "version": "v2", + }, + }, + }, + "c39062f0-ac60-4f72-ad8a-ef87bb8889b1": { + "description": "test scope for contains filter", + "id": "c39062f0-ac60-4f72-ad8a-ef87bb8889b1", + "metadata": {}, + "name": "contains-test", + "sourceCondition": { + "user": { + "filter": { + "or": [ + { + "contains": { + "in_string": "user._id", + "search_string": { + "literal": "", + }, + }, + }, + ], + }, + "version": "v2", + }, + }, + "status": "active", + "targetCondition": {}, + }, + "c5f6e550-29fb-48ed-87f1-d35c8c9067cd": { + "description": "test scope for is no filter +", + "id": "c5f6e550-29fb-48ed-87f1-d35c8c9067cd", + "metadata": {}, + "name": "is-not-test", + "sourceCondition": { + "user": { + "filter": { + "or": [ + { + "not_equals": { + "left": "user.city", + "right": { + "literal": "Utah", + }, + }, + }, + ], + }, + "version": "v2", + }, + }, + "status": "active", + "targetCondition": {}, + }, + "c62906d9-7d67-4519-b119-13031bb25896": { + "description": "Allows employees (frIndexedInteger1 eq 0) to view other employee objects", + "id": "c62906d9-7d67-4519-b119-13031bb25896", + "metadata": {}, + "name": "phh-delegate-visibility", + "sourceCondition": { + "user": { + "filter": { + "and": [ + { + "equals": { + "left": "user.frIndexedInteger1", + "right": { + "literal": 0, + }, + }, + }, + ], + }, + "version": "v2", + }, + }, + "status": "inactive", + "targetCondition": { + "user": { + "filter": { + "and": [ + { + "equals": { + "left": "user.frIndexedInteger1", + "right": { + "literal": 0, + }, + }, + }, + ], + }, + "version": "v2", + }, + }, + }, + }, +} +`; + +exports[`frodo iga scope export "frodo iga scope export --no-metadata -a --directory testScopeExportDir2": should export all scopes with no metadata 1`] = `0`; + +exports[`frodo iga scope export "frodo iga scope export --no-metadata -a --directory testScopeExportDir2": should export all scopes with no metadata 2`] = `""`; + +exports[`frodo iga scope export "frodo iga scope export --no-metadata -a --directory testScopeExportDir2": should export all scopes with no metadata 3`] = ` +"✔ Exported 11 scopes +" +`; + +exports[`frodo iga scope export "frodo iga scope export --no-metadata -a --directory testScopeExportDir2": should export all scopes with no metadata: testScopeExportDir2/allScopes.scope.json 1`] = ` +{ + "scope": { + "2a61f823-aa13-414a-9724-ad95e9004dd7": { + "description": "test scope for does not contain filter", + "id": "2a61f823-aa13-414a-9724-ad95e9004dd7", + "metadata": {}, + "name": "does-not-contain-test", + "sourceCondition": { + "user": { + "filter": { + "or": [ + { + "not_contains": { + "in_string": "user.city", + "search_string": { + "literal": "Utah", + }, + }, + }, + ], + }, + "version": "v2", + }, + }, + "status": "active", + "targetCondition": {}, + }, + "3f63240d-2027-46fc-b8ee-96745be373a8": { + "description": "", + "id": "3f63240d-2027-46fc-b8ee-96745be373a8", + "metadata": {}, + "name": "test", + "permissions": { + "createEntitlement": true, + "createRole": true, + "createUser": true, + "deleteRole": true, + "deleteUser": true, + "modifyEntitlement": true, + "modifyRole": true, + "modifyUser": true, + "publishRole": true, + "viewGrants": true, + "viewUserAccess": true, + }, + "sourceCondition": { + "user": { + "filter": { + "and": [ + { + "not_contains": { + "in_string": "user.stateProvince", + "search_string": { + "literal": "Utah", + }, + }, + }, + ], + }, + "version": "v2", + }, + }, + "status": "active", + "targetCondition": { + "application": { + "filter": {}, + "version": "v2", + }, + "entitlement": { + "filter": {}, + "version": "v2", + }, + "role": { + "filter": {}, + "version": "v2", + }, + "user": { + "filter": { + "or": [ + { + "ends_with": { + "suffix": { + "literal": "s", + }, + "value": "user.accountStatus", + }, + }, + ], + }, + "version": "v2", + }, + }, + }, + "5b7f96f0-7b6d-4c0f-8703-b6a0030e0c81": { + "description": "", + "id": "5b7f96f0-7b6d-4c0f-8703-b6a0030e0c81", + "metadata": {}, + "name": "equals-test", + "permissions": { + "createEntitlement": true, + "createRole": true, + "createUser": true, + "deleteRole": true, + "deleteUser": true, + "modifyEntitlement": true, + "modifyRole": true, + "modifyUser": true, + "publishRole": true, + "viewGrants": true, + "viewUserAccess": true, + }, + "sourceCondition": { + "user": { + "filter": { + "or": [ + { + "equals": { + "left": "user.city", + "right": { + "literal": "Utah", + }, + }, + }, + ], + }, + "version": "v2", + }, + }, + "status": "active", + "targetCondition": { + "application": { + "filter": { + "or": [ + { + "equals": { + "left": "catalog.application.name", + "right": { + "literal": "temp", + }, + }, + }, + ], + }, + "version": "v2", + }, + "entitlement": { + "filter": { + "and": [ + { + "equals": { + "left": "catalog.entitlement.descriptor.displayName", + "right": { + "literal": "temp", + }, + }, + }, + ], + }, + "version": "v2", + }, + "role": { + "filter": { + "or": [ + { + "equals": { + "left": "catalog.role.description", + "right": { + "literal": "temp", + }, + }, + }, + ], + }, + "version": "v2", + }, + "user": { + "filter": { + "or": [ + { + "equals": { + "left": "user._id", + "right": { + "literal": "temp", + }, + }, + }, + ], + }, + "version": "v2", + }, + }, + }, + "75e1b352-b037-46f1-ba75-47dd388f89c2": { + "description": "A test scope for ends with filter", + "id": "75e1b352-b037-46f1-ba75-47dd388f89c2", + "metadata": {}, + "name": "ends-with-scope", + "sourceCondition": { + "user": { + "filter": { + "or": [ + { + "ends_with": { + "suffix": { + "literal": "1", + }, + "value": "user._id", + }, + }, + ], + }, + "version": "v2", + }, + }, + "status": "active", + "targetCondition": {}, + }, + "7c584440-83da-474b-9473-8a5d7a433947": { + "description": "this is a test", + "id": "7c584440-83da-474b-9473-8a5d7a433947", + "metadata": {}, + "name": "random-scope", + "sourceCondition": { + "user": { + "filter": { + "or": [ + { + "not_contains": { + "in_string_array": "user.adminOfOrg", + "search_string": { + "literal": "e74ffe7b-77be-4d6a-9564-3f9d8c4304e0", + }, + }, + }, + { + "equals": { + "left": "user.city", + "right": { + "literal": "Salt Lake City", + }, + }, + }, + ], + }, + "version": "v2", + }, + }, + "status": "active", + "targetCondition": { + "application": { + "filter": {}, + "version": "v2", + }, + "entitlement": { + "filter": {}, + "version": "v2", + }, + "role": { + "filter": {}, + "version": "v2", + }, + "user": { + "filter": {}, + "version": "v2", + }, + }, + }, + "8d252337-f031-4960-992a-3d773601d85f": { + "description": "Description of the put scope request", + "id": "8d252337-f031-4960-992a-3d773601d85f", + "metadata": {}, + "name": "New Scope", + "sourceCondition": { + "user": { + "filter": { + "and": [], + }, + "version": "v2", + }, + }, + "status": "active", + "targetCondition": { + "application": { + "filter": { + "and": [], + }, + "version": "v2", + }, + }, + }, + "8d8add50-011e-45a3-a268-958597d252ca": { + "description": "", + "id": "8d8add50-011e-45a3-a268-958597d252ca", + "metadata": {}, + "name": "starts-with-test", + "permissions": { + "createRole": true, + "createUser": true, + "deleteRole": true, + "deleteUser": true, + "modifyRole": true, + "modifyUser": true, + "publishRole": true, + "viewUserAccess": true, + }, + "sourceCondition": { + "user": { + "filter": { + "or": [ + { + "starts_with": { + "prefix": { + "literal": "1", + }, + "value": "user.frIndexedDate1", + }, + }, + { + "or": [ + { + "starts_with": { + "prefix": { + "literal": "U", + }, + "value": "user.city", + }, + }, + { + "starts_with": { + "prefix": { + "literal": "A", + }, + "value": "user.country", + }, + }, + ], + }, + ], + }, + "version": "v2", + }, + }, + "status": "active", + "targetCondition": { + "application": { + "filter": { + "or": [ + { + "starts_with": { + "prefix": { + "literal": "A", + }, + "value": "catalog.application._id", + }, + }, + ], + }, + "version": "v2", + }, + "entitlement": { + "filter": { + "or": [ + { + "starts_with": { + "prefix": { + "literal": "A", + }, + "value": "catalog.entitlement.descriptor.displayName", + }, + }, + ], + }, + "version": "v2", + }, + "role": { + "filter": { + "or": [ + { + "starts_with": { + "prefix": { + "literal": "A", + }, + "value": "catalog.role.description", + }, + }, + ], + }, + "version": "v2", + }, + "user": { + "filter": { + "or": [ + { + "starts_with": { + "prefix": { + "literal": "1", + }, + "value": "user._id", + }, + }, + ], + }, + "version": "v2", + }, + }, + }, + "98c735ce-6fdc-4a62-800f-6659388e441c": { + "description": "", + "id": "98c735ce-6fdc-4a62-800f-6659388e441c", + "metadata": {}, + "name": "User LCM Test", + "permissions": { + "createUser": true, + }, + "sourceCondition": { + "user": { + "filter": { + "or": [ + { + "equals": { + "left": "user._id", + "right": { + "literal": "6a2d0e09-a9ac-41ca-af24-8af052c480f2", + }, + }, + }, + { + "equals": { + "left": "user.userName", + "right": { + "literal": "phh-parent-org-admin", + }, + }, + }, + ], + }, + "version": "v2", + }, + }, + "status": "active", + "targetCondition": { + "user": { + "filter": {}, + "version": "v2", + }, + }, + }, + "c39062f0-ac60-4f72-ad8a-ef87bb8889b1": { + "description": "test scope for contains filter", + "id": "c39062f0-ac60-4f72-ad8a-ef87bb8889b1", + "metadata": {}, + "name": "contains-test", + "sourceCondition": { + "user": { + "filter": { + "or": [ + { + "contains": { + "in_string": "user._id", + "search_string": { + "literal": "", + }, + }, + }, + ], + }, + "version": "v2", + }, + }, + "status": "active", + "targetCondition": {}, + }, + "c5f6e550-29fb-48ed-87f1-d35c8c9067cd": { + "description": "test scope for is no filter +", + "id": "c5f6e550-29fb-48ed-87f1-d35c8c9067cd", + "metadata": {}, + "name": "is-not-test", + "sourceCondition": { + "user": { + "filter": { + "or": [ + { + "not_equals": { + "left": "user.city", + "right": { + "literal": "Utah", + }, + }, + }, + ], + }, + "version": "v2", + }, + }, + "status": "active", + "targetCondition": {}, + }, + "c62906d9-7d67-4519-b119-13031bb25896": { + "description": "Allows employees (frIndexedInteger1 eq 0) to view other employee objects", + "id": "c62906d9-7d67-4519-b119-13031bb25896", + "metadata": {}, + "name": "phh-delegate-visibility", + "sourceCondition": { + "user": { + "filter": { + "and": [ + { + "equals": { + "left": "user.frIndexedInteger1", + "right": { + "literal": 0, + }, + }, + }, + ], + }, + "version": "v2", + }, + }, + "status": "inactive", + "targetCondition": { + "user": { + "filter": { + "and": [ + { + "equals": { + "left": "user.frIndexedInteger1", + "right": { + "literal": 0, + }, + }, + }, + ], + }, + "version": "v2", + }, + }, + }, + }, +} +`; + +exports[`frodo iga scope export "frodo iga scope export -NAD testScopeExportDir3": should export all scopes separately with no metadata 1`] = `0`; + +exports[`frodo iga scope export "frodo iga scope export -NAD testScopeExportDir3": should export all scopes separately with no metadata 2`] = `""`; + +exports[`frodo iga scope export "frodo iga scope export -NAD testScopeExportDir3": should export all scopes separately with no metadata 3`] = ` +"✔ Exported 11 scopes +" +`; + +exports[`frodo iga scope export "frodo iga scope export -NAD testScopeExportDir3": should export all scopes separately with no metadata: testScopeExportDir3/New-Scope.scope.json 1`] = ` +{ + "scope": { + "New Scope": { + "description": "Description of the put scope request", + "id": "8d252337-f031-4960-992a-3d773601d85f", + "metadata": {}, + "name": "New Scope", + "sourceCondition": { + "user": { + "filter": { + "and": [], + }, + "version": "v2", + }, + }, + "status": "active", + "targetCondition": { + "application": { + "filter": { + "and": [], + }, + "version": "v2", + }, + }, + }, + }, +} +`; + +exports[`frodo iga scope export "frodo iga scope export -NAD testScopeExportDir3": should export all scopes separately with no metadata: testScopeExportDir3/User-LCM-Test.scope.json 1`] = ` +{ + "scope": { + "User LCM Test": { + "description": "", + "id": "98c735ce-6fdc-4a62-800f-6659388e441c", + "metadata": {}, + "name": "User LCM Test", + "permissions": { + "createUser": true, + }, + "sourceCondition": { + "user": { + "filter": { + "or": [ + { + "equals": { + "left": "user._id", + "right": { + "literal": "6a2d0e09-a9ac-41ca-af24-8af052c480f2", + }, + }, + }, + { + "equals": { + "left": "user.userName", + "right": { + "literal": "phh-parent-org-admin", + }, + }, + }, + ], + }, + "version": "v2", + }, + }, + "status": "active", + "targetCondition": { + "user": { + "filter": {}, + "version": "v2", + }, + }, + }, + }, +} +`; + +exports[`frodo iga scope export "frodo iga scope export -NAD testScopeExportDir3": should export all scopes separately with no metadata: testScopeExportDir3/contains-test.scope.json 1`] = ` +{ + "scope": { + "contains-test": { + "description": "test scope for contains filter", + "id": "c39062f0-ac60-4f72-ad8a-ef87bb8889b1", + "metadata": {}, + "name": "contains-test", + "sourceCondition": { + "user": { + "filter": { + "or": [ + { + "contains": { + "in_string": "user._id", + "search_string": { + "literal": "", + }, + }, + }, + ], + }, + "version": "v2", + }, + }, + "status": "active", + "targetCondition": {}, + }, + }, +} +`; + +exports[`frodo iga scope export "frodo iga scope export -NAD testScopeExportDir3": should export all scopes separately with no metadata: testScopeExportDir3/does-not-contain-test.scope.json 1`] = ` +{ + "scope": { + "does-not-contain-test": { + "description": "test scope for does not contain filter", + "id": "2a61f823-aa13-414a-9724-ad95e9004dd7", + "metadata": {}, + "name": "does-not-contain-test", + "sourceCondition": { + "user": { + "filter": { + "or": [ + { + "not_contains": { + "in_string": "user.city", + "search_string": { + "literal": "Utah", + }, + }, + }, + ], + }, + "version": "v2", + }, + }, + "status": "active", + "targetCondition": {}, + }, + }, +} +`; + +exports[`frodo iga scope export "frodo iga scope export -NAD testScopeExportDir3": should export all scopes separately with no metadata: testScopeExportDir3/ends-with-scope.scope.json 1`] = ` +{ + "scope": { + "ends-with-scope": { + "description": "A test scope for ends with filter", + "id": "75e1b352-b037-46f1-ba75-47dd388f89c2", + "metadata": {}, + "name": "ends-with-scope", + "sourceCondition": { + "user": { + "filter": { + "or": [ + { + "ends_with": { + "suffix": { + "literal": "1", + }, + "value": "user._id", + }, + }, + ], + }, + "version": "v2", + }, + }, + "status": "active", + "targetCondition": {}, + }, + }, +} +`; + +exports[`frodo iga scope export "frodo iga scope export -NAD testScopeExportDir3": should export all scopes separately with no metadata: testScopeExportDir3/equals-test.scope.json 1`] = ` +{ + "scope": { + "equals-test": { + "description": "", + "id": "5b7f96f0-7b6d-4c0f-8703-b6a0030e0c81", + "metadata": {}, + "name": "equals-test", + "permissions": { + "createEntitlement": true, + "createRole": true, + "createUser": true, + "deleteRole": true, + "deleteUser": true, + "modifyEntitlement": true, + "modifyRole": true, + "modifyUser": true, + "publishRole": true, + "viewGrants": true, + "viewUserAccess": true, + }, + "sourceCondition": { + "user": { + "filter": { + "or": [ + { + "equals": { + "left": "user.city", + "right": { + "literal": "Utah", + }, + }, + }, + ], + }, + "version": "v2", + }, + }, + "status": "active", + "targetCondition": { + "application": { + "filter": { + "or": [ + { + "equals": { + "left": "catalog.application.name", + "right": { + "literal": "temp", + }, + }, + }, + ], + }, + "version": "v2", + }, + "entitlement": { + "filter": { + "and": [ + { + "equals": { + "left": "catalog.entitlement.descriptor.displayName", + "right": { + "literal": "temp", + }, + }, + }, + ], + }, + "version": "v2", + }, + "role": { + "filter": { + "or": [ + { + "equals": { + "left": "catalog.role.description", + "right": { + "literal": "temp", + }, + }, + }, + ], + }, + "version": "v2", + }, + "user": { + "filter": { + "or": [ + { + "equals": { + "left": "user._id", + "right": { + "literal": "temp", + }, + }, + }, + ], + }, + "version": "v2", + }, + }, + }, + }, +} +`; + +exports[`frodo iga scope export "frodo iga scope export -NAD testScopeExportDir3": should export all scopes separately with no metadata: testScopeExportDir3/is-not-test.scope.json 1`] = ` +{ + "scope": { + "is-not-test": { + "description": "test scope for is no filter +", + "id": "c5f6e550-29fb-48ed-87f1-d35c8c9067cd", + "metadata": {}, + "name": "is-not-test", + "sourceCondition": { + "user": { + "filter": { + "or": [ + { + "not_equals": { + "left": "user.city", + "right": { + "literal": "Utah", + }, + }, + }, + ], + }, + "version": "v2", + }, + }, + "status": "active", + "targetCondition": {}, + }, + }, +} +`; + +exports[`frodo iga scope export "frodo iga scope export -NAD testScopeExportDir3": should export all scopes separately with no metadata: testScopeExportDir3/phh-delegate-visibility.scope.json 1`] = ` +{ + "scope": { + "phh-delegate-visibility": { + "description": "Allows employees (frIndexedInteger1 eq 0) to view other employee objects", + "id": "c62906d9-7d67-4519-b119-13031bb25896", + "metadata": {}, + "name": "phh-delegate-visibility", + "sourceCondition": { + "user": { + "filter": { + "and": [ + { + "equals": { + "left": "user.frIndexedInteger1", + "right": { + "literal": 0, + }, + }, + }, + ], + }, + "version": "v2", + }, + }, + "status": "inactive", + "targetCondition": { + "user": { + "filter": { + "and": [ + { + "equals": { + "left": "user.frIndexedInteger1", + "right": { + "literal": 0, + }, + }, + }, + ], + }, + "version": "v2", + }, + }, + }, + }, +} +`; + +exports[`frodo iga scope export "frodo iga scope export -NAD testScopeExportDir3": should export all scopes separately with no metadata: testScopeExportDir3/random-scope.scope.json 1`] = ` +{ + "scope": { + "random-scope": { + "description": "this is a test", + "id": "7c584440-83da-474b-9473-8a5d7a433947", + "metadata": {}, + "name": "random-scope", + "sourceCondition": { + "user": { + "filter": { + "or": [ + { + "not_contains": { + "in_string_array": "user.adminOfOrg", + "search_string": { + "literal": "e74ffe7b-77be-4d6a-9564-3f9d8c4304e0", + }, + }, + }, + { + "equals": { + "left": "user.city", + "right": { + "literal": "Salt Lake City", + }, + }, + }, + ], + }, + "version": "v2", + }, + }, + "status": "active", + "targetCondition": { + "application": { + "filter": {}, + "version": "v2", + }, + "entitlement": { + "filter": {}, + "version": "v2", + }, + "role": { + "filter": {}, + "version": "v2", + }, + "user": { + "filter": {}, + "version": "v2", + }, + }, + }, + }, +} +`; + +exports[`frodo iga scope export "frodo iga scope export -NAD testScopeExportDir3": should export all scopes separately with no metadata: testScopeExportDir3/starts-with-test.scope.json 1`] = ` +{ + "scope": { + "starts-with-test": { + "description": "", + "id": "8d8add50-011e-45a3-a268-958597d252ca", + "metadata": {}, + "name": "starts-with-test", + "permissions": { + "createRole": true, + "createUser": true, + "deleteRole": true, + "deleteUser": true, + "modifyRole": true, + "modifyUser": true, + "publishRole": true, + "viewUserAccess": true, + }, + "sourceCondition": { + "user": { + "filter": { + "or": [ + { + "starts_with": { + "prefix": { + "literal": "1", + }, + "value": "user.frIndexedDate1", + }, + }, + { + "or": [ + { + "starts_with": { + "prefix": { + "literal": "U", + }, + "value": "user.city", + }, + }, + { + "starts_with": { + "prefix": { + "literal": "A", + }, + "value": "user.country", + }, + }, + ], + }, + ], + }, + "version": "v2", + }, + }, + "status": "active", + "targetCondition": { + "application": { + "filter": { + "or": [ + { + "starts_with": { + "prefix": { + "literal": "A", + }, + "value": "catalog.application._id", + }, + }, + ], + }, + "version": "v2", + }, + "entitlement": { + "filter": { + "or": [ + { + "starts_with": { + "prefix": { + "literal": "A", + }, + "value": "catalog.entitlement.descriptor.displayName", + }, + }, + ], + }, + "version": "v2", + }, + "role": { + "filter": { + "or": [ + { + "starts_with": { + "prefix": { + "literal": "A", + }, + "value": "catalog.role.description", + }, + }, + ], + }, + "version": "v2", + }, + "user": { + "filter": { + "or": [ + { + "starts_with": { + "prefix": { + "literal": "1", + }, + "value": "user._id", + }, + }, + ], + }, + "version": "v2", + }, + }, + }, + }, +} +`; + +exports[`frodo iga scope export "frodo iga scope export -NAD testScopeExportDir3": should export all scopes separately with no metadata: testScopeExportDir3/test.scope.json 1`] = ` +{ + "scope": { + "test": { + "description": "", + "id": "3f63240d-2027-46fc-b8ee-96745be373a8", + "metadata": {}, + "name": "test", + "permissions": { + "createEntitlement": true, + "createRole": true, + "createUser": true, + "deleteRole": true, + "deleteUser": true, + "modifyEntitlement": true, + "modifyRole": true, + "modifyUser": true, + "publishRole": true, + "viewGrants": true, + "viewUserAccess": true, + }, + "sourceCondition": { + "user": { + "filter": { + "and": [ + { + "not_contains": { + "in_string": "user.stateProvince", + "search_string": { + "literal": "Utah", + }, + }, + }, + ], + }, + "version": "v2", + }, + }, + "status": "active", + "targetCondition": { + "application": { + "filter": {}, + "version": "v2", + }, + "entitlement": { + "filter": {}, + "version": "v2", + }, + "role": { + "filter": {}, + "version": "v2", + }, + "user": { + "filter": { + "or": [ + { + "ends_with": { + "suffix": { + "literal": "s", + }, + "value": "user.accountStatus", + }, + }, + ], + }, + "version": "v2", + }, + }, + }, + }, +} +`; diff --git a/test/e2e/__snapshots__/iga-scope-import.e2e.test.js.snap b/test/e2e/__snapshots__/iga-scope-import.e2e.test.js.snap new file mode 100644 index 000000000..1c43021e2 --- /dev/null +++ b/test/e2e/__snapshots__/iga-scope-import.e2e.test.js.snap @@ -0,0 +1,36 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`frodo iga scope import "frodo iga scope import --scope-name contains-test --file test/e2e/exports/all/allScopes.scope.json ": should import contains-test from the file "test/e2e/exports/all/allScopes.scope.json" 1`] = `""`; + +exports[`frodo iga scope import "frodo iga scope import --scope-name contains-test --file test/e2e/exports/all/allScopes.scope.json ": should import contains-test from the file "test/e2e/exports/all/allScopes.scope.json" 2`] = ` +"✔ Successfully imported scope contains-test. +" +`; + +exports[`frodo iga scope import "frodo iga scope import -AD test/e2e/exports/all-separate/cloud/global/scope": should import all scopes from the directory "test/e2e/exports/all-separate/cloud/global/scope" with dependencies 1`] = `""`; + +exports[`frodo iga scope import "frodo iga scope import -AD test/e2e/exports/all-separate/cloud/global/scope": should import all scopes from the directory "test/e2e/exports/all-separate/cloud/global/scope" with dependencies 2`] = ` +"✔ Successfully imported scopes. +" +`; + +exports[`frodo iga scope import "frodo iga scope import -af test/e2e/exports/all/allScopes.scope.json": should import all scopes from the file "test/e2e/exports/all/allScopes.scope.json" with dependencies 1`] = `""`; + +exports[`frodo iga scope import "frodo iga scope import -af test/e2e/exports/all/allScopes.scope.json": should import all scopes from the file "test/e2e/exports/all/allScopes.scope.json" with dependencies 2`] = ` +"✔ Successfully imported scopes. +" +`; + +exports[`frodo iga scope import "frodo iga scope import -f test/e2e/exports/all/allScopes.scope.json ": should import first scope from the file "test/e2e/exports/all/allScopes.scope.json" 1`] = `""`; + +exports[`frodo iga scope import "frodo iga scope import -f test/e2e/exports/all/allScopes.scope.json ": should import first scope from the file "test/e2e/exports/all/allScopes.scope.json" 2`] = ` +"✔ Imported scope from test/e2e/exports/all/allScopes.scope.json +" +`; + +exports[`frodo iga scope import "frodo iga scope import -n contains-test -f test/e2e/exports/all/allScopes.scope.json": should import contains-test from the file "test/e2e/exports/all/allScopes.scope.json" with dependencies 1`] = `""`; + +exports[`frodo iga scope import "frodo iga scope import -n contains-test -f test/e2e/exports/all/allScopes.scope.json": should import contains-test from the file "test/e2e/exports/all/allScopes.scope.json" with dependencies 2`] = ` +"✔ Successfully imported scope contains-test. +" +`; diff --git a/test/e2e/__snapshots__/iga-scope-list.e2e.test.js.snap b/test/e2e/__snapshots__/iga-scope-list.e2e.test.js.snap new file mode 100644 index 000000000..1a85d1a6f --- /dev/null +++ b/test/e2e/__snapshots__/iga-scope-list.e2e.test.js.snap @@ -0,0 +1,50 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`frodo iga scope list "frodo iga scope list --long": should list the ids, names, mutability, and statuses of the scopes. 1`] = ` +"ID │Name │Description │Status │Entity│Source Conditions│Target Conditions │Permissions +2a61f823-aa13-414a-9724-ad95e9004dd7│does-not-contain-test │test scope for does not contain filter │active │- │user │- │- +3f63240d-2027-46fc-b8ee-96745be373a8│test │ │active │- │user │application, entitlement, role, user│11 / 11 +5b7f96f0-7b6d-4c0f-8703-b6a0030e0c81│equals-test │ │active │- │user │application, entitlement, role, user│11 / 11 +75e1b352-b037-46f1-ba75-47dd388f89c2│ends-with-scope │A test scope for ends with filter │active │- │user │- │- +7c584440-83da-474b-9473-8a5d7a433947│random-scope │this is a test │active │- │user │application, entitlement, role, user│- +8d252337-f031-4960-992a-3d773601d85f│New Scope │Description of the put scope request │active │- │user │application │- +8d8add50-011e-45a3-a268-958597d252ca│starts-with-test │ │active │- │user │application, entitlement, role, user│8 / 8 +98c735ce-6fdc-4a62-800f-6659388e441c│User LCM Test │ │active │- │user │user │1 / 1 +c39062f0-ac60-4f72-ad8a-ef87bb8889b1│contains-test │test scope for contains filter │active │- │user │- │- +c5f6e550-29fb-48ed-87f1-d35c8c9067cd│is-not-test │test scope for is no filter │active │- │user │- │- + │ │ │ │ │ │ │ +c62906d9-7d67-4519-b119-13031bb25896│phh-delegate-visibility│Allows employees (frIndexedInteger1 eq 0) to view other employee objects│inactive│- │user │user │- +" +`; + +exports[`frodo iga scope list "frodo iga scope list -l": should list the ids, names, mutability, and statuses of the scopes. 1`] = ` +"ID │Name │Description │Status │Entity│Source Conditions│Target Conditions │Permissions +2a61f823-aa13-414a-9724-ad95e9004dd7│does-not-contain-test │test scope for does not contain filter │active │- │user │- │- +3f63240d-2027-46fc-b8ee-96745be373a8│test │ │active │- │user │application, entitlement, role, user│11 / 11 +5b7f96f0-7b6d-4c0f-8703-b6a0030e0c81│equals-test │ │active │- │user │application, entitlement, role, user│11 / 11 +75e1b352-b037-46f1-ba75-47dd388f89c2│ends-with-scope │A test scope for ends with filter │active │- │user │- │- +7c584440-83da-474b-9473-8a5d7a433947│random-scope │this is a test │active │- │user │application, entitlement, role, user│- +8d252337-f031-4960-992a-3d773601d85f│New Scope │Description of the put scope request │active │- │user │application │- +8d8add50-011e-45a3-a268-958597d252ca│starts-with-test │ │active │- │user │application, entitlement, role, user│8 / 8 +98c735ce-6fdc-4a62-800f-6659388e441c│User LCM Test │ │active │- │user │user │1 / 1 +c39062f0-ac60-4f72-ad8a-ef87bb8889b1│contains-test │test scope for contains filter │active │- │user │- │- +c5f6e550-29fb-48ed-87f1-d35c8c9067cd│is-not-test │test scope for is no filter │active │- │user │- │- + │ │ │ │ │ │ │ +c62906d9-7d67-4519-b119-13031bb25896│phh-delegate-visibility│Allows employees (frIndexedInteger1 eq 0) to view other employee objects│inactive│- │user │user │- +" +`; + +exports[`frodo iga scope list "frodo iga scope list": should list the ids of the scopes 1`] = ` +"does-not-contain-test +test +equals-test +ends-with-scope +random-scope +New Scope +starts-with-test +User LCM Test +contains-test +is-not-test +phh-delegate-visibility +" +`; diff --git a/test/e2e/exports/all-separate/cloud/global/scope/New-Scope.scope.json b/test/e2e/exports/all-separate/cloud/global/scope/New-Scope.scope.json new file mode 100644 index 000000000..138ad8127 --- /dev/null +++ b/test/e2e/exports/all-separate/cloud/global/scope/New-Scope.scope.json @@ -0,0 +1,35 @@ +{ + "meta": { + "exportDate": "2026-05-15T18:53:54.983Z", + "exportTool": "frodo", + "exportToolVersion": "v4.0.0-39 [v24.13.0]", + "exportedBy": "dsevy@trivir.com", + "origin": "https://openam-trivir-fairfax.forgeblocks.com/am", + "originAmVersion": "9.0.0" + }, + "scope": { + "New Scope": { + "description": "Description of the put scope request", + "id": "edca1abc-7381-46c4-87a8-948790737c68", + "metadata": {}, + "name": "New Scope", + "sourceCondition": { + "user": { + "filter": { + "and": [] + }, + "version": "v2" + } + }, + "status": "active", + "targetCondition": { + "application": { + "filter": { + "and": [] + }, + "version": "v2" + } + } + } + } +} diff --git a/test/e2e/exports/all-separate/cloud/global/scope/User-LCM-Test.scope.json b/test/e2e/exports/all-separate/cloud/global/scope/User-LCM-Test.scope.json new file mode 100644 index 000000000..0bbb6cf87 --- /dev/null +++ b/test/e2e/exports/all-separate/cloud/global/scope/User-LCM-Test.scope.json @@ -0,0 +1,53 @@ +{ + "meta": { + "exportDate": "2026-05-15T18:53:54.983Z", + "exportTool": "frodo", + "exportToolVersion": "v4.0.0-39 [v24.13.0]", + "exportedBy": "dsevy@trivir.com", + "origin": "https://openam-trivir-fairfax.forgeblocks.com/am", + "originAmVersion": "9.0.0" + }, + "scope": { + "User LCM Test": { + "description": "", + "id": "e9bc6e7e-ab6b-45f2-a5e4-af976d8a0c24", + "metadata": {}, + "name": "User LCM Test", + "permissions": { + "createUser": true + }, + "sourceCondition": { + "user": { + "filter": { + "or": [ + { + "equals": { + "left": "user._id", + "right": { + "literal": "6a2d0e09-a9ac-41ca-af24-8af052c480f2" + } + } + }, + { + "equals": { + "left": "user.userName", + "right": { + "literal": "phh-parent-org-admin" + } + } + } + ] + }, + "version": "v2" + } + }, + "status": "active", + "targetCondition": { + "user": { + "filter": {}, + "version": "v2" + } + } + } + } +} diff --git a/test/e2e/exports/all-separate/cloud/global/scope/contains-test.scope.json b/test/e2e/exports/all-separate/cloud/global/scope/contains-test.scope.json new file mode 100644 index 000000000..9b6bb56a3 --- /dev/null +++ b/test/e2e/exports/all-separate/cloud/global/scope/contains-test.scope.json @@ -0,0 +1,37 @@ +{ + "meta": { + "exportDate": "2026-05-15T18:53:54.982Z", + "exportTool": "frodo", + "exportToolVersion": "v4.0.0-39 [v24.13.0]", + "exportedBy": "dsevy@trivir.com", + "origin": "https://openam-trivir-fairfax.forgeblocks.com/am", + "originAmVersion": "9.0.0" + }, + "scope": { + "contains-test": { + "description": "test scope for contains filter", + "id": "9ea91a47-1be1-4a70-8925-d25898a3c8d5", + "metadata": {}, + "name": "contains-test", + "sourceCondition": { + "user": { + "filter": { + "or": [ + { + "contains": { + "in_string": "user._id", + "search_string": { + "literal": "" + } + } + } + ] + }, + "version": "v2" + } + }, + "status": "active", + "targetCondition": {} + } + } +} diff --git a/test/e2e/exports/all-separate/cloud/global/scope/does-not-contain-test.scope.json b/test/e2e/exports/all-separate/cloud/global/scope/does-not-contain-test.scope.json new file mode 100644 index 000000000..2236d4d2f --- /dev/null +++ b/test/e2e/exports/all-separate/cloud/global/scope/does-not-contain-test.scope.json @@ -0,0 +1,37 @@ +{ + "meta": { + "exportDate": "2026-05-15T18:53:54.983Z", + "exportTool": "frodo", + "exportToolVersion": "v4.0.0-39 [v24.13.0]", + "exportedBy": "dsevy@trivir.com", + "origin": "https://openam-trivir-fairfax.forgeblocks.com/am", + "originAmVersion": "9.0.0" + }, + "scope": { + "does-not-contain-test": { + "description": "test scope for does not contain filter", + "id": "fcbccf06-1683-4209-9293-ba5be3ee2443", + "metadata": {}, + "name": "does-not-contain-test", + "sourceCondition": { + "user": { + "filter": { + "or": [ + { + "not_contains": { + "in_string": "user.city", + "search_string": { + "literal": "Utah" + } + } + } + ] + }, + "version": "v2" + } + }, + "status": "active", + "targetCondition": {} + } + } +} diff --git a/test/e2e/exports/all-separate/cloud/global/scope/ends-with-scope.scope.json b/test/e2e/exports/all-separate/cloud/global/scope/ends-with-scope.scope.json new file mode 100644 index 000000000..3784ac43e --- /dev/null +++ b/test/e2e/exports/all-separate/cloud/global/scope/ends-with-scope.scope.json @@ -0,0 +1,37 @@ +{ + "meta": { + "exportDate": "2026-05-15T18:53:54.982Z", + "exportTool": "frodo", + "exportToolVersion": "v4.0.0-39 [v24.13.0]", + "exportedBy": "dsevy@trivir.com", + "origin": "https://openam-trivir-fairfax.forgeblocks.com/am", + "originAmVersion": "9.0.0" + }, + "scope": { + "ends-with-scope": { + "description": "A test scope for ends with filter", + "id": "9a189189-73d3-4e87-a7ad-2c218e4cff93", + "metadata": {}, + "name": "ends-with-scope", + "sourceCondition": { + "user": { + "filter": { + "or": [ + { + "ends_with": { + "suffix": { + "literal": "1" + }, + "value": "user._id" + } + } + ] + }, + "version": "v2" + } + }, + "status": "active", + "targetCondition": {} + } + } +} diff --git a/test/e2e/exports/all-separate/cloud/global/scope/equals-test.scope.json b/test/e2e/exports/all-separate/cloud/global/scope/equals-test.scope.json new file mode 100644 index 000000000..7159c1ca4 --- /dev/null +++ b/test/e2e/exports/all-separate/cloud/global/scope/equals-test.scope.json @@ -0,0 +1,111 @@ +{ + "meta": { + "exportDate": "2026-05-15T18:53:54.981Z", + "exportTool": "frodo", + "exportToolVersion": "v4.0.0-39 [v24.13.0]", + "exportedBy": "dsevy@trivir.com", + "origin": "https://openam-trivir-fairfax.forgeblocks.com/am", + "originAmVersion": "9.0.0" + }, + "scope": { + "equals-test": { + "description": "", + "id": "34153ec1-adde-472b-a1b3-65f9b0119df6", + "metadata": {}, + "name": "equals-test", + "permissions": { + "createEntitlement": true, + "createRole": true, + "createUser": true, + "deleteRole": true, + "deleteUser": true, + "modifyEntitlement": true, + "modifyRole": true, + "modifyUser": true, + "publishRole": true, + "viewGrants": true, + "viewUserAccess": true + }, + "sourceCondition": { + "user": { + "filter": { + "or": [ + { + "equals": { + "left": "user.city", + "right": { + "literal": "Utah" + } + } + } + ] + }, + "version": "v2" + } + }, + "status": "active", + "targetCondition": { + "application": { + "filter": { + "or": [ + { + "equals": { + "left": "catalog.application.name", + "right": { + "literal": "temp" + } + } + } + ] + }, + "version": "v2" + }, + "entitlement": { + "filter": { + "and": [ + { + "equals": { + "left": "catalog.entitlement.descriptor.displayName", + "right": { + "literal": "temp" + } + } + } + ] + }, + "version": "v2" + }, + "role": { + "filter": { + "or": [ + { + "equals": { + "left": "catalog.role.description", + "right": { + "literal": "temp" + } + } + } + ] + }, + "version": "v2" + }, + "user": { + "filter": { + "or": [ + { + "equals": { + "left": "user._id", + "right": { + "literal": "temp" + } + } + } + ] + }, + "version": "v2" + } + } + } + } +} diff --git a/test/e2e/exports/all-separate/cloud/global/scope/is-not-test.scope.json b/test/e2e/exports/all-separate/cloud/global/scope/is-not-test.scope.json new file mode 100644 index 000000000..0347ce159 --- /dev/null +++ b/test/e2e/exports/all-separate/cloud/global/scope/is-not-test.scope.json @@ -0,0 +1,37 @@ +{ + "meta": { + "exportDate": "2026-05-15T18:53:54.983Z", + "exportTool": "frodo", + "exportToolVersion": "v4.0.0-39 [v24.13.0]", + "exportedBy": "dsevy@trivir.com", + "origin": "https://openam-trivir-fairfax.forgeblocks.com/am", + "originAmVersion": "9.0.0" + }, + "scope": { + "is-not-test": { + "description": "test scope for is no filter\n", + "id": "ad0c0ba2-9283-43e8-8d61-0a6bb2546141", + "metadata": {}, + "name": "is-not-test", + "sourceCondition": { + "user": { + "filter": { + "or": [ + { + "not_equals": { + "left": "user.city", + "right": { + "literal": "Utah" + } + } + } + ] + }, + "version": "v2" + } + }, + "status": "active", + "targetCondition": {} + } + } +} diff --git a/test/e2e/exports/all-separate/cloud/global/scope/phh-delegate-visibility.scope.json b/test/e2e/exports/all-separate/cloud/global/scope/phh-delegate-visibility.scope.json new file mode 100644 index 000000000..52e198214 --- /dev/null +++ b/test/e2e/exports/all-separate/cloud/global/scope/phh-delegate-visibility.scope.json @@ -0,0 +1,53 @@ +{ + "meta": { + "exportDate": "2026-05-15T18:53:54.982Z", + "exportTool": "frodo", + "exportToolVersion": "v4.0.0-39 [v24.13.0]", + "exportedBy": "dsevy@trivir.com", + "origin": "https://openam-trivir-fairfax.forgeblocks.com/am", + "originAmVersion": "9.0.0" + }, + "scope": { + "phh-delegate-visibility": { + "description": "Allows employees (frIndexedInteger1 eq 0) to view other employee objects", + "id": "8203ecdd-d9b6-4103-aac5-1c4ad99e1b24", + "metadata": {}, + "name": "phh-delegate-visibility", + "sourceCondition": { + "user": { + "filter": { + "and": [ + { + "equals": { + "left": "user.frIndexedInteger1", + "right": { + "literal": 0 + } + } + } + ] + }, + "version": "v2" + } + }, + "status": "inactive", + "targetCondition": { + "user": { + "filter": { + "and": [ + { + "equals": { + "left": "user.frIndexedInteger1", + "right": { + "literal": 0 + } + } + } + ] + }, + "version": "v2" + } + } + } + } +} diff --git a/test/e2e/exports/all-separate/cloud/global/scope/random-scope.scope.json b/test/e2e/exports/all-separate/cloud/global/scope/random-scope.scope.json new file mode 100644 index 000000000..9e881a3f9 --- /dev/null +++ b/test/e2e/exports/all-separate/cloud/global/scope/random-scope.scope.json @@ -0,0 +1,62 @@ +{ + "meta": { + "exportDate": "2026-05-15T18:53:54.982Z", + "exportTool": "frodo", + "exportToolVersion": "v4.0.0-39 [v24.13.0]", + "exportedBy": "dsevy@trivir.com", + "origin": "https://openam-trivir-fairfax.forgeblocks.com/am", + "originAmVersion": "9.0.0" + }, + "scope": { + "random-scope": { + "description": "this is a test", + "id": "57441e24-6310-49d7-984c-3692ba87bbab", + "metadata": {}, + "name": "random-scope", + "sourceCondition": { + "user": { + "filter": { + "or": [ + { + "not_contains": { + "in_string_array": "user.adminOfOrg", + "search_string": { + "literal": "e74ffe7b-77be-4d6a-9564-3f9d8c4304e0" + } + } + }, + { + "equals": { + "left": "user.city", + "right": { + "literal": "Salt Lake City" + } + } + } + ] + }, + "version": "v2" + } + }, + "status": "active", + "targetCondition": { + "application": { + "filter": {}, + "version": "v2" + }, + "entitlement": { + "filter": {}, + "version": "v2" + }, + "role": { + "filter": {}, + "version": "v2" + }, + "user": { + "filter": {}, + "version": "v2" + } + } + } + } +} diff --git a/test/e2e/exports/all-separate/cloud/global/scope/starts-with-test.scope.json b/test/e2e/exports/all-separate/cloud/global/scope/starts-with-test.scope.json new file mode 100644 index 000000000..1df60223b --- /dev/null +++ b/test/e2e/exports/all-separate/cloud/global/scope/starts-with-test.scope.json @@ -0,0 +1,128 @@ +{ + "meta": { + "exportDate": "2026-05-15T18:53:54.983Z", + "exportTool": "frodo", + "exportToolVersion": "v4.0.0-39 [v24.13.0]", + "exportedBy": "dsevy@trivir.com", + "origin": "https://openam-trivir-fairfax.forgeblocks.com/am", + "originAmVersion": "9.0.0" + }, + "scope": { + "starts-with-test": { + "description": "", + "id": "c03d12b5-179e-4dac-aa7e-b2d9eb253fb3", + "metadata": {}, + "name": "starts-with-test", + "permissions": { + "createRole": true, + "createUser": true, + "deleteRole": true, + "deleteUser": true, + "modifyRole": true, + "modifyUser": true, + "publishRole": true, + "viewUserAccess": true + }, + "sourceCondition": { + "user": { + "filter": { + "or": [ + { + "starts_with": { + "prefix": { + "literal": "1" + }, + "value": "user.frIndexedDate1" + } + }, + { + "or": [ + { + "starts_with": { + "prefix": { + "literal": "U" + }, + "value": "user.city" + } + }, + { + "starts_with": { + "prefix": { + "literal": "A" + }, + "value": "user.country" + } + } + ] + } + ] + }, + "version": "v2" + } + }, + "status": "active", + "targetCondition": { + "application": { + "filter": { + "or": [ + { + "starts_with": { + "prefix": { + "literal": "A" + }, + "value": "catalog.application._id" + } + } + ] + }, + "version": "v2" + }, + "entitlement": { + "filter": { + "or": [ + { + "starts_with": { + "prefix": { + "literal": "A" + }, + "value": "catalog.entitlement.descriptor.displayName" + } + } + ] + }, + "version": "v2" + }, + "role": { + "filter": { + "or": [ + { + "starts_with": { + "prefix": { + "literal": "A" + }, + "value": "catalog.role.description" + } + } + ] + }, + "version": "v2" + }, + "user": { + "filter": { + "or": [ + { + "starts_with": { + "prefix": { + "literal": "1" + }, + "value": "user._id" + } + } + ] + }, + "version": "v2" + } + } + } + } +} diff --git a/test/e2e/exports/all-separate/cloud/global/scope/test.scope.json b/test/e2e/exports/all-separate/cloud/global/scope/test.scope.json new file mode 100644 index 000000000..dc1a47839 --- /dev/null +++ b/test/e2e/exports/all-separate/cloud/global/scope/test.scope.json @@ -0,0 +1,78 @@ +{ + "meta": { + "exportDate": "2026-05-15T18:53:54.982Z", + "exportTool": "frodo", + "exportToolVersion": "v4.0.0-39 [v24.13.0]", + "exportedBy": "dsevy@trivir.com", + "origin": "https://openam-trivir-fairfax.forgeblocks.com/am", + "originAmVersion": "9.0.0" + }, + "scope": { + "test": { + "description": "", + "id": "8e08b64c-2333-49d5-a31f-43fd2fc6ba6d", + "metadata": {}, + "name": "test", + "permissions": { + "createEntitlement": true, + "createRole": true, + "createUser": true, + "deleteRole": true, + "deleteUser": true, + "modifyEntitlement": true, + "modifyRole": true, + "modifyUser": true, + "publishRole": true, + "viewGrants": true, + "viewUserAccess": true + }, + "sourceCondition": { + "user": { + "filter": { + "and": [ + { + "not_contains": { + "in_string": "user.stateProvince", + "search_string": { + "literal": "Utah" + } + } + } + ] + }, + "version": "v2" + } + }, + "status": "active", + "targetCondition": { + "application": { + "filter": {}, + "version": "v2" + }, + "entitlement": { + "filter": {}, + "version": "v2" + }, + "role": { + "filter": {}, + "version": "v2" + }, + "user": { + "filter": { + "or": [ + { + "ends_with": { + "suffix": { + "literal": "s" + }, + "value": "user.accountStatus" + } + } + ] + }, + "version": "v2" + } + } + } + } +} diff --git a/test/e2e/exports/all-separate/cloud/global/scope/testScopeExportFile1.json b/test/e2e/exports/all-separate/cloud/global/scope/testScopeExportFile1.json new file mode 100644 index 000000000..a29118762 --- /dev/null +++ b/test/e2e/exports/all-separate/cloud/global/scope/testScopeExportFile1.json @@ -0,0 +1,128 @@ +{ + "meta": { + "exportDate": "2026-05-19T15:24:26.198Z", + "exportTool": "frodo", + "exportToolVersion": "v4.0.0-39 [v24.13.0]", + "exportedBy": "dsevy@trivir.com", + "origin": "https://openam-trivir-fairfax.forgeblocks.com/am", + "originAmVersion": "9.0.0" + }, + "scope": { + "de9f6e6d-7b4d-4bb5-8f7e-b56f4b70be95": { + "description": "", + "id": "de9f6e6d-7b4d-4bb5-8f7e-b56f4b70be95", + "metadata": {}, + "name": "starts-with-test", + "permissions": { + "createRole": true, + "createUser": true, + "deleteRole": true, + "deleteUser": true, + "modifyRole": true, + "modifyUser": true, + "publishRole": true, + "viewUserAccess": true + }, + "sourceCondition": { + "user": { + "filter": { + "or": [ + { + "starts_with": { + "prefix": { + "literal": "1" + }, + "value": "user.frIndexedDate1" + } + }, + { + "or": [ + { + "starts_with": { + "prefix": { + "literal": "U" + }, + "value": "user.city" + } + }, + { + "starts_with": { + "prefix": { + "literal": "A" + }, + "value": "user.country" + } + } + ] + } + ] + }, + "version": "v2" + } + }, + "status": "active", + "targetCondition": { + "application": { + "filter": { + "or": [ + { + "starts_with": { + "prefix": { + "literal": "A" + }, + "value": "catalog.application._id" + } + } + ] + }, + "version": "v2" + }, + "entitlement": { + "filter": { + "or": [ + { + "starts_with": { + "prefix": { + "literal": "A" + }, + "value": "catalog.entitlement.descriptor.displayName" + } + } + ] + }, + "version": "v2" + }, + "role": { + "filter": { + "or": [ + { + "starts_with": { + "prefix": { + "literal": "A" + }, + "value": "catalog.role.description" + } + } + ] + }, + "version": "v2" + }, + "user": { + "filter": { + "or": [ + { + "starts_with": { + "prefix": { + "literal": "1" + }, + "value": "user._id" + } + } + ] + }, + "version": "v2" + } + } + } + } +} diff --git a/test/e2e/exports/all/allScopes.scope.json b/test/e2e/exports/all/allScopes.scope.json new file mode 100644 index 000000000..d04b149eb --- /dev/null +++ b/test/e2e/exports/all/allScopes.scope.json @@ -0,0 +1,548 @@ +{ + "meta": { + "exportDate": "2026-05-15T18:53:48.400Z", + "exportTool": "frodo", + "exportToolVersion": "v4.0.0-39 [v24.13.0]", + "exportedBy": "dsevy@trivir.com", + "origin": "https://openam-trivir-fairfax.forgeblocks.com/am", + "originAmVersion": "9.0.0" + }, + "scope": { + "34153ec1-adde-472b-a1b3-65f9b0119df6": { + "description": "", + "id": "34153ec1-adde-472b-a1b3-65f9b0119df6", + "metadata": {}, + "name": "equals-test", + "permissions": { + "createEntitlement": true, + "createRole": true, + "createUser": true, + "deleteRole": true, + "deleteUser": true, + "modifyEntitlement": true, + "modifyRole": true, + "modifyUser": true, + "publishRole": true, + "viewGrants": true, + "viewUserAccess": true + }, + "sourceCondition": { + "user": { + "filter": { + "or": [ + { + "equals": { + "left": "user.city", + "right": { + "literal": "Utah" + } + } + } + ] + }, + "version": "v2" + } + }, + "status": "active", + "targetCondition": { + "application": { + "filter": { + "or": [ + { + "equals": { + "left": "catalog.application.name", + "right": { + "literal": "temp" + } + } + } + ] + }, + "version": "v2" + }, + "entitlement": { + "filter": { + "and": [ + { + "equals": { + "left": "catalog.entitlement.descriptor.displayName", + "right": { + "literal": "temp" + } + } + } + ] + }, + "version": "v2" + }, + "role": { + "filter": { + "or": [ + { + "equals": { + "left": "catalog.role.description", + "right": { + "literal": "temp" + } + } + } + ] + }, + "version": "v2" + }, + "user": { + "filter": { + "or": [ + { + "equals": { + "left": "user._id", + "right": { + "literal": "temp" + } + } + } + ] + }, + "version": "v2" + } + } + }, + "57441e24-6310-49d7-984c-3692ba87bbab": { + "description": "this is a test", + "id": "57441e24-6310-49d7-984c-3692ba87bbab", + "metadata": {}, + "name": "random-scope", + "sourceCondition": { + "user": { + "filter": { + "or": [ + { + "not_contains": { + "in_string_array": "user.adminOfOrg", + "search_string": { + "literal": "e74ffe7b-77be-4d6a-9564-3f9d8c4304e0" + } + } + }, + { + "equals": { + "left": "user.city", + "right": { + "literal": "Salt Lake City" + } + } + } + ] + }, + "version": "v2" + } + }, + "status": "active", + "targetCondition": { + "application": { + "filter": {}, + "version": "v2" + }, + "entitlement": { + "filter": {}, + "version": "v2" + }, + "role": { + "filter": {}, + "version": "v2" + }, + "user": { + "filter": {}, + "version": "v2" + } + } + }, + "8203ecdd-d9b6-4103-aac5-1c4ad99e1b24": { + "description": "Allows employees (frIndexedInteger1 eq 0) to view other employee objects", + "id": "8203ecdd-d9b6-4103-aac5-1c4ad99e1b24", + "metadata": {}, + "name": "phh-delegate-visibility", + "sourceCondition": { + "user": { + "filter": { + "and": [ + { + "equals": { + "left": "user.frIndexedInteger1", + "right": { + "literal": 0 + } + } + } + ] + }, + "version": "v2" + } + }, + "status": "inactive", + "targetCondition": { + "user": { + "filter": { + "and": [ + { + "equals": { + "left": "user.frIndexedInteger1", + "right": { + "literal": 0 + } + } + } + ] + }, + "version": "v2" + } + } + }, + "8e08b64c-2333-49d5-a31f-43fd2fc6ba6d": { + "description": "", + "id": "8e08b64c-2333-49d5-a31f-43fd2fc6ba6d", + "metadata": {}, + "name": "test", + "permissions": { + "createEntitlement": true, + "createRole": true, + "createUser": true, + "deleteRole": true, + "deleteUser": true, + "modifyEntitlement": true, + "modifyRole": true, + "modifyUser": true, + "publishRole": true, + "viewGrants": true, + "viewUserAccess": true + }, + "sourceCondition": { + "user": { + "filter": { + "and": [ + { + "not_contains": { + "in_string": "user.stateProvince", + "search_string": { + "literal": "Utah" + } + } + } + ] + }, + "version": "v2" + } + }, + "status": "active", + "targetCondition": { + "application": { + "filter": {}, + "version": "v2" + }, + "entitlement": { + "filter": {}, + "version": "v2" + }, + "role": { + "filter": {}, + "version": "v2" + }, + "user": { + "filter": { + "or": [ + { + "ends_with": { + "suffix": { + "literal": "s" + }, + "value": "user.accountStatus" + } + } + ] + }, + "version": "v2" + } + } + }, + "9a189189-73d3-4e87-a7ad-2c218e4cff93": { + "description": "A test scope for ends with filter", + "id": "9a189189-73d3-4e87-a7ad-2c218e4cff93", + "metadata": {}, + "name": "ends-with-scope", + "sourceCondition": { + "user": { + "filter": { + "or": [ + { + "ends_with": { + "suffix": { + "literal": "1" + }, + "value": "user._id" + } + } + ] + }, + "version": "v2" + } + }, + "status": "active", + "targetCondition": {} + }, + "9ea91a47-1be1-4a70-8925-d25898a3c8d5": { + "description": "test scope for contains filter", + "id": "9ea91a47-1be1-4a70-8925-d25898a3c8d5", + "metadata": {}, + "name": "contains-test", + "sourceCondition": { + "user": { + "filter": { + "or": [ + { + "contains": { + "in_string": "user._id", + "search_string": { + "literal": "" + } + } + } + ] + }, + "version": "v2" + } + }, + "status": "active", + "targetCondition": {} + }, + "ad0c0ba2-9283-43e8-8d61-0a6bb2546141": { + "description": "test scope for is no filter\n", + "id": "ad0c0ba2-9283-43e8-8d61-0a6bb2546141", + "metadata": {}, + "name": "is-not-test", + "sourceCondition": { + "user": { + "filter": { + "or": [ + { + "not_equals": { + "left": "user.city", + "right": { + "literal": "Utah" + } + } + } + ] + }, + "version": "v2" + } + }, + "status": "active", + "targetCondition": {} + }, + "c03d12b5-179e-4dac-aa7e-b2d9eb253fb3": { + "description": "", + "id": "c03d12b5-179e-4dac-aa7e-b2d9eb253fb3", + "metadata": {}, + "name": "starts-with-test", + "permissions": { + "createRole": true, + "createUser": true, + "deleteRole": true, + "deleteUser": true, + "modifyRole": true, + "modifyUser": true, + "publishRole": true, + "viewUserAccess": true + }, + "sourceCondition": { + "user": { + "filter": { + "or": [ + { + "starts_with": { + "prefix": { + "literal": "1" + }, + "value": "user.frIndexedDate1" + } + }, + { + "or": [ + { + "starts_with": { + "prefix": { + "literal": "U" + }, + "value": "user.city" + } + }, + { + "starts_with": { + "prefix": { + "literal": "A" + }, + "value": "user.country" + } + } + ] + } + ] + }, + "version": "v2" + } + }, + "status": "active", + "targetCondition": { + "application": { + "filter": { + "or": [ + { + "starts_with": { + "prefix": { + "literal": "A" + }, + "value": "catalog.application._id" + } + } + ] + }, + "version": "v2" + }, + "entitlement": { + "filter": { + "or": [ + { + "starts_with": { + "prefix": { + "literal": "A" + }, + "value": "catalog.entitlement.descriptor.displayName" + } + } + ] + }, + "version": "v2" + }, + "role": { + "filter": { + "or": [ + { + "starts_with": { + "prefix": { + "literal": "A" + }, + "value": "catalog.role.description" + } + } + ] + }, + "version": "v2" + }, + "user": { + "filter": { + "or": [ + { + "starts_with": { + "prefix": { + "literal": "1" + }, + "value": "user._id" + } + } + ] + }, + "version": "v2" + } + } + }, + "e9bc6e7e-ab6b-45f2-a5e4-af976d8a0c24": { + "description": "", + "id": "e9bc6e7e-ab6b-45f2-a5e4-af976d8a0c24", + "metadata": {}, + "name": "User LCM Test", + "permissions": { + "createUser": true + }, + "sourceCondition": { + "user": { + "filter": { + "or": [ + { + "equals": { + "left": "user._id", + "right": { + "literal": "6a2d0e09-a9ac-41ca-af24-8af052c480f2" + } + } + }, + { + "equals": { + "left": "user.userName", + "right": { + "literal": "phh-parent-org-admin" + } + } + } + ] + }, + "version": "v2" + } + }, + "status": "active", + "targetCondition": { + "user": { + "filter": {}, + "version": "v2" + } + } + }, + "edca1abc-7381-46c4-87a8-948790737c68": { + "description": "Description of the put scope request", + "id": "edca1abc-7381-46c4-87a8-948790737c68", + "metadata": {}, + "name": "New Scope", + "sourceCondition": { + "user": { + "filter": { + "and": [] + }, + "version": "v2" + } + }, + "status": "active", + "targetCondition": { + "application": { + "filter": { + "and": [] + }, + "version": "v2" + } + } + }, + "fcbccf06-1683-4209-9293-ba5be3ee2443": { + "description": "test scope for does not contain filter", + "id": "fcbccf06-1683-4209-9293-ba5be3ee2443", + "metadata": {}, + "name": "does-not-contain-test", + "sourceCondition": { + "user": { + "filter": { + "or": [ + { + "not_contains": { + "in_string": "user.city", + "search_string": { + "literal": "Utah" + } + } + } + ] + }, + "version": "v2" + } + }, + "status": "active", + "targetCondition": {} + } + } +} diff --git a/test/e2e/iga-scope-delete.e2e.test.ts b/test/e2e/iga-scope-delete.e2e.test.ts new file mode 100644 index 000000000..f6ccd861a --- /dev/null +++ b/test/e2e/iga-scope-delete.e2e.test.ts @@ -0,0 +1,79 @@ +/** + * Follow this process to write e2e tests for the CLI project: + * + * 1. Test if all the necessary mocks for your tests already exist. + * In mock mode, run the command you want to test with the same arguments + * and parameters exactly as you want to test it, for example: + * + * $ FRODO_MOCK=1 frodo conn save https://openam-frodo-dev.forgeblocks.com/am volker.scheuber@forgerock.com Sup3rS3cr3t! + * + * If your command completes without errors and with the expected results, + * all the required mocks already exist and you are good to write your + * test and skip to step #4. + * + * If, however, your command fails and you see errors like the one below, + * you know you need to record the mock responses first: + * + * [Polly] [adapter:node-http] Recording for the following request is not found and `recordIfMissing` is `false`. + * + * 2. Record mock responses for your exact command. + * In mock record mode, run the command you want to test with the same arguments + * and parameters exactly as you want to test it, for example: + * + * $ FRODO_MOCK=record frodo conn save https://openam-frodo-dev.forgeblocks.com/am volker.scheuber@forgerock.com Sup3rS3cr3t! + * + * Wait until you see all the Polly instances (mock recording adapters) have + * shutdown before you try to run step #1 again. + * Messages like these indicate mock recording adapters shutting down: + * + * Polly instance 'conn/4' stopping in 3s... + * Polly instance 'conn/4' stopping in 2s... + * Polly instance 'conn/save/3' stopping in 3s... + * Polly instance 'conn/4' stopping in 1s... + * Polly instance 'conn/save/3' stopping in 2s... + * Polly instance 'conn/4' stopped. + * Polly instance 'conn/save/3' stopping in 1s... + * Polly instance 'conn/save/3' stopped. + * + * 3. Validate your freshly recorded mock responses are complete and working. + * Re-run the exact command you want to test in mock mode (see step #1). + * + * 4. Write your test. + * Make sure to use the exact command including number of arguments and params. + * + * 5. Commit both your test and your new recordings to the repository. + * Your tests are likely going to reside outside the frodo-lib project but + * the recordings must be committed to the frodo-lib project. + */ + +/* +FRODO_MOCK=record FRODO_NO_CACHE=1 FRODO_HOST=https://openam-frodo-dev.forgeblocks.com/am frodo iga scope delete -n equals-test +FRODO_MOCK=record FRODO_NO_CACHE=1 FRODO_HOST=https://openam-frodo-dev.forgeblocks.com/am frodo iga scope delete --all + */ + +import cp from 'child_process'; +import { promisify } from 'util'; +import { getEnv, removeAnsiEscapeCodes } from './utils/TestUtils'; +import { iga_connection as ic } from './utils/TestConfig'; + +const exec = promisify(cp.exec); + +process.env['FRODO_MOCK'] = '1'; +const igaEnv = getEnv(ic); + +describe(`frodo iga scope delete`, () => { + + test(`"frodo iga scope delete --all": should delete all scope`, async () => { + const CMD = `frodo iga scope delete --all`; + const { stdout, stderr } = await exec(CMD, igaEnv); + expect(removeAnsiEscapeCodes(stdout)).toMatchSnapshot(); + expect(removeAnsiEscapeCodes(stderr)).toMatchSnapshot(); + }); + + test(`"frodo iga scope delete -n equals-test": Should delete scope equals-test by name`, async () => { + const CMD = `frodo iga scope delete -n equals-test`; + const { stdout, stderr } = await exec(CMD, igaEnv); + expect(removeAnsiEscapeCodes(stdout)).toMatchSnapshot(); + expect(removeAnsiEscapeCodes(stderr)).toMatchSnapshot(); + }); +}); \ No newline at end of file diff --git a/test/e2e/iga-scope-describe.e2e.test.ts b/test/e2e/iga-scope-describe.e2e.test.ts new file mode 100644 index 000000000..dc016c872 --- /dev/null +++ b/test/e2e/iga-scope-describe.e2e.test.ts @@ -0,0 +1,84 @@ +/** + * Follow this process to write e2e tests for the CLI project: + * + * 1. Test if all the necessary mocks for your tests already exist. + * In mock mode, run the command you want to test with the same arguments + * and parameters exactly as you want to test it, for example: + * + * $ FRODO_MOCK=1 frodo conn save https://openam-frodo-dev.forgeblocks.com/am volker.scheuber@forgerock.com Sup3rS3cr3t! + * + * If your command completes without errors and with the expected results, + * all the required mocks already exist and you are good to write your + * test and skip to step #4. + * + * If, however, your command fails and you see errors like the one below, + * you know you need to record the mock responses first: + * + * [Polly] [adapter:node-http] Recording for the following request is not found and `recordIfMissing` is `false`. + * + * 2. Record mock responses for your exact command. + * In mock record mode, run the command you want to test with the same arguments + * and parameters exactly as you want to test it, for example: + * + * $ FRODO_MOCK=record frodo conn save https://openam-frodo-dev.forgeblocks.com/am volker.scheuber@forgerock.com Sup3rS3cr3t! + * + * Wait until you see all the Polly instances (mock recording adapters) have + * shutdown before you try to run step #1 again. + * Messages like these indicate mock recording adapters shutting down: + * + * Polly instance 'conn/4' stopping in 3s... + * Polly instance 'conn/4' stopping in 2s... + * Polly instance 'conn/save/3' stopping in 3s... + * Polly instance 'conn/4' stopping in 1s... + * Polly instance 'conn/save/3' stopping in 2s... + * Polly instance 'conn/4' stopped. + * Polly instance 'conn/save/3' stopping in 1s... + * Polly instance 'conn/save/3' stopped. + * + * 3. Validate your freshly recorded mock responses are complete and working. + * Re-run the exact command you want to test in mock mode (see step #1). + * + * 4. Write your test. + * Make sure to use the exact command including number of arguments and params. + * + * 5. Commit both your test and your new recordings to the repository. + * Your tests are likely going to reside outside the frodo-lib project but + * the recordings must be committed to the frodo-lib project. + */ + +/* +FRODO_MOCK=record FRODO_NO_CACHE=1 FRODO_HOST=https://openam-frodo-dev.forgeblocks.com/am frodo iga scope describe -n contains-test -f test/e2e/exports/all/allScopes.scope.json +FRODO_MOCK=record FRODO_NO_CACHE=1 FRODO_HOST=https://openam-frodo-dev.forgeblocks.com/am frodo iga scope describe --name contains-test +FRODO_MOCK=record FRODO_NO_CACHE=1 FRODO_HOST=https://openam-frodo-dev.forgeblocks.com/am frodo iga scope describe --file test/e2e/exports/all/allScopes.scope.json + */ +import cp from 'child_process'; +import { promisify } from 'util'; +import { getEnv, removeAnsiEscapeCodes } from './utils/TestUtils'; +import { iga_connection as ic } from './utils/TestConfig'; + +const exec = promisify(cp.exec); + +process.env['FRODO_MOCK'] = '1'; +const igaEnv = getEnv(ic); + +const allScopesFile = "test/e2e/exports/all/allScopes.scope.json"; + +describe(`frodo iga scope describe`, () => { + test(`"frodo iga scope describe -n contains-test -f ${allScopesFile}": should describe scope 'contains-test' from file ${allScopesFile}`, async () => { + const CMD = `frodo iga scope describe -n contains-test -f ${allScopesFile}`; + const { stdout } = await exec(CMD, igaEnv); + expect(removeAnsiEscapeCodes(stdout)).toMatchSnapshot(); + }); + + test(`"frodo iga scope describe --name contains-test ": should describe scope 'contains-test'`, async () => { + const CMD = `frodo iga scope describe --name contains-test`; + const { stdout } = await exec(CMD, igaEnv); + expect(removeAnsiEscapeCodes(stdout)).toMatchSnapshot(); + }); + + test(`"frodo iga scope describe --file ${allScopesFile}": should describe first scope from file ${allScopesFile}`, async () => { + const CMD = `frodo iga scope describe --file ${allScopesFile}`; + const { stdout } = await exec(CMD, igaEnv); + expect(removeAnsiEscapeCodes(stdout)).toMatchSnapshot(); + }); +}); diff --git a/test/e2e/iga-scope-export.e2e.test.ts b/test/e2e/iga-scope-export.e2e.test.ts new file mode 100644 index 000000000..82916a8a2 --- /dev/null +++ b/test/e2e/iga-scope-export.e2e.test.ts @@ -0,0 +1,82 @@ +/** + * Follow this process to write e2e tests for the CLI project: + * + * 1. Test if all the necessary mocks for your tests already exist. + * In mock mode, run the command you want to test with the same arguments + * and parameters exactly as you want to test it, for example: + * + * $ FRODO_MOCK=1 frodo conn save https://openam-frodo-dev.forgeblocks.com/am volker.scheuber@forgerock.com Sup3rS3cr3t! + * + * If your command completes without errors and with the expected results, + * all the required mocks already exist and you are good to write your + * test and skip to step #4. + * + * If, however, your command fails and you see errors like the one below, + * you know you need to record the mock responses first: + * + * [Polly] [adapter:node-http] Recording for the following request is not found and `recordIfMissing` is `false`. + * + * 2. Record mock responses for your exact command. + * In mock record mode, run the command you want to test with the same arguments + * and parameters exactly as you want to test it, for example: + * + * $ FRODO_MOCK=record frodo conn save https://openam-frodo-dev.forgeblocks.com/am volker.scheuber@forgerock.com Sup3rS3cr3t! + * + * Wait until you see all the Polly instances (mock recording adapters) have + * shutdown before you try to run step #1 again. + * Messages like these indicate mock recording adapters shutting down: + * + * Polly instance 'conn/4' stopping in 3s... + * Polly instance 'conn/4' stopping in 2s... + * Polly instance 'conn/save/3' stopping in 3s... + * Polly instance 'conn/4' stopping in 1s... + * Polly instance 'conn/save/3' stopping in 2s... + * Polly instance 'conn/4' stopped. + * Polly instance 'conn/save/3' stopping in 1s... + * Polly instance 'conn/save/3' stopped. + * + * 3. Validate your freshly recorded mock responses are complete and working. + * Re-run the exact command you want to test in mock mode (see step #1). + * + * 4. Write your test. + * Make sure to use the exact command including number of arguments and params. + * + * 5. Commit both your test and your new recordings to the repository. + * Your tests are likely going to reside outside the frodo-lib project but + * the recordings must be committed to the frodo-lib project. + */ + +/* +FRODO_MOCK=record FRODO_NO_CACHE=1 FRODO_HOST=https://openam-frodo-dev.forgeblocks.com/am frodo iga scope export --no-metadata -a --directory testScopeExportDir2 +FRODO_MOCK=record FRODO_NO_CACHE=1 FRODO_HOST=https://openam-frodo-dev.forgeblocks.com/am frodo iga scope export --all --file testScopeExportFile2.json +FRODO_MOCK=record FRODO_NO_CACHE=1 FRODO_HOST=https://openam-frodo-dev.forgeblocks.com/am frodo iga scope export -NAD testScopeExportDir3 + */ +import { getEnv, testExport } from './utils/TestUtils'; +import { iga_connection as ic } from './utils/TestConfig'; + +process.env['FRODO_MOCK'] = '1'; +const igaEnv = getEnv(ic); + +const type = 'scope'; + +describe(`frodo iga scope export`, () => { + test(`"frodo iga scope export --no-metadata -a --directory testScopeExportDir2": should export all scopes with no metadata`, async () => { + const exportFile = 'allScopes.scope.json'; + const exportDirectory = "testScopeExportDir2"; + const CMD = `frodo iga scope export --no-metadata -a --directory ${exportDirectory}`; + await testExport(CMD, igaEnv, type, exportFile, exportDirectory, false, true); + }); + + test(`"frodo iga scope export --all --file testScopeExportFile2.json": should export all scopes to file`, async () => { + const exportFile = 'testScopeExportFile2.json'; + const CMD = `frodo iga scope export --all --file ${exportFile}`; + await testExport(CMD, igaEnv, type, exportFile, undefined, true, true); + }); + + test(`"frodo iga scope export -NAD testScopeExportDir3": should export all scopes separately with no metadata`, async () => { + const exportDirectory = "testScopeExportDir3"; + const CMD = `frodo iga scope export -NAD ${exportDirectory}`; + await testExport(CMD, igaEnv, type, undefined, exportDirectory, false, true); + }); + +}); diff --git a/test/e2e/iga-scope-import.e2e.test.ts b/test/e2e/iga-scope-import.e2e.test.ts new file mode 100644 index 000000000..f7f7cb3ea --- /dev/null +++ b/test/e2e/iga-scope-import.e2e.test.ts @@ -0,0 +1,107 @@ +/** + * Follow this process to write e2e tests for the CLI project: + * + * 1. Test if all the necessary mocks for your tests already exist. + * In mock mode, run the command you want to test with the same arguments + * and parameters exactly as you want to test it, for example: + * + * $ FRODO_MOCK=1 frodo conn save https://openam-frodo-dev.forgeblocks.com/am volker.scheuber@forgerock.com Sup3rS3cr3t! + * + * If your command completes without errors and with the expected results, + * all the required mocks already exist and you are good to write your + * test and skip to step #4. + * + * If, however, your command fails and you see errors like the one below, + * you know you need to record the mock responses first: + * + * [Polly] [adapter:node-http] Recording for the following request is not found and `recordIfMissing` is `false`. + * + * 2. Record mock responses for your exact command. + * In mock record mode, run the command you want to test with the same arguments + * and parameters exactly as you want to test it, for example: + * + * $ FRODO_MOCK=record frodo conn save https://openam-frodo-dev.forgeblocks.com/am volker.scheuber@forgerock.com Sup3rS3cr3t! + * + * Wait until you see all the Polly instances (mock recording adapters) have + * shutdown before you try to run step #1 again. + * Messages like these indicate mock recording adapters shutting down: + * + * Polly instance 'conn/4' stopping in 3s... + * Polly instance 'conn/4' stopping in 2s... + * Polly instance 'conn/save/3' stopping in 3s... + * Polly instance 'conn/4' stopping in 1s... + * Polly instance 'conn/save/3' stopping in 2s... + * Polly instance 'conn/4' stopped. + * Polly instance 'conn/save/3' stopping in 1s... + * Polly instance 'conn/save/3' stopped. + * + * 3. Validate your freshly recorded mock responses are complete and working. + * Re-run the exact command you want to test in mock mode (see step #1). + * + * 4. Write your test. + * Make sure to use the exact command including number of arguments and params. + * + * 5. Commit both your test and your new recordings to the repository. + * Your tests are likely going to reside outside the frodo-lib project but + * the recordings must be committed to the frodo-lib project. + */ + +/* +FRODO_MOCK=record FRODO_NO_CACHE=1 FRODO_HOST=https://openam-frodo-dev.forgeblocks.com/am frodo iga scope import -n contains-test -f test/e2e/exports/all/allScopes.scope.json +FRODO_MOCK=record FRODO_NO_CACHE=1 FRODO_HOST=https://openam-frodo-dev.forgeblocks.com/am frodo iga scope import --scope-name contains-test --file test/e2e/exports/all/allScopes.scope.json +FRODO_MOCK=record FRODO_NO_CACHE=1 FRODO_HOST=https://openam-frodo-dev.forgeblocks.com/am frodo iga scope import -f test/e2e/exports/all/allScopes.scope.json +FRODO_MOCK=record FRODO_NO_CACHE=1 FRODO_HOST=https://openam-frodo-dev.forgeblocks.com/am frodo iga scope import -af test/e2e/exports/all/allScopes.scope.json +FRODO_MOCK=record FRODO_NO_CACHE=1 FRODO_HOST=https://openam-frodo-dev.forgeblocks.com/am frodo iga scope import -AD test/e2e/exports/all-separate/cloud/global/scope +FRODO_MOCK=record FRODO_NO_CACHE=1 FRODO_HOST=https://openam-frodo-dev.forgeblocks.com/am frodo iga scope import --all-separate --directory test/e2e/exports/all-separate/cloud/global/scope + */ +import cp from 'child_process'; +import { promisify } from 'util'; +import { getEnv, removeAnsiEscapeCodes } from './utils/TestUtils'; +import { iga_connection as ic } from './utils/TestConfig'; + +const exec = promisify(cp.exec); + +process.env['FRODO_MOCK'] = '1'; +const igaEnv = getEnv(ic); + +const allDirectory = "test/e2e/exports/all"; +const allScopeFileName = "allScopes.scope.json"; +const allScopeExports = `${allDirectory}/${allScopeFileName}`; +const allSeparateScopeDirectory = `test/e2e/exports/all-separate/cloud/global/scope`; + +describe(`frodo iga scope import`, () => { + test(`"frodo iga scope import -n contains-test -f ${allScopeExports}": should import contains-test from the file "${allScopeExports}" with dependencies`, async () => { + const CMD = `frodo iga scope import -n contains-test -f ${allScopeExports}`; + const { stdout, stderr } = await exec(CMD, igaEnv); + expect(removeAnsiEscapeCodes(stdout)).toMatchSnapshot(); + expect(removeAnsiEscapeCodes(stderr)).toMatchSnapshot(); + }); + + test(`"frodo iga scope import --scope-name contains-test --file ${allScopeExports} ": should import contains-test from the file "${allScopeExports}"`, async () => { + const CMD = `frodo iga scope import --scope-name contains-test --file ${allScopeExports} `; + const { stdout, stderr } = await exec(CMD, igaEnv); + expect(removeAnsiEscapeCodes(stdout)).toMatchSnapshot(); + expect(removeAnsiEscapeCodes(stderr)).toMatchSnapshot(); + }); + + test(`"frodo iga scope import -f ${allScopeExports} ": should import first scope from the file "${allScopeExports}"`, async () => { + const CMD = `frodo iga scope import -f ${allScopeExports} `; + const { stdout, stderr } = await exec(CMD, igaEnv); + expect(removeAnsiEscapeCodes(stdout)).toMatchSnapshot(); + expect(removeAnsiEscapeCodes(stderr)).toMatchSnapshot(); + }); + + test(`"frodo iga scope import -af ${allScopeExports}": should import all scopes from the file "${allScopeExports}" with dependencies`, async () => { + const CMD = `frodo iga scope import -af ${allScopeExports}`; + const { stdout, stderr } = await exec(CMD, igaEnv); + expect(removeAnsiEscapeCodes(stdout)).toMatchSnapshot(); + expect(removeAnsiEscapeCodes(stderr)).toMatchSnapshot(); + }); + + test(`"frodo iga scope import -AD ${allSeparateScopeDirectory}": should import all scopes from the directory "${allSeparateScopeDirectory}" with dependencies`, async () => { + const CMD = `frodo iga scope import -AD ${allSeparateScopeDirectory}`; + const { stdout, stderr } = await exec(CMD, igaEnv); + expect(removeAnsiEscapeCodes(stdout)).toMatchSnapshot(); + expect(removeAnsiEscapeCodes(stderr)).toMatchSnapshot(); + }); +}); diff --git a/test/e2e/iga-scope-list.e2e.test.ts b/test/e2e/iga-scope-list.e2e.test.ts new file mode 100644 index 000000000..8a01ba560 --- /dev/null +++ b/test/e2e/iga-scope-list.e2e.test.ts @@ -0,0 +1,82 @@ +/** + * Follow this process to write e2e tests for the CLI project: + * + * 1. Test if all the necessary mocks for your tests already exist. + * In mock mode, run the command you want to test with the same arguments + * and parameters exactly as you want to test it, for example: + * + * $ FRODO_MOCK=1 frodo conn save https://openam-frodo-dev.forgeblocks.com/am volker.scheuber@forgerock.com Sup3rS3cr3t! + * + * If your command completes without errors and with the expected results, + * all the required mocks already exist and you are good to write your + * test and skip to step #4. + * + * If, however, your command fails and you see errors like the one below, + * you know you need to record the mock responses first: + * + * [Polly] [adapter:node-http] Recording for the following request is not found and `recordIfMissing` is `false`. + * + * 2. Record mock responses for your exact command. + * In mock record mode, run the command you want to test with the same arguments + * and parameters exactly as you want to test it, for example: + * + * $ FRODO_MOCK=record frodo conn save https://openam-frodo-dev.forgeblocks.com/am volker.scheuber@forgerock.com Sup3rS3cr3t! + * + * Wait until you see all the Polly instances (mock recording adapters) have + * shutdown before you try to run step #1 again. + * Messages like these indicate mock recording adapters shutting down: + * + * Polly instance 'conn/4' stopping in 3s... + * Polly instance 'conn/4' stopping in 2s... + * Polly instance 'conn/save/3' stopping in 3s... + * Polly instance 'conn/4' stopping in 1s... + * Polly instance 'conn/save/3' stopping in 2s... + * Polly instance 'conn/4' stopped. + * Polly instance 'conn/save/3' stopping in 1s... + * Polly instance 'conn/save/3' stopped. + * + * 3. Validate your freshly recorded mock responses are complete and working. + * Re-run the exact command you want to test in mock mode (see step #1). + * + * 4. Write your test. + * Make sure to use the exact command including number of arguments and params. + * + * 5. Commit both your test and your new recordings to the repository. + * Your tests are likely going to reside outside the frodo-lib project but + * the recordings must be committed to the frodo-lib project. + */ + +/* +FRODO_MOCK=record FRODO_NO_CACHE=1 FRODO_HOST=https://openam-frodo-dev.forgeblocks.com/am frodo iga scope list +FRODO_MOCK=record FRODO_NO_CACHE=1 FRODO_HOST=https://openam-frodo-dev.forgeblocks.com/am frodo iga scope list -l +FRODO_MOCK=record FRODO_NO_CACHE=1 FRODO_HOST=https://openam-frodo-dev.forgeblocks.com/am frodo iga scope list --long + */ +import cp from 'child_process'; +import { promisify } from 'util'; +import { getEnv, removeAnsiEscapeCodes } from './utils/TestUtils'; +import { iga_connection as ic } from './utils/TestConfig'; + +const exec = promisify(cp.exec); + +process.env['FRODO_MOCK'] = '1'; +const igaEnv = getEnv(ic); + +describe('frodo iga scope list', () => { + test('"frodo iga scope list": should list the ids of the scopes', async () => { + const CMD = `frodo iga scope list`; + const { stdout } = await exec(CMD, igaEnv); + expect(removeAnsiEscapeCodes(stdout)).toMatchSnapshot(); + }); + + test('"frodo iga scope list -l": should list the ids, names, mutability, and statuses of the scopes.', async () => { + const CMD = `frodo iga scope list -l`; + const { stdout } = await exec(CMD, igaEnv); + expect(removeAnsiEscapeCodes(stdout)).toMatchSnapshot(); + }); + + test('"frodo iga scope list --long": should list the ids, names, mutability, and statuses of the scopes.', async () => { + const CMD = `frodo iga scope list --long`; + const { stdout } = await exec(CMD, igaEnv); + expect(removeAnsiEscapeCodes(stdout)).toMatchSnapshot(); + }); +}); diff --git a/test/e2e/mocks/iga_2664973160/scope-delete_2021703181/0_all_1797740195/am_1076162899/recording.har b/test/e2e/mocks/iga_2664973160/scope-delete_2021703181/0_all_1797740195/am_1076162899/recording.har new file mode 100644 index 000000000..78d39cb0c --- /dev/null +++ b/test/e2e/mocks/iga_2664973160/scope-delete_2021703181/0_all_1797740195/am_1076162899/recording.har @@ -0,0 +1,312 @@ +{ + "log": { + "_recordingName": "iga/scope-delete/0_all/am", + "creator": { + "comment": "persister:fs", + "name": "Polly.JS", + "version": "6.0.6" + }, + "entries": [ + { + "_id": "ccd7a5defd0fdeaa986a2b54642d911a", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "name": "accept", + "value": "application/json, text/plain, */*" + }, + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "user-agent", + "value": "@rockcarver/frodo-lib/4.0.0-39" + }, + { + "name": "x-forgerock-transactionid", + "value": "frodo-b7155119-f0b5-4579-92a8-f99d02c0883d" + }, + { + "name": "accept-api-version", + "value": "resource=1.1" + }, + { + "name": "accept-encoding", + "value": "gzip, compress, deflate, br" + }, + { + "name": "host", + "value": "openam-frodo-dev.forgeblocks.com" + } + ], + "headersSize": 398, + "httpVersion": "HTTP/1.1", + "method": "GET", + "queryString": [], + "url": "https://openam-trivir-fairfax.forgeblocks.com/am/json/serverinfo/*" + }, + "response": { + "bodySize": 614, + "content": { + "mimeType": "application/json;charset=UTF-8", + "size": 614, + "text": "{\"_id\":\"*\",\"_rev\":\"959929574\",\"domains\":[],\"protectedUserAttributes\":[\"telephoneNumber\",\"mail\"],\"cookieName\":\"311468432e97f1f\",\"secureCookie\":true,\"forgotPassword\":\"false\",\"forgotUsername\":\"false\",\"kbaEnabled\":\"false\",\"selfRegistration\":\"false\",\"lang\":\"en-US\",\"successfulUserRegistrationDestination\":\"default\",\"socialImplementations\":[],\"referralsEnabled\":\"false\",\"zeroPageLogin\":{\"enabled\":false,\"refererWhitelist\":[],\"allowedWithoutReferer\":true},\"realm\":\"/\",\"xuiUserSessionValidationEnabled\":true,\"fileBasedConfiguration\":true,\"userIdAttributes\":[],\"cloudOnlyFeaturesEnabled\":true,\"oauth2AIAgentsEnabled\":false}" + }, + "cookies": [], + "headers": [ + { + "name": "x-frame-options", + "value": "SAMEORIGIN" + }, + { + "name": "content-security-policy-report-only", + "value": "frame-ancestors 'self'; script-src 'self' 'unsafe-eval' 'unsafe-inline'" + }, + { + "name": "x-content-type-options", + "value": "nosniff" + }, + { + "name": "cache-control", + "value": "no-store" + }, + { + "name": "content-api-version", + "value": "resource=1.1" + }, + { + "name": "content-security-policy", + "value": "default-src 'none';frame-ancestors 'none';sandbox" + }, + { + "name": "cross-origin-opener-policy", + "value": "same-origin" + }, + { + "name": "cross-origin-resource-policy", + "value": "same-origin" + }, + { + "name": "etag", + "value": "\"959929574\"" + }, + { + "name": "expires", + "value": "0" + }, + { + "name": "pragma", + "value": "no-cache" + }, + { + "name": "content-type", + "value": "application/json;charset=UTF-8" + }, + { + "name": "content-length", + "value": "614" + }, + { + "name": "date", + "value": "Tue, 19 May 2026 19:45:39 GMT" + }, + { + "name": "x-forgerock-transactionid", + "value": "frodo-b7155119-f0b5-4579-92a8-f99d02c0883d" + }, + { + "name": "strict-transport-security", + "value": "max-age=31536000; includeSubDomains; preload;" + }, + { + "name": "x-robots-tag", + "value": "none" + }, + { + "name": "via", + "value": "1.1 google" + }, + { + "name": "alt-svc", + "value": "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" + } + ], + "headersSize": 786, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2026-05-19T19:45:39.208Z", + "time": 159, + "timings": { + "blocked": -1, + "connect": -1, + "dns": -1, + "receive": 0, + "send": 0, + "ssl": -1, + "wait": 159 + } + }, + { + "_id": "6125d0328ad0dcaee55f73fd8b22ca14", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "name": "accept", + "value": "application/json, text/plain, */*" + }, + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "user-agent", + "value": "@rockcarver/frodo-lib/4.0.0-39" + }, + { + "name": "x-forgerock-transactionid", + "value": "frodo-b7155119-f0b5-4579-92a8-f99d02c0883d" + }, + { + "name": "accept-api-version", + "value": "resource=1.0" + }, + { + "name": "authorization", + "value": "Bearer " + }, + { + "name": "accept-encoding", + "value": "gzip, compress, deflate, br" + }, + { + "name": "host", + "value": "openam-frodo-dev.forgeblocks.com" + } + ], + "headersSize": 1926, + "httpVersion": "HTTP/1.1", + "method": "GET", + "queryString": [], + "url": "https://openam-trivir-fairfax.forgeblocks.com/am/json/serverinfo/version" + }, + "response": { + "bodySize": 274, + "content": { + "mimeType": "application/json;charset=UTF-8", + "size": 274, + "text": "{\"_id\":\"version\",\"_rev\":\"194838800\",\"version\":\"9.0.0-SNAPSHOT\",\"fullVersion\":\"ForgeRock Access Management 9.0.0-SNAPSHOT Build 500b736d5354dc1171d65a84ec4230d63a5a084e (2026-April-21 11:20)\",\"revision\":\"500b736d5354dc1171d65a84ec4230d63a5a084e\",\"date\":\"2026-April-21 11:20\"}" + }, + "cookies": [], + "headers": [ + { + "name": "x-frame-options", + "value": "SAMEORIGIN" + }, + { + "name": "content-security-policy-report-only", + "value": "frame-ancestors 'self'; script-src 'self' 'unsafe-eval' 'unsafe-inline'" + }, + { + "name": "x-content-type-options", + "value": "nosniff" + }, + { + "name": "cache-control", + "value": "no-store" + }, + { + "name": "content-api-version", + "value": "resource=1.0" + }, + { + "name": "content-security-policy", + "value": "default-src 'none';frame-ancestors 'none';sandbox" + }, + { + "name": "cross-origin-opener-policy", + "value": "same-origin" + }, + { + "name": "cross-origin-resource-policy", + "value": "same-origin" + }, + { + "name": "etag", + "value": "\"194838800\"" + }, + { + "name": "expires", + "value": "0" + }, + { + "name": "pragma", + "value": "no-cache" + }, + { + "name": "content-type", + "value": "application/json;charset=UTF-8" + }, + { + "name": "content-length", + "value": "274" + }, + { + "name": "date", + "value": "Tue, 19 May 2026 19:45:39 GMT" + }, + { + "name": "x-forgerock-transactionid", + "value": "frodo-b7155119-f0b5-4579-92a8-f99d02c0883d" + }, + { + "name": "strict-transport-security", + "value": "max-age=31536000; includeSubDomains; preload;" + }, + { + "name": "x-robots-tag", + "value": "none" + }, + { + "name": "via", + "value": "1.1 google" + }, + { + "name": "alt-svc", + "value": "h3=\":443\"; ma=2592000" + } + ], + "headersSize": 761, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2026-05-19T19:45:39.523Z", + "time": 103, + "timings": { + "blocked": -1, + "connect": -1, + "dns": -1, + "receive": 0, + "send": 0, + "ssl": -1, + "wait": 103 + } + } + ], + "pages": [], + "version": "1.2" + } +} diff --git a/test/e2e/mocks/iga_2664973160/scope-delete_2021703181/0_all_1797740195/environment_1072573434/recording.har b/test/e2e/mocks/iga_2664973160/scope-delete_2021703181/0_all_1797740195/environment_1072573434/recording.har new file mode 100644 index 000000000..3fce5ca48 --- /dev/null +++ b/test/e2e/mocks/iga_2664973160/scope-delete_2021703181/0_all_1797740195/environment_1072573434/recording.har @@ -0,0 +1,125 @@ +{ + "log": { + "_recordingName": "iga/scope-delete/0_all/environment", + "creator": { + "comment": "persister:fs", + "name": "Polly.JS", + "version": "6.0.6" + }, + "entries": [ + { + "_id": "ccc7ec61c2094114d7917814bb19b83b", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "name": "accept", + "value": "application/json, text/plain, */*" + }, + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "user-agent", + "value": "@rockcarver/frodo-lib/4.0.0-39" + }, + { + "name": "accept-api-version", + "value": "protocol=1.0,resource=1.0" + }, + { + "name": "authorization", + "value": "Bearer " + }, + { + "name": "accept-encoding", + "value": "gzip, compress, deflate, br" + }, + { + "name": "host", + "value": "openam-frodo-dev.forgeblocks.com" + } + ], + "headersSize": 1877, + "httpVersion": "HTTP/1.1", + "method": "GET", + "queryString": [], + "url": "https://openam-trivir-fairfax.forgeblocks.com/environment/scopes/service-accounts" + }, + "response": { + "bodySize": 1975, + "content": { + "mimeType": "application/json; charset=utf-8", + "size": 1975, + "text": "[{\"scope\":\"fr:am:*\",\"description\":\"All Access Management APIs\"},{\"scope\":\"fr:autoaccess:*\",\"description\":\"All Auto Access APIs\"},{\"scope\":\"fr:idc:analytics:*\",\"description\":\"All Analytics APIs\"},{\"scope\":\"fr:idc:certificate:*\",\"description\":\"All TLS certificate APIs\",\"childScopes\":[{\"scope\":\"fr:idc:certificate:read\",\"description\":\"Read TLS certificates\"}]},{\"scope\":\"fr:idc:content-security-policy:*\",\"description\":\"All content security policy APIs\",\"childScopes\":[{\"scope\":\"fr:idc:content-security-policy:read\",\"description\":\"Read content security policy\"}]},{\"scope\":\"fr:idc:cookie-domain:*\",\"description\":\"All cookie domain APIs\",\"childScopes\":[{\"scope\":\"fr:idc:cookie-domain:read\",\"description\":\"Read cookie domains\"}]},{\"scope\":\"fr:idc:custom-domain:*\",\"description\":\"All custom domain APIs\",\"childScopes\":[{\"scope\":\"fr:idc:custom-domain:read\",\"description\":\"Read custom domains\"}]},{\"scope\":\"fr:idc:dataset:*\",\"description\":\"All dataset deletion APIs\",\"childScopes\":[{\"scope\":\"fr:idc:dataset:read\",\"description\":\"Read dataset deletions\"}]},{\"scope\":\"fr:idc:esv:*\",\"description\":\"All ESV APIs\",\"childScopes\":[{\"scope\":\"fr:idc:esv:read\",\"description\":\"Read ESVs, excluding values of secrets\"},{\"scope\":\"fr:idc:esv:update\",\"description\":\"Create, modify, and delete ESVs\"},{\"scope\":\"fr:idc:esv:restart\",\"description\":\"Restart workloads that consume ESVs\"}]},{\"scope\":\"fr:idc:promotion:*\",\"description\":\"All configuration promotion APIs\",\"childScopes\":[{\"scope\":\"fr:idc:promotion:read\",\"description\":\"Read configuration promotion\"}]},{\"scope\":\"fr:idc:release:*\",\"description\":\"All product release APIs\",\"childScopes\":[{\"scope\":\"fr:idc:release:read\",\"description\":\"Read product release\"}]},{\"scope\":\"fr:idc:sso-cookie:*\",\"description\":\"All SSO cookie APIs\",\"childScopes\":[{\"scope\":\"fr:idc:sso-cookie:read\",\"description\":\"Read SSO cookie\"}]},{\"scope\":\"fr:idm:*\",\"description\":\"All Identity Management APIs\"},{\"scope\":\"fr:iga:*\",\"description\":\"All Identity Governance APIs\"}]" + }, + "cookies": [], + "headers": [ + { + "name": "x-frame-options", + "value": "SAMEORIGIN" + }, + { + "name": "content-type", + "value": "application/json; charset=utf-8" + }, + { + "name": "content-length", + "value": "1975" + }, + { + "name": "etag", + "value": "W/\"7b7-tIBWy/EinSCKaoNz4aU2iqiTmFc\"" + }, + { + "name": "date", + "value": "Tue, 19 May 2026 19:45:39 GMT" + }, + { + "name": "x-forgerock-transactionid", + "value": "1e513ccc-b590-44a8-9d0b-dd088a6353f3" + }, + { + "name": "strict-transport-security", + "value": "max-age=31536000; includeSubDomains; preload;" + }, + { + "name": "x-robots-tag", + "value": "none" + }, + { + "name": "via", + "value": "1.1 google" + }, + { + "name": "alt-svc", + "value": "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" + } + ], + "headersSize": 413, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2026-05-19T19:45:39.634Z", + "time": 106, + "timings": { + "blocked": -1, + "connect": -1, + "dns": -1, + "receive": 0, + "send": 0, + "ssl": -1, + "wait": 106 + } + } + ], + "pages": [], + "version": "1.2" + } +} diff --git a/test/e2e/mocks/iga_2664973160/scope-delete_2021703181/0_all_1797740195/iga_2664973160/recording.har b/test/e2e/mocks/iga_2664973160/scope-delete_2021703181/0_all_1797740195/iga_2664973160/recording.har new file mode 100644 index 000000000..d0e8b62cf --- /dev/null +++ b/test/e2e/mocks/iga_2664973160/scope-delete_2021703181/0_all_1797740195/iga_2664973160/recording.har @@ -0,0 +1,1302 @@ +{ + "log": { + "_recordingName": "iga/scope-delete/0_all/iga", + "creator": { + "comment": "persister:fs", + "name": "Polly.JS", + "version": "6.0.6" + }, + "entries": [ + { + "_id": "af55958a3898b129bc68978def6db818", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "name": "accept", + "value": "application/json, text/plain, */*" + }, + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "user-agent", + "value": "@rockcarver/frodo-lib/4.0.0-39" + }, + { + "name": "authorization", + "value": "Bearer " + }, + { + "name": "accept-encoding", + "value": "gzip, compress, deflate, br" + }, + { + "name": "host", + "value": "openam-frodo-dev.forgeblocks.com" + } + ], + "headersSize": 1871, + "httpVersion": "HTTP/1.1", + "method": "GET", + "queryString": [ + { + "name": "_queryFilter", + "value": "true" + }, + { + "name": "_pageSize", + "value": "10000" + }, + { + "name": "_pagedResultsOffset", + "value": "0" + } + ], + "url": "https://openam-trivir-fairfax.forgeblocks.com/iga/governance/scope?_queryFilter=true&_pageSize=10000&_pagedResultsOffset=0" + }, + "response": { + "bodySize": 1891, + "content": { + "encoding": "base64", + "mimeType": "application/json; charset=utf-8", + "size": 1891, + "text": "[\"GxUXAGQ1tXp9Db6umIYK1fy70mogS9TEdxk7KymZHQS+XDb/Wr6Q72ySDV2WZmu1KbdJKLU6VGkOLJKXuG5MDc2ob0rcoBiUQnmswWyfv/Ca9q+TdmksWMg45AFhsnaC+a8H5D+U/xe49nXfYIZ+XtuwtiEOnVuHEdYMM0hBXlCRWEIOSJoyBr0sGIXQMTm2KhsYYYvPDDPUuOX9GVvarwwjtP1WE3+0b3nt677B/IBb4wrzA8p66VxhfsBeYf7rAdveT2nfely3BvMD1u3Uel23p1OsNb7CDLfGdYr5ed2+K9/VJxihcazpfGp5l8D8gHBI7+UCM7CjUtgt6NzCSNlGDMYS6hKyT6QFsYDjOMYH8JtbvLRbeeHSG+uc1v4KI+wHp1Yf50/x0oev4/88fLT2VziO459jhP30Lgsz3BUcxwitx35rMENMfb0zjNBjjahVZonyexoqZ/SVHmIE3vraL2EjGGVfV90vnE8vDH2zFz5GOFW+wyxHeOYec+wR5geo45V9HDvDDEooi8KgDD/LMBPN2kzC6uCs0OFPGOHv2hsWaUNB6z9BKhrl5OqYCImLI5+xcJZIjiL6sGikFH2KKS7sJZ3yS+M6fP3RN8PPGi0ZEFEx2rHcXxix63q98TFqLEJv5nBa8y0jt1FlwSJgDDEhyRQxFkXoYxFGJfKiKI08hlvj+m185iY+43o+4zVW3jru9QmDfXCom9/zpiHeKjtJ46VQ5DRBkbVL5SklhE4qh6UQqlIckgkaFwoKKcSivJOiREewS8OJN3xZ+xn7S954dt1ej66Q+cL5zrmv/PJL4/pBStxaXlpf7o+WSUvTi3JU2g9CudMmpFebekrPM3J6ApgfcK1c1rfK0yThGCHSYXB97Uv9Ysv8VoZ50iQt1Rn9F+JKiWGbdin6B3zXit/2Csfxj6e1xS21e/um2ONlf5rqJvYfaHVI5+20B3LdBZNdTN/rtLkw8RiITumHCKe92Vb3C0+miWg7RNqKYroT5+StdlMgqYVTxhMUWd1o41Jd59YHNNQ0lL0OmI8BnfyBEwxrJaIVVLKhiCXpjBSLxVD0gm5xZKQkkRMdkHduuO099mPwY4PeQBe3P4qCsEBr837p8TzWuBlIfPaTlGSl88ISK9K7FdZOH1wu+0sbonluYm7DO44w3i+2zk9c5cA=\",\"bwbx7tD34b7yyxCuMy8kDPvyH6fexJkIKZGVktFqbZCEChiD9KikUNJmslIEevj1fMbMF36KnfE3d60g6DXGLQMo0Z9MMIbon4ALE7duTyHumQML91lPpL0yygRNrMjq0hqT5Plb1yH+8cLrzeYLK2/FBPOoRHReOyuNQC4xIy1LxiUtBQOJtJBM2iql2FXf8svwU/qkDHdjh8gRElu5A8v12Uwy6OCdJCJWZA5GOjmA/0wIr0JOynnU2WakxTtctImomdikYCiRJzTk6/bJcN21o7WgLx7uvvLLZzVuHeopIPFHfIaNYLRmA8P/ufXY+fu639ct8QjxZcyQYeScwlsGSbHbrfTcYDX8aYm8n+ZeoXFs3pKYtCBN2nhDUGR1GUimkT4YgMvheMtteFn7GbEkhHcchQwClS2ElJXBSNajdYKFknlRcaEK3vJ0a8Cab7PCdXvw0HgG7MbHeR4mqYMibfT0lhUZizQXnUDANnXoMRFjKUI5tmiXJSDJSOjZKTQUObrsF85LI2Dg1lEjHjHS9Q/sqpy7RQk3YvHZTcIQWeudJFZk3UYZlRrWNmz7c+Hf21NCFOOZlLIY88JIdskYlhgxlOATsfPeKMpb0bwLFG91AdOtY3ZiID5rNSklpHAuSAOKlJmgLgX/DDevwQelc/2KX2H+i9lT/hnhv8hyxkf7beswSzGug/ODOQc=\"]" + }, + "cookies": [], + "headers": [ + { + "name": "x-powered-by", + "value": "Express" + }, + { + "name": "cache-control", + "value": "no-store" + }, + { + "name": "content-type", + "value": "application/json; charset=utf-8" + }, + { + "name": "etag", + "value": "W/\"1716-/5ojJUL+GFOqjb37jIseM2Iiur4\"" + }, + { + "name": "vary", + "value": "Accept-Encoding" + }, + { + "name": "content-encoding", + "value": "br" + }, + { + "name": "date", + "value": "Tue, 19 May 2026 19:45:39 GMT" + }, + { + "name": "x-forgerock-transactionid", + "value": "2dceec83-8b1e-4249-a31e-948a78a11036" + }, + { + "name": "strict-transport-security", + "value": "max-age=31536000; includeSubDomains; preload;" + }, + { + "name": "x-robots-tag", + "value": "none" + }, + { + "name": "via", + "value": "1.1 google" + }, + { + "name": "alt-svc", + "value": "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" + }, + { + "name": "transfer-encoding", + "value": "chunked" + } + ], + "headersSize": 484, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2026-05-19T19:45:39.843Z", + "time": 157, + "timings": { + "blocked": -1, + "connect": -1, + "dns": -1, + "receive": 0, + "send": 0, + "ssl": -1, + "wait": 157 + } + }, + { + "_id": "aef676d305d77b2c02d54466bb8ee29f", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "name": "accept", + "value": "application/json, text/plain, */*" + }, + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "user-agent", + "value": "@rockcarver/frodo-lib/4.0.0-39" + }, + { + "name": "authorization", + "value": "Bearer " + }, + { + "name": "accept-encoding", + "value": "gzip, compress, deflate, br" + }, + { + "name": "host", + "value": "openam-frodo-dev.forgeblocks.com" + } + ], + "headersSize": 1855, + "httpVersion": "HTTP/1.1", + "method": "DELETE", + "queryString": [], + "url": "https://openam-trivir-fairfax.forgeblocks.com/iga/governance/scope/104804f1-f9d9-434d-93bb-a003ac7e62d5" + }, + "response": { + "bodySize": 664, + "content": { + "mimeType": "application/json; charset=utf-8", + "size": 664, + "text": "{\"description\":\"this is a test\",\"id\":\"104804f1-f9d9-434d-93bb-a003ac7e62d5\",\"name\":\"random-scope\",\"sourceCondition\":{\"user\":{\"filter\":{\"or\":[{\"not_contains\":{\"in_string_array\":\"user.adminOfOrg\",\"search_string\":{\"literal\":\"e74ffe7b-77be-4d6a-9564-3f9d8c4304e0\"}}},{\"equals\":{\"left\":\"user.city\",\"right\":{\"literal\":\"Salt Lake City\"}}}]},\"version\":\"v2\"}},\"status\":\"active\",\"targetCondition\":{\"application\":{\"filter\":{},\"version\":\"v2\"},\"entitlement\":{\"filter\":{},\"version\":\"v2\"},\"role\":{\"filter\":{},\"version\":\"v2\"},\"user\":{\"filter\":{},\"version\":\"v2\"}},\"_rev\":1,\"metadata\":{\"modifiedDate\":\"2026-05-19T19:44:35.063976039Z\",\"createdDate\":\"2026-05-19T19:44:35.063974933Z\"}}" + }, + "cookies": [], + "headers": [ + { + "name": "x-powered-by", + "value": "Express" + }, + { + "name": "cache-control", + "value": "no-store" + }, + { + "name": "content-type", + "value": "application/json; charset=utf-8" + }, + { + "name": "content-length", + "value": "664" + }, + { + "name": "etag", + "value": "W/\"298-nKIfvNYr1uk2VJga8lOHvgUaV8w\"" + }, + { + "name": "vary", + "value": "Accept-Encoding" + }, + { + "name": "date", + "value": "Tue, 19 May 2026 19:45:40 GMT" + }, + { + "name": "x-forgerock-transactionid", + "value": "87b08820-01fc-468b-9805-ec18983f8725" + }, + { + "name": "strict-transport-security", + "value": "max-age=31536000; includeSubDomains; preload;" + }, + { + "name": "x-robots-tag", + "value": "none" + }, + { + "name": "via", + "value": "1.1 google" + }, + { + "name": "alt-svc", + "value": "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" + } + ], + "headersSize": 454, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2026-05-19T19:45:40.009Z", + "time": 263, + "timings": { + "blocked": -1, + "connect": -1, + "dns": -1, + "receive": 0, + "send": 0, + "ssl": -1, + "wait": 263 + } + }, + { + "_id": "4cc249b0b5b3b4a1f9d9bddf52c077c7", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "name": "accept", + "value": "application/json, text/plain, */*" + }, + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "user-agent", + "value": "@rockcarver/frodo-lib/4.0.0-39" + }, + { + "name": "authorization", + "value": "Bearer " + }, + { + "name": "accept-encoding", + "value": "gzip, compress, deflate, br" + }, + { + "name": "host", + "value": "openam-frodo-dev.forgeblocks.com" + } + ], + "headersSize": 1855, + "httpVersion": "HTTP/1.1", + "method": "DELETE", + "queryString": [], + "url": "https://openam-trivir-fairfax.forgeblocks.com/iga/governance/scope/1cef748d-fed1-474a-89b3-4ca8cacabe81" + }, + "response": { + "bodySize": 541, + "content": { + "mimeType": "application/json; charset=utf-8", + "size": 541, + "text": "{\"description\":\"\",\"id\":\"1cef748d-fed1-474a-89b3-4ca8cacabe81\",\"name\":\"User LCM Test\",\"permissions\":{\"createUser\":true},\"sourceCondition\":{\"user\":{\"filter\":{\"or\":[{\"equals\":{\"left\":\"user._id\",\"right\":{\"literal\":\"6a2d0e09-a9ac-41ca-af24-8af052c480f2\"}}},{\"equals\":{\"left\":\"user.userName\",\"right\":{\"literal\":\"phh-parent-org-admin\"}}}]},\"version\":\"v2\"}},\"status\":\"active\",\"targetCondition\":{\"user\":{\"filter\":{},\"version\":\"v2\"}},\"_rev\":1,\"metadata\":{\"modifiedDate\":\"2026-05-19T19:44:26.158102473Z\",\"createdDate\":\"2026-05-19T19:44:26.158101284Z\"}}" + }, + "cookies": [], + "headers": [ + { + "name": "x-powered-by", + "value": "Express" + }, + { + "name": "cache-control", + "value": "no-store" + }, + { + "name": "content-type", + "value": "application/json; charset=utf-8" + }, + { + "name": "content-length", + "value": "541" + }, + { + "name": "etag", + "value": "W/\"21d-St1IsTinuB2PCR1j9h/AxISmDF4\"" + }, + { + "name": "vary", + "value": "Accept-Encoding" + }, + { + "name": "date", + "value": "Tue, 19 May 2026 19:45:41 GMT" + }, + { + "name": "x-forgerock-transactionid", + "value": "f7e6a4a1-7283-487d-8bea-d537ff144020" + }, + { + "name": "strict-transport-security", + "value": "max-age=31536000; includeSubDomains; preload;" + }, + { + "name": "x-robots-tag", + "value": "none" + }, + { + "name": "via", + "value": "1.1 google" + }, + { + "name": "alt-svc", + "value": "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" + } + ], + "headersSize": 454, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2026-05-19T19:45:40.278Z", + "time": 1010, + "timings": { + "blocked": -1, + "connect": -1, + "dns": -1, + "receive": 0, + "send": 0, + "ssl": -1, + "wait": 1010 + } + }, + { + "_id": "9108d699ad062db5dfd765cb13398791", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "name": "accept", + "value": "application/json, text/plain, */*" + }, + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "user-agent", + "value": "@rockcarver/frodo-lib/4.0.0-39" + }, + { + "name": "authorization", + "value": "Bearer " + }, + { + "name": "accept-encoding", + "value": "gzip, compress, deflate, br" + }, + { + "name": "host", + "value": "openam-frodo-dev.forgeblocks.com" + } + ], + "headersSize": 1855, + "httpVersion": "HTTP/1.1", + "method": "DELETE", + "queryString": [], + "url": "https://openam-trivir-fairfax.forgeblocks.com/iga/governance/scope/3c2d9bf4-2ff7-4593-b492-49af28710fa7" + }, + "response": { + "bodySize": 564, + "content": { + "encoding": "base64", + "mimeType": "application/json; charset=utf-8", + "size": 564, + "text": "[\"G5cEAMRKXRXlHctEkx3jA+qs8b+WfCXNokvzf00/xhM84iyM5qOMNeA0CmxvzyNxOhtO+IBm/E3PBmG0kKpz0d/+1Jhg1PF//Cl2XIEABWtAKPrcdB9DGeXD0ERl1RXRR9nlUdnpIW+bLB10A4WVXjIIGuc9fLS18j8S9gIFfL4HTdAyP81vnh1I3JoVRMxn9rMLDC/Y7sXG8vbNszvqe/beFvWH8DwuuFUaauqtim7RMHwQFPy4dj2fjCtjOVAnrEEFJgx2IaPQ6EA/pnNCf3qAJnw6HuwONCHl0voChAxBIU9YBeTsH4sHd7UyvGNzqoUzhKB8wr95vZV9HxUS/BGh+X5mjxB+hV9B4c2/T0HY5AhBwYuWtQdB92I3DAXRLuvXJk2tf0kmwlYb3sFei16M/2LfbvzHGqSd7QgFXomVRbYM4CBoFj6Oi/nRxU9zrnKvlwyKcfcMFC723LjgODSH2Bug2zoU6W8HhT+ON6BMYcmijRYNmvAN+tKpFgYhT/M6Sqso616zjsqSiibuyqxIm7xqvyNwR1uSqYqq+Y4QAA==\"]" + }, + "cookies": [], + "headers": [ + { + "name": "x-powered-by", + "value": "Express" + }, + { + "name": "cache-control", + "value": "no-store" + }, + { + "name": "content-type", + "value": "application/json; charset=utf-8" + }, + { + "name": "etag", + "value": "W/\"498-8gnNgC8g4zOenFULwcNE0TxK2Ys\"" + }, + { + "name": "vary", + "value": "Accept-Encoding" + }, + { + "name": "content-encoding", + "value": "br" + }, + { + "name": "date", + "value": "Tue, 19 May 2026 19:45:42 GMT" + }, + { + "name": "x-forgerock-transactionid", + "value": "8ba8817e-5250-4a98-bfc3-6c05d1492219" + }, + { + "name": "strict-transport-security", + "value": "max-age=31536000; includeSubDomains; preload;" + }, + { + "name": "x-robots-tag", + "value": "none" + }, + { + "name": "via", + "value": "1.1 google" + }, + { + "name": "alt-svc", + "value": "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" + }, + { + "name": "transfer-encoding", + "value": "chunked" + } + ], + "headersSize": 483, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2026-05-19T19:45:41.293Z", + "time": 1001, + "timings": { + "blocked": -1, + "connect": -1, + "dns": -1, + "receive": 0, + "send": 0, + "ssl": -1, + "wait": 1001 + } + }, + { + "_id": "5c5ae66912b8761735ccd68c7e880887", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "name": "accept", + "value": "application/json, text/plain, */*" + }, + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "user-agent", + "value": "@rockcarver/frodo-lib/4.0.0-39" + }, + { + "name": "authorization", + "value": "Bearer " + }, + { + "name": "accept-encoding", + "value": "gzip, compress, deflate, br" + }, + { + "name": "host", + "value": "openam-frodo-dev.forgeblocks.com" + } + ], + "headersSize": 1855, + "httpVersion": "HTTP/1.1", + "method": "DELETE", + "queryString": [], + "url": "https://openam-trivir-fairfax.forgeblocks.com/iga/governance/scope/604fd54a-fc3d-4af6-9f3b-7b7451140dc5" + }, + "response": { + "bodySize": 424, + "content": { + "mimeType": "application/json; charset=utf-8", + "size": 424, + "text": "{\"description\":\"test scope for does not contain filter\",\"id\":\"604fd54a-fc3d-4af6-9f3b-7b7451140dc5\",\"name\":\"does-not-contain-test\",\"sourceCondition\":{\"user\":{\"filter\":{\"or\":[{\"not_contains\":{\"in_string\":\"user.city\",\"search_string\":{\"literal\":\"Utah\"}}}]},\"version\":\"v2\"}},\"status\":\"active\",\"targetCondition\":{},\"_rev\":1,\"metadata\":{\"modifiedDate\":\"2026-05-19T19:44:28.114617806Z\",\"createdDate\":\"2026-05-19T19:44:28.114616Z\"}}" + }, + "cookies": [], + "headers": [ + { + "name": "x-powered-by", + "value": "Express" + }, + { + "name": "cache-control", + "value": "no-store" + }, + { + "name": "content-type", + "value": "application/json; charset=utf-8" + }, + { + "name": "content-length", + "value": "424" + }, + { + "name": "etag", + "value": "W/\"1a8-VPxljyUBOnGSJUJ1i/lxBiKKv5E\"" + }, + { + "name": "vary", + "value": "Accept-Encoding" + }, + { + "name": "date", + "value": "Tue, 19 May 2026 19:45:43 GMT" + }, + { + "name": "x-forgerock-transactionid", + "value": "ae38641b-4ae5-413a-9e54-d837e5cf727e" + }, + { + "name": "strict-transport-security", + "value": "max-age=31536000; includeSubDomains; preload;" + }, + { + "name": "x-robots-tag", + "value": "none" + }, + { + "name": "via", + "value": "1.1 google" + }, + { + "name": "alt-svc", + "value": "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" + } + ], + "headersSize": 454, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2026-05-19T19:45:42.310Z", + "time": 995, + "timings": { + "blocked": -1, + "connect": -1, + "dns": -1, + "receive": 0, + "send": 0, + "ssl": -1, + "wait": 995 + } + }, + { + "_id": "9c24cbfcaf5820fe461fd0087dea7623", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "name": "accept", + "value": "application/json, text/plain, */*" + }, + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "user-agent", + "value": "@rockcarver/frodo-lib/4.0.0-39" + }, + { + "name": "authorization", + "value": "Bearer " + }, + { + "name": "accept-encoding", + "value": "gzip, compress, deflate, br" + }, + { + "name": "host", + "value": "openam-frodo-dev.forgeblocks.com" + } + ], + "headersSize": 1855, + "httpVersion": "HTTP/1.1", + "method": "DELETE", + "queryString": [], + "url": "https://openam-trivir-fairfax.forgeblocks.com/iga/governance/scope/6cc4611e-6335-4029-a918-210216d46109" + }, + "response": { + "bodySize": 564, + "content": { + "mimeType": "application/json; charset=utf-8", + "size": 564, + "text": "{\"description\":\"Allows employees (frIndexedInteger1 eq 0) to view other employee objects\",\"id\":\"6cc4611e-6335-4029-a918-210216d46109\",\"name\":\"phh-delegate-visibility\",\"sourceCondition\":{\"user\":{\"filter\":{\"and\":[{\"equals\":{\"left\":\"user.frIndexedInteger1\",\"right\":{\"literal\":0}}}]},\"version\":\"v2\"}},\"status\":\"inactive\",\"targetCondition\":{\"user\":{\"filter\":{\"and\":[{\"equals\":{\"left\":\"user.frIndexedInteger1\",\"right\":{\"literal\":0}}}]},\"version\":\"v2\"}},\"_rev\":1,\"metadata\":{\"modifiedDate\":\"2026-05-19T19:44:33.438252593Z\",\"createdDate\":\"2026-05-19T19:44:33.438251655Z\"}}" + }, + "cookies": [], + "headers": [ + { + "name": "x-powered-by", + "value": "Express" + }, + { + "name": "cache-control", + "value": "no-store" + }, + { + "name": "content-type", + "value": "application/json; charset=utf-8" + }, + { + "name": "content-length", + "value": "564" + }, + { + "name": "etag", + "value": "W/\"234-+kA1Yc5+iYYptXo3b3KOWJHuZQM\"" + }, + { + "name": "vary", + "value": "Accept-Encoding" + }, + { + "name": "date", + "value": "Tue, 19 May 2026 19:45:44 GMT" + }, + { + "name": "x-forgerock-transactionid", + "value": "5d235e78-7aea-4f04-9df6-a17c3fb101a0" + }, + { + "name": "strict-transport-security", + "value": "max-age=31536000; includeSubDomains; preload;" + }, + { + "name": "x-robots-tag", + "value": "none" + }, + { + "name": "via", + "value": "1.1 google" + }, + { + "name": "alt-svc", + "value": "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" + } + ], + "headersSize": 454, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2026-05-19T19:45:43.310Z", + "time": 1003, + "timings": { + "blocked": -1, + "connect": -1, + "dns": -1, + "receive": 0, + "send": 0, + "ssl": -1, + "wait": 1003 + } + }, + { + "_id": "e084903111df3ca554d0eec6a8aa588e", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "name": "accept", + "value": "application/json, text/plain, */*" + }, + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "user-agent", + "value": "@rockcarver/frodo-lib/4.0.0-39" + }, + { + "name": "authorization", + "value": "Bearer " + }, + { + "name": "accept-encoding", + "value": "gzip, compress, deflate, br" + }, + { + "name": "host", + "value": "openam-frodo-dev.forgeblocks.com" + } + ], + "headersSize": 1855, + "httpVersion": "HTTP/1.1", + "method": "DELETE", + "queryString": [], + "url": "https://openam-trivir-fairfax.forgeblocks.com/iga/governance/scope/78376150-efad-4bbd-bcbf-940cb41c3629" + }, + "response": { + "bodySize": 387, + "content": { + "mimeType": "application/json; charset=utf-8", + "size": 387, + "text": "{\"description\":\"Description of the put scope request\",\"id\":\"78376150-efad-4bbd-bcbf-940cb41c3629\",\"name\":\"New Scope\",\"sourceCondition\":{\"user\":{\"filter\":{\"and\":[]},\"version\":\"v2\"}},\"status\":\"active\",\"targetCondition\":{\"application\":{\"filter\":{\"and\":[]},\"version\":\"v2\"}},\"_rev\":1,\"metadata\":{\"modifiedDate\":\"2026-05-19T19:44:25.193987144Z\",\"createdDate\":\"2026-05-19T19:44:25.193985175Z\"}}" + }, + "cookies": [], + "headers": [ + { + "name": "x-powered-by", + "value": "Express" + }, + { + "name": "cache-control", + "value": "no-store" + }, + { + "name": "content-type", + "value": "application/json; charset=utf-8" + }, + { + "name": "content-length", + "value": "387" + }, + { + "name": "etag", + "value": "W/\"183-Vm2T6sSbhkLX73p9FL/SUd3Xtuc\"" + }, + { + "name": "vary", + "value": "Accept-Encoding" + }, + { + "name": "date", + "value": "Tue, 19 May 2026 19:45:45 GMT" + }, + { + "name": "x-forgerock-transactionid", + "value": "3b8e0fe1-29ca-4d42-8eb6-29015f9a13f7" + }, + { + "name": "strict-transport-security", + "value": "max-age=31536000; includeSubDomains; preload;" + }, + { + "name": "x-robots-tag", + "value": "none" + }, + { + "name": "via", + "value": "1.1 google" + }, + { + "name": "alt-svc", + "value": "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" + } + ], + "headersSize": 454, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2026-05-19T19:45:44.319Z", + "time": 1002, + "timings": { + "blocked": -1, + "connect": -1, + "dns": -1, + "receive": 0, + "send": 0, + "ssl": -1, + "wait": 1002 + } + }, + { + "_id": "27775b8758f92fae550851707cc894b4", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "name": "accept", + "value": "application/json, text/plain, */*" + }, + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "user-agent", + "value": "@rockcarver/frodo-lib/4.0.0-39" + }, + { + "name": "authorization", + "value": "Bearer " + }, + { + "name": "accept-encoding", + "value": "gzip, compress, deflate, br" + }, + { + "name": "host", + "value": "openam-frodo-dev.forgeblocks.com" + } + ], + "headersSize": 1855, + "httpVersion": "HTTP/1.1", + "method": "DELETE", + "queryString": [], + "url": "https://openam-trivir-fairfax.forgeblocks.com/iga/governance/scope/829dc278-3d6d-4b87-b35a-3e4e5c954c48" + }, + "response": { + "bodySize": 848, + "content": { + "mimeType": "application/json; charset=utf-8", + "size": 848, + "text": "{\"description\":\"\",\"id\":\"829dc278-3d6d-4b87-b35a-3e4e5c954c48\",\"name\":\"test\",\"permissions\":{\"createEntitlement\":true,\"modifyEntitlement\":true,\"viewGrants\":true,\"createUser\":true,\"modifyUser\":true,\"deleteUser\":true,\"viewUserAccess\":true,\"createRole\":true,\"modifyRole\":true,\"publishRole\":true,\"deleteRole\":true},\"sourceCondition\":{\"user\":{\"filter\":{\"and\":[{\"not_contains\":{\"in_string\":\"user.stateProvince\",\"search_string\":{\"literal\":\"Utah\"}}}]},\"version\":\"v2\"}},\"status\":\"active\",\"targetCondition\":{\"application\":{\"filter\":{},\"version\":\"v2\"},\"entitlement\":{\"filter\":{},\"version\":\"v2\"},\"role\":{\"filter\":{},\"version\":\"v2\"},\"user\":{\"filter\":{\"or\":[{\"ends_with\":{\"suffix\":{\"literal\":\"s\"},\"value\":\"user.accountStatus\"}}]},\"version\":\"v2\"}},\"_rev\":1,\"metadata\":{\"modifiedDate\":\"2026-05-19T19:44:40.304343585Z\",\"createdDate\":\"2026-05-19T19:44:40.304341941Z\"}}" + }, + "cookies": [], + "headers": [ + { + "name": "x-powered-by", + "value": "Express" + }, + { + "name": "cache-control", + "value": "no-store" + }, + { + "name": "content-type", + "value": "application/json; charset=utf-8" + }, + { + "name": "content-length", + "value": "848" + }, + { + "name": "etag", + "value": "W/\"350-PoXwUfh5rp4C1vxBDPIM5RZZBr4\"" + }, + { + "name": "vary", + "value": "Accept-Encoding" + }, + { + "name": "date", + "value": "Tue, 19 May 2026 19:45:46 GMT" + }, + { + "name": "x-forgerock-transactionid", + "value": "b2bc9dc9-817b-415f-93b7-76b56efbdead" + }, + { + "name": "strict-transport-security", + "value": "max-age=31536000; includeSubDomains; preload;" + }, + { + "name": "x-robots-tag", + "value": "none" + }, + { + "name": "via", + "value": "1.1 google" + }, + { + "name": "alt-svc", + "value": "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" + } + ], + "headersSize": 454, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2026-05-19T19:45:45.327Z", + "time": 1004, + "timings": { + "blocked": -1, + "connect": -1, + "dns": -1, + "receive": 0, + "send": 0, + "ssl": -1, + "wait": 1004 + } + }, + { + "_id": "4070a4f3c459bfbb06488cb1b17d0777", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "name": "accept", + "value": "application/json, text/plain, */*" + }, + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "user-agent", + "value": "@rockcarver/frodo-lib/4.0.0-39" + }, + { + "name": "authorization", + "value": "Bearer " + }, + { + "name": "accept-encoding", + "value": "gzip, compress, deflate, br" + }, + { + "name": "host", + "value": "openam-frodo-dev.forgeblocks.com" + } + ], + "headersSize": 1855, + "httpVersion": "HTTP/1.1", + "method": "DELETE", + "queryString": [], + "url": "https://openam-trivir-fairfax.forgeblocks.com/iga/governance/scope/87ea0190-26f4-4d25-a468-670e021db2ab" + }, + "response": { + "bodySize": 398, + "content": { + "mimeType": "application/json; charset=utf-8", + "size": 398, + "text": "{\"description\":\"A test scope for ends with filter\",\"id\":\"87ea0190-26f4-4d25-a468-670e021db2ab\",\"name\":\"ends-with-scope\",\"sourceCondition\":{\"user\":{\"filter\":{\"or\":[{\"ends_with\":{\"suffix\":{\"literal\":\"1\"},\"value\":\"user._id\"}}]},\"version\":\"v2\"}},\"status\":\"active\",\"targetCondition\":{},\"_rev\":1,\"metadata\":{\"modifiedDate\":\"2026-05-19T19:44:29.139243533Z\",\"createdDate\":\"2026-05-19T19:44:29.139241575Z\"}}" + }, + "cookies": [], + "headers": [ + { + "name": "x-powered-by", + "value": "Express" + }, + { + "name": "cache-control", + "value": "no-store" + }, + { + "name": "content-type", + "value": "application/json; charset=utf-8" + }, + { + "name": "content-length", + "value": "398" + }, + { + "name": "etag", + "value": "W/\"18e-p4J6K44+Sepm91iyRnsNSq23o0s\"" + }, + { + "name": "vary", + "value": "Accept-Encoding" + }, + { + "name": "date", + "value": "Tue, 19 May 2026 19:45:47 GMT" + }, + { + "name": "x-forgerock-transactionid", + "value": "90d36e4f-c5de-4dc0-a755-219424e3b25e" + }, + { + "name": "strict-transport-security", + "value": "max-age=31536000; includeSubDomains; preload;" + }, + { + "name": "x-robots-tag", + "value": "none" + }, + { + "name": "via", + "value": "1.1 google" + }, + { + "name": "alt-svc", + "value": "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" + } + ], + "headersSize": 454, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2026-05-19T19:45:46.338Z", + "time": 1005, + "timings": { + "blocked": -1, + "connect": -1, + "dns": -1, + "receive": 0, + "send": 0, + "ssl": -1, + "wait": 1005 + } + }, + { + "_id": "c79b02103833cc7534471305e9454621", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "name": "accept", + "value": "application/json, text/plain, */*" + }, + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "user-agent", + "value": "@rockcarver/frodo-lib/4.0.0-39" + }, + { + "name": "authorization", + "value": "Bearer " + }, + { + "name": "accept-encoding", + "value": "gzip, compress, deflate, br" + }, + { + "name": "host", + "value": "openam-frodo-dev.forgeblocks.com" + } + ], + "headersSize": 1855, + "httpVersion": "HTTP/1.1", + "method": "DELETE", + "queryString": [], + "url": "https://openam-trivir-fairfax.forgeblocks.com/iga/governance/scope/aff027e6-6bb9-41a4-8e72-54aea7d8bed1" + }, + "response": { + "bodySize": 402, + "content": { + "mimeType": "application/json; charset=utf-8", + "size": 402, + "text": "{\"description\":\"test scope for contains filter\",\"id\":\"aff027e6-6bb9-41a4-8e72-54aea7d8bed1\",\"name\":\"contains-test\",\"sourceCondition\":{\"user\":{\"filter\":{\"or\":[{\"contains\":{\"in_string\":\"user._id\",\"search_string\":{\"literal\":\"\"}}}]},\"version\":\"v2\"}},\"status\":\"active\",\"targetCondition\":{},\"_rev\":1,\"metadata\":{\"modifiedDate\":\"2026-05-19T19:44:27.054466871Z\",\"createdDate\":\"2026-05-19T19:44:27.054465252Z\"}}" + }, + "cookies": [], + "headers": [ + { + "name": "x-powered-by", + "value": "Express" + }, + { + "name": "cache-control", + "value": "no-store" + }, + { + "name": "content-type", + "value": "application/json; charset=utf-8" + }, + { + "name": "content-length", + "value": "402" + }, + { + "name": "etag", + "value": "W/\"192-Q1OFsEYYCEijQKqL+xKX2iJy4FA\"" + }, + { + "name": "vary", + "value": "Accept-Encoding" + }, + { + "name": "date", + "value": "Tue, 19 May 2026 19:45:48 GMT" + }, + { + "name": "x-forgerock-transactionid", + "value": "d5d148f5-3514-4f7f-ad12-0822fff105c7" + }, + { + "name": "strict-transport-security", + "value": "max-age=31536000; includeSubDomains; preload;" + }, + { + "name": "x-robots-tag", + "value": "none" + }, + { + "name": "via", + "value": "1.1 google" + }, + { + "name": "alt-svc", + "value": "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" + } + ], + "headersSize": 454, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2026-05-19T19:45:47.349Z", + "time": 1005, + "timings": { + "blocked": -1, + "connect": -1, + "dns": -1, + "receive": 0, + "send": 0, + "ssl": -1, + "wait": 1005 + } + }, + { + "_id": "e9113d7005fa2c28aa4dc8f2df4b6fab", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "name": "accept", + "value": "application/json, text/plain, */*" + }, + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "user-agent", + "value": "@rockcarver/frodo-lib/4.0.0-39" + }, + { + "name": "authorization", + "value": "Bearer " + }, + { + "name": "accept-encoding", + "value": "gzip, compress, deflate, br" + }, + { + "name": "host", + "value": "openam-frodo-dev.forgeblocks.com" + } + ], + "headersSize": 1855, + "httpVersion": "HTTP/1.1", + "method": "DELETE", + "queryString": [], + "url": "https://openam-trivir-fairfax.forgeblocks.com/iga/governance/scope/f58e4226-adbe-46bd-9baa-9f98c4e78852" + }, + "response": { + "bodySize": 393, + "content": { + "mimeType": "application/json; charset=utf-8", + "size": 393, + "text": "{\"description\":\"test scope for is no filter\\n\",\"id\":\"f58e4226-adbe-46bd-9baa-9f98c4e78852\",\"name\":\"is-not-test\",\"sourceCondition\":{\"user\":{\"filter\":{\"or\":[{\"not_equals\":{\"left\":\"user.city\",\"right\":{\"literal\":\"Utah\"}}}]},\"version\":\"v2\"}},\"status\":\"active\",\"targetCondition\":{},\"_rev\":1,\"metadata\":{\"modifiedDate\":\"2026-05-19T19:44:32.220107791Z\",\"createdDate\":\"2026-05-19T19:44:32.220105925Z\"}}" + }, + "cookies": [], + "headers": [ + { + "name": "x-powered-by", + "value": "Express" + }, + { + "name": "cache-control", + "value": "no-store" + }, + { + "name": "content-type", + "value": "application/json; charset=utf-8" + }, + { + "name": "content-length", + "value": "393" + }, + { + "name": "etag", + "value": "W/\"189-PwaR9N9NZwKnhYBcIx5z6SlJcdM\"" + }, + { + "name": "vary", + "value": "Accept-Encoding" + }, + { + "name": "date", + "value": "Tue, 19 May 2026 19:45:49 GMT" + }, + { + "name": "x-forgerock-transactionid", + "value": "723b12bb-c425-4c6b-bf55-51718a610326" + }, + { + "name": "strict-transport-security", + "value": "max-age=31536000; includeSubDomains; preload;" + }, + { + "name": "x-robots-tag", + "value": "none" + }, + { + "name": "via", + "value": "1.1 google" + }, + { + "name": "alt-svc", + "value": "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" + } + ], + "headersSize": 454, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2026-05-19T19:45:48.360Z", + "time": 1003, + "timings": { + "blocked": -1, + "connect": -1, + "dns": -1, + "receive": 0, + "send": 0, + "ssl": -1, + "wait": 1003 + } + } + ], + "pages": [], + "version": "1.2" + } +} diff --git a/test/e2e/mocks/iga_2664973160/scope-delete_2021703181/0_all_1797740195/oauth2_393036114/recording.har b/test/e2e/mocks/iga_2664973160/scope-delete_2021703181/0_all_1797740195/oauth2_393036114/recording.har new file mode 100644 index 000000000..1efd18487 --- /dev/null +++ b/test/e2e/mocks/iga_2664973160/scope-delete_2021703181/0_all_1797740195/oauth2_393036114/recording.har @@ -0,0 +1,146 @@ +{ + "log": { + "_recordingName": "iga/scope-delete/0_all/oauth2", + "creator": { + "comment": "persister:fs", + "name": "Polly.JS", + "version": "6.0.6" + }, + "entries": [ + { + "_id": "ff75519a93ccab829f8ee8cf5e92b49f", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 1328, + "cookies": [], + "headers": [ + { + "name": "accept", + "value": "application/json, text/plain, */*" + }, + { + "name": "content-type", + "value": "application/x-www-form-urlencoded" + }, + { + "name": "user-agent", + "value": "@rockcarver/frodo-lib/4.0.0-39" + }, + { + "name": "x-forgerock-transactionid", + "value": "frodo-b7155119-f0b5-4579-92a8-f99d02c0883d" + }, + { + "name": "accept-api-version", + "value": "protocol=2.1,resource=1.0" + }, + { + "name": "content-length", + "value": "1328" + }, + { + "name": "accept-encoding", + "value": "gzip, compress, deflate, br" + }, + { + "name": "host", + "value": "openam-frodo-dev.forgeblocks.com" + } + ], + "headersSize": 453, + "httpVersion": "HTTP/1.1", + "method": "POST", + "postData": { + "mimeType": "application/x-www-form-urlencoded", + "params": [], + "text": "assertion=&client_id=service-account&grant_type=urn:ietf:params:oauth:grant-type:jwt-bearer&scope=fr:idc:custom-domain:* fr:idc:release:* fr:idc:sso-cookie:* fr:am:* fr:idc:esv:* fr:idc:content-security-policy:* fr:iga:* fr:idc:certificate:* fr:idm:* fr:idc:analytics:* fr:idc:cookie-domain:* fr:idc:promotion:*" + }, + "queryString": [], + "url": "https://openam-trivir-fairfax.forgeblocks.com/am/oauth2/access_token" + }, + "response": { + "bodySize": 1780, + "content": { + "mimeType": "application/json;charset=UTF-8", + "size": 1780, + "text": "{\"access_token\":\"\",\"scope\":\"fr:idc:custom-domain:* fr:idc:release:* fr:idc:sso-cookie:* fr:am:* fr:idc:esv:* fr:idc:content-security-policy:* fr:iga:* fr:idc:certificate:* fr:idm:* fr:idc:analytics:* fr:idc:cookie-domain:* fr:idc:promotion:*\",\"token_type\":\"Bearer\",\"expires_in\":899}" + }, + "cookies": [], + "headers": [ + { + "name": "x-frame-options", + "value": "SAMEORIGIN" + }, + { + "name": "content-security-policy-report-only", + "value": "frame-ancestors 'self'; script-src 'self' 'unsafe-eval' 'unsafe-inline'" + }, + { + "name": "x-content-type-options", + "value": "nosniff" + }, + { + "name": "cache-control", + "value": "no-store" + }, + { + "name": "pragma", + "value": "no-cache" + }, + { + "name": "content-type", + "value": "application/json;charset=UTF-8" + }, + { + "name": "content-length", + "value": "1780" + }, + { + "name": "date", + "value": "Tue, 19 May 2026 19:45:39 GMT" + }, + { + "name": "x-forgerock-transactionid", + "value": "frodo-b7155119-f0b5-4579-92a8-f99d02c0883d" + }, + { + "name": "strict-transport-security", + "value": "max-age=31536000; includeSubDomains; preload;" + }, + { + "name": "x-robots-tag", + "value": "none" + }, + { + "name": "via", + "value": "1.1 google" + }, + { + "name": "alt-svc", + "value": "h3=\":443\"; ma=2592000" + } + ], + "headersSize": 536, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2026-05-19T19:45:39.382Z", + "time": 135, + "timings": { + "blocked": -1, + "connect": -1, + "dns": -1, + "receive": 0, + "send": 0, + "ssl": -1, + "wait": 135 + } + } + ], + "pages": [], + "version": "1.2" + } +} diff --git a/test/e2e/mocks/iga_2664973160/scope-delete_2021703181/0_all_1797740195/openidm_3290118515/recording.har b/test/e2e/mocks/iga_2664973160/scope-delete_2021703181/0_all_1797740195/openidm_3290118515/recording.har new file mode 100644 index 000000000..e3f40cf08 --- /dev/null +++ b/test/e2e/mocks/iga_2664973160/scope-delete_2021703181/0_all_1797740195/openidm_3290118515/recording.har @@ -0,0 +1,310 @@ +{ + "log": { + "_recordingName": "iga/scope-delete/0_all/openidm", + "creator": { + "comment": "persister:fs", + "name": "Polly.JS", + "version": "6.0.6" + }, + "entries": [ + { + "_id": "9cb8561357870863838a9948da32d1e8", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "name": "accept", + "value": "application/json, text/plain, */*" + }, + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "user-agent", + "value": "@rockcarver/frodo-lib/4.0.0-39" + }, + { + "name": "x-forgerock-transactionid", + "value": "frodo-b7155119-f0b5-4579-92a8-f99d02c0883d" + }, + { + "name": "authorization", + "value": "Bearer " + }, + { + "name": "accept-encoding", + "value": "gzip, compress, deflate, br" + }, + { + "name": "host", + "value": "openam-frodo-dev.forgeblocks.com" + } + ], + "headersSize": 1938, + "httpVersion": "HTTP/1.1", + "method": "GET", + "queryString": [ + { + "name": "_fields", + "value": "*" + } + ], + "url": "https://openam-trivir-fairfax.forgeblocks.com/openidm/managed/svcacct/10d76629-78da-4265-868b-9a0cb68ebdb4?_fields=%2A" + }, + "response": { + "bodySize": 1401, + "content": { + "mimeType": "application/json;charset=utf-8", + "size": 1401, + "text": "{\"_id\":\"10d76629-78da-4265-868b-9a0cb68ebdb4\",\"_rev\":\"4b025e5d-c082-45f8-a3e9-0ac1db308dff-21339\",\"accountStatus\":\"active\",\"name\":\"Frodo-SA-1777919406717\",\"description\":\"dsevy@trivir.com's Frodo Service Account\",\"scopes\":[\"fr:am:*\",\"fr:idc:analytics:*\",\"fr:autoaccess:*\",\"fr:idc:certificate:*\",\"fr:idc:content-security-policy:*\",\"fr:idc:cookie-domain:*\",\"fr:idc:custom-domain:*\",\"fr:idc:dataset:*\",\"fr:idc:esv:*\",\"fr:idm:*\",\"fr:iga:*\",\"fr:idc:promotion:*\",\"fr:idc:release:*\",\"fr:idc:sso-cookie:*\"],\"jwks\":\"{\\\"keys\\\":[{\\\"kty\\\":\\\"RSA\\\",\\\"kid\\\":\\\"hshlr1hlp8bXdLNDrh3rESiHNsMS68c4XtbZX9i_Seg\\\",\\\"alg\\\":\\\"RS256\\\",\\\"e\\\":\\\"AQAB\\\",\\\"n\\\":\\\"owg6VJta_1o9VqyQk4Xs2kA_BDcyWEN1WMERqaJIFCbtecz_IMBp2G5m76dawbB9QvUsFvMqfJ2OGbaCcfC2o5lkxEu4nxdKLKYZ4-JTGsbPN6j-f9yr0LCjFMPd1BRxKQ98euSu5UZ0_gy9QN-eS4zB5zJsb8E7Y7FXsxG6vgd8dCqCSPjJeSmZhnQEeqJeysGlA5jMzQUP9Lvgm2aZp5wz7DXzF9lvsqRjm49H9wlERjy4KDmjlp5Rr3lz8ZXGgsaIdp18hUrPFKJP5qxkICfnbxdyK858A5puUypj1OAqrOtAnwjk5lMPOYzBWjWV72RPnOY3-6KAHo8uFXK3EH8AN8ErHxhpo-soV0e7-Z7gEnmt0rliY3j_-2AHA0Q5G1k52cGQ-dARGzgAQacpdnQv_pT0k83DGZPrpR6PqBRkyiJBD_PTvySZohxFgjpJfJmkYec7Pg40xri_LN1ozkLRBdQwL2zaQFYtq_VZC20a8Y7NpqpoLcvFIB9W2NS03qTokvId7gdSgdcVmpOo4n7OZZCouD6cyWyJ6Nj9uaxz-mw4Mdzhpd8cclSV_gXeWMBBoW3dZ7zzkEFMWHBT2x9S8JAZor_aaGJ2MXOoNoHRg-q9shNhQ3h7U14MXfL7I9R4ixClZMOpxILa0VT0Vzm-h685xkXwa28WLSw21QU\\\"}]}\",\"maxCachingTime\":\"15\",\"maxIdleTime\":\"15\",\"maxSessionTime\":\"15\",\"quotaLimit\":\"5\"}" + }, + "cookies": [], + "headers": [ + { + "name": "date", + "value": "Tue, 19 May 2026 19:45:39 GMT" + }, + { + "name": "vary", + "value": "Origin" + }, + { + "name": "cache-control", + "value": "no-store" + }, + { + "name": "content-security-policy", + "value": "default-src 'none';frame-ancestors 'none';sandbox" + }, + { + "name": "content-type", + "value": "application/json;charset=utf-8" + }, + { + "name": "cross-origin-opener-policy", + "value": "same-origin" + }, + { + "name": "cross-origin-resource-policy", + "value": "same-origin" + }, + { + "name": "etag", + "value": "\"4b025e5d-c082-45f8-a3e9-0ac1db308dff-21339\"" + }, + { + "name": "expires", + "value": "0" + }, + { + "name": "pragma", + "value": "no-cache" + }, + { + "name": "x-content-type-options", + "value": "nosniff" + }, + { + "name": "x-frame-options", + "value": "DENY" + }, + { + "name": "content-length", + "value": "1401" + }, + { + "name": "x-forgerock-transactionid", + "value": "frodo-b7155119-f0b5-4579-92a8-f99d02c0883d" + }, + { + "name": "strict-transport-security", + "value": "max-age=31536000; includeSubDomains; preload;" + }, + { + "name": "x-robots-tag", + "value": "none" + }, + { + "name": "via", + "value": "1.1 google" + }, + { + "name": "alt-svc", + "value": "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" + } + ], + "headersSize": 683, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2026-05-19T19:45:39.564Z", + "time": 178, + "timings": { + "blocked": -1, + "connect": -1, + "dns": -1, + "receive": 0, + "send": 0, + "ssl": -1, + "wait": 178 + } + }, + { + "_id": "9cb8561357870863838a9948da32d1e8", + "_order": 1, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "name": "accept", + "value": "application/json, text/plain, */*" + }, + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "user-agent", + "value": "@rockcarver/frodo-lib/4.0.0-39" + }, + { + "name": "x-forgerock-transactionid", + "value": "frodo-b7155119-f0b5-4579-92a8-f99d02c0883d" + }, + { + "name": "authorization", + "value": "Bearer " + }, + { + "name": "accept-encoding", + "value": "gzip, compress, deflate, br" + }, + { + "name": "host", + "value": "openam-frodo-dev.forgeblocks.com" + } + ], + "headersSize": 1938, + "httpVersion": "HTTP/1.1", + "method": "GET", + "queryString": [ + { + "name": "_fields", + "value": "*" + } + ], + "url": "https://openam-trivir-fairfax.forgeblocks.com/openidm/managed/svcacct/10d76629-78da-4265-868b-9a0cb68ebdb4?_fields=%2A" + }, + "response": { + "bodySize": 1401, + "content": { + "mimeType": "application/json;charset=utf-8", + "size": 1401, + "text": "{\"_id\":\"10d76629-78da-4265-868b-9a0cb68ebdb4\",\"_rev\":\"4b025e5d-c082-45f8-a3e9-0ac1db308dff-21339\",\"accountStatus\":\"active\",\"name\":\"Frodo-SA-1777919406717\",\"description\":\"dsevy@trivir.com's Frodo Service Account\",\"scopes\":[\"fr:am:*\",\"fr:idc:analytics:*\",\"fr:autoaccess:*\",\"fr:idc:certificate:*\",\"fr:idc:content-security-policy:*\",\"fr:idc:cookie-domain:*\",\"fr:idc:custom-domain:*\",\"fr:idc:dataset:*\",\"fr:idc:esv:*\",\"fr:idm:*\",\"fr:iga:*\",\"fr:idc:promotion:*\",\"fr:idc:release:*\",\"fr:idc:sso-cookie:*\"],\"jwks\":\"{\\\"keys\\\":[{\\\"kty\\\":\\\"RSA\\\",\\\"kid\\\":\\\"hshlr1hlp8bXdLNDrh3rESiHNsMS68c4XtbZX9i_Seg\\\",\\\"alg\\\":\\\"RS256\\\",\\\"e\\\":\\\"AQAB\\\",\\\"n\\\":\\\"owg6VJta_1o9VqyQk4Xs2kA_BDcyWEN1WMERqaJIFCbtecz_IMBp2G5m76dawbB9QvUsFvMqfJ2OGbaCcfC2o5lkxEu4nxdKLKYZ4-JTGsbPN6j-f9yr0LCjFMPd1BRxKQ98euSu5UZ0_gy9QN-eS4zB5zJsb8E7Y7FXsxG6vgd8dCqCSPjJeSmZhnQEeqJeysGlA5jMzQUP9Lvgm2aZp5wz7DXzF9lvsqRjm49H9wlERjy4KDmjlp5Rr3lz8ZXGgsaIdp18hUrPFKJP5qxkICfnbxdyK858A5puUypj1OAqrOtAnwjk5lMPOYzBWjWV72RPnOY3-6KAHo8uFXK3EH8AN8ErHxhpo-soV0e7-Z7gEnmt0rliY3j_-2AHA0Q5G1k52cGQ-dARGzgAQacpdnQv_pT0k83DGZPrpR6PqBRkyiJBD_PTvySZohxFgjpJfJmkYec7Pg40xri_LN1ozkLRBdQwL2zaQFYtq_VZC20a8Y7NpqpoLcvFIB9W2NS03qTokvId7gdSgdcVmpOo4n7OZZCouD6cyWyJ6Nj9uaxz-mw4Mdzhpd8cclSV_gXeWMBBoW3dZ7zzkEFMWHBT2x9S8JAZor_aaGJ2MXOoNoHRg-q9shNhQ3h7U14MXfL7I9R4ixClZMOpxILa0VT0Vzm-h685xkXwa28WLSw21QU\\\"}]}\",\"maxCachingTime\":\"15\",\"maxIdleTime\":\"15\",\"maxSessionTime\":\"15\",\"quotaLimit\":\"5\"}" + }, + "cookies": [], + "headers": [ + { + "name": "date", + "value": "Tue, 19 May 2026 19:45:39 GMT" + }, + { + "name": "vary", + "value": "Origin" + }, + { + "name": "cache-control", + "value": "no-store" + }, + { + "name": "content-security-policy", + "value": "default-src 'none';frame-ancestors 'none';sandbox" + }, + { + "name": "content-type", + "value": "application/json;charset=utf-8" + }, + { + "name": "cross-origin-opener-policy", + "value": "same-origin" + }, + { + "name": "cross-origin-resource-policy", + "value": "same-origin" + }, + { + "name": "etag", + "value": "\"4b025e5d-c082-45f8-a3e9-0ac1db308dff-21339\"" + }, + { + "name": "expires", + "value": "0" + }, + { + "name": "pragma", + "value": "no-cache" + }, + { + "name": "x-content-type-options", + "value": "nosniff" + }, + { + "name": "x-frame-options", + "value": "DENY" + }, + { + "name": "content-length", + "value": "1401" + }, + { + "name": "x-forgerock-transactionid", + "value": "frodo-b7155119-f0b5-4579-92a8-f99d02c0883d" + }, + { + "name": "strict-transport-security", + "value": "max-age=31536000; includeSubDomains; preload;" + }, + { + "name": "x-robots-tag", + "value": "none" + }, + { + "name": "via", + "value": "1.1 google" + }, + { + "name": "alt-svc", + "value": "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" + } + ], + "headersSize": 683, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2026-05-19T19:45:39.746Z", + "time": 90, + "timings": { + "blocked": -1, + "connect": -1, + "dns": -1, + "receive": 0, + "send": 0, + "ssl": -1, + "wait": 90 + } + } + ], + "pages": [], + "version": "1.2" + } +} diff --git a/test/e2e/mocks/iga_2664973160/scope-delete_2021703181/0_n_2861796890/am_1076162899/recording.har b/test/e2e/mocks/iga_2664973160/scope-delete_2021703181/0_n_2861796890/am_1076162899/recording.har new file mode 100644 index 000000000..d737a2cc7 --- /dev/null +++ b/test/e2e/mocks/iga_2664973160/scope-delete_2021703181/0_n_2861796890/am_1076162899/recording.har @@ -0,0 +1,312 @@ +{ + "log": { + "_recordingName": "iga/scope-delete/0_n/am", + "creator": { + "comment": "persister:fs", + "name": "Polly.JS", + "version": "6.0.6" + }, + "entries": [ + { + "_id": "ccd7a5defd0fdeaa986a2b54642d911a", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "name": "accept", + "value": "application/json, text/plain, */*" + }, + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "user-agent", + "value": "@rockcarver/frodo-lib/4.0.0-39" + }, + { + "name": "x-forgerock-transactionid", + "value": "frodo-9d96e994-0379-405d-aa4a-0e3e1ea6e170" + }, + { + "name": "accept-api-version", + "value": "resource=1.1" + }, + { + "name": "accept-encoding", + "value": "gzip, compress, deflate, br" + }, + { + "name": "host", + "value": "openam-frodo-dev.forgeblocks.com" + } + ], + "headersSize": 398, + "httpVersion": "HTTP/1.1", + "method": "GET", + "queryString": [], + "url": "https://openam-trivir-fairfax.forgeblocks.com/am/json/serverinfo/*" + }, + "response": { + "bodySize": 614, + "content": { + "mimeType": "application/json;charset=UTF-8", + "size": 614, + "text": "{\"_id\":\"*\",\"_rev\":\"959929574\",\"domains\":[],\"protectedUserAttributes\":[\"telephoneNumber\",\"mail\"],\"cookieName\":\"311468432e97f1f\",\"secureCookie\":true,\"forgotPassword\":\"false\",\"forgotUsername\":\"false\",\"kbaEnabled\":\"false\",\"selfRegistration\":\"false\",\"lang\":\"en-US\",\"successfulUserRegistrationDestination\":\"default\",\"socialImplementations\":[],\"referralsEnabled\":\"false\",\"zeroPageLogin\":{\"enabled\":false,\"refererWhitelist\":[],\"allowedWithoutReferer\":true},\"realm\":\"/\",\"xuiUserSessionValidationEnabled\":true,\"fileBasedConfiguration\":true,\"userIdAttributes\":[],\"cloudOnlyFeaturesEnabled\":true,\"oauth2AIAgentsEnabled\":false}" + }, + "cookies": [], + "headers": [ + { + "name": "x-frame-options", + "value": "SAMEORIGIN" + }, + { + "name": "content-security-policy-report-only", + "value": "frame-ancestors 'self'; script-src 'self' 'unsafe-eval' 'unsafe-inline'" + }, + { + "name": "x-content-type-options", + "value": "nosniff" + }, + { + "name": "cache-control", + "value": "no-store" + }, + { + "name": "content-api-version", + "value": "resource=1.1" + }, + { + "name": "content-security-policy", + "value": "default-src 'none';frame-ancestors 'none';sandbox" + }, + { + "name": "cross-origin-opener-policy", + "value": "same-origin" + }, + { + "name": "cross-origin-resource-policy", + "value": "same-origin" + }, + { + "name": "etag", + "value": "\"959929574\"" + }, + { + "name": "expires", + "value": "0" + }, + { + "name": "pragma", + "value": "no-cache" + }, + { + "name": "content-type", + "value": "application/json;charset=UTF-8" + }, + { + "name": "content-length", + "value": "614" + }, + { + "name": "date", + "value": "Tue, 19 May 2026 19:45:08 GMT" + }, + { + "name": "x-forgerock-transactionid", + "value": "frodo-9d96e994-0379-405d-aa4a-0e3e1ea6e170" + }, + { + "name": "strict-transport-security", + "value": "max-age=31536000; includeSubDomains; preload;" + }, + { + "name": "x-robots-tag", + "value": "none" + }, + { + "name": "via", + "value": "1.1 google" + }, + { + "name": "alt-svc", + "value": "h3=\":443\"; ma=2592000" + } + ], + "headersSize": 761, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2026-05-19T19:45:08.763Z", + "time": 169, + "timings": { + "blocked": -1, + "connect": -1, + "dns": -1, + "receive": 0, + "send": 0, + "ssl": -1, + "wait": 169 + } + }, + { + "_id": "6125d0328ad0dcaee55f73fd8b22ca14", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "name": "accept", + "value": "application/json, text/plain, */*" + }, + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "user-agent", + "value": "@rockcarver/frodo-lib/4.0.0-39" + }, + { + "name": "x-forgerock-transactionid", + "value": "frodo-9d96e994-0379-405d-aa4a-0e3e1ea6e170" + }, + { + "name": "accept-api-version", + "value": "resource=1.0" + }, + { + "name": "authorization", + "value": "Bearer " + }, + { + "name": "accept-encoding", + "value": "gzip, compress, deflate, br" + }, + { + "name": "host", + "value": "openam-frodo-dev.forgeblocks.com" + } + ], + "headersSize": 1926, + "httpVersion": "HTTP/1.1", + "method": "GET", + "queryString": [], + "url": "https://openam-trivir-fairfax.forgeblocks.com/am/json/serverinfo/version" + }, + "response": { + "bodySize": 274, + "content": { + "mimeType": "application/json;charset=UTF-8", + "size": 274, + "text": "{\"_id\":\"version\",\"_rev\":\"194838800\",\"version\":\"9.0.0-SNAPSHOT\",\"fullVersion\":\"ForgeRock Access Management 9.0.0-SNAPSHOT Build 500b736d5354dc1171d65a84ec4230d63a5a084e (2026-April-21 11:20)\",\"revision\":\"500b736d5354dc1171d65a84ec4230d63a5a084e\",\"date\":\"2026-April-21 11:20\"}" + }, + "cookies": [], + "headers": [ + { + "name": "x-frame-options", + "value": "SAMEORIGIN" + }, + { + "name": "content-security-policy-report-only", + "value": "frame-ancestors 'self'; script-src 'self' 'unsafe-eval' 'unsafe-inline'" + }, + { + "name": "x-content-type-options", + "value": "nosniff" + }, + { + "name": "cache-control", + "value": "no-store" + }, + { + "name": "content-api-version", + "value": "resource=1.0" + }, + { + "name": "content-security-policy", + "value": "default-src 'none';frame-ancestors 'none';sandbox" + }, + { + "name": "cross-origin-opener-policy", + "value": "same-origin" + }, + { + "name": "cross-origin-resource-policy", + "value": "same-origin" + }, + { + "name": "etag", + "value": "\"194838800\"" + }, + { + "name": "expires", + "value": "0" + }, + { + "name": "pragma", + "value": "no-cache" + }, + { + "name": "content-type", + "value": "application/json;charset=UTF-8" + }, + { + "name": "content-length", + "value": "274" + }, + { + "name": "date", + "value": "Tue, 19 May 2026 19:45:09 GMT" + }, + { + "name": "x-forgerock-transactionid", + "value": "frodo-9d96e994-0379-405d-aa4a-0e3e1ea6e170" + }, + { + "name": "strict-transport-security", + "value": "max-age=31536000; includeSubDomains; preload;" + }, + { + "name": "x-robots-tag", + "value": "none" + }, + { + "name": "via", + "value": "1.1 google" + }, + { + "name": "alt-svc", + "value": "h3=\":443\"; ma=2592000" + } + ], + "headersSize": 761, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2026-05-19T19:45:09.117Z", + "time": 106, + "timings": { + "blocked": -1, + "connect": -1, + "dns": -1, + "receive": 0, + "send": 0, + "ssl": -1, + "wait": 106 + } + } + ], + "pages": [], + "version": "1.2" + } +} diff --git a/test/e2e/mocks/iga_2664973160/scope-delete_2021703181/0_n_2861796890/environment_1072573434/recording.har b/test/e2e/mocks/iga_2664973160/scope-delete_2021703181/0_n_2861796890/environment_1072573434/recording.har new file mode 100644 index 000000000..99f46e3b5 --- /dev/null +++ b/test/e2e/mocks/iga_2664973160/scope-delete_2021703181/0_n_2861796890/environment_1072573434/recording.har @@ -0,0 +1,125 @@ +{ + "log": { + "_recordingName": "iga/scope-delete/0_n/environment", + "creator": { + "comment": "persister:fs", + "name": "Polly.JS", + "version": "6.0.6" + }, + "entries": [ + { + "_id": "ccc7ec61c2094114d7917814bb19b83b", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "name": "accept", + "value": "application/json, text/plain, */*" + }, + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "user-agent", + "value": "@rockcarver/frodo-lib/4.0.0-39" + }, + { + "name": "accept-api-version", + "value": "protocol=1.0,resource=1.0" + }, + { + "name": "authorization", + "value": "Bearer " + }, + { + "name": "accept-encoding", + "value": "gzip, compress, deflate, br" + }, + { + "name": "host", + "value": "openam-frodo-dev.forgeblocks.com" + } + ], + "headersSize": 1877, + "httpVersion": "HTTP/1.1", + "method": "GET", + "queryString": [], + "url": "https://openam-trivir-fairfax.forgeblocks.com/environment/scopes/service-accounts" + }, + "response": { + "bodySize": 1975, + "content": { + "mimeType": "application/json; charset=utf-8", + "size": 1975, + "text": "[{\"scope\":\"fr:am:*\",\"description\":\"All Access Management APIs\"},{\"scope\":\"fr:autoaccess:*\",\"description\":\"All Auto Access APIs\"},{\"scope\":\"fr:idc:analytics:*\",\"description\":\"All Analytics APIs\"},{\"scope\":\"fr:idc:certificate:*\",\"description\":\"All TLS certificate APIs\",\"childScopes\":[{\"scope\":\"fr:idc:certificate:read\",\"description\":\"Read TLS certificates\"}]},{\"scope\":\"fr:idc:content-security-policy:*\",\"description\":\"All content security policy APIs\",\"childScopes\":[{\"scope\":\"fr:idc:content-security-policy:read\",\"description\":\"Read content security policy\"}]},{\"scope\":\"fr:idc:cookie-domain:*\",\"description\":\"All cookie domain APIs\",\"childScopes\":[{\"scope\":\"fr:idc:cookie-domain:read\",\"description\":\"Read cookie domains\"}]},{\"scope\":\"fr:idc:custom-domain:*\",\"description\":\"All custom domain APIs\",\"childScopes\":[{\"scope\":\"fr:idc:custom-domain:read\",\"description\":\"Read custom domains\"}]},{\"scope\":\"fr:idc:dataset:*\",\"description\":\"All dataset deletion APIs\",\"childScopes\":[{\"scope\":\"fr:idc:dataset:read\",\"description\":\"Read dataset deletions\"}]},{\"scope\":\"fr:idc:esv:*\",\"description\":\"All ESV APIs\",\"childScopes\":[{\"scope\":\"fr:idc:esv:read\",\"description\":\"Read ESVs, excluding values of secrets\"},{\"scope\":\"fr:idc:esv:update\",\"description\":\"Create, modify, and delete ESVs\"},{\"scope\":\"fr:idc:esv:restart\",\"description\":\"Restart workloads that consume ESVs\"}]},{\"scope\":\"fr:idc:promotion:*\",\"description\":\"All configuration promotion APIs\",\"childScopes\":[{\"scope\":\"fr:idc:promotion:read\",\"description\":\"Read configuration promotion\"}]},{\"scope\":\"fr:idc:release:*\",\"description\":\"All product release APIs\",\"childScopes\":[{\"scope\":\"fr:idc:release:read\",\"description\":\"Read product release\"}]},{\"scope\":\"fr:idc:sso-cookie:*\",\"description\":\"All SSO cookie APIs\",\"childScopes\":[{\"scope\":\"fr:idc:sso-cookie:read\",\"description\":\"Read SSO cookie\"}]},{\"scope\":\"fr:idm:*\",\"description\":\"All Identity Management APIs\"},{\"scope\":\"fr:iga:*\",\"description\":\"All Identity Governance APIs\"}]" + }, + "cookies": [], + "headers": [ + { + "name": "x-frame-options", + "value": "SAMEORIGIN" + }, + { + "name": "content-type", + "value": "application/json; charset=utf-8" + }, + { + "name": "content-length", + "value": "1975" + }, + { + "name": "etag", + "value": "W/\"7b7-tIBWy/EinSCKaoNz4aU2iqiTmFc\"" + }, + { + "name": "date", + "value": "Tue, 19 May 2026 19:45:09 GMT" + }, + { + "name": "x-forgerock-transactionid", + "value": "885da886-2675-4d07-9010-f749d1906995" + }, + { + "name": "strict-transport-security", + "value": "max-age=31536000; includeSubDomains; preload;" + }, + { + "name": "x-robots-tag", + "value": "none" + }, + { + "name": "via", + "value": "1.1 google" + }, + { + "name": "alt-svc", + "value": "h3=\":443\"; ma=2592000" + } + ], + "headersSize": 388, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2026-05-19T19:45:09.229Z", + "time": 105, + "timings": { + "blocked": -1, + "connect": -1, + "dns": -1, + "receive": 0, + "send": 0, + "ssl": -1, + "wait": 105 + } + } + ], + "pages": [], + "version": "1.2" + } +} diff --git a/test/e2e/mocks/iga_2664973160/scope-delete_2021703181/0_n_2861796890/iga_2664973160/recording.har b/test/e2e/mocks/iga_2664973160/scope-delete_2021703181/0_n_2861796890/iga_2664973160/recording.har new file mode 100644 index 000000000..12a056d8c --- /dev/null +++ b/test/e2e/mocks/iga_2664973160/scope-delete_2021703181/0_n_2861796890/iga_2664973160/recording.har @@ -0,0 +1,267 @@ +{ + "log": { + "_recordingName": "iga/scope-delete/0_n/iga", + "creator": { + "comment": "persister:fs", + "name": "Polly.JS", + "version": "6.0.6" + }, + "entries": [ + { + "_id": "1c5a6f2efc8cd01d3b765fe554f5d3d8", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "name": "accept", + "value": "application/json, text/plain, */*" + }, + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "user-agent", + "value": "@rockcarver/frodo-lib/4.0.0-39" + }, + { + "name": "authorization", + "value": "Bearer " + }, + { + "name": "accept-encoding", + "value": "gzip, compress, deflate, br" + }, + { + "name": "host", + "value": "openam-frodo-dev.forgeblocks.com" + } + ], + "headersSize": 1896, + "httpVersion": "HTTP/1.1", + "method": "GET", + "queryString": [ + { + "name": "_queryFilter", + "value": "name eq \"equals-test\"" + }, + { + "name": "_pageSize", + "value": "10000" + }, + { + "name": "_pagedResultsOffset", + "value": "0" + } + ], + "url": "https://openam-trivir-fairfax.forgeblocks.com/iga/governance/scope?_queryFilter=name%20eq%20%22equals-test%22&_pageSize=10000&_pagedResultsOffset=0" + }, + "response": { + "bodySize": 612, + "content": { + "encoding": "base64", + "mimeType": "application/json; charset=utf-8", + "size": 612, + "text": "[\"G5YEAMRX1c9pf7PcGre7lFYZm04Etx+J9uHD0MTNgLyLcC7Mt3bhmNiFa1hg+aJl6dsTTGB5m9d4fFnldtGPmtSJMlktoG8nhofy/95F7baCAAM7gNCkWdl2XR/lFWdR2dZF1HU1R/wn79o8l3asWhisvAgI8n/n2UcqXmFwEbdY7+22etCJ3gmrPFjV6iyLrApSt4vBsg12vD5Y1eosi6wKUreLwWHl7pHjVT1I3S4GvR35gxc3Sy4GPG1gkFnkXndYufvgxd30vXh7AG+3WTzd9S67RxBawqW6Ewz8trte7m3rYCmUTuygTCdGO+tI3BzVEE0zoBOzjAqStsW91SsM8s1l6EQlp5czCB+U/yGE8CMYZOl7FIQjRwgGXll3DwL3ag+BgbKr09UNx3P7IwZUkz0rz9vfWJmMnRwMEoTKcskZiF89hNTgdVjfrc3EuzO/uThXZvIvEZHO3bGxMHLbLPHhiLfFuRca/WUHpm8Hg19ODlBmsIjywMqgE3HiSfdZBYQ8zesoraKse591VJZUZHFZ52lVV2X+FccrmspW2aT5V4TwwyCP5C+4GVXcM7mCvkWMzA+Djzww7m37qtChSITMEQE=\"]" + }, + "cookies": [], + "headers": [ + { + "name": "x-powered-by", + "value": "Express" + }, + { + "name": "cache-control", + "value": "no-store" + }, + { + "name": "content-type", + "value": "application/json; charset=utf-8" + }, + { + "name": "etag", + "value": "W/\"497-Hbls2tUgQDw5lNfIo/Of2DhbEw0\"" + }, + { + "name": "vary", + "value": "Accept-Encoding" + }, + { + "name": "content-encoding", + "value": "br" + }, + { + "name": "date", + "value": "Tue, 19 May 2026 19:45:09 GMT" + }, + { + "name": "x-forgerock-transactionid", + "value": "1904246c-90ef-4458-be77-381dd13cc861" + }, + { + "name": "strict-transport-security", + "value": "max-age=31536000; includeSubDomains; preload;" + }, + { + "name": "x-robots-tag", + "value": "none" + }, + { + "name": "via", + "value": "1.1 google" + }, + { + "name": "alt-svc", + "value": "h3=\":443\"; ma=2592000" + }, + { + "name": "transfer-encoding", + "value": "chunked" + } + ], + "headersSize": 458, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2026-05-19T19:45:09.445Z", + "time": 157, + "timings": { + "blocked": -1, + "connect": -1, + "dns": -1, + "receive": 0, + "send": 0, + "ssl": -1, + "wait": 157 + } + }, + { + "_id": "dc640aebc53889f3b0403288c0d032e3", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "name": "accept", + "value": "application/json, text/plain, */*" + }, + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "user-agent", + "value": "@rockcarver/frodo-lib/4.0.0-39" + }, + { + "name": "authorization", + "value": "Bearer " + }, + { + "name": "accept-encoding", + "value": "gzip, compress, deflate, br" + }, + { + "name": "host", + "value": "openam-frodo-dev.forgeblocks.com" + } + ], + "headersSize": 1855, + "httpVersion": "HTTP/1.1", + "method": "DELETE", + "queryString": [], + "url": "https://openam-trivir-fairfax.forgeblocks.com/iga/governance/scope/7014899c-25a1-4863-996a-ab29822e8f58" + }, + "response": { + "bodySize": 552, + "content": { + "encoding": "base64", + "mimeType": "application/json; charset=utf-8", + "size": 552, + "text": "[\"GzAEAMRX1c9pf7PcGre7tK0XRuZPBNdItA8HQ1M3gfzvCd8WyEhoD4zXsMDydFmaRRCwZtskChymwufwaStTLoyv4//erm5bQYCBG0Ho8qLuh8EmZcNFUvdtlQxDywn/KYe+LKW/NT0MVl4EBPl/8BwSlaAw2MUvLgS3rQF0wXphlWerOp1lkVVB6g8xWLbR3R6frep0lkVWBak/xOB08vDC86oBpP4QA6tn5kMQryCyOzPKLHzfnU4ePgTxd9ZK0Ad4u80SmaHH2COETIQYd6JB2A5v5cm2js6F/MIBSnXh5mZdaTYP+na5aQN0YZabgrh9qXX6CIMmcyW68H3TyxmED8r/EGP8EQ1a8z0F4SwRo0FQ1iOAwFbdKTBQ9p9zDcOJXPnIAdWqZeV5+5sK4zTIySAhVJa9YiBxjZjvwOtIYWmWZmd182mDzOJfIsI+uLl5YeG3WdLiyHfkmQu9/nKjndvR4JeXE1QYLKI8sjLowuHw0lNWAaHMyzbJm6QY3hcD1TVVRVq3Zd60TV1+RXllE7HVXV5+RYw=\"]" + }, + "cookies": [], + "headers": [ + { + "name": "x-powered-by", + "value": "Express" + }, + { + "name": "cache-control", + "value": "no-store" + }, + { + "name": "content-type", + "value": "application/json; charset=utf-8" + }, + { + "name": "etag", + "value": "W/\"431-8PEdNAsPnVQxuL4Qx6dFXdsrLWw\"" + }, + { + "name": "vary", + "value": "Accept-Encoding" + }, + { + "name": "content-encoding", + "value": "br" + }, + { + "name": "date", + "value": "Tue, 19 May 2026 19:45:10 GMT" + }, + { + "name": "x-forgerock-transactionid", + "value": "c7994fb7-e781-471e-bace-d1b95deb76d3" + }, + { + "name": "strict-transport-security", + "value": "max-age=31536000; includeSubDomains; preload;" + }, + { + "name": "x-robots-tag", + "value": "none" + }, + { + "name": "via", + "value": "1.1 google" + }, + { + "name": "alt-svc", + "value": "h3=\":443\"; ma=2592000" + }, + { + "name": "transfer-encoding", + "value": "chunked" + } + ], + "headersSize": 458, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2026-05-19T19:45:09.612Z", + "time": 663, + "timings": { + "blocked": -1, + "connect": -1, + "dns": -1, + "receive": 0, + "send": 0, + "ssl": -1, + "wait": 663 + } + } + ], + "pages": [], + "version": "1.2" + } +} diff --git a/test/e2e/mocks/iga_2664973160/scope-delete_2021703181/0_n_2861796890/oauth2_393036114/recording.har b/test/e2e/mocks/iga_2664973160/scope-delete_2021703181/0_n_2861796890/oauth2_393036114/recording.har new file mode 100644 index 000000000..7828e8a1c --- /dev/null +++ b/test/e2e/mocks/iga_2664973160/scope-delete_2021703181/0_n_2861796890/oauth2_393036114/recording.har @@ -0,0 +1,146 @@ +{ + "log": { + "_recordingName": "iga/scope-delete/0_n/oauth2", + "creator": { + "comment": "persister:fs", + "name": "Polly.JS", + "version": "6.0.6" + }, + "entries": [ + { + "_id": "ff75519a93ccab829f8ee8cf5e92b49f", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 1328, + "cookies": [], + "headers": [ + { + "name": "accept", + "value": "application/json, text/plain, */*" + }, + { + "name": "content-type", + "value": "application/x-www-form-urlencoded" + }, + { + "name": "user-agent", + "value": "@rockcarver/frodo-lib/4.0.0-39" + }, + { + "name": "x-forgerock-transactionid", + "value": "frodo-9d96e994-0379-405d-aa4a-0e3e1ea6e170" + }, + { + "name": "accept-api-version", + "value": "protocol=2.1,resource=1.0" + }, + { + "name": "content-length", + "value": "1328" + }, + { + "name": "accept-encoding", + "value": "gzip, compress, deflate, br" + }, + { + "name": "host", + "value": "openam-frodo-dev.forgeblocks.com" + } + ], + "headersSize": 453, + "httpVersion": "HTTP/1.1", + "method": "POST", + "postData": { + "mimeType": "application/x-www-form-urlencoded", + "params": [], + "text": "assertion=&client_id=service-account&grant_type=urn:ietf:params:oauth:grant-type:jwt-bearer&scope=fr:idc:custom-domain:* fr:idc:release:* fr:idc:sso-cookie:* fr:am:* fr:idc:esv:* fr:idc:content-security-policy:* fr:iga:* fr:idc:certificate:* fr:idm:* fr:idc:analytics:* fr:idc:cookie-domain:* fr:idc:promotion:*" + }, + "queryString": [], + "url": "https://openam-trivir-fairfax.forgeblocks.com/am/oauth2/access_token" + }, + "response": { + "bodySize": 1780, + "content": { + "mimeType": "application/json;charset=UTF-8", + "size": 1780, + "text": "{\"access_token\":\"\",\"scope\":\"fr:idc:custom-domain:* fr:idc:release:* fr:idc:sso-cookie:* fr:am:* fr:idc:esv:* fr:idc:content-security-policy:* fr:iga:* fr:idc:certificate:* fr:idm:* fr:idc:analytics:* fr:idc:cookie-domain:* fr:idc:promotion:*\",\"token_type\":\"Bearer\",\"expires_in\":899}" + }, + "cookies": [], + "headers": [ + { + "name": "x-frame-options", + "value": "SAMEORIGIN" + }, + { + "name": "content-security-policy-report-only", + "value": "frame-ancestors 'self'; script-src 'self' 'unsafe-eval' 'unsafe-inline'" + }, + { + "name": "x-content-type-options", + "value": "nosniff" + }, + { + "name": "cache-control", + "value": "no-store" + }, + { + "name": "pragma", + "value": "no-cache" + }, + { + "name": "content-type", + "value": "application/json;charset=UTF-8" + }, + { + "name": "content-length", + "value": "1780" + }, + { + "name": "date", + "value": "Tue, 19 May 2026 19:45:09 GMT" + }, + { + "name": "x-forgerock-transactionid", + "value": "frodo-9d96e994-0379-405d-aa4a-0e3e1ea6e170" + }, + { + "name": "strict-transport-security", + "value": "max-age=31536000; includeSubDomains; preload;" + }, + { + "name": "x-robots-tag", + "value": "none" + }, + { + "name": "via", + "value": "1.1 google" + }, + { + "name": "alt-svc", + "value": "h3=\":443\"; ma=2592000" + } + ], + "headersSize": 536, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2026-05-19T19:45:08.950Z", + "time": 161, + "timings": { + "blocked": -1, + "connect": -1, + "dns": -1, + "receive": 0, + "send": 0, + "ssl": -1, + "wait": 161 + } + } + ], + "pages": [], + "version": "1.2" + } +} diff --git a/test/e2e/mocks/iga_2664973160/scope-delete_2021703181/0_n_2861796890/openidm_3290118515/recording.har b/test/e2e/mocks/iga_2664973160/scope-delete_2021703181/0_n_2861796890/openidm_3290118515/recording.har new file mode 100644 index 000000000..7539c4461 --- /dev/null +++ b/test/e2e/mocks/iga_2664973160/scope-delete_2021703181/0_n_2861796890/openidm_3290118515/recording.har @@ -0,0 +1,310 @@ +{ + "log": { + "_recordingName": "iga/scope-delete/0_n/openidm", + "creator": { + "comment": "persister:fs", + "name": "Polly.JS", + "version": "6.0.6" + }, + "entries": [ + { + "_id": "9cb8561357870863838a9948da32d1e8", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "name": "accept", + "value": "application/json, text/plain, */*" + }, + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "user-agent", + "value": "@rockcarver/frodo-lib/4.0.0-39" + }, + { + "name": "x-forgerock-transactionid", + "value": "frodo-9d96e994-0379-405d-aa4a-0e3e1ea6e170" + }, + { + "name": "authorization", + "value": "Bearer " + }, + { + "name": "accept-encoding", + "value": "gzip, compress, deflate, br" + }, + { + "name": "host", + "value": "openam-frodo-dev.forgeblocks.com" + } + ], + "headersSize": 1938, + "httpVersion": "HTTP/1.1", + "method": "GET", + "queryString": [ + { + "name": "_fields", + "value": "*" + } + ], + "url": "https://openam-trivir-fairfax.forgeblocks.com/openidm/managed/svcacct/10d76629-78da-4265-868b-9a0cb68ebdb4?_fields=%2A" + }, + "response": { + "bodySize": 1401, + "content": { + "mimeType": "application/json;charset=utf-8", + "size": 1401, + "text": "{\"_id\":\"10d76629-78da-4265-868b-9a0cb68ebdb4\",\"_rev\":\"4b025e5d-c082-45f8-a3e9-0ac1db308dff-21339\",\"accountStatus\":\"active\",\"name\":\"Frodo-SA-1777919406717\",\"description\":\"dsevy@trivir.com's Frodo Service Account\",\"scopes\":[\"fr:am:*\",\"fr:idc:analytics:*\",\"fr:autoaccess:*\",\"fr:idc:certificate:*\",\"fr:idc:content-security-policy:*\",\"fr:idc:cookie-domain:*\",\"fr:idc:custom-domain:*\",\"fr:idc:dataset:*\",\"fr:idc:esv:*\",\"fr:idm:*\",\"fr:iga:*\",\"fr:idc:promotion:*\",\"fr:idc:release:*\",\"fr:idc:sso-cookie:*\"],\"jwks\":\"{\\\"keys\\\":[{\\\"kty\\\":\\\"RSA\\\",\\\"kid\\\":\\\"hshlr1hlp8bXdLNDrh3rESiHNsMS68c4XtbZX9i_Seg\\\",\\\"alg\\\":\\\"RS256\\\",\\\"e\\\":\\\"AQAB\\\",\\\"n\\\":\\\"owg6VJta_1o9VqyQk4Xs2kA_BDcyWEN1WMERqaJIFCbtecz_IMBp2G5m76dawbB9QvUsFvMqfJ2OGbaCcfC2o5lkxEu4nxdKLKYZ4-JTGsbPN6j-f9yr0LCjFMPd1BRxKQ98euSu5UZ0_gy9QN-eS4zB5zJsb8E7Y7FXsxG6vgd8dCqCSPjJeSmZhnQEeqJeysGlA5jMzQUP9Lvgm2aZp5wz7DXzF9lvsqRjm49H9wlERjy4KDmjlp5Rr3lz8ZXGgsaIdp18hUrPFKJP5qxkICfnbxdyK858A5puUypj1OAqrOtAnwjk5lMPOYzBWjWV72RPnOY3-6KAHo8uFXK3EH8AN8ErHxhpo-soV0e7-Z7gEnmt0rliY3j_-2AHA0Q5G1k52cGQ-dARGzgAQacpdnQv_pT0k83DGZPrpR6PqBRkyiJBD_PTvySZohxFgjpJfJmkYec7Pg40xri_LN1ozkLRBdQwL2zaQFYtq_VZC20a8Y7NpqpoLcvFIB9W2NS03qTokvId7gdSgdcVmpOo4n7OZZCouD6cyWyJ6Nj9uaxz-mw4Mdzhpd8cclSV_gXeWMBBoW3dZ7zzkEFMWHBT2x9S8JAZor_aaGJ2MXOoNoHRg-q9shNhQ3h7U14MXfL7I9R4ixClZMOpxILa0VT0Vzm-h685xkXwa28WLSw21QU\\\"}]}\",\"maxCachingTime\":\"15\",\"maxIdleTime\":\"15\",\"maxSessionTime\":\"15\",\"quotaLimit\":\"5\"}" + }, + "cookies": [], + "headers": [ + { + "name": "date", + "value": "Tue, 19 May 2026 19:45:09 GMT" + }, + { + "name": "vary", + "value": "Origin" + }, + { + "name": "cache-control", + "value": "no-store" + }, + { + "name": "content-security-policy", + "value": "default-src 'none';frame-ancestors 'none';sandbox" + }, + { + "name": "content-type", + "value": "application/json;charset=utf-8" + }, + { + "name": "cross-origin-opener-policy", + "value": "same-origin" + }, + { + "name": "cross-origin-resource-policy", + "value": "same-origin" + }, + { + "name": "etag", + "value": "\"4b025e5d-c082-45f8-a3e9-0ac1db308dff-21339\"" + }, + { + "name": "expires", + "value": "0" + }, + { + "name": "pragma", + "value": "no-cache" + }, + { + "name": "x-content-type-options", + "value": "nosniff" + }, + { + "name": "x-frame-options", + "value": "DENY" + }, + { + "name": "content-length", + "value": "1401" + }, + { + "name": "x-forgerock-transactionid", + "value": "frodo-9d96e994-0379-405d-aa4a-0e3e1ea6e170" + }, + { + "name": "strict-transport-security", + "value": "max-age=31536000; includeSubDomains; preload;" + }, + { + "name": "x-robots-tag", + "value": "none" + }, + { + "name": "via", + "value": "1.1 google" + }, + { + "name": "alt-svc", + "value": "h3=\":443\"; ma=2592000" + } + ], + "headersSize": 658, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2026-05-19T19:45:09.154Z", + "time": 178, + "timings": { + "blocked": -1, + "connect": -1, + "dns": -1, + "receive": 0, + "send": 0, + "ssl": -1, + "wait": 178 + } + }, + { + "_id": "9cb8561357870863838a9948da32d1e8", + "_order": 1, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "name": "accept", + "value": "application/json, text/plain, */*" + }, + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "user-agent", + "value": "@rockcarver/frodo-lib/4.0.0-39" + }, + { + "name": "x-forgerock-transactionid", + "value": "frodo-9d96e994-0379-405d-aa4a-0e3e1ea6e170" + }, + { + "name": "authorization", + "value": "Bearer " + }, + { + "name": "accept-encoding", + "value": "gzip, compress, deflate, br" + }, + { + "name": "host", + "value": "openam-frodo-dev.forgeblocks.com" + } + ], + "headersSize": 1938, + "httpVersion": "HTTP/1.1", + "method": "GET", + "queryString": [ + { + "name": "_fields", + "value": "*" + } + ], + "url": "https://openam-trivir-fairfax.forgeblocks.com/openidm/managed/svcacct/10d76629-78da-4265-868b-9a0cb68ebdb4?_fields=%2A" + }, + "response": { + "bodySize": 1401, + "content": { + "mimeType": "application/json;charset=utf-8", + "size": 1401, + "text": "{\"_id\":\"10d76629-78da-4265-868b-9a0cb68ebdb4\",\"_rev\":\"4b025e5d-c082-45f8-a3e9-0ac1db308dff-21339\",\"accountStatus\":\"active\",\"name\":\"Frodo-SA-1777919406717\",\"description\":\"dsevy@trivir.com's Frodo Service Account\",\"scopes\":[\"fr:am:*\",\"fr:idc:analytics:*\",\"fr:autoaccess:*\",\"fr:idc:certificate:*\",\"fr:idc:content-security-policy:*\",\"fr:idc:cookie-domain:*\",\"fr:idc:custom-domain:*\",\"fr:idc:dataset:*\",\"fr:idc:esv:*\",\"fr:idm:*\",\"fr:iga:*\",\"fr:idc:promotion:*\",\"fr:idc:release:*\",\"fr:idc:sso-cookie:*\"],\"jwks\":\"{\\\"keys\\\":[{\\\"kty\\\":\\\"RSA\\\",\\\"kid\\\":\\\"hshlr1hlp8bXdLNDrh3rESiHNsMS68c4XtbZX9i_Seg\\\",\\\"alg\\\":\\\"RS256\\\",\\\"e\\\":\\\"AQAB\\\",\\\"n\\\":\\\"owg6VJta_1o9VqyQk4Xs2kA_BDcyWEN1WMERqaJIFCbtecz_IMBp2G5m76dawbB9QvUsFvMqfJ2OGbaCcfC2o5lkxEu4nxdKLKYZ4-JTGsbPN6j-f9yr0LCjFMPd1BRxKQ98euSu5UZ0_gy9QN-eS4zB5zJsb8E7Y7FXsxG6vgd8dCqCSPjJeSmZhnQEeqJeysGlA5jMzQUP9Lvgm2aZp5wz7DXzF9lvsqRjm49H9wlERjy4KDmjlp5Rr3lz8ZXGgsaIdp18hUrPFKJP5qxkICfnbxdyK858A5puUypj1OAqrOtAnwjk5lMPOYzBWjWV72RPnOY3-6KAHo8uFXK3EH8AN8ErHxhpo-soV0e7-Z7gEnmt0rliY3j_-2AHA0Q5G1k52cGQ-dARGzgAQacpdnQv_pT0k83DGZPrpR6PqBRkyiJBD_PTvySZohxFgjpJfJmkYec7Pg40xri_LN1ozkLRBdQwL2zaQFYtq_VZC20a8Y7NpqpoLcvFIB9W2NS03qTokvId7gdSgdcVmpOo4n7OZZCouD6cyWyJ6Nj9uaxz-mw4Mdzhpd8cclSV_gXeWMBBoW3dZ7zzkEFMWHBT2x9S8JAZor_aaGJ2MXOoNoHRg-q9shNhQ3h7U14MXfL7I9R4ixClZMOpxILa0VT0Vzm-h685xkXwa28WLSw21QU\\\"}]}\",\"maxCachingTime\":\"15\",\"maxIdleTime\":\"15\",\"maxSessionTime\":\"15\",\"quotaLimit\":\"5\"}" + }, + "cookies": [], + "headers": [ + { + "name": "date", + "value": "Tue, 19 May 2026 19:45:09 GMT" + }, + { + "name": "vary", + "value": "Origin" + }, + { + "name": "cache-control", + "value": "no-store" + }, + { + "name": "content-security-policy", + "value": "default-src 'none';frame-ancestors 'none';sandbox" + }, + { + "name": "content-type", + "value": "application/json;charset=utf-8" + }, + { + "name": "cross-origin-opener-policy", + "value": "same-origin" + }, + { + "name": "cross-origin-resource-policy", + "value": "same-origin" + }, + { + "name": "etag", + "value": "\"4b025e5d-c082-45f8-a3e9-0ac1db308dff-21339\"" + }, + { + "name": "expires", + "value": "0" + }, + { + "name": "pragma", + "value": "no-cache" + }, + { + "name": "x-content-type-options", + "value": "nosniff" + }, + { + "name": "x-frame-options", + "value": "DENY" + }, + { + "name": "content-length", + "value": "1401" + }, + { + "name": "x-forgerock-transactionid", + "value": "frodo-9d96e994-0379-405d-aa4a-0e3e1ea6e170" + }, + { + "name": "strict-transport-security", + "value": "max-age=31536000; includeSubDomains; preload;" + }, + { + "name": "x-robots-tag", + "value": "none" + }, + { + "name": "via", + "value": "1.1 google" + }, + { + "name": "alt-svc", + "value": "h3=\":443\"; ma=2592000" + } + ], + "headersSize": 658, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2026-05-19T19:45:09.339Z", + "time": 97, + "timings": { + "blocked": -1, + "connect": -1, + "dns": -1, + "receive": 0, + "send": 0, + "ssl": -1, + "wait": 97 + } + } + ], + "pages": [], + "version": "1.2" + } +} diff --git a/test/e2e/mocks/iga_2664973160/scope-describe_2316107699/0_file_174088422/am_1076162899/recording.har b/test/e2e/mocks/iga_2664973160/scope-describe_2316107699/0_file_174088422/am_1076162899/recording.har new file mode 100644 index 000000000..a8788b4aa --- /dev/null +++ b/test/e2e/mocks/iga_2664973160/scope-describe_2316107699/0_file_174088422/am_1076162899/recording.har @@ -0,0 +1,312 @@ +{ + "log": { + "_recordingName": "iga/scope-describe/0_file/am", + "creator": { + "comment": "persister:fs", + "name": "Polly.JS", + "version": "6.0.6" + }, + "entries": [ + { + "_id": "ccd7a5defd0fdeaa986a2b54642d911a", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "name": "accept", + "value": "application/json, text/plain, */*" + }, + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "user-agent", + "value": "@rockcarver/frodo-lib/4.0.0-39" + }, + { + "name": "x-forgerock-transactionid", + "value": "frodo-9710f25a-26ac-405c-82c5-a91c560c9099" + }, + { + "name": "accept-api-version", + "value": "resource=1.1" + }, + { + "name": "accept-encoding", + "value": "gzip, compress, deflate, br" + }, + { + "name": "host", + "value": "openam-frodo-dev.forgeblocks.com" + } + ], + "headersSize": 398, + "httpVersion": "HTTP/1.1", + "method": "GET", + "queryString": [], + "url": "https://openam-trivir-fairfax.forgeblocks.com/am/json/serverinfo/*" + }, + "response": { + "bodySize": 614, + "content": { + "mimeType": "application/json;charset=UTF-8", + "size": 614, + "text": "{\"_id\":\"*\",\"_rev\":\"959929574\",\"domains\":[],\"protectedUserAttributes\":[\"telephoneNumber\",\"mail\"],\"cookieName\":\"311468432e97f1f\",\"secureCookie\":true,\"forgotPassword\":\"false\",\"forgotUsername\":\"false\",\"kbaEnabled\":\"false\",\"selfRegistration\":\"false\",\"lang\":\"en-US\",\"successfulUserRegistrationDestination\":\"default\",\"socialImplementations\":[],\"referralsEnabled\":\"false\",\"zeroPageLogin\":{\"enabled\":false,\"refererWhitelist\":[],\"allowedWithoutReferer\":true},\"realm\":\"/\",\"xuiUserSessionValidationEnabled\":true,\"fileBasedConfiguration\":true,\"userIdAttributes\":[],\"cloudOnlyFeaturesEnabled\":true,\"oauth2AIAgentsEnabled\":false}" + }, + "cookies": [], + "headers": [ + { + "name": "x-frame-options", + "value": "SAMEORIGIN" + }, + { + "name": "content-security-policy-report-only", + "value": "frame-ancestors 'self'; script-src 'self' 'unsafe-eval' 'unsafe-inline'" + }, + { + "name": "x-content-type-options", + "value": "nosniff" + }, + { + "name": "cache-control", + "value": "no-store" + }, + { + "name": "content-api-version", + "value": "resource=1.1" + }, + { + "name": "content-security-policy", + "value": "default-src 'none';frame-ancestors 'none';sandbox" + }, + { + "name": "cross-origin-opener-policy", + "value": "same-origin" + }, + { + "name": "cross-origin-resource-policy", + "value": "same-origin" + }, + { + "name": "etag", + "value": "\"959929574\"" + }, + { + "name": "expires", + "value": "0" + }, + { + "name": "pragma", + "value": "no-cache" + }, + { + "name": "content-type", + "value": "application/json;charset=UTF-8" + }, + { + "name": "content-length", + "value": "614" + }, + { + "name": "date", + "value": "Tue, 19 May 2026 20:29:05 GMT" + }, + { + "name": "x-forgerock-transactionid", + "value": "frodo-9710f25a-26ac-405c-82c5-a91c560c9099" + }, + { + "name": "strict-transport-security", + "value": "max-age=31536000; includeSubDomains; preload;" + }, + { + "name": "x-robots-tag", + "value": "none" + }, + { + "name": "via", + "value": "1.1 google" + }, + { + "name": "alt-svc", + "value": "h3=\":443\"; ma=2592000" + } + ], + "headersSize": 761, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2026-05-19T20:29:05.727Z", + "time": 185, + "timings": { + "blocked": -1, + "connect": -1, + "dns": -1, + "receive": 0, + "send": 0, + "ssl": -1, + "wait": 185 + } + }, + { + "_id": "6125d0328ad0dcaee55f73fd8b22ca14", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "name": "accept", + "value": "application/json, text/plain, */*" + }, + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "user-agent", + "value": "@rockcarver/frodo-lib/4.0.0-39" + }, + { + "name": "x-forgerock-transactionid", + "value": "frodo-9710f25a-26ac-405c-82c5-a91c560c9099" + }, + { + "name": "accept-api-version", + "value": "resource=1.0" + }, + { + "name": "authorization", + "value": "Bearer " + }, + { + "name": "accept-encoding", + "value": "gzip, compress, deflate, br" + }, + { + "name": "host", + "value": "openam-frodo-dev.forgeblocks.com" + } + ], + "headersSize": 1926, + "httpVersion": "HTTP/1.1", + "method": "GET", + "queryString": [], + "url": "https://openam-trivir-fairfax.forgeblocks.com/am/json/serverinfo/version" + }, + "response": { + "bodySize": 274, + "content": { + "mimeType": "application/json;charset=UTF-8", + "size": 274, + "text": "{\"_id\":\"version\",\"_rev\":\"194838800\",\"version\":\"9.0.0-SNAPSHOT\",\"fullVersion\":\"ForgeRock Access Management 9.0.0-SNAPSHOT Build 500b736d5354dc1171d65a84ec4230d63a5a084e (2026-April-21 11:20)\",\"revision\":\"500b736d5354dc1171d65a84ec4230d63a5a084e\",\"date\":\"2026-April-21 11:20\"}" + }, + "cookies": [], + "headers": [ + { + "name": "x-frame-options", + "value": "SAMEORIGIN" + }, + { + "name": "content-security-policy-report-only", + "value": "frame-ancestors 'self'; script-src 'self' 'unsafe-eval' 'unsafe-inline'" + }, + { + "name": "x-content-type-options", + "value": "nosniff" + }, + { + "name": "cache-control", + "value": "no-store" + }, + { + "name": "content-api-version", + "value": "resource=1.0" + }, + { + "name": "content-security-policy", + "value": "default-src 'none';frame-ancestors 'none';sandbox" + }, + { + "name": "cross-origin-opener-policy", + "value": "same-origin" + }, + { + "name": "cross-origin-resource-policy", + "value": "same-origin" + }, + { + "name": "etag", + "value": "\"194838800\"" + }, + { + "name": "expires", + "value": "0" + }, + { + "name": "pragma", + "value": "no-cache" + }, + { + "name": "content-type", + "value": "application/json;charset=UTF-8" + }, + { + "name": "content-length", + "value": "274" + }, + { + "name": "date", + "value": "Tue, 19 May 2026 20:29:06 GMT" + }, + { + "name": "x-forgerock-transactionid", + "value": "frodo-9710f25a-26ac-405c-82c5-a91c560c9099" + }, + { + "name": "strict-transport-security", + "value": "max-age=31536000; includeSubDomains; preload;" + }, + { + "name": "x-robots-tag", + "value": "none" + }, + { + "name": "via", + "value": "1.1 google" + }, + { + "name": "alt-svc", + "value": "h3=\":443\"; ma=2592000" + } + ], + "headersSize": 761, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2026-05-19T20:29:06.087Z", + "time": 113, + "timings": { + "blocked": -1, + "connect": -1, + "dns": -1, + "receive": 0, + "send": 0, + "ssl": -1, + "wait": 113 + } + } + ], + "pages": [], + "version": "1.2" + } +} diff --git a/test/e2e/mocks/iga_2664973160/scope-describe_2316107699/0_file_174088422/environment_1072573434/recording.har b/test/e2e/mocks/iga_2664973160/scope-describe_2316107699/0_file_174088422/environment_1072573434/recording.har new file mode 100644 index 000000000..ef422420c --- /dev/null +++ b/test/e2e/mocks/iga_2664973160/scope-describe_2316107699/0_file_174088422/environment_1072573434/recording.har @@ -0,0 +1,125 @@ +{ + "log": { + "_recordingName": "iga/scope-describe/0_file/environment", + "creator": { + "comment": "persister:fs", + "name": "Polly.JS", + "version": "6.0.6" + }, + "entries": [ + { + "_id": "ccc7ec61c2094114d7917814bb19b83b", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "name": "accept", + "value": "application/json, text/plain, */*" + }, + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "user-agent", + "value": "@rockcarver/frodo-lib/4.0.0-39" + }, + { + "name": "accept-api-version", + "value": "protocol=1.0,resource=1.0" + }, + { + "name": "authorization", + "value": "Bearer " + }, + { + "name": "accept-encoding", + "value": "gzip, compress, deflate, br" + }, + { + "name": "host", + "value": "openam-frodo-dev.forgeblocks.com" + } + ], + "headersSize": 1877, + "httpVersion": "HTTP/1.1", + "method": "GET", + "queryString": [], + "url": "https://openam-trivir-fairfax.forgeblocks.com/environment/scopes/service-accounts" + }, + "response": { + "bodySize": 1975, + "content": { + "mimeType": "application/json; charset=utf-8", + "size": 1975, + "text": "[{\"scope\":\"fr:am:*\",\"description\":\"All Access Management APIs\"},{\"scope\":\"fr:autoaccess:*\",\"description\":\"All Auto Access APIs\"},{\"scope\":\"fr:idc:analytics:*\",\"description\":\"All Analytics APIs\"},{\"scope\":\"fr:idc:certificate:*\",\"description\":\"All TLS certificate APIs\",\"childScopes\":[{\"scope\":\"fr:idc:certificate:read\",\"description\":\"Read TLS certificates\"}]},{\"scope\":\"fr:idc:content-security-policy:*\",\"description\":\"All content security policy APIs\",\"childScopes\":[{\"scope\":\"fr:idc:content-security-policy:read\",\"description\":\"Read content security policy\"}]},{\"scope\":\"fr:idc:cookie-domain:*\",\"description\":\"All cookie domain APIs\",\"childScopes\":[{\"scope\":\"fr:idc:cookie-domain:read\",\"description\":\"Read cookie domains\"}]},{\"scope\":\"fr:idc:custom-domain:*\",\"description\":\"All custom domain APIs\",\"childScopes\":[{\"scope\":\"fr:idc:custom-domain:read\",\"description\":\"Read custom domains\"}]},{\"scope\":\"fr:idc:dataset:*\",\"description\":\"All dataset deletion APIs\",\"childScopes\":[{\"scope\":\"fr:idc:dataset:read\",\"description\":\"Read dataset deletions\"}]},{\"scope\":\"fr:idc:esv:*\",\"description\":\"All ESV APIs\",\"childScopes\":[{\"scope\":\"fr:idc:esv:read\",\"description\":\"Read ESVs, excluding values of secrets\"},{\"scope\":\"fr:idc:esv:update\",\"description\":\"Create, modify, and delete ESVs\"},{\"scope\":\"fr:idc:esv:restart\",\"description\":\"Restart workloads that consume ESVs\"}]},{\"scope\":\"fr:idc:promotion:*\",\"description\":\"All configuration promotion APIs\",\"childScopes\":[{\"scope\":\"fr:idc:promotion:read\",\"description\":\"Read configuration promotion\"}]},{\"scope\":\"fr:idc:release:*\",\"description\":\"All product release APIs\",\"childScopes\":[{\"scope\":\"fr:idc:release:read\",\"description\":\"Read product release\"}]},{\"scope\":\"fr:idc:sso-cookie:*\",\"description\":\"All SSO cookie APIs\",\"childScopes\":[{\"scope\":\"fr:idc:sso-cookie:read\",\"description\":\"Read SSO cookie\"}]},{\"scope\":\"fr:idm:*\",\"description\":\"All Identity Management APIs\"},{\"scope\":\"fr:iga:*\",\"description\":\"All Identity Governance APIs\"}]" + }, + "cookies": [], + "headers": [ + { + "name": "x-frame-options", + "value": "SAMEORIGIN" + }, + { + "name": "content-type", + "value": "application/json; charset=utf-8" + }, + { + "name": "content-length", + "value": "1975" + }, + { + "name": "etag", + "value": "W/\"7b7-tIBWy/EinSCKaoNz4aU2iqiTmFc\"" + }, + { + "name": "date", + "value": "Tue, 19 May 2026 20:29:06 GMT" + }, + { + "name": "x-forgerock-transactionid", + "value": "304c9f01-9d6d-4d6b-bd66-1d9e3b382816" + }, + { + "name": "strict-transport-security", + "value": "max-age=31536000; includeSubDomains; preload;" + }, + { + "name": "x-robots-tag", + "value": "none" + }, + { + "name": "via", + "value": "1.1 google" + }, + { + "name": "alt-svc", + "value": "h3=\":443\"; ma=2592000" + } + ], + "headersSize": 388, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2026-05-19T20:29:06.208Z", + "time": 109, + "timings": { + "blocked": -1, + "connect": -1, + "dns": -1, + "receive": 0, + "send": 0, + "ssl": -1, + "wait": 109 + } + } + ], + "pages": [], + "version": "1.2" + } +} diff --git a/test/e2e/mocks/iga_2664973160/scope-describe_2316107699/0_file_174088422/oauth2_393036114/recording.har b/test/e2e/mocks/iga_2664973160/scope-describe_2316107699/0_file_174088422/oauth2_393036114/recording.har new file mode 100644 index 000000000..939e928fb --- /dev/null +++ b/test/e2e/mocks/iga_2664973160/scope-describe_2316107699/0_file_174088422/oauth2_393036114/recording.har @@ -0,0 +1,146 @@ +{ + "log": { + "_recordingName": "iga/scope-describe/0_file/oauth2", + "creator": { + "comment": "persister:fs", + "name": "Polly.JS", + "version": "6.0.6" + }, + "entries": [ + { + "_id": "ff75519a93ccab829f8ee8cf5e92b49f", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 1328, + "cookies": [], + "headers": [ + { + "name": "accept", + "value": "application/json, text/plain, */*" + }, + { + "name": "content-type", + "value": "application/x-www-form-urlencoded" + }, + { + "name": "user-agent", + "value": "@rockcarver/frodo-lib/4.0.0-39" + }, + { + "name": "x-forgerock-transactionid", + "value": "frodo-9710f25a-26ac-405c-82c5-a91c560c9099" + }, + { + "name": "accept-api-version", + "value": "protocol=2.1,resource=1.0" + }, + { + "name": "content-length", + "value": "1328" + }, + { + "name": "accept-encoding", + "value": "gzip, compress, deflate, br" + }, + { + "name": "host", + "value": "openam-frodo-dev.forgeblocks.com" + } + ], + "headersSize": 453, + "httpVersion": "HTTP/1.1", + "method": "POST", + "postData": { + "mimeType": "application/x-www-form-urlencoded", + "params": [], + "text": "assertion=&client_id=service-account&grant_type=urn:ietf:params:oauth:grant-type:jwt-bearer&scope=fr:idc:custom-domain:* fr:idc:release:* fr:idc:sso-cookie:* fr:am:* fr:idc:esv:* fr:idc:content-security-policy:* fr:iga:* fr:idc:certificate:* fr:idm:* fr:idc:analytics:* fr:idc:cookie-domain:* fr:idc:promotion:*" + }, + "queryString": [], + "url": "https://openam-trivir-fairfax.forgeblocks.com/am/oauth2/access_token" + }, + "response": { + "bodySize": 1780, + "content": { + "mimeType": "application/json;charset=UTF-8", + "size": 1780, + "text": "{\"access_token\":\"\",\"scope\":\"fr:idc:custom-domain:* fr:idc:release:* fr:idc:sso-cookie:* fr:am:* fr:idc:esv:* fr:idc:content-security-policy:* fr:iga:* fr:idc:certificate:* fr:idm:* fr:idc:analytics:* fr:idc:cookie-domain:* fr:idc:promotion:*\",\"token_type\":\"Bearer\",\"expires_in\":899}" + }, + "cookies": [], + "headers": [ + { + "name": "x-frame-options", + "value": "SAMEORIGIN" + }, + { + "name": "content-security-policy-report-only", + "value": "frame-ancestors 'self'; script-src 'self' 'unsafe-eval' 'unsafe-inline'" + }, + { + "name": "x-content-type-options", + "value": "nosniff" + }, + { + "name": "cache-control", + "value": "no-store" + }, + { + "name": "pragma", + "value": "no-cache" + }, + { + "name": "content-type", + "value": "application/json;charset=UTF-8" + }, + { + "name": "content-length", + "value": "1780" + }, + { + "name": "date", + "value": "Tue, 19 May 2026 20:29:06 GMT" + }, + { + "name": "x-forgerock-transactionid", + "value": "frodo-9710f25a-26ac-405c-82c5-a91c560c9099" + }, + { + "name": "strict-transport-security", + "value": "max-age=31536000; includeSubDomains; preload;" + }, + { + "name": "x-robots-tag", + "value": "none" + }, + { + "name": "via", + "value": "1.1 google" + }, + { + "name": "alt-svc", + "value": "h3=\":443\"; ma=2592000" + } + ], + "headersSize": 536, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2026-05-19T20:29:05.927Z", + "time": 149, + "timings": { + "blocked": -1, + "connect": -1, + "dns": -1, + "receive": 0, + "send": 0, + "ssl": -1, + "wait": 149 + } + } + ], + "pages": [], + "version": "1.2" + } +} diff --git a/test/e2e/mocks/iga_2664973160/scope-describe_2316107699/0_file_174088422/openidm_3290118515/recording.har b/test/e2e/mocks/iga_2664973160/scope-describe_2316107699/0_file_174088422/openidm_3290118515/recording.har new file mode 100644 index 000000000..1f10773e1 --- /dev/null +++ b/test/e2e/mocks/iga_2664973160/scope-describe_2316107699/0_file_174088422/openidm_3290118515/recording.har @@ -0,0 +1,310 @@ +{ + "log": { + "_recordingName": "iga/scope-describe/0_file/openidm", + "creator": { + "comment": "persister:fs", + "name": "Polly.JS", + "version": "6.0.6" + }, + "entries": [ + { + "_id": "9cb8561357870863838a9948da32d1e8", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "name": "accept", + "value": "application/json, text/plain, */*" + }, + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "user-agent", + "value": "@rockcarver/frodo-lib/4.0.0-39" + }, + { + "name": "x-forgerock-transactionid", + "value": "frodo-9710f25a-26ac-405c-82c5-a91c560c9099" + }, + { + "name": "authorization", + "value": "Bearer " + }, + { + "name": "accept-encoding", + "value": "gzip, compress, deflate, br" + }, + { + "name": "host", + "value": "openam-frodo-dev.forgeblocks.com" + } + ], + "headersSize": 1938, + "httpVersion": "HTTP/1.1", + "method": "GET", + "queryString": [ + { + "name": "_fields", + "value": "*" + } + ], + "url": "https://openam-trivir-fairfax.forgeblocks.com/openidm/managed/svcacct/10d76629-78da-4265-868b-9a0cb68ebdb4?_fields=%2A" + }, + "response": { + "bodySize": 1401, + "content": { + "mimeType": "application/json;charset=utf-8", + "size": 1401, + "text": "{\"_id\":\"10d76629-78da-4265-868b-9a0cb68ebdb4\",\"_rev\":\"4b025e5d-c082-45f8-a3e9-0ac1db308dff-21339\",\"accountStatus\":\"active\",\"name\":\"Frodo-SA-1777919406717\",\"description\":\"dsevy@trivir.com's Frodo Service Account\",\"scopes\":[\"fr:am:*\",\"fr:idc:analytics:*\",\"fr:autoaccess:*\",\"fr:idc:certificate:*\",\"fr:idc:content-security-policy:*\",\"fr:idc:cookie-domain:*\",\"fr:idc:custom-domain:*\",\"fr:idc:dataset:*\",\"fr:idc:esv:*\",\"fr:idm:*\",\"fr:iga:*\",\"fr:idc:promotion:*\",\"fr:idc:release:*\",\"fr:idc:sso-cookie:*\"],\"jwks\":\"{\\\"keys\\\":[{\\\"kty\\\":\\\"RSA\\\",\\\"kid\\\":\\\"hshlr1hlp8bXdLNDrh3rESiHNsMS68c4XtbZX9i_Seg\\\",\\\"alg\\\":\\\"RS256\\\",\\\"e\\\":\\\"AQAB\\\",\\\"n\\\":\\\"owg6VJta_1o9VqyQk4Xs2kA_BDcyWEN1WMERqaJIFCbtecz_IMBp2G5m76dawbB9QvUsFvMqfJ2OGbaCcfC2o5lkxEu4nxdKLKYZ4-JTGsbPN6j-f9yr0LCjFMPd1BRxKQ98euSu5UZ0_gy9QN-eS4zB5zJsb8E7Y7FXsxG6vgd8dCqCSPjJeSmZhnQEeqJeysGlA5jMzQUP9Lvgm2aZp5wz7DXzF9lvsqRjm49H9wlERjy4KDmjlp5Rr3lz8ZXGgsaIdp18hUrPFKJP5qxkICfnbxdyK858A5puUypj1OAqrOtAnwjk5lMPOYzBWjWV72RPnOY3-6KAHo8uFXK3EH8AN8ErHxhpo-soV0e7-Z7gEnmt0rliY3j_-2AHA0Q5G1k52cGQ-dARGzgAQacpdnQv_pT0k83DGZPrpR6PqBRkyiJBD_PTvySZohxFgjpJfJmkYec7Pg40xri_LN1ozkLRBdQwL2zaQFYtq_VZC20a8Y7NpqpoLcvFIB9W2NS03qTokvId7gdSgdcVmpOo4n7OZZCouD6cyWyJ6Nj9uaxz-mw4Mdzhpd8cclSV_gXeWMBBoW3dZ7zzkEFMWHBT2x9S8JAZor_aaGJ2MXOoNoHRg-q9shNhQ3h7U14MXfL7I9R4ixClZMOpxILa0VT0Vzm-h685xkXwa28WLSw21QU\\\"}]}\",\"maxCachingTime\":\"15\",\"maxIdleTime\":\"15\",\"maxSessionTime\":\"15\",\"quotaLimit\":\"5\"}" + }, + "cookies": [], + "headers": [ + { + "name": "date", + "value": "Tue, 19 May 2026 20:29:06 GMT" + }, + { + "name": "vary", + "value": "Origin" + }, + { + "name": "cache-control", + "value": "no-store" + }, + { + "name": "content-security-policy", + "value": "default-src 'none';frame-ancestors 'none';sandbox" + }, + { + "name": "content-type", + "value": "application/json;charset=utf-8" + }, + { + "name": "cross-origin-opener-policy", + "value": "same-origin" + }, + { + "name": "cross-origin-resource-policy", + "value": "same-origin" + }, + { + "name": "etag", + "value": "\"4b025e5d-c082-45f8-a3e9-0ac1db308dff-21339\"" + }, + { + "name": "expires", + "value": "0" + }, + { + "name": "pragma", + "value": "no-cache" + }, + { + "name": "x-content-type-options", + "value": "nosniff" + }, + { + "name": "x-frame-options", + "value": "DENY" + }, + { + "name": "content-length", + "value": "1401" + }, + { + "name": "x-forgerock-transactionid", + "value": "frodo-9710f25a-26ac-405c-82c5-a91c560c9099" + }, + { + "name": "strict-transport-security", + "value": "max-age=31536000; includeSubDomains; preload;" + }, + { + "name": "x-robots-tag", + "value": "none" + }, + { + "name": "via", + "value": "1.1 google" + }, + { + "name": "alt-svc", + "value": "h3=\":443\"; ma=2592000" + } + ], + "headersSize": 658, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2026-05-19T20:29:06.125Z", + "time": 185, + "timings": { + "blocked": -1, + "connect": -1, + "dns": -1, + "receive": 0, + "send": 0, + "ssl": -1, + "wait": 185 + } + }, + { + "_id": "9cb8561357870863838a9948da32d1e8", + "_order": 1, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "name": "accept", + "value": "application/json, text/plain, */*" + }, + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "user-agent", + "value": "@rockcarver/frodo-lib/4.0.0-39" + }, + { + "name": "x-forgerock-transactionid", + "value": "frodo-9710f25a-26ac-405c-82c5-a91c560c9099" + }, + { + "name": "authorization", + "value": "Bearer " + }, + { + "name": "accept-encoding", + "value": "gzip, compress, deflate, br" + }, + { + "name": "host", + "value": "openam-frodo-dev.forgeblocks.com" + } + ], + "headersSize": 1938, + "httpVersion": "HTTP/1.1", + "method": "GET", + "queryString": [ + { + "name": "_fields", + "value": "*" + } + ], + "url": "https://openam-trivir-fairfax.forgeblocks.com/openidm/managed/svcacct/10d76629-78da-4265-868b-9a0cb68ebdb4?_fields=%2A" + }, + "response": { + "bodySize": 1401, + "content": { + "mimeType": "application/json;charset=utf-8", + "size": 1401, + "text": "{\"_id\":\"10d76629-78da-4265-868b-9a0cb68ebdb4\",\"_rev\":\"4b025e5d-c082-45f8-a3e9-0ac1db308dff-21339\",\"accountStatus\":\"active\",\"name\":\"Frodo-SA-1777919406717\",\"description\":\"dsevy@trivir.com's Frodo Service Account\",\"scopes\":[\"fr:am:*\",\"fr:idc:analytics:*\",\"fr:autoaccess:*\",\"fr:idc:certificate:*\",\"fr:idc:content-security-policy:*\",\"fr:idc:cookie-domain:*\",\"fr:idc:custom-domain:*\",\"fr:idc:dataset:*\",\"fr:idc:esv:*\",\"fr:idm:*\",\"fr:iga:*\",\"fr:idc:promotion:*\",\"fr:idc:release:*\",\"fr:idc:sso-cookie:*\"],\"jwks\":\"{\\\"keys\\\":[{\\\"kty\\\":\\\"RSA\\\",\\\"kid\\\":\\\"hshlr1hlp8bXdLNDrh3rESiHNsMS68c4XtbZX9i_Seg\\\",\\\"alg\\\":\\\"RS256\\\",\\\"e\\\":\\\"AQAB\\\",\\\"n\\\":\\\"owg6VJta_1o9VqyQk4Xs2kA_BDcyWEN1WMERqaJIFCbtecz_IMBp2G5m76dawbB9QvUsFvMqfJ2OGbaCcfC2o5lkxEu4nxdKLKYZ4-JTGsbPN6j-f9yr0LCjFMPd1BRxKQ98euSu5UZ0_gy9QN-eS4zB5zJsb8E7Y7FXsxG6vgd8dCqCSPjJeSmZhnQEeqJeysGlA5jMzQUP9Lvgm2aZp5wz7DXzF9lvsqRjm49H9wlERjy4KDmjlp5Rr3lz8ZXGgsaIdp18hUrPFKJP5qxkICfnbxdyK858A5puUypj1OAqrOtAnwjk5lMPOYzBWjWV72RPnOY3-6KAHo8uFXK3EH8AN8ErHxhpo-soV0e7-Z7gEnmt0rliY3j_-2AHA0Q5G1k52cGQ-dARGzgAQacpdnQv_pT0k83DGZPrpR6PqBRkyiJBD_PTvySZohxFgjpJfJmkYec7Pg40xri_LN1ozkLRBdQwL2zaQFYtq_VZC20a8Y7NpqpoLcvFIB9W2NS03qTokvId7gdSgdcVmpOo4n7OZZCouD6cyWyJ6Nj9uaxz-mw4Mdzhpd8cclSV_gXeWMBBoW3dZ7zzkEFMWHBT2x9S8JAZor_aaGJ2MXOoNoHRg-q9shNhQ3h7U14MXfL7I9R4ixClZMOpxILa0VT0Vzm-h685xkXwa28WLSw21QU\\\"}]}\",\"maxCachingTime\":\"15\",\"maxIdleTime\":\"15\",\"maxSessionTime\":\"15\",\"quotaLimit\":\"5\"}" + }, + "cookies": [], + "headers": [ + { + "name": "date", + "value": "Tue, 19 May 2026 20:29:06 GMT" + }, + { + "name": "vary", + "value": "Origin" + }, + { + "name": "cache-control", + "value": "no-store" + }, + { + "name": "content-security-policy", + "value": "default-src 'none';frame-ancestors 'none';sandbox" + }, + { + "name": "content-type", + "value": "application/json;charset=utf-8" + }, + { + "name": "cross-origin-opener-policy", + "value": "same-origin" + }, + { + "name": "cross-origin-resource-policy", + "value": "same-origin" + }, + { + "name": "etag", + "value": "\"4b025e5d-c082-45f8-a3e9-0ac1db308dff-21339\"" + }, + { + "name": "expires", + "value": "0" + }, + { + "name": "pragma", + "value": "no-cache" + }, + { + "name": "x-content-type-options", + "value": "nosniff" + }, + { + "name": "x-frame-options", + "value": "DENY" + }, + { + "name": "content-length", + "value": "1401" + }, + { + "name": "x-forgerock-transactionid", + "value": "frodo-9710f25a-26ac-405c-82c5-a91c560c9099" + }, + { + "name": "strict-transport-security", + "value": "max-age=31536000; includeSubDomains; preload;" + }, + { + "name": "x-robots-tag", + "value": "none" + }, + { + "name": "via", + "value": "1.1 google" + }, + { + "name": "alt-svc", + "value": "h3=\":443\"; ma=2592000" + } + ], + "headersSize": 658, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2026-05-19T20:29:06.333Z", + "time": 96, + "timings": { + "blocked": -1, + "connect": -1, + "dns": -1, + "receive": 0, + "send": 0, + "ssl": -1, + "wait": 96 + } + } + ], + "pages": [], + "version": "1.2" + } +} diff --git a/test/e2e/mocks/iga_2664973160/scope-describe_2316107699/0_n_f_4242328059/am_1076162899/recording.har b/test/e2e/mocks/iga_2664973160/scope-describe_2316107699/0_n_f_4242328059/am_1076162899/recording.har new file mode 100644 index 000000000..a3bf371af --- /dev/null +++ b/test/e2e/mocks/iga_2664973160/scope-describe_2316107699/0_n_f_4242328059/am_1076162899/recording.har @@ -0,0 +1,312 @@ +{ + "log": { + "_recordingName": "iga/scope-describe/0_n_f/am", + "creator": { + "comment": "persister:fs", + "name": "Polly.JS", + "version": "6.0.6" + }, + "entries": [ + { + "_id": "ccd7a5defd0fdeaa986a2b54642d911a", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "name": "accept", + "value": "application/json, text/plain, */*" + }, + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "user-agent", + "value": "@rockcarver/frodo-lib/4.0.0-39" + }, + { + "name": "x-forgerock-transactionid", + "value": "frodo-84acec2a-2eab-468f-b0fd-23c1e97a2333" + }, + { + "name": "accept-api-version", + "value": "resource=1.1" + }, + { + "name": "accept-encoding", + "value": "gzip, compress, deflate, br" + }, + { + "name": "host", + "value": "openam-frodo-dev.forgeblocks.com" + } + ], + "headersSize": 398, + "httpVersion": "HTTP/1.1", + "method": "GET", + "queryString": [], + "url": "https://openam-trivir-fairfax.forgeblocks.com/am/json/serverinfo/*" + }, + "response": { + "bodySize": 614, + "content": { + "mimeType": "application/json;charset=UTF-8", + "size": 614, + "text": "{\"_id\":\"*\",\"_rev\":\"959929574\",\"domains\":[],\"protectedUserAttributes\":[\"telephoneNumber\",\"mail\"],\"cookieName\":\"311468432e97f1f\",\"secureCookie\":true,\"forgotPassword\":\"false\",\"forgotUsername\":\"false\",\"kbaEnabled\":\"false\",\"selfRegistration\":\"false\",\"lang\":\"en-US\",\"successfulUserRegistrationDestination\":\"default\",\"socialImplementations\":[],\"referralsEnabled\":\"false\",\"zeroPageLogin\":{\"enabled\":false,\"refererWhitelist\":[],\"allowedWithoutReferer\":true},\"realm\":\"/\",\"xuiUserSessionValidationEnabled\":true,\"fileBasedConfiguration\":true,\"userIdAttributes\":[],\"cloudOnlyFeaturesEnabled\":true,\"oauth2AIAgentsEnabled\":false}" + }, + "cookies": [], + "headers": [ + { + "name": "x-frame-options", + "value": "SAMEORIGIN" + }, + { + "name": "content-security-policy-report-only", + "value": "frame-ancestors 'self'; script-src 'self' 'unsafe-eval' 'unsafe-inline'" + }, + { + "name": "x-content-type-options", + "value": "nosniff" + }, + { + "name": "cache-control", + "value": "no-store" + }, + { + "name": "content-api-version", + "value": "resource=1.1" + }, + { + "name": "content-security-policy", + "value": "default-src 'none';frame-ancestors 'none';sandbox" + }, + { + "name": "cross-origin-opener-policy", + "value": "same-origin" + }, + { + "name": "cross-origin-resource-policy", + "value": "same-origin" + }, + { + "name": "etag", + "value": "\"959929574\"" + }, + { + "name": "expires", + "value": "0" + }, + { + "name": "pragma", + "value": "no-cache" + }, + { + "name": "content-type", + "value": "application/json;charset=UTF-8" + }, + { + "name": "content-length", + "value": "614" + }, + { + "name": "date", + "value": "Tue, 19 May 2026 20:28:09 GMT" + }, + { + "name": "x-forgerock-transactionid", + "value": "frodo-84acec2a-2eab-468f-b0fd-23c1e97a2333" + }, + { + "name": "strict-transport-security", + "value": "max-age=31536000; includeSubDomains; preload;" + }, + { + "name": "x-robots-tag", + "value": "none" + }, + { + "name": "via", + "value": "1.1 google" + }, + { + "name": "alt-svc", + "value": "h3=\":443\"; ma=2592000" + } + ], + "headersSize": 761, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2026-05-19T20:28:09.394Z", + "time": 157, + "timings": { + "blocked": -1, + "connect": -1, + "dns": -1, + "receive": 0, + "send": 0, + "ssl": -1, + "wait": 157 + } + }, + { + "_id": "6125d0328ad0dcaee55f73fd8b22ca14", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "name": "accept", + "value": "application/json, text/plain, */*" + }, + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "user-agent", + "value": "@rockcarver/frodo-lib/4.0.0-39" + }, + { + "name": "x-forgerock-transactionid", + "value": "frodo-84acec2a-2eab-468f-b0fd-23c1e97a2333" + }, + { + "name": "accept-api-version", + "value": "resource=1.0" + }, + { + "name": "authorization", + "value": "Bearer " + }, + { + "name": "accept-encoding", + "value": "gzip, compress, deflate, br" + }, + { + "name": "host", + "value": "openam-frodo-dev.forgeblocks.com" + } + ], + "headersSize": 1926, + "httpVersion": "HTTP/1.1", + "method": "GET", + "queryString": [], + "url": "https://openam-trivir-fairfax.forgeblocks.com/am/json/serverinfo/version" + }, + "response": { + "bodySize": 274, + "content": { + "mimeType": "application/json;charset=UTF-8", + "size": 274, + "text": "{\"_id\":\"version\",\"_rev\":\"194838800\",\"version\":\"9.0.0-SNAPSHOT\",\"fullVersion\":\"ForgeRock Access Management 9.0.0-SNAPSHOT Build 500b736d5354dc1171d65a84ec4230d63a5a084e (2026-April-21 11:20)\",\"revision\":\"500b736d5354dc1171d65a84ec4230d63a5a084e\",\"date\":\"2026-April-21 11:20\"}" + }, + "cookies": [], + "headers": [ + { + "name": "x-frame-options", + "value": "SAMEORIGIN" + }, + { + "name": "content-security-policy-report-only", + "value": "frame-ancestors 'self'; script-src 'self' 'unsafe-eval' 'unsafe-inline'" + }, + { + "name": "x-content-type-options", + "value": "nosniff" + }, + { + "name": "cache-control", + "value": "no-store" + }, + { + "name": "content-api-version", + "value": "resource=1.0" + }, + { + "name": "content-security-policy", + "value": "default-src 'none';frame-ancestors 'none';sandbox" + }, + { + "name": "cross-origin-opener-policy", + "value": "same-origin" + }, + { + "name": "cross-origin-resource-policy", + "value": "same-origin" + }, + { + "name": "etag", + "value": "\"194838800\"" + }, + { + "name": "expires", + "value": "0" + }, + { + "name": "pragma", + "value": "no-cache" + }, + { + "name": "content-type", + "value": "application/json;charset=UTF-8" + }, + { + "name": "content-length", + "value": "274" + }, + { + "name": "date", + "value": "Tue, 19 May 2026 20:28:09 GMT" + }, + { + "name": "x-forgerock-transactionid", + "value": "frodo-84acec2a-2eab-468f-b0fd-23c1e97a2333" + }, + { + "name": "strict-transport-security", + "value": "max-age=31536000; includeSubDomains; preload;" + }, + { + "name": "x-robots-tag", + "value": "none" + }, + { + "name": "via", + "value": "1.1 google" + }, + { + "name": "alt-svc", + "value": "h3=\":443\"; ma=2592000" + } + ], + "headersSize": 761, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2026-05-19T20:28:09.710Z", + "time": 121, + "timings": { + "blocked": -1, + "connect": -1, + "dns": -1, + "receive": 0, + "send": 0, + "ssl": -1, + "wait": 121 + } + } + ], + "pages": [], + "version": "1.2" + } +} diff --git a/test/e2e/mocks/iga_2664973160/scope-describe_2316107699/0_n_f_4242328059/environment_1072573434/recording.har b/test/e2e/mocks/iga_2664973160/scope-describe_2316107699/0_n_f_4242328059/environment_1072573434/recording.har new file mode 100644 index 000000000..f724051b1 --- /dev/null +++ b/test/e2e/mocks/iga_2664973160/scope-describe_2316107699/0_n_f_4242328059/environment_1072573434/recording.har @@ -0,0 +1,125 @@ +{ + "log": { + "_recordingName": "iga/scope-describe/0_n_f/environment", + "creator": { + "comment": "persister:fs", + "name": "Polly.JS", + "version": "6.0.6" + }, + "entries": [ + { + "_id": "ccc7ec61c2094114d7917814bb19b83b", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "name": "accept", + "value": "application/json, text/plain, */*" + }, + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "user-agent", + "value": "@rockcarver/frodo-lib/4.0.0-39" + }, + { + "name": "accept-api-version", + "value": "protocol=1.0,resource=1.0" + }, + { + "name": "authorization", + "value": "Bearer " + }, + { + "name": "accept-encoding", + "value": "gzip, compress, deflate, br" + }, + { + "name": "host", + "value": "openam-frodo-dev.forgeblocks.com" + } + ], + "headersSize": 1877, + "httpVersion": "HTTP/1.1", + "method": "GET", + "queryString": [], + "url": "https://openam-trivir-fairfax.forgeblocks.com/environment/scopes/service-accounts" + }, + "response": { + "bodySize": 1975, + "content": { + "mimeType": "application/json; charset=utf-8", + "size": 1975, + "text": "[{\"scope\":\"fr:am:*\",\"description\":\"All Access Management APIs\"},{\"scope\":\"fr:autoaccess:*\",\"description\":\"All Auto Access APIs\"},{\"scope\":\"fr:idc:analytics:*\",\"description\":\"All Analytics APIs\"},{\"scope\":\"fr:idc:certificate:*\",\"description\":\"All TLS certificate APIs\",\"childScopes\":[{\"scope\":\"fr:idc:certificate:read\",\"description\":\"Read TLS certificates\"}]},{\"scope\":\"fr:idc:content-security-policy:*\",\"description\":\"All content security policy APIs\",\"childScopes\":[{\"scope\":\"fr:idc:content-security-policy:read\",\"description\":\"Read content security policy\"}]},{\"scope\":\"fr:idc:cookie-domain:*\",\"description\":\"All cookie domain APIs\",\"childScopes\":[{\"scope\":\"fr:idc:cookie-domain:read\",\"description\":\"Read cookie domains\"}]},{\"scope\":\"fr:idc:custom-domain:*\",\"description\":\"All custom domain APIs\",\"childScopes\":[{\"scope\":\"fr:idc:custom-domain:read\",\"description\":\"Read custom domains\"}]},{\"scope\":\"fr:idc:dataset:*\",\"description\":\"All dataset deletion APIs\",\"childScopes\":[{\"scope\":\"fr:idc:dataset:read\",\"description\":\"Read dataset deletions\"}]},{\"scope\":\"fr:idc:esv:*\",\"description\":\"All ESV APIs\",\"childScopes\":[{\"scope\":\"fr:idc:esv:read\",\"description\":\"Read ESVs, excluding values of secrets\"},{\"scope\":\"fr:idc:esv:update\",\"description\":\"Create, modify, and delete ESVs\"},{\"scope\":\"fr:idc:esv:restart\",\"description\":\"Restart workloads that consume ESVs\"}]},{\"scope\":\"fr:idc:promotion:*\",\"description\":\"All configuration promotion APIs\",\"childScopes\":[{\"scope\":\"fr:idc:promotion:read\",\"description\":\"Read configuration promotion\"}]},{\"scope\":\"fr:idc:release:*\",\"description\":\"All product release APIs\",\"childScopes\":[{\"scope\":\"fr:idc:release:read\",\"description\":\"Read product release\"}]},{\"scope\":\"fr:idc:sso-cookie:*\",\"description\":\"All SSO cookie APIs\",\"childScopes\":[{\"scope\":\"fr:idc:sso-cookie:read\",\"description\":\"Read SSO cookie\"}]},{\"scope\":\"fr:idm:*\",\"description\":\"All Identity Management APIs\"},{\"scope\":\"fr:iga:*\",\"description\":\"All Identity Governance APIs\"}]" + }, + "cookies": [], + "headers": [ + { + "name": "x-frame-options", + "value": "SAMEORIGIN" + }, + { + "name": "content-type", + "value": "application/json; charset=utf-8" + }, + { + "name": "content-length", + "value": "1975" + }, + { + "name": "etag", + "value": "W/\"7b7-tIBWy/EinSCKaoNz4aU2iqiTmFc\"" + }, + { + "name": "date", + "value": "Tue, 19 May 2026 20:28:09 GMT" + }, + { + "name": "x-forgerock-transactionid", + "value": "89325e07-bd44-427f-a207-c36898aea9ad" + }, + { + "name": "strict-transport-security", + "value": "max-age=31536000; includeSubDomains; preload;" + }, + { + "name": "x-robots-tag", + "value": "none" + }, + { + "name": "via", + "value": "1.1 google" + }, + { + "name": "alt-svc", + "value": "h3=\":443\"; ma=2592000" + } + ], + "headersSize": 388, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2026-05-19T20:28:09.838Z", + "time": 125, + "timings": { + "blocked": -1, + "connect": -1, + "dns": -1, + "receive": 0, + "send": 0, + "ssl": -1, + "wait": 125 + } + } + ], + "pages": [], + "version": "1.2" + } +} diff --git a/test/e2e/mocks/iga_2664973160/scope-describe_2316107699/0_n_f_4242328059/oauth2_393036114/recording.har b/test/e2e/mocks/iga_2664973160/scope-describe_2316107699/0_n_f_4242328059/oauth2_393036114/recording.har new file mode 100644 index 000000000..d237c484b --- /dev/null +++ b/test/e2e/mocks/iga_2664973160/scope-describe_2316107699/0_n_f_4242328059/oauth2_393036114/recording.har @@ -0,0 +1,146 @@ +{ + "log": { + "_recordingName": "iga/scope-describe/0_n_f/oauth2", + "creator": { + "comment": "persister:fs", + "name": "Polly.JS", + "version": "6.0.6" + }, + "entries": [ + { + "_id": "ff75519a93ccab829f8ee8cf5e92b49f", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 1328, + "cookies": [], + "headers": [ + { + "name": "accept", + "value": "application/json, text/plain, */*" + }, + { + "name": "content-type", + "value": "application/x-www-form-urlencoded" + }, + { + "name": "user-agent", + "value": "@rockcarver/frodo-lib/4.0.0-39" + }, + { + "name": "x-forgerock-transactionid", + "value": "frodo-84acec2a-2eab-468f-b0fd-23c1e97a2333" + }, + { + "name": "accept-api-version", + "value": "protocol=2.1,resource=1.0" + }, + { + "name": "content-length", + "value": "1328" + }, + { + "name": "accept-encoding", + "value": "gzip, compress, deflate, br" + }, + { + "name": "host", + "value": "openam-frodo-dev.forgeblocks.com" + } + ], + "headersSize": 453, + "httpVersion": "HTTP/1.1", + "method": "POST", + "postData": { + "mimeType": "application/x-www-form-urlencoded", + "params": [], + "text": "assertion=&client_id=service-account&grant_type=urn:ietf:params:oauth:grant-type:jwt-bearer&scope=fr:idc:custom-domain:* fr:idc:release:* fr:idc:sso-cookie:* fr:am:* fr:idc:esv:* fr:idc:content-security-policy:* fr:iga:* fr:idc:certificate:* fr:idm:* fr:idc:analytics:* fr:idc:cookie-domain:* fr:idc:promotion:*" + }, + "queryString": [], + "url": "https://openam-trivir-fairfax.forgeblocks.com/am/oauth2/access_token" + }, + "response": { + "bodySize": 1780, + "content": { + "mimeType": "application/json;charset=UTF-8", + "size": 1780, + "text": "{\"access_token\":\"\",\"scope\":\"fr:idc:custom-domain:* fr:idc:release:* fr:idc:sso-cookie:* fr:am:* fr:idc:esv:* fr:idc:content-security-policy:* fr:iga:* fr:idc:certificate:* fr:idm:* fr:idc:analytics:* fr:idc:cookie-domain:* fr:idc:promotion:*\",\"token_type\":\"Bearer\",\"expires_in\":899}" + }, + "cookies": [], + "headers": [ + { + "name": "x-frame-options", + "value": "SAMEORIGIN" + }, + { + "name": "content-security-policy-report-only", + "value": "frame-ancestors 'self'; script-src 'self' 'unsafe-eval' 'unsafe-inline'" + }, + { + "name": "x-content-type-options", + "value": "nosniff" + }, + { + "name": "cache-control", + "value": "no-store" + }, + { + "name": "pragma", + "value": "no-cache" + }, + { + "name": "content-type", + "value": "application/json;charset=UTF-8" + }, + { + "name": "content-length", + "value": "1780" + }, + { + "name": "date", + "value": "Tue, 19 May 2026 20:28:09 GMT" + }, + { + "name": "x-forgerock-transactionid", + "value": "frodo-84acec2a-2eab-468f-b0fd-23c1e97a2333" + }, + { + "name": "strict-transport-security", + "value": "max-age=31536000; includeSubDomains; preload;" + }, + { + "name": "x-robots-tag", + "value": "none" + }, + { + "name": "via", + "value": "1.1 google" + }, + { + "name": "alt-svc", + "value": "h3=\":443\"; ma=2592000" + } + ], + "headersSize": 536, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2026-05-19T20:28:09.566Z", + "time": 137, + "timings": { + "blocked": -1, + "connect": -1, + "dns": -1, + "receive": 0, + "send": 0, + "ssl": -1, + "wait": 137 + } + } + ], + "pages": [], + "version": "1.2" + } +} diff --git a/test/e2e/mocks/iga_2664973160/scope-describe_2316107699/0_n_f_4242328059/openidm_3290118515/recording.har b/test/e2e/mocks/iga_2664973160/scope-describe_2316107699/0_n_f_4242328059/openidm_3290118515/recording.har new file mode 100644 index 000000000..1a48cd7c5 --- /dev/null +++ b/test/e2e/mocks/iga_2664973160/scope-describe_2316107699/0_n_f_4242328059/openidm_3290118515/recording.har @@ -0,0 +1,310 @@ +{ + "log": { + "_recordingName": "iga/scope-describe/0_n_f/openidm", + "creator": { + "comment": "persister:fs", + "name": "Polly.JS", + "version": "6.0.6" + }, + "entries": [ + { + "_id": "9cb8561357870863838a9948da32d1e8", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "name": "accept", + "value": "application/json, text/plain, */*" + }, + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "user-agent", + "value": "@rockcarver/frodo-lib/4.0.0-39" + }, + { + "name": "x-forgerock-transactionid", + "value": "frodo-84acec2a-2eab-468f-b0fd-23c1e97a2333" + }, + { + "name": "authorization", + "value": "Bearer " + }, + { + "name": "accept-encoding", + "value": "gzip, compress, deflate, br" + }, + { + "name": "host", + "value": "openam-frodo-dev.forgeblocks.com" + } + ], + "headersSize": 1938, + "httpVersion": "HTTP/1.1", + "method": "GET", + "queryString": [ + { + "name": "_fields", + "value": "*" + } + ], + "url": "https://openam-trivir-fairfax.forgeblocks.com/openidm/managed/svcacct/10d76629-78da-4265-868b-9a0cb68ebdb4?_fields=%2A" + }, + "response": { + "bodySize": 1401, + "content": { + "mimeType": "application/json;charset=utf-8", + "size": 1401, + "text": "{\"_id\":\"10d76629-78da-4265-868b-9a0cb68ebdb4\",\"_rev\":\"4b025e5d-c082-45f8-a3e9-0ac1db308dff-21339\",\"accountStatus\":\"active\",\"name\":\"Frodo-SA-1777919406717\",\"description\":\"dsevy@trivir.com's Frodo Service Account\",\"scopes\":[\"fr:am:*\",\"fr:idc:analytics:*\",\"fr:autoaccess:*\",\"fr:idc:certificate:*\",\"fr:idc:content-security-policy:*\",\"fr:idc:cookie-domain:*\",\"fr:idc:custom-domain:*\",\"fr:idc:dataset:*\",\"fr:idc:esv:*\",\"fr:idm:*\",\"fr:iga:*\",\"fr:idc:promotion:*\",\"fr:idc:release:*\",\"fr:idc:sso-cookie:*\"],\"jwks\":\"{\\\"keys\\\":[{\\\"kty\\\":\\\"RSA\\\",\\\"kid\\\":\\\"hshlr1hlp8bXdLNDrh3rESiHNsMS68c4XtbZX9i_Seg\\\",\\\"alg\\\":\\\"RS256\\\",\\\"e\\\":\\\"AQAB\\\",\\\"n\\\":\\\"owg6VJta_1o9VqyQk4Xs2kA_BDcyWEN1WMERqaJIFCbtecz_IMBp2G5m76dawbB9QvUsFvMqfJ2OGbaCcfC2o5lkxEu4nxdKLKYZ4-JTGsbPN6j-f9yr0LCjFMPd1BRxKQ98euSu5UZ0_gy9QN-eS4zB5zJsb8E7Y7FXsxG6vgd8dCqCSPjJeSmZhnQEeqJeysGlA5jMzQUP9Lvgm2aZp5wz7DXzF9lvsqRjm49H9wlERjy4KDmjlp5Rr3lz8ZXGgsaIdp18hUrPFKJP5qxkICfnbxdyK858A5puUypj1OAqrOtAnwjk5lMPOYzBWjWV72RPnOY3-6KAHo8uFXK3EH8AN8ErHxhpo-soV0e7-Z7gEnmt0rliY3j_-2AHA0Q5G1k52cGQ-dARGzgAQacpdnQv_pT0k83DGZPrpR6PqBRkyiJBD_PTvySZohxFgjpJfJmkYec7Pg40xri_LN1ozkLRBdQwL2zaQFYtq_VZC20a8Y7NpqpoLcvFIB9W2NS03qTokvId7gdSgdcVmpOo4n7OZZCouD6cyWyJ6Nj9uaxz-mw4Mdzhpd8cclSV_gXeWMBBoW3dZ7zzkEFMWHBT2x9S8JAZor_aaGJ2MXOoNoHRg-q9shNhQ3h7U14MXfL7I9R4ixClZMOpxILa0VT0Vzm-h685xkXwa28WLSw21QU\\\"}]}\",\"maxCachingTime\":\"15\",\"maxIdleTime\":\"15\",\"maxSessionTime\":\"15\",\"quotaLimit\":\"5\"}" + }, + "cookies": [], + "headers": [ + { + "name": "date", + "value": "Tue, 19 May 2026 20:28:09 GMT" + }, + { + "name": "vary", + "value": "Origin" + }, + { + "name": "cache-control", + "value": "no-store" + }, + { + "name": "content-security-policy", + "value": "default-src 'none';frame-ancestors 'none';sandbox" + }, + { + "name": "content-type", + "value": "application/json;charset=utf-8" + }, + { + "name": "cross-origin-opener-policy", + "value": "same-origin" + }, + { + "name": "cross-origin-resource-policy", + "value": "same-origin" + }, + { + "name": "etag", + "value": "\"4b025e5d-c082-45f8-a3e9-0ac1db308dff-21339\"" + }, + { + "name": "expires", + "value": "0" + }, + { + "name": "pragma", + "value": "no-cache" + }, + { + "name": "x-content-type-options", + "value": "nosniff" + }, + { + "name": "x-frame-options", + "value": "DENY" + }, + { + "name": "content-length", + "value": "1401" + }, + { + "name": "x-forgerock-transactionid", + "value": "frodo-84acec2a-2eab-468f-b0fd-23c1e97a2333" + }, + { + "name": "strict-transport-security", + "value": "max-age=31536000; includeSubDomains; preload;" + }, + { + "name": "x-robots-tag", + "value": "none" + }, + { + "name": "via", + "value": "1.1 google" + }, + { + "name": "alt-svc", + "value": "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" + } + ], + "headersSize": 683, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2026-05-19T20:28:09.747Z", + "time": 191, + "timings": { + "blocked": -1, + "connect": -1, + "dns": -1, + "receive": 0, + "send": 0, + "ssl": -1, + "wait": 191 + } + }, + { + "_id": "9cb8561357870863838a9948da32d1e8", + "_order": 1, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "name": "accept", + "value": "application/json, text/plain, */*" + }, + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "user-agent", + "value": "@rockcarver/frodo-lib/4.0.0-39" + }, + { + "name": "x-forgerock-transactionid", + "value": "frodo-84acec2a-2eab-468f-b0fd-23c1e97a2333" + }, + { + "name": "authorization", + "value": "Bearer " + }, + { + "name": "accept-encoding", + "value": "gzip, compress, deflate, br" + }, + { + "name": "host", + "value": "openam-frodo-dev.forgeblocks.com" + } + ], + "headersSize": 1938, + "httpVersion": "HTTP/1.1", + "method": "GET", + "queryString": [ + { + "name": "_fields", + "value": "*" + } + ], + "url": "https://openam-trivir-fairfax.forgeblocks.com/openidm/managed/svcacct/10d76629-78da-4265-868b-9a0cb68ebdb4?_fields=%2A" + }, + "response": { + "bodySize": 1401, + "content": { + "mimeType": "application/json;charset=utf-8", + "size": 1401, + "text": "{\"_id\":\"10d76629-78da-4265-868b-9a0cb68ebdb4\",\"_rev\":\"4b025e5d-c082-45f8-a3e9-0ac1db308dff-21339\",\"accountStatus\":\"active\",\"name\":\"Frodo-SA-1777919406717\",\"description\":\"dsevy@trivir.com's Frodo Service Account\",\"scopes\":[\"fr:am:*\",\"fr:idc:analytics:*\",\"fr:autoaccess:*\",\"fr:idc:certificate:*\",\"fr:idc:content-security-policy:*\",\"fr:idc:cookie-domain:*\",\"fr:idc:custom-domain:*\",\"fr:idc:dataset:*\",\"fr:idc:esv:*\",\"fr:idm:*\",\"fr:iga:*\",\"fr:idc:promotion:*\",\"fr:idc:release:*\",\"fr:idc:sso-cookie:*\"],\"jwks\":\"{\\\"keys\\\":[{\\\"kty\\\":\\\"RSA\\\",\\\"kid\\\":\\\"hshlr1hlp8bXdLNDrh3rESiHNsMS68c4XtbZX9i_Seg\\\",\\\"alg\\\":\\\"RS256\\\",\\\"e\\\":\\\"AQAB\\\",\\\"n\\\":\\\"owg6VJta_1o9VqyQk4Xs2kA_BDcyWEN1WMERqaJIFCbtecz_IMBp2G5m76dawbB9QvUsFvMqfJ2OGbaCcfC2o5lkxEu4nxdKLKYZ4-JTGsbPN6j-f9yr0LCjFMPd1BRxKQ98euSu5UZ0_gy9QN-eS4zB5zJsb8E7Y7FXsxG6vgd8dCqCSPjJeSmZhnQEeqJeysGlA5jMzQUP9Lvgm2aZp5wz7DXzF9lvsqRjm49H9wlERjy4KDmjlp5Rr3lz8ZXGgsaIdp18hUrPFKJP5qxkICfnbxdyK858A5puUypj1OAqrOtAnwjk5lMPOYzBWjWV72RPnOY3-6KAHo8uFXK3EH8AN8ErHxhpo-soV0e7-Z7gEnmt0rliY3j_-2AHA0Q5G1k52cGQ-dARGzgAQacpdnQv_pT0k83DGZPrpR6PqBRkyiJBD_PTvySZohxFgjpJfJmkYec7Pg40xri_LN1ozkLRBdQwL2zaQFYtq_VZC20a8Y7NpqpoLcvFIB9W2NS03qTokvId7gdSgdcVmpOo4n7OZZCouD6cyWyJ6Nj9uaxz-mw4Mdzhpd8cclSV_gXeWMBBoW3dZ7zzkEFMWHBT2x9S8JAZor_aaGJ2MXOoNoHRg-q9shNhQ3h7U14MXfL7I9R4ixClZMOpxILa0VT0Vzm-h685xkXwa28WLSw21QU\\\"}]}\",\"maxCachingTime\":\"15\",\"maxIdleTime\":\"15\",\"maxSessionTime\":\"15\",\"quotaLimit\":\"5\"}" + }, + "cookies": [], + "headers": [ + { + "name": "date", + "value": "Tue, 19 May 2026 20:28:10 GMT" + }, + { + "name": "vary", + "value": "Origin" + }, + { + "name": "cache-control", + "value": "no-store" + }, + { + "name": "content-security-policy", + "value": "default-src 'none';frame-ancestors 'none';sandbox" + }, + { + "name": "content-type", + "value": "application/json;charset=utf-8" + }, + { + "name": "cross-origin-opener-policy", + "value": "same-origin" + }, + { + "name": "cross-origin-resource-policy", + "value": "same-origin" + }, + { + "name": "etag", + "value": "\"4b025e5d-c082-45f8-a3e9-0ac1db308dff-21339\"" + }, + { + "name": "expires", + "value": "0" + }, + { + "name": "pragma", + "value": "no-cache" + }, + { + "name": "x-content-type-options", + "value": "nosniff" + }, + { + "name": "x-frame-options", + "value": "DENY" + }, + { + "name": "content-length", + "value": "1401" + }, + { + "name": "x-forgerock-transactionid", + "value": "frodo-84acec2a-2eab-468f-b0fd-23c1e97a2333" + }, + { + "name": "strict-transport-security", + "value": "max-age=31536000; includeSubDomains; preload;" + }, + { + "name": "x-robots-tag", + "value": "none" + }, + { + "name": "via", + "value": "1.1 google" + }, + { + "name": "alt-svc", + "value": "h3=\":443\"; ma=2592000" + } + ], + "headersSize": 658, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2026-05-19T20:28:09.981Z", + "time": 101, + "timings": { + "blocked": -1, + "connect": -1, + "dns": -1, + "receive": 0, + "send": 0, + "ssl": -1, + "wait": 101 + } + } + ], + "pages": [], + "version": "1.2" + } +} diff --git a/test/e2e/mocks/iga_2664973160/scope-describe_2316107699/0_name_1908898899/am_1076162899/recording.har b/test/e2e/mocks/iga_2664973160/scope-describe_2316107699/0_name_1908898899/am_1076162899/recording.har new file mode 100644 index 000000000..363837788 --- /dev/null +++ b/test/e2e/mocks/iga_2664973160/scope-describe_2316107699/0_name_1908898899/am_1076162899/recording.har @@ -0,0 +1,312 @@ +{ + "log": { + "_recordingName": "iga/scope-describe/0_name/am", + "creator": { + "comment": "persister:fs", + "name": "Polly.JS", + "version": "6.0.6" + }, + "entries": [ + { + "_id": "ccd7a5defd0fdeaa986a2b54642d911a", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "name": "accept", + "value": "application/json, text/plain, */*" + }, + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "user-agent", + "value": "@rockcarver/frodo-lib/4.0.0-39" + }, + { + "name": "x-forgerock-transactionid", + "value": "frodo-058372c7-6aa9-421e-998e-0894e82b9b4a" + }, + { + "name": "accept-api-version", + "value": "resource=1.1" + }, + { + "name": "accept-encoding", + "value": "gzip, compress, deflate, br" + }, + { + "name": "host", + "value": "openam-frodo-dev.forgeblocks.com" + } + ], + "headersSize": 398, + "httpVersion": "HTTP/1.1", + "method": "GET", + "queryString": [], + "url": "https://openam-trivir-fairfax.forgeblocks.com/am/json/serverinfo/*" + }, + "response": { + "bodySize": 614, + "content": { + "mimeType": "application/json;charset=UTF-8", + "size": 614, + "text": "{\"_id\":\"*\",\"_rev\":\"959929574\",\"domains\":[],\"protectedUserAttributes\":[\"telephoneNumber\",\"mail\"],\"cookieName\":\"311468432e97f1f\",\"secureCookie\":true,\"forgotPassword\":\"false\",\"forgotUsername\":\"false\",\"kbaEnabled\":\"false\",\"selfRegistration\":\"false\",\"lang\":\"en-US\",\"successfulUserRegistrationDestination\":\"default\",\"socialImplementations\":[],\"referralsEnabled\":\"false\",\"zeroPageLogin\":{\"enabled\":false,\"refererWhitelist\":[],\"allowedWithoutReferer\":true},\"realm\":\"/\",\"xuiUserSessionValidationEnabled\":true,\"fileBasedConfiguration\":true,\"userIdAttributes\":[],\"cloudOnlyFeaturesEnabled\":true,\"oauth2AIAgentsEnabled\":false}" + }, + "cookies": [], + "headers": [ + { + "name": "x-frame-options", + "value": "SAMEORIGIN" + }, + { + "name": "content-security-policy-report-only", + "value": "frame-ancestors 'self'; script-src 'self' 'unsafe-eval' 'unsafe-inline'" + }, + { + "name": "x-content-type-options", + "value": "nosniff" + }, + { + "name": "cache-control", + "value": "no-store" + }, + { + "name": "content-api-version", + "value": "resource=1.1" + }, + { + "name": "content-security-policy", + "value": "default-src 'none';frame-ancestors 'none';sandbox" + }, + { + "name": "cross-origin-opener-policy", + "value": "same-origin" + }, + { + "name": "cross-origin-resource-policy", + "value": "same-origin" + }, + { + "name": "etag", + "value": "\"959929574\"" + }, + { + "name": "expires", + "value": "0" + }, + { + "name": "pragma", + "value": "no-cache" + }, + { + "name": "content-type", + "value": "application/json;charset=UTF-8" + }, + { + "name": "content-length", + "value": "614" + }, + { + "name": "date", + "value": "Tue, 19 May 2026 20:28:38 GMT" + }, + { + "name": "x-forgerock-transactionid", + "value": "frodo-058372c7-6aa9-421e-998e-0894e82b9b4a" + }, + { + "name": "strict-transport-security", + "value": "max-age=31536000; includeSubDomains; preload;" + }, + { + "name": "x-robots-tag", + "value": "none" + }, + { + "name": "via", + "value": "1.1 google" + }, + { + "name": "alt-svc", + "value": "h3=\":443\"; ma=2592000" + } + ], + "headersSize": 761, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2026-05-19T20:28:37.918Z", + "time": 157, + "timings": { + "blocked": -1, + "connect": -1, + "dns": -1, + "receive": 0, + "send": 0, + "ssl": -1, + "wait": 157 + } + }, + { + "_id": "6125d0328ad0dcaee55f73fd8b22ca14", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "name": "accept", + "value": "application/json, text/plain, */*" + }, + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "user-agent", + "value": "@rockcarver/frodo-lib/4.0.0-39" + }, + { + "name": "x-forgerock-transactionid", + "value": "frodo-058372c7-6aa9-421e-998e-0894e82b9b4a" + }, + { + "name": "accept-api-version", + "value": "resource=1.0" + }, + { + "name": "authorization", + "value": "Bearer " + }, + { + "name": "accept-encoding", + "value": "gzip, compress, deflate, br" + }, + { + "name": "host", + "value": "openam-frodo-dev.forgeblocks.com" + } + ], + "headersSize": 1926, + "httpVersion": "HTTP/1.1", + "method": "GET", + "queryString": [], + "url": "https://openam-trivir-fairfax.forgeblocks.com/am/json/serverinfo/version" + }, + "response": { + "bodySize": 274, + "content": { + "mimeType": "application/json;charset=UTF-8", + "size": 274, + "text": "{\"_id\":\"version\",\"_rev\":\"194838800\",\"version\":\"9.0.0-SNAPSHOT\",\"fullVersion\":\"ForgeRock Access Management 9.0.0-SNAPSHOT Build 500b736d5354dc1171d65a84ec4230d63a5a084e (2026-April-21 11:20)\",\"revision\":\"500b736d5354dc1171d65a84ec4230d63a5a084e\",\"date\":\"2026-April-21 11:20\"}" + }, + "cookies": [], + "headers": [ + { + "name": "x-frame-options", + "value": "SAMEORIGIN" + }, + { + "name": "content-security-policy-report-only", + "value": "frame-ancestors 'self'; script-src 'self' 'unsafe-eval' 'unsafe-inline'" + }, + { + "name": "x-content-type-options", + "value": "nosniff" + }, + { + "name": "cache-control", + "value": "no-store" + }, + { + "name": "content-api-version", + "value": "resource=1.0" + }, + { + "name": "content-security-policy", + "value": "default-src 'none';frame-ancestors 'none';sandbox" + }, + { + "name": "cross-origin-opener-policy", + "value": "same-origin" + }, + { + "name": "cross-origin-resource-policy", + "value": "same-origin" + }, + { + "name": "etag", + "value": "\"194838800\"" + }, + { + "name": "expires", + "value": "0" + }, + { + "name": "pragma", + "value": "no-cache" + }, + { + "name": "content-type", + "value": "application/json;charset=UTF-8" + }, + { + "name": "content-length", + "value": "274" + }, + { + "name": "date", + "value": "Tue, 19 May 2026 20:28:38 GMT" + }, + { + "name": "x-forgerock-transactionid", + "value": "frodo-058372c7-6aa9-421e-998e-0894e82b9b4a" + }, + { + "name": "strict-transport-security", + "value": "max-age=31536000; includeSubDomains; preload;" + }, + { + "name": "x-robots-tag", + "value": "none" + }, + { + "name": "via", + "value": "1.1 google" + }, + { + "name": "alt-svc", + "value": "h3=\":443\"; ma=2592000" + } + ], + "headersSize": 761, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2026-05-19T20:28:38.250Z", + "time": 108, + "timings": { + "blocked": -1, + "connect": -1, + "dns": -1, + "receive": 0, + "send": 0, + "ssl": -1, + "wait": 108 + } + } + ], + "pages": [], + "version": "1.2" + } +} diff --git a/test/e2e/mocks/iga_2664973160/scope-describe_2316107699/0_name_1908898899/environment_1072573434/recording.har b/test/e2e/mocks/iga_2664973160/scope-describe_2316107699/0_name_1908898899/environment_1072573434/recording.har new file mode 100644 index 000000000..5c9808ac6 --- /dev/null +++ b/test/e2e/mocks/iga_2664973160/scope-describe_2316107699/0_name_1908898899/environment_1072573434/recording.har @@ -0,0 +1,125 @@ +{ + "log": { + "_recordingName": "iga/scope-describe/0_name/environment", + "creator": { + "comment": "persister:fs", + "name": "Polly.JS", + "version": "6.0.6" + }, + "entries": [ + { + "_id": "ccc7ec61c2094114d7917814bb19b83b", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "name": "accept", + "value": "application/json, text/plain, */*" + }, + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "user-agent", + "value": "@rockcarver/frodo-lib/4.0.0-39" + }, + { + "name": "accept-api-version", + "value": "protocol=1.0,resource=1.0" + }, + { + "name": "authorization", + "value": "Bearer " + }, + { + "name": "accept-encoding", + "value": "gzip, compress, deflate, br" + }, + { + "name": "host", + "value": "openam-frodo-dev.forgeblocks.com" + } + ], + "headersSize": 1877, + "httpVersion": "HTTP/1.1", + "method": "GET", + "queryString": [], + "url": "https://openam-trivir-fairfax.forgeblocks.com/environment/scopes/service-accounts" + }, + "response": { + "bodySize": 1975, + "content": { + "mimeType": "application/json; charset=utf-8", + "size": 1975, + "text": "[{\"scope\":\"fr:am:*\",\"description\":\"All Access Management APIs\"},{\"scope\":\"fr:autoaccess:*\",\"description\":\"All Auto Access APIs\"},{\"scope\":\"fr:idc:analytics:*\",\"description\":\"All Analytics APIs\"},{\"scope\":\"fr:idc:certificate:*\",\"description\":\"All TLS certificate APIs\",\"childScopes\":[{\"scope\":\"fr:idc:certificate:read\",\"description\":\"Read TLS certificates\"}]},{\"scope\":\"fr:idc:content-security-policy:*\",\"description\":\"All content security policy APIs\",\"childScopes\":[{\"scope\":\"fr:idc:content-security-policy:read\",\"description\":\"Read content security policy\"}]},{\"scope\":\"fr:idc:cookie-domain:*\",\"description\":\"All cookie domain APIs\",\"childScopes\":[{\"scope\":\"fr:idc:cookie-domain:read\",\"description\":\"Read cookie domains\"}]},{\"scope\":\"fr:idc:custom-domain:*\",\"description\":\"All custom domain APIs\",\"childScopes\":[{\"scope\":\"fr:idc:custom-domain:read\",\"description\":\"Read custom domains\"}]},{\"scope\":\"fr:idc:dataset:*\",\"description\":\"All dataset deletion APIs\",\"childScopes\":[{\"scope\":\"fr:idc:dataset:read\",\"description\":\"Read dataset deletions\"}]},{\"scope\":\"fr:idc:esv:*\",\"description\":\"All ESV APIs\",\"childScopes\":[{\"scope\":\"fr:idc:esv:read\",\"description\":\"Read ESVs, excluding values of secrets\"},{\"scope\":\"fr:idc:esv:update\",\"description\":\"Create, modify, and delete ESVs\"},{\"scope\":\"fr:idc:esv:restart\",\"description\":\"Restart workloads that consume ESVs\"}]},{\"scope\":\"fr:idc:promotion:*\",\"description\":\"All configuration promotion APIs\",\"childScopes\":[{\"scope\":\"fr:idc:promotion:read\",\"description\":\"Read configuration promotion\"}]},{\"scope\":\"fr:idc:release:*\",\"description\":\"All product release APIs\",\"childScopes\":[{\"scope\":\"fr:idc:release:read\",\"description\":\"Read product release\"}]},{\"scope\":\"fr:idc:sso-cookie:*\",\"description\":\"All SSO cookie APIs\",\"childScopes\":[{\"scope\":\"fr:idc:sso-cookie:read\",\"description\":\"Read SSO cookie\"}]},{\"scope\":\"fr:idm:*\",\"description\":\"All Identity Management APIs\"},{\"scope\":\"fr:iga:*\",\"description\":\"All Identity Governance APIs\"}]" + }, + "cookies": [], + "headers": [ + { + "name": "x-frame-options", + "value": "SAMEORIGIN" + }, + { + "name": "content-type", + "value": "application/json; charset=utf-8" + }, + { + "name": "content-length", + "value": "1975" + }, + { + "name": "etag", + "value": "W/\"7b7-tIBWy/EinSCKaoNz4aU2iqiTmFc\"" + }, + { + "name": "date", + "value": "Tue, 19 May 2026 20:28:38 GMT" + }, + { + "name": "x-forgerock-transactionid", + "value": "94a87fdc-a183-42dc-9395-f2f9822f914e" + }, + { + "name": "strict-transport-security", + "value": "max-age=31536000; includeSubDomains; preload;" + }, + { + "name": "x-robots-tag", + "value": "none" + }, + { + "name": "via", + "value": "1.1 google" + }, + { + "name": "alt-svc", + "value": "h3=\":443\"; ma=2592000" + } + ], + "headersSize": 388, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2026-05-19T20:28:38.364Z", + "time": 104, + "timings": { + "blocked": -1, + "connect": -1, + "dns": -1, + "receive": 0, + "send": 0, + "ssl": -1, + "wait": 104 + } + } + ], + "pages": [], + "version": "1.2" + } +} diff --git a/test/e2e/mocks/iga_2664973160/scope-describe_2316107699/0_name_1908898899/iga_2664973160/recording.har b/test/e2e/mocks/iga_2664973160/scope-describe_2316107699/0_name_1908898899/iga_2664973160/recording.har new file mode 100644 index 000000000..991469682 --- /dev/null +++ b/test/e2e/mocks/iga_2664973160/scope-describe_2316107699/0_name_1908898899/iga_2664973160/recording.har @@ -0,0 +1,147 @@ +{ + "log": { + "_recordingName": "iga/scope-describe/0_name/iga", + "creator": { + "comment": "persister:fs", + "name": "Polly.JS", + "version": "6.0.6" + }, + "entries": [ + { + "_id": "af55958a3898b129bc68978def6db818", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "name": "accept", + "value": "application/json, text/plain, */*" + }, + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "user-agent", + "value": "@rockcarver/frodo-lib/4.0.0-39" + }, + { + "name": "authorization", + "value": "Bearer " + }, + { + "name": "accept-encoding", + "value": "gzip, compress, deflate, br" + }, + { + "name": "host", + "value": "openam-frodo-dev.forgeblocks.com" + } + ], + "headersSize": 1871, + "httpVersion": "HTTP/1.1", + "method": "GET", + "queryString": [ + { + "name": "_queryFilter", + "value": "true" + }, + { + "name": "_pageSize", + "value": "10000" + }, + { + "name": "_pagedResultsOffset", + "value": "0" + } + ], + "url": "https://openam-trivir-fairfax.forgeblocks.com/iga/governance/scope?_queryFilter=true&_pageSize=10000&_pagedResultsOffset=0" + }, + "response": { + "bodySize": 2027, + "content": { + "encoding": "base64", + "mimeType": "application/json; charset=utf-8", + "size": 2027, + "text": "[\"G0YbAORaavX6qvp1Qa0iRP0upOhC0Iy58yAv4PFOufTzc633Cx08tW1/uDeieJz8vf2PuSbTxkXwknWXMItnKeyuNTIhkgsme90H9Y35pYSVwZV2l3nAYbLmgvWvB6QN5Rt7HWWvsMKgPqYe9ytNeW9TGf/CuNcRSp1yuQxqMENJsIIIhmcnJIbAJSquAnorFIbkNXnGVEoWZqjhmWCFtFPHug+Mex2hVBzUB8zQ91uL9NFeUxllr7A+4NapwfqAXC6DGqwP2Busfz2g7uMU9zpCqR3WB5R66qOV+gQro2CJZbzCDPu6418v84BjJD3wAiv8MsIZjuP455hh/3dHhRVeBBzHDH2EceuwQoijvBDMMEI7AlZJCQ99zHBq9AIrn+GZRkhhBFgfIKFL+zgMghUEEwaZRu5/FmwVfOVyUV4bJpjVf8IMm3pXxXKT2nvn3Z9wHLO8kCTMQmYjhWIJBRMWlckRN0eE3lilN5JWBkdcw0tUKbnD+ijPBD6po4zLQSlkh3W0G80VK+z1xXVeCt0/a6GOHp2tk/8v4pMlIHu2g0QXindzL4Xuv3RqH8RIPT1PftwvJLtJNp4vi8hmIbnVwDFrWPdDTfD2f+4jDPq+7S+lRtK1fLD+jrzIeOWtNwMJSUV0/9ZCKuIptFLAboOvgWrqp3sZZ1gf0G85l7cWltbhmOGweVGzoZWqAn6qNcT2yBuVZplenOVCO+UUIZauWy5sMAu92exNZmg3k1BFltFZJnEzgTHJiEXH6feT3tzCpaNtIc1hmolRliTKQzk4d412tukI5gMr1ZwxjHDZnxZm/0XIyoX0xqDnK9AceUcDy19qyEGLdtbf27Kj4JL/tkR4i1fXCv3afqHFOMgGkrrQoqeS8qHgNR4YWzlfpGJWOS8M8SyDS+OZDhV9MIGmhVFNfbqXcUZLK1pNfJNa4MZkP/0cHLdgNSqbknQuOx8FrUA1dbyXcUY4RhInqfPThvkPO5UEByoyAcwuXGnnBHPiHEvnnHkf1hjn0qfSpzDBS7b9zTBqp5Ri6GQKqKza0Csr0QWdbFA=\",\"UnqFVGd8CzXtz/8wBJHrFFoLrzqPOQyXYXyXv2tPYPWMyKqcyW5o7UaokgnotVEos08uKskUMTiagqiTvWc/hcuYvg7/0/RRGa925lSRiqIOU1BOjcuFK6+MZZo4ls41VzJIJ/TyTgdKHnW9+Y6oRvtsQiprFi4JLaS0mJnkqLxh6L0IKJO10jCenM40Yt/Sffrpk+2JdCZycOLk5aBVLhYrPTOCuwfi6JwZbfyDpInNwIWUNEPGOaHSQWIQxqHXTnubhBYxENqRF+ePwSjPaSM0tp58r+HSa6PsuX1RE73tbgN4oxNK0/AvDCBkRKe2SIY/YCYzwttrR6Y3/SbUWvLiIVglRaSw7hYKHmmWQJo2j+1w0BJQKBh+pFIaPLwENIaOtBWKbyj4puVmi+POeyceHEMzjGMDOWbhXbRSR0KTU0QVjEDHWEZjtJfOkVI8ksZ/6dSmrz/6ZvrZL5F0CiShul1ugkiMmMfgQ0TFY8CQhUIXMtMiKseywCpdvHVqUzg7Xc9nvIZGdeDenhBBUUQt+MrrRD+0zBftmPeca/7BsgzuvLWq48JNYSCAifv2j13l92aGIRqGKluBIbmAlJ3dNuec38YsUEIljUOwRY7Dr+y0HPSbnuQIi+Ud535VZhV2EVwrax23hGHptlFMhpTSp7p/Rv9dP8xBZ0NaMxQ+b6gcJXQ2c0xSRxc9MzYmCihD4zSGxInif8ccA9cqc4vgQgqhpX1wHE3h3nvPsT64XPZ7n86/II2oT+/gEmO/qIOeqPGJ3kzs3Wns00uh+3SCBTyTaNq3/yiObknmYIRnJnm0yVhUmnvcOPfIJZN824R23tDVr+czJrrQUxiE21oiiMRBo2P4yihLs3hMkFUudYjZkUpGQW80rBbBtVZWcKeKWOKV56MEQf/MDTIFH+RB7St6hfUvYdf5Z4bLTrPGR/utDlg5n2ec8U/6HQ==\"]" + }, + "cookies": [], + "headers": [ + { + "name": "x-powered-by", + "value": "Express" + }, + { + "name": "cache-control", + "value": "no-store" + }, + { + "name": "content-type", + "value": "application/json; charset=utf-8" + }, + { + "name": "etag", + "value": "W/\"1b47-XNnXc9MPNP1B8DNWFc5xVB0RlVc\"" + }, + { + "name": "vary", + "value": "Accept-Encoding" + }, + { + "name": "content-encoding", + "value": "br" + }, + { + "name": "date", + "value": "Tue, 19 May 2026 20:28:38 GMT" + }, + { + "name": "x-forgerock-transactionid", + "value": "4bfd4b94-1a66-465e-a27d-9af9aaf10719" + }, + { + "name": "strict-transport-security", + "value": "max-age=31536000; includeSubDomains; preload;" + }, + { + "name": "x-robots-tag", + "value": "none" + }, + { + "name": "via", + "value": "1.1 google" + }, + { + "name": "alt-svc", + "value": "h3=\":443\"; ma=2592000" + }, + { + "name": "transfer-encoding", + "value": "chunked" + } + ], + "headersSize": 459, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2026-05-19T20:28:38.583Z", + "time": 234, + "timings": { + "blocked": -1, + "connect": -1, + "dns": -1, + "receive": 0, + "send": 0, + "ssl": -1, + "wait": 234 + } + } + ], + "pages": [], + "version": "1.2" + } +} diff --git a/test/e2e/mocks/iga_2664973160/scope-describe_2316107699/0_name_1908898899/oauth2_393036114/recording.har b/test/e2e/mocks/iga_2664973160/scope-describe_2316107699/0_name_1908898899/oauth2_393036114/recording.har new file mode 100644 index 000000000..d8819fabc --- /dev/null +++ b/test/e2e/mocks/iga_2664973160/scope-describe_2316107699/0_name_1908898899/oauth2_393036114/recording.har @@ -0,0 +1,146 @@ +{ + "log": { + "_recordingName": "iga/scope-describe/0_name/oauth2", + "creator": { + "comment": "persister:fs", + "name": "Polly.JS", + "version": "6.0.6" + }, + "entries": [ + { + "_id": "ff75519a93ccab829f8ee8cf5e92b49f", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 1328, + "cookies": [], + "headers": [ + { + "name": "accept", + "value": "application/json, text/plain, */*" + }, + { + "name": "content-type", + "value": "application/x-www-form-urlencoded" + }, + { + "name": "user-agent", + "value": "@rockcarver/frodo-lib/4.0.0-39" + }, + { + "name": "x-forgerock-transactionid", + "value": "frodo-058372c7-6aa9-421e-998e-0894e82b9b4a" + }, + { + "name": "accept-api-version", + "value": "protocol=2.1,resource=1.0" + }, + { + "name": "content-length", + "value": "1328" + }, + { + "name": "accept-encoding", + "value": "gzip, compress, deflate, br" + }, + { + "name": "host", + "value": "openam-frodo-dev.forgeblocks.com" + } + ], + "headersSize": 453, + "httpVersion": "HTTP/1.1", + "method": "POST", + "postData": { + "mimeType": "application/x-www-form-urlencoded", + "params": [], + "text": "assertion=&client_id=service-account&grant_type=urn:ietf:params:oauth:grant-type:jwt-bearer&scope=fr:idc:custom-domain:* fr:idc:release:* fr:idc:sso-cookie:* fr:am:* fr:idc:esv:* fr:idc:content-security-policy:* fr:iga:* fr:idc:certificate:* fr:idm:* fr:idc:analytics:* fr:idc:cookie-domain:* fr:idc:promotion:*" + }, + "queryString": [], + "url": "https://openam-trivir-fairfax.forgeblocks.com/am/oauth2/access_token" + }, + "response": { + "bodySize": 1780, + "content": { + "mimeType": "application/json;charset=UTF-8", + "size": 1780, + "text": "{\"access_token\":\"\",\"scope\":\"fr:idc:custom-domain:* fr:idc:release:* fr:idc:sso-cookie:* fr:am:* fr:idc:esv:* fr:idc:content-security-policy:* fr:iga:* fr:idc:certificate:* fr:idm:* fr:idc:analytics:* fr:idc:cookie-domain:* fr:idc:promotion:*\",\"token_type\":\"Bearer\",\"expires_in\":899}" + }, + "cookies": [], + "headers": [ + { + "name": "x-frame-options", + "value": "SAMEORIGIN" + }, + { + "name": "content-security-policy-report-only", + "value": "frame-ancestors 'self'; script-src 'self' 'unsafe-eval' 'unsafe-inline'" + }, + { + "name": "x-content-type-options", + "value": "nosniff" + }, + { + "name": "cache-control", + "value": "no-store" + }, + { + "name": "pragma", + "value": "no-cache" + }, + { + "name": "content-type", + "value": "application/json;charset=UTF-8" + }, + { + "name": "content-length", + "value": "1780" + }, + { + "name": "date", + "value": "Tue, 19 May 2026 20:28:38 GMT" + }, + { + "name": "x-forgerock-transactionid", + "value": "frodo-058372c7-6aa9-421e-998e-0894e82b9b4a" + }, + { + "name": "strict-transport-security", + "value": "max-age=31536000; includeSubDomains; preload;" + }, + { + "name": "x-robots-tag", + "value": "none" + }, + { + "name": "via", + "value": "1.1 google" + }, + { + "name": "alt-svc", + "value": "h3=\":443\"; ma=2592000" + } + ], + "headersSize": 536, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2026-05-19T20:28:38.090Z", + "time": 154, + "timings": { + "blocked": -1, + "connect": -1, + "dns": -1, + "receive": 0, + "send": 0, + "ssl": -1, + "wait": 154 + } + } + ], + "pages": [], + "version": "1.2" + } +} diff --git a/test/e2e/mocks/iga_2664973160/scope-describe_2316107699/0_name_1908898899/openidm_3290118515/recording.har b/test/e2e/mocks/iga_2664973160/scope-describe_2316107699/0_name_1908898899/openidm_3290118515/recording.har new file mode 100644 index 000000000..6b5729142 --- /dev/null +++ b/test/e2e/mocks/iga_2664973160/scope-describe_2316107699/0_name_1908898899/openidm_3290118515/recording.har @@ -0,0 +1,310 @@ +{ + "log": { + "_recordingName": "iga/scope-describe/0_name/openidm", + "creator": { + "comment": "persister:fs", + "name": "Polly.JS", + "version": "6.0.6" + }, + "entries": [ + { + "_id": "9cb8561357870863838a9948da32d1e8", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "name": "accept", + "value": "application/json, text/plain, */*" + }, + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "user-agent", + "value": "@rockcarver/frodo-lib/4.0.0-39" + }, + { + "name": "x-forgerock-transactionid", + "value": "frodo-058372c7-6aa9-421e-998e-0894e82b9b4a" + }, + { + "name": "authorization", + "value": "Bearer " + }, + { + "name": "accept-encoding", + "value": "gzip, compress, deflate, br" + }, + { + "name": "host", + "value": "openam-frodo-dev.forgeblocks.com" + } + ], + "headersSize": 1938, + "httpVersion": "HTTP/1.1", + "method": "GET", + "queryString": [ + { + "name": "_fields", + "value": "*" + } + ], + "url": "https://openam-trivir-fairfax.forgeblocks.com/openidm/managed/svcacct/10d76629-78da-4265-868b-9a0cb68ebdb4?_fields=%2A" + }, + "response": { + "bodySize": 1401, + "content": { + "mimeType": "application/json;charset=utf-8", + "size": 1401, + "text": "{\"_id\":\"10d76629-78da-4265-868b-9a0cb68ebdb4\",\"_rev\":\"4b025e5d-c082-45f8-a3e9-0ac1db308dff-21339\",\"accountStatus\":\"active\",\"name\":\"Frodo-SA-1777919406717\",\"description\":\"dsevy@trivir.com's Frodo Service Account\",\"scopes\":[\"fr:am:*\",\"fr:idc:analytics:*\",\"fr:autoaccess:*\",\"fr:idc:certificate:*\",\"fr:idc:content-security-policy:*\",\"fr:idc:cookie-domain:*\",\"fr:idc:custom-domain:*\",\"fr:idc:dataset:*\",\"fr:idc:esv:*\",\"fr:idm:*\",\"fr:iga:*\",\"fr:idc:promotion:*\",\"fr:idc:release:*\",\"fr:idc:sso-cookie:*\"],\"jwks\":\"{\\\"keys\\\":[{\\\"kty\\\":\\\"RSA\\\",\\\"kid\\\":\\\"hshlr1hlp8bXdLNDrh3rESiHNsMS68c4XtbZX9i_Seg\\\",\\\"alg\\\":\\\"RS256\\\",\\\"e\\\":\\\"AQAB\\\",\\\"n\\\":\\\"owg6VJta_1o9VqyQk4Xs2kA_BDcyWEN1WMERqaJIFCbtecz_IMBp2G5m76dawbB9QvUsFvMqfJ2OGbaCcfC2o5lkxEu4nxdKLKYZ4-JTGsbPN6j-f9yr0LCjFMPd1BRxKQ98euSu5UZ0_gy9QN-eS4zB5zJsb8E7Y7FXsxG6vgd8dCqCSPjJeSmZhnQEeqJeysGlA5jMzQUP9Lvgm2aZp5wz7DXzF9lvsqRjm49H9wlERjy4KDmjlp5Rr3lz8ZXGgsaIdp18hUrPFKJP5qxkICfnbxdyK858A5puUypj1OAqrOtAnwjk5lMPOYzBWjWV72RPnOY3-6KAHo8uFXK3EH8AN8ErHxhpo-soV0e7-Z7gEnmt0rliY3j_-2AHA0Q5G1k52cGQ-dARGzgAQacpdnQv_pT0k83DGZPrpR6PqBRkyiJBD_PTvySZohxFgjpJfJmkYec7Pg40xri_LN1ozkLRBdQwL2zaQFYtq_VZC20a8Y7NpqpoLcvFIB9W2NS03qTokvId7gdSgdcVmpOo4n7OZZCouD6cyWyJ6Nj9uaxz-mw4Mdzhpd8cclSV_gXeWMBBoW3dZ7zzkEFMWHBT2x9S8JAZor_aaGJ2MXOoNoHRg-q9shNhQ3h7U14MXfL7I9R4ixClZMOpxILa0VT0Vzm-h685xkXwa28WLSw21QU\\\"}]}\",\"maxCachingTime\":\"15\",\"maxIdleTime\":\"15\",\"maxSessionTime\":\"15\",\"quotaLimit\":\"5\"}" + }, + "cookies": [], + "headers": [ + { + "name": "date", + "value": "Tue, 19 May 2026 20:28:38 GMT" + }, + { + "name": "vary", + "value": "Origin" + }, + { + "name": "cache-control", + "value": "no-store" + }, + { + "name": "content-security-policy", + "value": "default-src 'none';frame-ancestors 'none';sandbox" + }, + { + "name": "content-type", + "value": "application/json;charset=utf-8" + }, + { + "name": "cross-origin-opener-policy", + "value": "same-origin" + }, + { + "name": "cross-origin-resource-policy", + "value": "same-origin" + }, + { + "name": "etag", + "value": "\"4b025e5d-c082-45f8-a3e9-0ac1db308dff-21339\"" + }, + { + "name": "expires", + "value": "0" + }, + { + "name": "pragma", + "value": "no-cache" + }, + { + "name": "x-content-type-options", + "value": "nosniff" + }, + { + "name": "x-frame-options", + "value": "DENY" + }, + { + "name": "content-length", + "value": "1401" + }, + { + "name": "x-forgerock-transactionid", + "value": "frodo-058372c7-6aa9-421e-998e-0894e82b9b4a" + }, + { + "name": "strict-transport-security", + "value": "max-age=31536000; includeSubDomains; preload;" + }, + { + "name": "x-robots-tag", + "value": "none" + }, + { + "name": "via", + "value": "1.1 google" + }, + { + "name": "alt-svc", + "value": "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" + } + ], + "headersSize": 683, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2026-05-19T20:28:38.298Z", + "time": 188, + "timings": { + "blocked": -1, + "connect": -1, + "dns": -1, + "receive": 0, + "send": 0, + "ssl": -1, + "wait": 188 + } + }, + { + "_id": "9cb8561357870863838a9948da32d1e8", + "_order": 1, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "name": "accept", + "value": "application/json, text/plain, */*" + }, + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "user-agent", + "value": "@rockcarver/frodo-lib/4.0.0-39" + }, + { + "name": "x-forgerock-transactionid", + "value": "frodo-058372c7-6aa9-421e-998e-0894e82b9b4a" + }, + { + "name": "authorization", + "value": "Bearer " + }, + { + "name": "accept-encoding", + "value": "gzip, compress, deflate, br" + }, + { + "name": "host", + "value": "openam-frodo-dev.forgeblocks.com" + } + ], + "headersSize": 1938, + "httpVersion": "HTTP/1.1", + "method": "GET", + "queryString": [ + { + "name": "_fields", + "value": "*" + } + ], + "url": "https://openam-trivir-fairfax.forgeblocks.com/openidm/managed/svcacct/10d76629-78da-4265-868b-9a0cb68ebdb4?_fields=%2A" + }, + "response": { + "bodySize": 1401, + "content": { + "mimeType": "application/json;charset=utf-8", + "size": 1401, + "text": "{\"_id\":\"10d76629-78da-4265-868b-9a0cb68ebdb4\",\"_rev\":\"4b025e5d-c082-45f8-a3e9-0ac1db308dff-21339\",\"accountStatus\":\"active\",\"name\":\"Frodo-SA-1777919406717\",\"description\":\"dsevy@trivir.com's Frodo Service Account\",\"scopes\":[\"fr:am:*\",\"fr:idc:analytics:*\",\"fr:autoaccess:*\",\"fr:idc:certificate:*\",\"fr:idc:content-security-policy:*\",\"fr:idc:cookie-domain:*\",\"fr:idc:custom-domain:*\",\"fr:idc:dataset:*\",\"fr:idc:esv:*\",\"fr:idm:*\",\"fr:iga:*\",\"fr:idc:promotion:*\",\"fr:idc:release:*\",\"fr:idc:sso-cookie:*\"],\"jwks\":\"{\\\"keys\\\":[{\\\"kty\\\":\\\"RSA\\\",\\\"kid\\\":\\\"hshlr1hlp8bXdLNDrh3rESiHNsMS68c4XtbZX9i_Seg\\\",\\\"alg\\\":\\\"RS256\\\",\\\"e\\\":\\\"AQAB\\\",\\\"n\\\":\\\"owg6VJta_1o9VqyQk4Xs2kA_BDcyWEN1WMERqaJIFCbtecz_IMBp2G5m76dawbB9QvUsFvMqfJ2OGbaCcfC2o5lkxEu4nxdKLKYZ4-JTGsbPN6j-f9yr0LCjFMPd1BRxKQ98euSu5UZ0_gy9QN-eS4zB5zJsb8E7Y7FXsxG6vgd8dCqCSPjJeSmZhnQEeqJeysGlA5jMzQUP9Lvgm2aZp5wz7DXzF9lvsqRjm49H9wlERjy4KDmjlp5Rr3lz8ZXGgsaIdp18hUrPFKJP5qxkICfnbxdyK858A5puUypj1OAqrOtAnwjk5lMPOYzBWjWV72RPnOY3-6KAHo8uFXK3EH8AN8ErHxhpo-soV0e7-Z7gEnmt0rliY3j_-2AHA0Q5G1k52cGQ-dARGzgAQacpdnQv_pT0k83DGZPrpR6PqBRkyiJBD_PTvySZohxFgjpJfJmkYec7Pg40xri_LN1ozkLRBdQwL2zaQFYtq_VZC20a8Y7NpqpoLcvFIB9W2NS03qTokvId7gdSgdcVmpOo4n7OZZCouD6cyWyJ6Nj9uaxz-mw4Mdzhpd8cclSV_gXeWMBBoW3dZ7zzkEFMWHBT2x9S8JAZor_aaGJ2MXOoNoHRg-q9shNhQ3h7U14MXfL7I9R4ixClZMOpxILa0VT0Vzm-h685xkXwa28WLSw21QU\\\"}]}\",\"maxCachingTime\":\"15\",\"maxIdleTime\":\"15\",\"maxSessionTime\":\"15\",\"quotaLimit\":\"5\"}" + }, + "cookies": [], + "headers": [ + { + "name": "date", + "value": "Tue, 19 May 2026 20:28:38 GMT" + }, + { + "name": "vary", + "value": "Origin" + }, + { + "name": "cache-control", + "value": "no-store" + }, + { + "name": "content-security-policy", + "value": "default-src 'none';frame-ancestors 'none';sandbox" + }, + { + "name": "content-type", + "value": "application/json;charset=utf-8" + }, + { + "name": "cross-origin-opener-policy", + "value": "same-origin" + }, + { + "name": "cross-origin-resource-policy", + "value": "same-origin" + }, + { + "name": "etag", + "value": "\"4b025e5d-c082-45f8-a3e9-0ac1db308dff-21339\"" + }, + { + "name": "expires", + "value": "0" + }, + { + "name": "pragma", + "value": "no-cache" + }, + { + "name": "x-content-type-options", + "value": "nosniff" + }, + { + "name": "x-frame-options", + "value": "DENY" + }, + { + "name": "content-length", + "value": "1401" + }, + { + "name": "x-forgerock-transactionid", + "value": "frodo-058372c7-6aa9-421e-998e-0894e82b9b4a" + }, + { + "name": "strict-transport-security", + "value": "max-age=31536000; includeSubDomains; preload;" + }, + { + "name": "x-robots-tag", + "value": "none" + }, + { + "name": "via", + "value": "1.1 google" + }, + { + "name": "alt-svc", + "value": "h3=\":443\"; ma=2592000" + } + ], + "headersSize": 658, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2026-05-19T20:28:38.478Z", + "time": 98, + "timings": { + "blocked": -1, + "connect": -1, + "dns": -1, + "receive": 0, + "send": 0, + "ssl": -1, + "wait": 98 + } + } + ], + "pages": [], + "version": "1.2" + } +} diff --git a/test/e2e/mocks/iga_2664973160/scope-export_236648464/0_NAD_1312604927/am_1076162899/recording.har b/test/e2e/mocks/iga_2664973160/scope-export_236648464/0_NAD_1312604927/am_1076162899/recording.har new file mode 100644 index 000000000..b80f4cea5 --- /dev/null +++ b/test/e2e/mocks/iga_2664973160/scope-export_236648464/0_NAD_1312604927/am_1076162899/recording.har @@ -0,0 +1,312 @@ +{ + "log": { + "_recordingName": "iga/scope-export/0_NAD/am", + "creator": { + "comment": "persister:fs", + "name": "Polly.JS", + "version": "6.0.6" + }, + "entries": [ + { + "_id": "ccd7a5defd0fdeaa986a2b54642d911a", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "name": "accept", + "value": "application/json, text/plain, */*" + }, + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "user-agent", + "value": "@rockcarver/frodo-lib/4.0.0-39" + }, + { + "name": "x-forgerock-transactionid", + "value": "frodo-fd959317-a677-4211-a751-be3978b801e4" + }, + { + "name": "accept-api-version", + "value": "resource=1.1" + }, + { + "name": "accept-encoding", + "value": "gzip, compress, deflate, br" + }, + { + "name": "host", + "value": "openam-frodo-dev.forgeblocks.com" + } + ], + "headersSize": 398, + "httpVersion": "HTTP/1.1", + "method": "GET", + "queryString": [], + "url": "https://openam-trivir-fairfax.forgeblocks.com/am/json/serverinfo/*" + }, + "response": { + "bodySize": 614, + "content": { + "mimeType": "application/json;charset=UTF-8", + "size": 614, + "text": "{\"_id\":\"*\",\"_rev\":\"959929574\",\"domains\":[],\"protectedUserAttributes\":[\"telephoneNumber\",\"mail\"],\"cookieName\":\"311468432e97f1f\",\"secureCookie\":true,\"forgotPassword\":\"false\",\"forgotUsername\":\"false\",\"kbaEnabled\":\"false\",\"selfRegistration\":\"false\",\"lang\":\"en-US\",\"successfulUserRegistrationDestination\":\"default\",\"socialImplementations\":[],\"referralsEnabled\":\"false\",\"zeroPageLogin\":{\"enabled\":false,\"refererWhitelist\":[],\"allowedWithoutReferer\":true},\"realm\":\"/\",\"xuiUserSessionValidationEnabled\":true,\"fileBasedConfiguration\":true,\"userIdAttributes\":[],\"cloudOnlyFeaturesEnabled\":true,\"oauth2AIAgentsEnabled\":false}" + }, + "cookies": [], + "headers": [ + { + "name": "x-frame-options", + "value": "SAMEORIGIN" + }, + { + "name": "content-security-policy-report-only", + "value": "frame-ancestors 'self'; script-src 'self' 'unsafe-eval' 'unsafe-inline'" + }, + { + "name": "x-content-type-options", + "value": "nosniff" + }, + { + "name": "cache-control", + "value": "no-store" + }, + { + "name": "content-api-version", + "value": "resource=1.1" + }, + { + "name": "content-security-policy", + "value": "default-src 'none';frame-ancestors 'none';sandbox" + }, + { + "name": "cross-origin-opener-policy", + "value": "same-origin" + }, + { + "name": "cross-origin-resource-policy", + "value": "same-origin" + }, + { + "name": "etag", + "value": "\"959929574\"" + }, + { + "name": "expires", + "value": "0" + }, + { + "name": "pragma", + "value": "no-cache" + }, + { + "name": "content-type", + "value": "application/json;charset=UTF-8" + }, + { + "name": "content-length", + "value": "614" + }, + { + "name": "date", + "value": "Tue, 19 May 2026 20:27:43 GMT" + }, + { + "name": "x-forgerock-transactionid", + "value": "frodo-fd959317-a677-4211-a751-be3978b801e4" + }, + { + "name": "strict-transport-security", + "value": "max-age=31536000; includeSubDomains; preload;" + }, + { + "name": "x-robots-tag", + "value": "none" + }, + { + "name": "via", + "value": "1.1 google" + }, + { + "name": "alt-svc", + "value": "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" + } + ], + "headersSize": 786, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2026-05-19T20:27:43.321Z", + "time": 171, + "timings": { + "blocked": -1, + "connect": -1, + "dns": -1, + "receive": 0, + "send": 0, + "ssl": -1, + "wait": 171 + } + }, + { + "_id": "6125d0328ad0dcaee55f73fd8b22ca14", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "name": "accept", + "value": "application/json, text/plain, */*" + }, + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "user-agent", + "value": "@rockcarver/frodo-lib/4.0.0-39" + }, + { + "name": "x-forgerock-transactionid", + "value": "frodo-fd959317-a677-4211-a751-be3978b801e4" + }, + { + "name": "accept-api-version", + "value": "resource=1.0" + }, + { + "name": "authorization", + "value": "Bearer " + }, + { + "name": "accept-encoding", + "value": "gzip, compress, deflate, br" + }, + { + "name": "host", + "value": "openam-frodo-dev.forgeblocks.com" + } + ], + "headersSize": 1926, + "httpVersion": "HTTP/1.1", + "method": "GET", + "queryString": [], + "url": "https://openam-trivir-fairfax.forgeblocks.com/am/json/serverinfo/version" + }, + "response": { + "bodySize": 274, + "content": { + "mimeType": "application/json;charset=UTF-8", + "size": 274, + "text": "{\"_id\":\"version\",\"_rev\":\"194838800\",\"version\":\"9.0.0-SNAPSHOT\",\"fullVersion\":\"ForgeRock Access Management 9.0.0-SNAPSHOT Build 500b736d5354dc1171d65a84ec4230d63a5a084e (2026-April-21 11:20)\",\"revision\":\"500b736d5354dc1171d65a84ec4230d63a5a084e\",\"date\":\"2026-April-21 11:20\"}" + }, + "cookies": [], + "headers": [ + { + "name": "x-frame-options", + "value": "SAMEORIGIN" + }, + { + "name": "content-security-policy-report-only", + "value": "frame-ancestors 'self'; script-src 'self' 'unsafe-eval' 'unsafe-inline'" + }, + { + "name": "x-content-type-options", + "value": "nosniff" + }, + { + "name": "cache-control", + "value": "no-store" + }, + { + "name": "content-api-version", + "value": "resource=1.0" + }, + { + "name": "content-security-policy", + "value": "default-src 'none';frame-ancestors 'none';sandbox" + }, + { + "name": "cross-origin-opener-policy", + "value": "same-origin" + }, + { + "name": "cross-origin-resource-policy", + "value": "same-origin" + }, + { + "name": "etag", + "value": "\"194838800\"" + }, + { + "name": "expires", + "value": "0" + }, + { + "name": "pragma", + "value": "no-cache" + }, + { + "name": "content-type", + "value": "application/json;charset=UTF-8" + }, + { + "name": "content-length", + "value": "274" + }, + { + "name": "date", + "value": "Tue, 19 May 2026 20:27:43 GMT" + }, + { + "name": "x-forgerock-transactionid", + "value": "frodo-fd959317-a677-4211-a751-be3978b801e4" + }, + { + "name": "strict-transport-security", + "value": "max-age=31536000; includeSubDomains; preload;" + }, + { + "name": "x-robots-tag", + "value": "none" + }, + { + "name": "via", + "value": "1.1 google" + }, + { + "name": "alt-svc", + "value": "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" + } + ], + "headersSize": 786, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2026-05-19T20:27:43.650Z", + "time": 110, + "timings": { + "blocked": -1, + "connect": -1, + "dns": -1, + "receive": 0, + "send": 0, + "ssl": -1, + "wait": 110 + } + } + ], + "pages": [], + "version": "1.2" + } +} diff --git a/test/e2e/mocks/iga_2664973160/scope-export_236648464/0_NAD_1312604927/environment_1072573434/recording.har b/test/e2e/mocks/iga_2664973160/scope-export_236648464/0_NAD_1312604927/environment_1072573434/recording.har new file mode 100644 index 000000000..2a9619858 --- /dev/null +++ b/test/e2e/mocks/iga_2664973160/scope-export_236648464/0_NAD_1312604927/environment_1072573434/recording.har @@ -0,0 +1,125 @@ +{ + "log": { + "_recordingName": "iga/scope-export/0_NAD/environment", + "creator": { + "comment": "persister:fs", + "name": "Polly.JS", + "version": "6.0.6" + }, + "entries": [ + { + "_id": "ccc7ec61c2094114d7917814bb19b83b", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "name": "accept", + "value": "application/json, text/plain, */*" + }, + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "user-agent", + "value": "@rockcarver/frodo-lib/4.0.0-39" + }, + { + "name": "accept-api-version", + "value": "protocol=1.0,resource=1.0" + }, + { + "name": "authorization", + "value": "Bearer " + }, + { + "name": "accept-encoding", + "value": "gzip, compress, deflate, br" + }, + { + "name": "host", + "value": "openam-frodo-dev.forgeblocks.com" + } + ], + "headersSize": 1877, + "httpVersion": "HTTP/1.1", + "method": "GET", + "queryString": [], + "url": "https://openam-trivir-fairfax.forgeblocks.com/environment/scopes/service-accounts" + }, + "response": { + "bodySize": 1975, + "content": { + "mimeType": "application/json; charset=utf-8", + "size": 1975, + "text": "[{\"scope\":\"fr:am:*\",\"description\":\"All Access Management APIs\"},{\"scope\":\"fr:autoaccess:*\",\"description\":\"All Auto Access APIs\"},{\"scope\":\"fr:idc:analytics:*\",\"description\":\"All Analytics APIs\"},{\"scope\":\"fr:idc:certificate:*\",\"description\":\"All TLS certificate APIs\",\"childScopes\":[{\"scope\":\"fr:idc:certificate:read\",\"description\":\"Read TLS certificates\"}]},{\"scope\":\"fr:idc:content-security-policy:*\",\"description\":\"All content security policy APIs\",\"childScopes\":[{\"scope\":\"fr:idc:content-security-policy:read\",\"description\":\"Read content security policy\"}]},{\"scope\":\"fr:idc:cookie-domain:*\",\"description\":\"All cookie domain APIs\",\"childScopes\":[{\"scope\":\"fr:idc:cookie-domain:read\",\"description\":\"Read cookie domains\"}]},{\"scope\":\"fr:idc:custom-domain:*\",\"description\":\"All custom domain APIs\",\"childScopes\":[{\"scope\":\"fr:idc:custom-domain:read\",\"description\":\"Read custom domains\"}]},{\"scope\":\"fr:idc:dataset:*\",\"description\":\"All dataset deletion APIs\",\"childScopes\":[{\"scope\":\"fr:idc:dataset:read\",\"description\":\"Read dataset deletions\"}]},{\"scope\":\"fr:idc:esv:*\",\"description\":\"All ESV APIs\",\"childScopes\":[{\"scope\":\"fr:idc:esv:read\",\"description\":\"Read ESVs, excluding values of secrets\"},{\"scope\":\"fr:idc:esv:update\",\"description\":\"Create, modify, and delete ESVs\"},{\"scope\":\"fr:idc:esv:restart\",\"description\":\"Restart workloads that consume ESVs\"}]},{\"scope\":\"fr:idc:promotion:*\",\"description\":\"All configuration promotion APIs\",\"childScopes\":[{\"scope\":\"fr:idc:promotion:read\",\"description\":\"Read configuration promotion\"}]},{\"scope\":\"fr:idc:release:*\",\"description\":\"All product release APIs\",\"childScopes\":[{\"scope\":\"fr:idc:release:read\",\"description\":\"Read product release\"}]},{\"scope\":\"fr:idc:sso-cookie:*\",\"description\":\"All SSO cookie APIs\",\"childScopes\":[{\"scope\":\"fr:idc:sso-cookie:read\",\"description\":\"Read SSO cookie\"}]},{\"scope\":\"fr:idm:*\",\"description\":\"All Identity Management APIs\"},{\"scope\":\"fr:iga:*\",\"description\":\"All Identity Governance APIs\"}]" + }, + "cookies": [], + "headers": [ + { + "name": "x-frame-options", + "value": "SAMEORIGIN" + }, + { + "name": "content-type", + "value": "application/json; charset=utf-8" + }, + { + "name": "content-length", + "value": "1975" + }, + { + "name": "etag", + "value": "W/\"7b7-tIBWy/EinSCKaoNz4aU2iqiTmFc\"" + }, + { + "name": "date", + "value": "Tue, 19 May 2026 20:27:43 GMT" + }, + { + "name": "x-forgerock-transactionid", + "value": "d15379af-6f18-46c7-99b4-e5630745ff8a" + }, + { + "name": "strict-transport-security", + "value": "max-age=31536000; includeSubDomains; preload;" + }, + { + "name": "x-robots-tag", + "value": "none" + }, + { + "name": "via", + "value": "1.1 google" + }, + { + "name": "alt-svc", + "value": "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" + } + ], + "headersSize": 413, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2026-05-19T20:27:43.771Z", + "time": 105, + "timings": { + "blocked": -1, + "connect": -1, + "dns": -1, + "receive": 0, + "send": 0, + "ssl": -1, + "wait": 105 + } + } + ], + "pages": [], + "version": "1.2" + } +} diff --git a/test/e2e/mocks/iga_2664973160/scope-export_236648464/0_NAD_1312604927/iga_2664973160/recording.har b/test/e2e/mocks/iga_2664973160/scope-export_236648464/0_NAD_1312604927/iga_2664973160/recording.har new file mode 100644 index 000000000..e1c74c9e3 --- /dev/null +++ b/test/e2e/mocks/iga_2664973160/scope-export_236648464/0_NAD_1312604927/iga_2664973160/recording.har @@ -0,0 +1,147 @@ +{ + "log": { + "_recordingName": "iga/scope-export/0_NAD/iga", + "creator": { + "comment": "persister:fs", + "name": "Polly.JS", + "version": "6.0.6" + }, + "entries": [ + { + "_id": "af55958a3898b129bc68978def6db818", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "name": "accept", + "value": "application/json, text/plain, */*" + }, + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "user-agent", + "value": "@rockcarver/frodo-lib/4.0.0-39" + }, + { + "name": "authorization", + "value": "Bearer " + }, + { + "name": "accept-encoding", + "value": "gzip, compress, deflate, br" + }, + { + "name": "host", + "value": "openam-frodo-dev.forgeblocks.com" + } + ], + "headersSize": 1871, + "httpVersion": "HTTP/1.1", + "method": "GET", + "queryString": [ + { + "name": "_queryFilter", + "value": "true" + }, + { + "name": "_pageSize", + "value": "10000" + }, + { + "name": "_pagedResultsOffset", + "value": "0" + } + ], + "url": "https://openam-trivir-fairfax.forgeblocks.com/iga/governance/scope?_queryFilter=true&_pageSize=10000&_pagedResultsOffset=0" + }, + "response": { + "bodySize": 2023, + "content": { + "encoding": "base64", + "mimeType": "application/json; charset=utf-8", + "size": 2023, + "text": "[\"G0YbAORaavX6qvp1Qa0iRP0upOhC0Iy58yAv4PFOufTzc633Cx08tW1/uDeieJz8vf2PuSbTxkXwknWXMItnKeyuNTIhkgsme90H9Y35pYSVwZV2l3nAYbLmgvWvB6QN5Rt7HWWvsMKgPqYe9ytNeW9TGf/CuNcRSp1yuQxqMENJsIIIhmcnJIbAJSquAnorFIbkNXnGVEoWZqjhmWCFtFPHug+Mex2hVBzUB8zQ91uL9NFeUxllr7A+4NapwfqAXC6DGqwP2Busfz2g7uMU9zpCqR3WB5R66qOV+gQro2CJZbzCDPu6418v84BjJD3wAiv8MsIZjuP455hh/3dHhRVeBBzHDH2EceuwQoijvBDMMEI7AlZJCQ99zHBq9AIrn+GZRkhhBFgfIKFL+zgMghUEEwaZRu5/FmwVfOVyUV4bJpjVf8IMm3pXxXKT2nvn3Z9wHLO8kCTMQmYjhWIJBRMWlckRN0eE3lilN5JWBkdcw0tUKbnD+ijPBD6po4zLQSlkh3W0G80VK+z1xXVeCt0/a6GOHp2tk/8v4pMlIHu2g0QXindzL4Xuv3RqH8RIPT1PftwvJLtJNp4vi8hmIbnVwDFrWPdDTfD2f+4jDPq+7S+lRtK1fLD+jrzIeOWtNwMJSUV0/9ZCKuIptFLAboOvgWrqp3sZZ1gf0G85l7cWltbhmOGweVGzoZWqAn6qNcT2yBuVZplenOVCO+UUIZauWy5sMAu92exNZmg3k1BFltFZJnEzgTHJiEXH6feT3tzCpaNtIc1hmolRliTKQzk4d412tukI5gMr1ZwxjHDZnxZm/0XIyoX0xqDnK9AceUcDy19qyEGLdtbf27Kj4JL/tkR4i1fXCv3afqHFOMgGkrrQoqeS8qHgNR4YWzlfpGJWOS8M8SyDS+OZDhV9MIGmhVFNfbqXcUZLK1pNfJNa4MZkP/0cHLdgNSqbknQuOx8FrUA1dbyXcUY4RhInqfPThvkPO5UEByoyAcwuXGnnBHPiHEvnnHkf1hjn0qfSpzDBS7b9zTBqp5Ri6GQK\",\"qKza0Csr0QWdbFBSeoVUZ3wLNe3P/zAEkesUWguvOo85DJdhfJe/a09g9YzIqpzJbmjtRqiSCei1USizTy4qyRQxOJqCqJO9Zz+Fy5i+Dv/T9FEZr3bmVJGKog5TUE6Ny4Urr4xlmjiWzjVXMkgn9PJOB0oedb35jqhG+2xCKmsWLgktpLSYmeSovGHovQgok7XSMJ6czjRi39J9+umT7Yl0JnJw4uTloFUuFis9M4K7B+LonBlt/IOkic3AhZQ0Q8Y5odJBYhDGoddOe5uEFjEQ2pEX54/BKM9pIzS2nnyv4dJro+y5fVETve1uA3ijE0rT8C8MIGREp7ZIhj9gJjPC22tHpjf9JtRa8uIhWCVFpLDuFgoeaZZAmjaP7XDQElAoGH6kUho8vAQ0ho60FYpvKPim5WaL4857Jx4cQzOMYwM5ZuFdtFJHQpNTRBWMQMdYRmO0l86RUjySxn/p1KavP/pm+tkvkXQKJKG6XW6CSIyYx+BDRMVjwJCFQhcy0yIqx7LAKl28dWpTODtdz2e8hkZ14N6eEEFRRC34yutEP7TMF+2Y95xr/sGyDO68tarjwk1hIICJ+/aPXeX3ZoYhGoYqW4EhuYCUnd0255zfxixQQiWNQ7BFjsOv7LQc9Jue5AiL5R3nflVmFXYRXCtrHbeEYem2UUyGlNKnun9G/10/zEFnQ1ozFD5vqBwldDZzTFJHFz0zNiYKKEPjNIbEieJ/xxwD1ypzi+BCCqGlfXAcTeHee8+xPrhc9nufzr8gjahP7+ASY7+og56o8YneTOzdaezTS6H7dIIFPJNo2rf/KI5uSeZghGcmebTJWFSae9w498glk3zbhHbe0NWv5zMmutBTGITbWiKIxEGjY/jKKEuzeEyQVS51iNmRSkZBbzSsFsG1VlZwp4pY4pXnowRB/8wNMgUf5EHtK3qF9S9h1/lnhstOs8ZH+60OWDmfZ5zxT/od\"]" + }, + "cookies": [], + "headers": [ + { + "name": "x-powered-by", + "value": "Express" + }, + { + "name": "cache-control", + "value": "no-store" + }, + { + "name": "content-type", + "value": "application/json; charset=utf-8" + }, + { + "name": "etag", + "value": "W/\"1b47-XNnXc9MPNP1B8DNWFc5xVB0RlVc\"" + }, + { + "name": "vary", + "value": "Accept-Encoding" + }, + { + "name": "content-encoding", + "value": "br" + }, + { + "name": "date", + "value": "Tue, 19 May 2026 20:27:44 GMT" + }, + { + "name": "x-forgerock-transactionid", + "value": "ab7e184a-c4a8-4654-88aa-7b132441ec11" + }, + { + "name": "strict-transport-security", + "value": "max-age=31536000; includeSubDomains; preload;" + }, + { + "name": "x-robots-tag", + "value": "none" + }, + { + "name": "via", + "value": "1.1 google" + }, + { + "name": "alt-svc", + "value": "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" + }, + { + "name": "transfer-encoding", + "value": "chunked" + } + ], + "headersSize": 484, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2026-05-19T20:27:43.993Z", + "time": 159, + "timings": { + "blocked": -1, + "connect": -1, + "dns": -1, + "receive": 0, + "send": 0, + "ssl": -1, + "wait": 159 + } + } + ], + "pages": [], + "version": "1.2" + } +} diff --git a/test/e2e/mocks/iga_2664973160/scope-export_236648464/0_NAD_1312604927/oauth2_393036114/recording.har b/test/e2e/mocks/iga_2664973160/scope-export_236648464/0_NAD_1312604927/oauth2_393036114/recording.har new file mode 100644 index 000000000..03af4abfb --- /dev/null +++ b/test/e2e/mocks/iga_2664973160/scope-export_236648464/0_NAD_1312604927/oauth2_393036114/recording.har @@ -0,0 +1,146 @@ +{ + "log": { + "_recordingName": "iga/scope-export/0_NAD/oauth2", + "creator": { + "comment": "persister:fs", + "name": "Polly.JS", + "version": "6.0.6" + }, + "entries": [ + { + "_id": "ff75519a93ccab829f8ee8cf5e92b49f", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 1328, + "cookies": [], + "headers": [ + { + "name": "accept", + "value": "application/json, text/plain, */*" + }, + { + "name": "content-type", + "value": "application/x-www-form-urlencoded" + }, + { + "name": "user-agent", + "value": "@rockcarver/frodo-lib/4.0.0-39" + }, + { + "name": "x-forgerock-transactionid", + "value": "frodo-fd959317-a677-4211-a751-be3978b801e4" + }, + { + "name": "accept-api-version", + "value": "protocol=2.1,resource=1.0" + }, + { + "name": "content-length", + "value": "1328" + }, + { + "name": "accept-encoding", + "value": "gzip, compress, deflate, br" + }, + { + "name": "host", + "value": "openam-frodo-dev.forgeblocks.com" + } + ], + "headersSize": 453, + "httpVersion": "HTTP/1.1", + "method": "POST", + "postData": { + "mimeType": "application/x-www-form-urlencoded", + "params": [], + "text": "assertion=&client_id=service-account&grant_type=urn:ietf:params:oauth:grant-type:jwt-bearer&scope=fr:idc:custom-domain:* fr:idc:release:* fr:idc:sso-cookie:* fr:am:* fr:idc:esv:* fr:idc:content-security-policy:* fr:iga:* fr:idc:certificate:* fr:idm:* fr:idc:analytics:* fr:idc:cookie-domain:* fr:idc:promotion:*" + }, + "queryString": [], + "url": "https://openam-trivir-fairfax.forgeblocks.com/am/oauth2/access_token" + }, + "response": { + "bodySize": 1780, + "content": { + "mimeType": "application/json;charset=UTF-8", + "size": 1780, + "text": "{\"access_token\":\"\",\"scope\":\"fr:idc:custom-domain:* fr:idc:release:* fr:idc:sso-cookie:* fr:am:* fr:idc:esv:* fr:idc:content-security-policy:* fr:iga:* fr:idc:certificate:* fr:idm:* fr:idc:analytics:* fr:idc:cookie-domain:* fr:idc:promotion:*\",\"token_type\":\"Bearer\",\"expires_in\":899}" + }, + "cookies": [], + "headers": [ + { + "name": "x-frame-options", + "value": "SAMEORIGIN" + }, + { + "name": "content-security-policy-report-only", + "value": "frame-ancestors 'self'; script-src 'self' 'unsafe-eval' 'unsafe-inline'" + }, + { + "name": "x-content-type-options", + "value": "nosniff" + }, + { + "name": "cache-control", + "value": "no-store" + }, + { + "name": "pragma", + "value": "no-cache" + }, + { + "name": "content-type", + "value": "application/json;charset=UTF-8" + }, + { + "name": "content-length", + "value": "1780" + }, + { + "name": "date", + "value": "Tue, 19 May 2026 20:27:43 GMT" + }, + { + "name": "x-forgerock-transactionid", + "value": "frodo-fd959317-a677-4211-a751-be3978b801e4" + }, + { + "name": "strict-transport-security", + "value": "max-age=31536000; includeSubDomains; preload;" + }, + { + "name": "x-robots-tag", + "value": "none" + }, + { + "name": "via", + "value": "1.1 google" + }, + { + "name": "alt-svc", + "value": "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" + } + ], + "headersSize": 561, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2026-05-19T20:27:43.508Z", + "time": 136, + "timings": { + "blocked": -1, + "connect": -1, + "dns": -1, + "receive": 0, + "send": 0, + "ssl": -1, + "wait": 136 + } + } + ], + "pages": [], + "version": "1.2" + } +} diff --git a/test/e2e/mocks/iga_2664973160/scope-export_236648464/0_NAD_1312604927/openidm_3290118515/recording.har b/test/e2e/mocks/iga_2664973160/scope-export_236648464/0_NAD_1312604927/openidm_3290118515/recording.har new file mode 100644 index 000000000..631bec2e0 --- /dev/null +++ b/test/e2e/mocks/iga_2664973160/scope-export_236648464/0_NAD_1312604927/openidm_3290118515/recording.har @@ -0,0 +1,310 @@ +{ + "log": { + "_recordingName": "iga/scope-export/0_NAD/openidm", + "creator": { + "comment": "persister:fs", + "name": "Polly.JS", + "version": "6.0.6" + }, + "entries": [ + { + "_id": "9cb8561357870863838a9948da32d1e8", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "name": "accept", + "value": "application/json, text/plain, */*" + }, + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "user-agent", + "value": "@rockcarver/frodo-lib/4.0.0-39" + }, + { + "name": "x-forgerock-transactionid", + "value": "frodo-fd959317-a677-4211-a751-be3978b801e4" + }, + { + "name": "authorization", + "value": "Bearer " + }, + { + "name": "accept-encoding", + "value": "gzip, compress, deflate, br" + }, + { + "name": "host", + "value": "openam-frodo-dev.forgeblocks.com" + } + ], + "headersSize": 1938, + "httpVersion": "HTTP/1.1", + "method": "GET", + "queryString": [ + { + "name": "_fields", + "value": "*" + } + ], + "url": "https://openam-trivir-fairfax.forgeblocks.com/openidm/managed/svcacct/10d76629-78da-4265-868b-9a0cb68ebdb4?_fields=%2A" + }, + "response": { + "bodySize": 1401, + "content": { + "mimeType": "application/json;charset=utf-8", + "size": 1401, + "text": "{\"_id\":\"10d76629-78da-4265-868b-9a0cb68ebdb4\",\"_rev\":\"4b025e5d-c082-45f8-a3e9-0ac1db308dff-21339\",\"accountStatus\":\"active\",\"name\":\"Frodo-SA-1777919406717\",\"description\":\"dsevy@trivir.com's Frodo Service Account\",\"scopes\":[\"fr:am:*\",\"fr:idc:analytics:*\",\"fr:autoaccess:*\",\"fr:idc:certificate:*\",\"fr:idc:content-security-policy:*\",\"fr:idc:cookie-domain:*\",\"fr:idc:custom-domain:*\",\"fr:idc:dataset:*\",\"fr:idc:esv:*\",\"fr:idm:*\",\"fr:iga:*\",\"fr:idc:promotion:*\",\"fr:idc:release:*\",\"fr:idc:sso-cookie:*\"],\"jwks\":\"{\\\"keys\\\":[{\\\"kty\\\":\\\"RSA\\\",\\\"kid\\\":\\\"hshlr1hlp8bXdLNDrh3rESiHNsMS68c4XtbZX9i_Seg\\\",\\\"alg\\\":\\\"RS256\\\",\\\"e\\\":\\\"AQAB\\\",\\\"n\\\":\\\"owg6VJta_1o9VqyQk4Xs2kA_BDcyWEN1WMERqaJIFCbtecz_IMBp2G5m76dawbB9QvUsFvMqfJ2OGbaCcfC2o5lkxEu4nxdKLKYZ4-JTGsbPN6j-f9yr0LCjFMPd1BRxKQ98euSu5UZ0_gy9QN-eS4zB5zJsb8E7Y7FXsxG6vgd8dCqCSPjJeSmZhnQEeqJeysGlA5jMzQUP9Lvgm2aZp5wz7DXzF9lvsqRjm49H9wlERjy4KDmjlp5Rr3lz8ZXGgsaIdp18hUrPFKJP5qxkICfnbxdyK858A5puUypj1OAqrOtAnwjk5lMPOYzBWjWV72RPnOY3-6KAHo8uFXK3EH8AN8ErHxhpo-soV0e7-Z7gEnmt0rliY3j_-2AHA0Q5G1k52cGQ-dARGzgAQacpdnQv_pT0k83DGZPrpR6PqBRkyiJBD_PTvySZohxFgjpJfJmkYec7Pg40xri_LN1ozkLRBdQwL2zaQFYtq_VZC20a8Y7NpqpoLcvFIB9W2NS03qTokvId7gdSgdcVmpOo4n7OZZCouD6cyWyJ6Nj9uaxz-mw4Mdzhpd8cclSV_gXeWMBBoW3dZ7zzkEFMWHBT2x9S8JAZor_aaGJ2MXOoNoHRg-q9shNhQ3h7U14MXfL7I9R4ixClZMOpxILa0VT0Vzm-h685xkXwa28WLSw21QU\\\"}]}\",\"maxCachingTime\":\"15\",\"maxIdleTime\":\"15\",\"maxSessionTime\":\"15\",\"quotaLimit\":\"5\"}" + }, + "cookies": [], + "headers": [ + { + "name": "date", + "value": "Tue, 19 May 2026 20:27:43 GMT" + }, + { + "name": "vary", + "value": "Origin" + }, + { + "name": "cache-control", + "value": "no-store" + }, + { + "name": "content-security-policy", + "value": "default-src 'none';frame-ancestors 'none';sandbox" + }, + { + "name": "content-type", + "value": "application/json;charset=utf-8" + }, + { + "name": "cross-origin-opener-policy", + "value": "same-origin" + }, + { + "name": "cross-origin-resource-policy", + "value": "same-origin" + }, + { + "name": "etag", + "value": "\"4b025e5d-c082-45f8-a3e9-0ac1db308dff-21339\"" + }, + { + "name": "expires", + "value": "0" + }, + { + "name": "pragma", + "value": "no-cache" + }, + { + "name": "x-content-type-options", + "value": "nosniff" + }, + { + "name": "x-frame-options", + "value": "DENY" + }, + { + "name": "content-length", + "value": "1401" + }, + { + "name": "x-forgerock-transactionid", + "value": "frodo-fd959317-a677-4211-a751-be3978b801e4" + }, + { + "name": "strict-transport-security", + "value": "max-age=31536000; includeSubDomains; preload;" + }, + { + "name": "x-robots-tag", + "value": "none" + }, + { + "name": "via", + "value": "1.1 google" + }, + { + "name": "alt-svc", + "value": "h3=\":443\"; ma=2592000" + } + ], + "headersSize": 658, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2026-05-19T20:27:43.690Z", + "time": 200, + "timings": { + "blocked": -1, + "connect": -1, + "dns": -1, + "receive": 0, + "send": 0, + "ssl": -1, + "wait": 200 + } + }, + { + "_id": "9cb8561357870863838a9948da32d1e8", + "_order": 1, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "name": "accept", + "value": "application/json, text/plain, */*" + }, + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "user-agent", + "value": "@rockcarver/frodo-lib/4.0.0-39" + }, + { + "name": "x-forgerock-transactionid", + "value": "frodo-fd959317-a677-4211-a751-be3978b801e4" + }, + { + "name": "authorization", + "value": "Bearer " + }, + { + "name": "accept-encoding", + "value": "gzip, compress, deflate, br" + }, + { + "name": "host", + "value": "openam-frodo-dev.forgeblocks.com" + } + ], + "headersSize": 1938, + "httpVersion": "HTTP/1.1", + "method": "GET", + "queryString": [ + { + "name": "_fields", + "value": "*" + } + ], + "url": "https://openam-trivir-fairfax.forgeblocks.com/openidm/managed/svcacct/10d76629-78da-4265-868b-9a0cb68ebdb4?_fields=%2A" + }, + "response": { + "bodySize": 1401, + "content": { + "mimeType": "application/json;charset=utf-8", + "size": 1401, + "text": "{\"_id\":\"10d76629-78da-4265-868b-9a0cb68ebdb4\",\"_rev\":\"4b025e5d-c082-45f8-a3e9-0ac1db308dff-21339\",\"accountStatus\":\"active\",\"name\":\"Frodo-SA-1777919406717\",\"description\":\"dsevy@trivir.com's Frodo Service Account\",\"scopes\":[\"fr:am:*\",\"fr:idc:analytics:*\",\"fr:autoaccess:*\",\"fr:idc:certificate:*\",\"fr:idc:content-security-policy:*\",\"fr:idc:cookie-domain:*\",\"fr:idc:custom-domain:*\",\"fr:idc:dataset:*\",\"fr:idc:esv:*\",\"fr:idm:*\",\"fr:iga:*\",\"fr:idc:promotion:*\",\"fr:idc:release:*\",\"fr:idc:sso-cookie:*\"],\"jwks\":\"{\\\"keys\\\":[{\\\"kty\\\":\\\"RSA\\\",\\\"kid\\\":\\\"hshlr1hlp8bXdLNDrh3rESiHNsMS68c4XtbZX9i_Seg\\\",\\\"alg\\\":\\\"RS256\\\",\\\"e\\\":\\\"AQAB\\\",\\\"n\\\":\\\"owg6VJta_1o9VqyQk4Xs2kA_BDcyWEN1WMERqaJIFCbtecz_IMBp2G5m76dawbB9QvUsFvMqfJ2OGbaCcfC2o5lkxEu4nxdKLKYZ4-JTGsbPN6j-f9yr0LCjFMPd1BRxKQ98euSu5UZ0_gy9QN-eS4zB5zJsb8E7Y7FXsxG6vgd8dCqCSPjJeSmZhnQEeqJeysGlA5jMzQUP9Lvgm2aZp5wz7DXzF9lvsqRjm49H9wlERjy4KDmjlp5Rr3lz8ZXGgsaIdp18hUrPFKJP5qxkICfnbxdyK858A5puUypj1OAqrOtAnwjk5lMPOYzBWjWV72RPnOY3-6KAHo8uFXK3EH8AN8ErHxhpo-soV0e7-Z7gEnmt0rliY3j_-2AHA0Q5G1k52cGQ-dARGzgAQacpdnQv_pT0k83DGZPrpR6PqBRkyiJBD_PTvySZohxFgjpJfJmkYec7Pg40xri_LN1ozkLRBdQwL2zaQFYtq_VZC20a8Y7NpqpoLcvFIB9W2NS03qTokvId7gdSgdcVmpOo4n7OZZCouD6cyWyJ6Nj9uaxz-mw4Mdzhpd8cclSV_gXeWMBBoW3dZ7zzkEFMWHBT2x9S8JAZor_aaGJ2MXOoNoHRg-q9shNhQ3h7U14MXfL7I9R4ixClZMOpxILa0VT0Vzm-h685xkXwa28WLSw21QU\\\"}]}\",\"maxCachingTime\":\"15\",\"maxIdleTime\":\"15\",\"maxSessionTime\":\"15\",\"quotaLimit\":\"5\"}" + }, + "cookies": [], + "headers": [ + { + "name": "date", + "value": "Tue, 19 May 2026 20:27:43 GMT" + }, + { + "name": "vary", + "value": "Origin" + }, + { + "name": "cache-control", + "value": "no-store" + }, + { + "name": "content-security-policy", + "value": "default-src 'none';frame-ancestors 'none';sandbox" + }, + { + "name": "content-type", + "value": "application/json;charset=utf-8" + }, + { + "name": "cross-origin-opener-policy", + "value": "same-origin" + }, + { + "name": "cross-origin-resource-policy", + "value": "same-origin" + }, + { + "name": "etag", + "value": "\"4b025e5d-c082-45f8-a3e9-0ac1db308dff-21339\"" + }, + { + "name": "expires", + "value": "0" + }, + { + "name": "pragma", + "value": "no-cache" + }, + { + "name": "x-content-type-options", + "value": "nosniff" + }, + { + "name": "x-frame-options", + "value": "DENY" + }, + { + "name": "content-length", + "value": "1401" + }, + { + "name": "x-forgerock-transactionid", + "value": "frodo-fd959317-a677-4211-a751-be3978b801e4" + }, + { + "name": "strict-transport-security", + "value": "max-age=31536000; includeSubDomains; preload;" + }, + { + "name": "x-robots-tag", + "value": "none" + }, + { + "name": "via", + "value": "1.1 google" + }, + { + "name": "alt-svc", + "value": "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" + } + ], + "headersSize": 683, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2026-05-19T20:27:43.882Z", + "time": 104, + "timings": { + "blocked": -1, + "connect": -1, + "dns": -1, + "receive": 0, + "send": 0, + "ssl": -1, + "wait": 104 + } + } + ], + "pages": [], + "version": "1.2" + } +} diff --git a/test/e2e/mocks/iga_2664973160/scope-export_236648464/0_all_file_3124693826/am_1076162899/recording.har b/test/e2e/mocks/iga_2664973160/scope-export_236648464/0_all_file_3124693826/am_1076162899/recording.har new file mode 100644 index 000000000..75735220f --- /dev/null +++ b/test/e2e/mocks/iga_2664973160/scope-export_236648464/0_all_file_3124693826/am_1076162899/recording.har @@ -0,0 +1,312 @@ +{ + "log": { + "_recordingName": "iga/scope-export/0_all_file/am", + "creator": { + "comment": "persister:fs", + "name": "Polly.JS", + "version": "6.0.6" + }, + "entries": [ + { + "_id": "ccd7a5defd0fdeaa986a2b54642d911a", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "name": "accept", + "value": "application/json, text/plain, */*" + }, + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "user-agent", + "value": "@rockcarver/frodo-lib/4.0.0-39" + }, + { + "name": "x-forgerock-transactionid", + "value": "frodo-93be60b0-47da-4e05-8562-f0e71b2adc57" + }, + { + "name": "accept-api-version", + "value": "resource=1.1" + }, + { + "name": "accept-encoding", + "value": "gzip, compress, deflate, br" + }, + { + "name": "host", + "value": "openam-frodo-dev.forgeblocks.com" + } + ], + "headersSize": 398, + "httpVersion": "HTTP/1.1", + "method": "GET", + "queryString": [], + "url": "https://openam-trivir-fairfax.forgeblocks.com/am/json/serverinfo/*" + }, + "response": { + "bodySize": 614, + "content": { + "mimeType": "application/json;charset=UTF-8", + "size": 614, + "text": "{\"_id\":\"*\",\"_rev\":\"959929574\",\"domains\":[],\"protectedUserAttributes\":[\"telephoneNumber\",\"mail\"],\"cookieName\":\"311468432e97f1f\",\"secureCookie\":true,\"forgotPassword\":\"false\",\"forgotUsername\":\"false\",\"kbaEnabled\":\"false\",\"selfRegistration\":\"false\",\"lang\":\"en-US\",\"successfulUserRegistrationDestination\":\"default\",\"socialImplementations\":[],\"referralsEnabled\":\"false\",\"zeroPageLogin\":{\"enabled\":false,\"refererWhitelist\":[],\"allowedWithoutReferer\":true},\"realm\":\"/\",\"xuiUserSessionValidationEnabled\":true,\"fileBasedConfiguration\":true,\"userIdAttributes\":[],\"cloudOnlyFeaturesEnabled\":true,\"oauth2AIAgentsEnabled\":false}" + }, + "cookies": [], + "headers": [ + { + "name": "x-frame-options", + "value": "SAMEORIGIN" + }, + { + "name": "content-security-policy-report-only", + "value": "frame-ancestors 'self'; script-src 'self' 'unsafe-eval' 'unsafe-inline'" + }, + { + "name": "x-content-type-options", + "value": "nosniff" + }, + { + "name": "cache-control", + "value": "no-store" + }, + { + "name": "content-api-version", + "value": "resource=1.1" + }, + { + "name": "content-security-policy", + "value": "default-src 'none';frame-ancestors 'none';sandbox" + }, + { + "name": "cross-origin-opener-policy", + "value": "same-origin" + }, + { + "name": "cross-origin-resource-policy", + "value": "same-origin" + }, + { + "name": "etag", + "value": "\"959929574\"" + }, + { + "name": "expires", + "value": "0" + }, + { + "name": "pragma", + "value": "no-cache" + }, + { + "name": "content-type", + "value": "application/json;charset=UTF-8" + }, + { + "name": "content-length", + "value": "614" + }, + { + "name": "date", + "value": "Tue, 19 May 2026 20:27:09 GMT" + }, + { + "name": "x-forgerock-transactionid", + "value": "frodo-93be60b0-47da-4e05-8562-f0e71b2adc57" + }, + { + "name": "strict-transport-security", + "value": "max-age=31536000; includeSubDomains; preload;" + }, + { + "name": "x-robots-tag", + "value": "none" + }, + { + "name": "via", + "value": "1.1 google" + }, + { + "name": "alt-svc", + "value": "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" + } + ], + "headersSize": 786, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2026-05-19T20:27:09.599Z", + "time": 170, + "timings": { + "blocked": -1, + "connect": -1, + "dns": -1, + "receive": 0, + "send": 0, + "ssl": -1, + "wait": 170 + } + }, + { + "_id": "6125d0328ad0dcaee55f73fd8b22ca14", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "name": "accept", + "value": "application/json, text/plain, */*" + }, + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "user-agent", + "value": "@rockcarver/frodo-lib/4.0.0-39" + }, + { + "name": "x-forgerock-transactionid", + "value": "frodo-93be60b0-47da-4e05-8562-f0e71b2adc57" + }, + { + "name": "accept-api-version", + "value": "resource=1.0" + }, + { + "name": "authorization", + "value": "Bearer " + }, + { + "name": "accept-encoding", + "value": "gzip, compress, deflate, br" + }, + { + "name": "host", + "value": "openam-frodo-dev.forgeblocks.com" + } + ], + "headersSize": 1926, + "httpVersion": "HTTP/1.1", + "method": "GET", + "queryString": [], + "url": "https://openam-trivir-fairfax.forgeblocks.com/am/json/serverinfo/version" + }, + "response": { + "bodySize": 274, + "content": { + "mimeType": "application/json;charset=UTF-8", + "size": 274, + "text": "{\"_id\":\"version\",\"_rev\":\"194838800\",\"version\":\"9.0.0-SNAPSHOT\",\"fullVersion\":\"ForgeRock Access Management 9.0.0-SNAPSHOT Build 500b736d5354dc1171d65a84ec4230d63a5a084e (2026-April-21 11:20)\",\"revision\":\"500b736d5354dc1171d65a84ec4230d63a5a084e\",\"date\":\"2026-April-21 11:20\"}" + }, + "cookies": [], + "headers": [ + { + "name": "x-frame-options", + "value": "SAMEORIGIN" + }, + { + "name": "content-security-policy-report-only", + "value": "frame-ancestors 'self'; script-src 'self' 'unsafe-eval' 'unsafe-inline'" + }, + { + "name": "x-content-type-options", + "value": "nosniff" + }, + { + "name": "cache-control", + "value": "no-store" + }, + { + "name": "content-api-version", + "value": "resource=1.0" + }, + { + "name": "content-security-policy", + "value": "default-src 'none';frame-ancestors 'none';sandbox" + }, + { + "name": "cross-origin-opener-policy", + "value": "same-origin" + }, + { + "name": "cross-origin-resource-policy", + "value": "same-origin" + }, + { + "name": "etag", + "value": "\"194838800\"" + }, + { + "name": "expires", + "value": "0" + }, + { + "name": "pragma", + "value": "no-cache" + }, + { + "name": "content-type", + "value": "application/json;charset=UTF-8" + }, + { + "name": "content-length", + "value": "274" + }, + { + "name": "date", + "value": "Tue, 19 May 2026 20:27:10 GMT" + }, + { + "name": "x-forgerock-transactionid", + "value": "frodo-93be60b0-47da-4e05-8562-f0e71b2adc57" + }, + { + "name": "strict-transport-security", + "value": "max-age=31536000; includeSubDomains; preload;" + }, + { + "name": "x-robots-tag", + "value": "none" + }, + { + "name": "via", + "value": "1.1 google" + }, + { + "name": "alt-svc", + "value": "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" + } + ], + "headersSize": 786, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2026-05-19T20:27:09.942Z", + "time": 115, + "timings": { + "blocked": -1, + "connect": -1, + "dns": -1, + "receive": 0, + "send": 0, + "ssl": -1, + "wait": 115 + } + } + ], + "pages": [], + "version": "1.2" + } +} diff --git a/test/e2e/mocks/iga_2664973160/scope-export_236648464/0_all_file_3124693826/environment_1072573434/recording.har b/test/e2e/mocks/iga_2664973160/scope-export_236648464/0_all_file_3124693826/environment_1072573434/recording.har new file mode 100644 index 000000000..538c9df45 --- /dev/null +++ b/test/e2e/mocks/iga_2664973160/scope-export_236648464/0_all_file_3124693826/environment_1072573434/recording.har @@ -0,0 +1,125 @@ +{ + "log": { + "_recordingName": "iga/scope-export/0_all_file/environment", + "creator": { + "comment": "persister:fs", + "name": "Polly.JS", + "version": "6.0.6" + }, + "entries": [ + { + "_id": "ccc7ec61c2094114d7917814bb19b83b", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "name": "accept", + "value": "application/json, text/plain, */*" + }, + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "user-agent", + "value": "@rockcarver/frodo-lib/4.0.0-39" + }, + { + "name": "accept-api-version", + "value": "protocol=1.0,resource=1.0" + }, + { + "name": "authorization", + "value": "Bearer " + }, + { + "name": "accept-encoding", + "value": "gzip, compress, deflate, br" + }, + { + "name": "host", + "value": "openam-frodo-dev.forgeblocks.com" + } + ], + "headersSize": 1877, + "httpVersion": "HTTP/1.1", + "method": "GET", + "queryString": [], + "url": "https://openam-trivir-fairfax.forgeblocks.com/environment/scopes/service-accounts" + }, + "response": { + "bodySize": 1975, + "content": { + "mimeType": "application/json; charset=utf-8", + "size": 1975, + "text": "[{\"scope\":\"fr:am:*\",\"description\":\"All Access Management APIs\"},{\"scope\":\"fr:autoaccess:*\",\"description\":\"All Auto Access APIs\"},{\"scope\":\"fr:idc:analytics:*\",\"description\":\"All Analytics APIs\"},{\"scope\":\"fr:idc:certificate:*\",\"description\":\"All TLS certificate APIs\",\"childScopes\":[{\"scope\":\"fr:idc:certificate:read\",\"description\":\"Read TLS certificates\"}]},{\"scope\":\"fr:idc:content-security-policy:*\",\"description\":\"All content security policy APIs\",\"childScopes\":[{\"scope\":\"fr:idc:content-security-policy:read\",\"description\":\"Read content security policy\"}]},{\"scope\":\"fr:idc:cookie-domain:*\",\"description\":\"All cookie domain APIs\",\"childScopes\":[{\"scope\":\"fr:idc:cookie-domain:read\",\"description\":\"Read cookie domains\"}]},{\"scope\":\"fr:idc:custom-domain:*\",\"description\":\"All custom domain APIs\",\"childScopes\":[{\"scope\":\"fr:idc:custom-domain:read\",\"description\":\"Read custom domains\"}]},{\"scope\":\"fr:idc:dataset:*\",\"description\":\"All dataset deletion APIs\",\"childScopes\":[{\"scope\":\"fr:idc:dataset:read\",\"description\":\"Read dataset deletions\"}]},{\"scope\":\"fr:idc:esv:*\",\"description\":\"All ESV APIs\",\"childScopes\":[{\"scope\":\"fr:idc:esv:read\",\"description\":\"Read ESVs, excluding values of secrets\"},{\"scope\":\"fr:idc:esv:update\",\"description\":\"Create, modify, and delete ESVs\"},{\"scope\":\"fr:idc:esv:restart\",\"description\":\"Restart workloads that consume ESVs\"}]},{\"scope\":\"fr:idc:promotion:*\",\"description\":\"All configuration promotion APIs\",\"childScopes\":[{\"scope\":\"fr:idc:promotion:read\",\"description\":\"Read configuration promotion\"}]},{\"scope\":\"fr:idc:release:*\",\"description\":\"All product release APIs\",\"childScopes\":[{\"scope\":\"fr:idc:release:read\",\"description\":\"Read product release\"}]},{\"scope\":\"fr:idc:sso-cookie:*\",\"description\":\"All SSO cookie APIs\",\"childScopes\":[{\"scope\":\"fr:idc:sso-cookie:read\",\"description\":\"Read SSO cookie\"}]},{\"scope\":\"fr:idm:*\",\"description\":\"All Identity Management APIs\"},{\"scope\":\"fr:iga:*\",\"description\":\"All Identity Governance APIs\"}]" + }, + "cookies": [], + "headers": [ + { + "name": "x-frame-options", + "value": "SAMEORIGIN" + }, + { + "name": "content-type", + "value": "application/json; charset=utf-8" + }, + { + "name": "content-length", + "value": "1975" + }, + { + "name": "etag", + "value": "W/\"7b7-tIBWy/EinSCKaoNz4aU2iqiTmFc\"" + }, + { + "name": "date", + "value": "Tue, 19 May 2026 20:27:10 GMT" + }, + { + "name": "x-forgerock-transactionid", + "value": "edae598e-0508-456a-b25f-f06155f23c98" + }, + { + "name": "strict-transport-security", + "value": "max-age=31536000; includeSubDomains; preload;" + }, + { + "name": "x-robots-tag", + "value": "none" + }, + { + "name": "via", + "value": "1.1 google" + }, + { + "name": "alt-svc", + "value": "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" + } + ], + "headersSize": 413, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2026-05-19T20:27:10.062Z", + "time": 107, + "timings": { + "blocked": -1, + "connect": -1, + "dns": -1, + "receive": 0, + "send": 0, + "ssl": -1, + "wait": 107 + } + } + ], + "pages": [], + "version": "1.2" + } +} diff --git a/test/e2e/mocks/iga_2664973160/scope-export_236648464/0_all_file_3124693826/iga_2664973160/recording.har b/test/e2e/mocks/iga_2664973160/scope-export_236648464/0_all_file_3124693826/iga_2664973160/recording.har new file mode 100644 index 000000000..31225e858 --- /dev/null +++ b/test/e2e/mocks/iga_2664973160/scope-export_236648464/0_all_file_3124693826/iga_2664973160/recording.har @@ -0,0 +1,147 @@ +{ + "log": { + "_recordingName": "iga/scope-export/0_all_file/iga", + "creator": { + "comment": "persister:fs", + "name": "Polly.JS", + "version": "6.0.6" + }, + "entries": [ + { + "_id": "af55958a3898b129bc68978def6db818", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "name": "accept", + "value": "application/json, text/plain, */*" + }, + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "user-agent", + "value": "@rockcarver/frodo-lib/4.0.0-39" + }, + { + "name": "authorization", + "value": "Bearer " + }, + { + "name": "accept-encoding", + "value": "gzip, compress, deflate, br" + }, + { + "name": "host", + "value": "openam-frodo-dev.forgeblocks.com" + } + ], + "headersSize": 1871, + "httpVersion": "HTTP/1.1", + "method": "GET", + "queryString": [ + { + "name": "_queryFilter", + "value": "true" + }, + { + "name": "_pageSize", + "value": "10000" + }, + { + "name": "_pagedResultsOffset", + "value": "0" + } + ], + "url": "https://openam-trivir-fairfax.forgeblocks.com/iga/governance/scope?_queryFilter=true&_pageSize=10000&_pagedResultsOffset=0" + }, + "response": { + "bodySize": 2027, + "content": { + "encoding": "base64", + "mimeType": "application/json; charset=utf-8", + "size": 2027, + "text": "[\"G0YbAORaavX6qvp1Qa0iRP0upOhC0Iy58yAv4PFOufTzc633Cx08tW1/uDeieJz8vf2PuSbTxkXwknWXMItnKeyuNTIhkgsme90H9Y35pYSVwZV2l3nAYbLmgvWvB6QN5Rt7HWWvsMKgPqYe9ytNeW9TGf/CuNcRSp1yuQxqMENJsIIIhmcnJIbAJSquAnorFIbkNXnGVEoWZqjhmWCFtFPHug+Mex2hVBzUB8zQ91uL9NFeUxllr7A+4NapwfqAXC6DGqwP2Busfz2g7uMU9zpCqR3WB5R66qOV+gQro2CJZbzCDPu6418v84BjJD3wAiv8MsIZjuP455hh/3dHhRVeBBzHDH2EceuwQoijvBDMMEI7AlZJCQ99zHBq9AIrn+GZRkhhBFgfIKFL+zgMghUEEwaZRu5/FmwVfOVyUV4bJpjVf8IMm3pXxXKT2nvn3Z9wHLO8kCTMQmYjhWIJBRMWlckRN0eE3lilN5JWBkdcw0tUKbnD+ijPBD6po4zLQSlkh3W0G80VK+z1xXVeCt0/a6GOHp2tk/8v4pMlIHu2g0QXindzL4Xuv3RqH8RIPT1PftwvJLtJNp4vi8hmIbnVwDFrWPdDTfD2f+4jDPq+7S+lRtK1fLD+jrzIeOWtNwMJSUV0/9ZCKuIptFLAboOvgWrqp3sZZ1gf0G85l7cWltbhmOGweVGzoZWqAn6qNcT2yBuVZplenOVCO+UUIZauWy5sMAu92exNZmg3k1BFltFZJnEzgTHJiEXH6feT3tzCpaNtIc1hmolRliTKQzk4d412tukI5gMr1ZwxjHDZnxZm/0XIyoX0xqDnK9AceUcDy19qyEGLdtbf27Kj4JL/tkR4i1fXCv3afqHFOMgGkrrQoqeS8qHgNR4YWzlfpGJWOS8M8SyDS+OZDhV9MIGmhVFNfbqXcUZLK1pNfJNa4MZkP/0cHLdgNSqbknQuOx8FrUA1dbyXcUY4RhInqfPThvkPO5UEByoyAcwuXGnnBHPiHEvnnHkf1hjn0qfSpzDBS7b9zTBqp5Ri6GQKqKza0Csr0QWdbFA=\",\"UnqFVGd8CzXtz/8wBJHrFFoLrzqPOQyXYXyXv2tPYPWMyKqcyW5o7UaokgnotVEos08uKskUMTiagqiTvWc/hcuYvg7/0/RRGa925lSRiqIOU1BOjcuFK6+MZZo4ls41VzJIJ/TyTgdKHnW9+Y6oRvtsQiprFi4JLaS0mJnkqLxh6L0IKJO10jCenM40Yt/Sffrpk+2JdCZycOLk5aBVLhYrPTOCuwfi6JwZbfyDpInNwIWUNEPGOaHSQWIQxqHXTnubhBYxENqRF+ePwSjPaSM0tp58r+HSa6PsuX1RE73tbgN4oxNK0/AvDCBkRKe2SIY/YCYzwttrR6Y3/SbUWvLiIVglRaSw7hYKHmmWQJo2j+1w0BJQKBh+pFIaPLwENIaOtBWKbyj4puVmi+POeyceHEMzjGMDOWbhXbRSR0KTU0QVjEDHWEZjtJfOkVI8ksZ/6dSmrz/6ZvrZL5F0CiShul1ugkiMmMfgQ0TFY8CQhUIXMtMiKseywCpdvHVqUzg7Xc9nvIZGdeDenhBBUUQt+MrrRD+0zBftmPeca/7BsgzuvLWq48JNYSCAifv2j13l92aGIRqGKluBIbmAlJ3dNuec38YsUEIljUOwRY7Dr+y0HPSbnuQIi+Ud535VZhV2EVwrax23hGHptlFMhpTSp7p/Rv9dP8xBZ0NaMxQ+b6gcJXQ2c0xSRxc9MzYmCihD4zSGxInif8ccA9cqc4vgQgqhpX1wHE3h3nvPsT64XPZ7n86/II2oT+/gEmO/qIOeqPGJ3kzs3Wns00uh+3SCBTyTaNq3/yiObknmYIRnJnm0yVhUmnvcOPfIJZN824R23tDVr+czJrrQUxiE21oiiMRBo2P4yihLs3hMkFUudYjZkUpGQW80rBbBtVZWcKeKWOKV56MEQf/MDTIFH+RB7St6hfUvYdf5Z4bLTrPGR/utDlg5n2ec8U/6HQ==\"]" + }, + "cookies": [], + "headers": [ + { + "name": "x-powered-by", + "value": "Express" + }, + { + "name": "cache-control", + "value": "no-store" + }, + { + "name": "content-type", + "value": "application/json; charset=utf-8" + }, + { + "name": "etag", + "value": "W/\"1b47-XNnXc9MPNP1B8DNWFc5xVB0RlVc\"" + }, + { + "name": "vary", + "value": "Accept-Encoding" + }, + { + "name": "content-encoding", + "value": "br" + }, + { + "name": "date", + "value": "Tue, 19 May 2026 20:27:10 GMT" + }, + { + "name": "x-forgerock-transactionid", + "value": "50af79b4-dd88-4f14-ab99-fa4071ebd1a0" + }, + { + "name": "strict-transport-security", + "value": "max-age=31536000; includeSubDomains; preload;" + }, + { + "name": "x-robots-tag", + "value": "none" + }, + { + "name": "via", + "value": "1.1 google" + }, + { + "name": "alt-svc", + "value": "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" + }, + { + "name": "transfer-encoding", + "value": "chunked" + } + ], + "headersSize": 484, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2026-05-19T20:27:10.291Z", + "time": 174, + "timings": { + "blocked": -1, + "connect": -1, + "dns": -1, + "receive": 0, + "send": 0, + "ssl": -1, + "wait": 174 + } + } + ], + "pages": [], + "version": "1.2" + } +} diff --git a/test/e2e/mocks/iga_2664973160/scope-export_236648464/0_all_file_3124693826/oauth2_393036114/recording.har b/test/e2e/mocks/iga_2664973160/scope-export_236648464/0_all_file_3124693826/oauth2_393036114/recording.har new file mode 100644 index 000000000..f48eba6f4 --- /dev/null +++ b/test/e2e/mocks/iga_2664973160/scope-export_236648464/0_all_file_3124693826/oauth2_393036114/recording.har @@ -0,0 +1,146 @@ +{ + "log": { + "_recordingName": "iga/scope-export/0_all_file/oauth2", + "creator": { + "comment": "persister:fs", + "name": "Polly.JS", + "version": "6.0.6" + }, + "entries": [ + { + "_id": "ff75519a93ccab829f8ee8cf5e92b49f", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 1328, + "cookies": [], + "headers": [ + { + "name": "accept", + "value": "application/json, text/plain, */*" + }, + { + "name": "content-type", + "value": "application/x-www-form-urlencoded" + }, + { + "name": "user-agent", + "value": "@rockcarver/frodo-lib/4.0.0-39" + }, + { + "name": "x-forgerock-transactionid", + "value": "frodo-93be60b0-47da-4e05-8562-f0e71b2adc57" + }, + { + "name": "accept-api-version", + "value": "protocol=2.1,resource=1.0" + }, + { + "name": "content-length", + "value": "1328" + }, + { + "name": "accept-encoding", + "value": "gzip, compress, deflate, br" + }, + { + "name": "host", + "value": "openam-frodo-dev.forgeblocks.com" + } + ], + "headersSize": 453, + "httpVersion": "HTTP/1.1", + "method": "POST", + "postData": { + "mimeType": "application/x-www-form-urlencoded", + "params": [], + "text": "assertion=&client_id=service-account&grant_type=urn:ietf:params:oauth:grant-type:jwt-bearer&scope=fr:idc:custom-domain:* fr:idc:release:* fr:idc:sso-cookie:* fr:am:* fr:idc:esv:* fr:idc:content-security-policy:* fr:iga:* fr:idc:certificate:* fr:idm:* fr:idc:analytics:* fr:idc:cookie-domain:* fr:idc:promotion:*" + }, + "queryString": [], + "url": "https://openam-trivir-fairfax.forgeblocks.com/am/oauth2/access_token" + }, + "response": { + "bodySize": 1780, + "content": { + "mimeType": "application/json;charset=UTF-8", + "size": 1780, + "text": "{\"access_token\":\"\",\"scope\":\"fr:idc:custom-domain:* fr:idc:release:* fr:idc:sso-cookie:* fr:am:* fr:idc:esv:* fr:idc:content-security-policy:* fr:iga:* fr:idc:certificate:* fr:idm:* fr:idc:analytics:* fr:idc:cookie-domain:* fr:idc:promotion:*\",\"token_type\":\"Bearer\",\"expires_in\":899}" + }, + "cookies": [], + "headers": [ + { + "name": "x-frame-options", + "value": "SAMEORIGIN" + }, + { + "name": "content-security-policy-report-only", + "value": "frame-ancestors 'self'; script-src 'self' 'unsafe-eval' 'unsafe-inline'" + }, + { + "name": "x-content-type-options", + "value": "nosniff" + }, + { + "name": "cache-control", + "value": "no-store" + }, + { + "name": "pragma", + "value": "no-cache" + }, + { + "name": "content-type", + "value": "application/json;charset=UTF-8" + }, + { + "name": "content-length", + "value": "1780" + }, + { + "name": "date", + "value": "Tue, 19 May 2026 20:27:09 GMT" + }, + { + "name": "x-forgerock-transactionid", + "value": "frodo-93be60b0-47da-4e05-8562-f0e71b2adc57" + }, + { + "name": "strict-transport-security", + "value": "max-age=31536000; includeSubDomains; preload;" + }, + { + "name": "x-robots-tag", + "value": "none" + }, + { + "name": "via", + "value": "1.1 google" + }, + { + "name": "alt-svc", + "value": "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" + } + ], + "headersSize": 561, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2026-05-19T20:27:09.782Z", + "time": 155, + "timings": { + "blocked": -1, + "connect": -1, + "dns": -1, + "receive": 0, + "send": 0, + "ssl": -1, + "wait": 155 + } + } + ], + "pages": [], + "version": "1.2" + } +} diff --git a/test/e2e/mocks/iga_2664973160/scope-export_236648464/0_all_file_3124693826/openidm_3290118515/recording.har b/test/e2e/mocks/iga_2664973160/scope-export_236648464/0_all_file_3124693826/openidm_3290118515/recording.har new file mode 100644 index 000000000..326f75446 --- /dev/null +++ b/test/e2e/mocks/iga_2664973160/scope-export_236648464/0_all_file_3124693826/openidm_3290118515/recording.har @@ -0,0 +1,310 @@ +{ + "log": { + "_recordingName": "iga/scope-export/0_all_file/openidm", + "creator": { + "comment": "persister:fs", + "name": "Polly.JS", + "version": "6.0.6" + }, + "entries": [ + { + "_id": "9cb8561357870863838a9948da32d1e8", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "name": "accept", + "value": "application/json, text/plain, */*" + }, + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "user-agent", + "value": "@rockcarver/frodo-lib/4.0.0-39" + }, + { + "name": "x-forgerock-transactionid", + "value": "frodo-93be60b0-47da-4e05-8562-f0e71b2adc57" + }, + { + "name": "authorization", + "value": "Bearer " + }, + { + "name": "accept-encoding", + "value": "gzip, compress, deflate, br" + }, + { + "name": "host", + "value": "openam-frodo-dev.forgeblocks.com" + } + ], + "headersSize": 1938, + "httpVersion": "HTTP/1.1", + "method": "GET", + "queryString": [ + { + "name": "_fields", + "value": "*" + } + ], + "url": "https://openam-trivir-fairfax.forgeblocks.com/openidm/managed/svcacct/10d76629-78da-4265-868b-9a0cb68ebdb4?_fields=%2A" + }, + "response": { + "bodySize": 1401, + "content": { + "mimeType": "application/json;charset=utf-8", + "size": 1401, + "text": "{\"_id\":\"10d76629-78da-4265-868b-9a0cb68ebdb4\",\"_rev\":\"4b025e5d-c082-45f8-a3e9-0ac1db308dff-21339\",\"accountStatus\":\"active\",\"name\":\"Frodo-SA-1777919406717\",\"description\":\"dsevy@trivir.com's Frodo Service Account\",\"scopes\":[\"fr:am:*\",\"fr:idc:analytics:*\",\"fr:autoaccess:*\",\"fr:idc:certificate:*\",\"fr:idc:content-security-policy:*\",\"fr:idc:cookie-domain:*\",\"fr:idc:custom-domain:*\",\"fr:idc:dataset:*\",\"fr:idc:esv:*\",\"fr:idm:*\",\"fr:iga:*\",\"fr:idc:promotion:*\",\"fr:idc:release:*\",\"fr:idc:sso-cookie:*\"],\"jwks\":\"{\\\"keys\\\":[{\\\"kty\\\":\\\"RSA\\\",\\\"kid\\\":\\\"hshlr1hlp8bXdLNDrh3rESiHNsMS68c4XtbZX9i_Seg\\\",\\\"alg\\\":\\\"RS256\\\",\\\"e\\\":\\\"AQAB\\\",\\\"n\\\":\\\"owg6VJta_1o9VqyQk4Xs2kA_BDcyWEN1WMERqaJIFCbtecz_IMBp2G5m76dawbB9QvUsFvMqfJ2OGbaCcfC2o5lkxEu4nxdKLKYZ4-JTGsbPN6j-f9yr0LCjFMPd1BRxKQ98euSu5UZ0_gy9QN-eS4zB5zJsb8E7Y7FXsxG6vgd8dCqCSPjJeSmZhnQEeqJeysGlA5jMzQUP9Lvgm2aZp5wz7DXzF9lvsqRjm49H9wlERjy4KDmjlp5Rr3lz8ZXGgsaIdp18hUrPFKJP5qxkICfnbxdyK858A5puUypj1OAqrOtAnwjk5lMPOYzBWjWV72RPnOY3-6KAHo8uFXK3EH8AN8ErHxhpo-soV0e7-Z7gEnmt0rliY3j_-2AHA0Q5G1k52cGQ-dARGzgAQacpdnQv_pT0k83DGZPrpR6PqBRkyiJBD_PTvySZohxFgjpJfJmkYec7Pg40xri_LN1ozkLRBdQwL2zaQFYtq_VZC20a8Y7NpqpoLcvFIB9W2NS03qTokvId7gdSgdcVmpOo4n7OZZCouD6cyWyJ6Nj9uaxz-mw4Mdzhpd8cclSV_gXeWMBBoW3dZ7zzkEFMWHBT2x9S8JAZor_aaGJ2MXOoNoHRg-q9shNhQ3h7U14MXfL7I9R4ixClZMOpxILa0VT0Vzm-h685xkXwa28WLSw21QU\\\"}]}\",\"maxCachingTime\":\"15\",\"maxIdleTime\":\"15\",\"maxSessionTime\":\"15\",\"quotaLimit\":\"5\"}" + }, + "cookies": [], + "headers": [ + { + "name": "date", + "value": "Tue, 19 May 2026 20:27:10 GMT" + }, + { + "name": "vary", + "value": "Origin" + }, + { + "name": "cache-control", + "value": "no-store" + }, + { + "name": "content-security-policy", + "value": "default-src 'none';frame-ancestors 'none';sandbox" + }, + { + "name": "content-type", + "value": "application/json;charset=utf-8" + }, + { + "name": "cross-origin-opener-policy", + "value": "same-origin" + }, + { + "name": "cross-origin-resource-policy", + "value": "same-origin" + }, + { + "name": "etag", + "value": "\"4b025e5d-c082-45f8-a3e9-0ac1db308dff-21339\"" + }, + { + "name": "expires", + "value": "0" + }, + { + "name": "pragma", + "value": "no-cache" + }, + { + "name": "x-content-type-options", + "value": "nosniff" + }, + { + "name": "x-frame-options", + "value": "DENY" + }, + { + "name": "content-length", + "value": "1401" + }, + { + "name": "x-forgerock-transactionid", + "value": "frodo-93be60b0-47da-4e05-8562-f0e71b2adc57" + }, + { + "name": "strict-transport-security", + "value": "max-age=31536000; includeSubDomains; preload;" + }, + { + "name": "x-robots-tag", + "value": "none" + }, + { + "name": "via", + "value": "1.1 google" + }, + { + "name": "alt-svc", + "value": "h3=\":443\"; ma=2592000" + } + ], + "headersSize": 658, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2026-05-19T20:27:09.984Z", + "time": 206, + "timings": { + "blocked": -1, + "connect": -1, + "dns": -1, + "receive": 0, + "send": 0, + "ssl": -1, + "wait": 206 + } + }, + { + "_id": "9cb8561357870863838a9948da32d1e8", + "_order": 1, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "name": "accept", + "value": "application/json, text/plain, */*" + }, + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "user-agent", + "value": "@rockcarver/frodo-lib/4.0.0-39" + }, + { + "name": "x-forgerock-transactionid", + "value": "frodo-93be60b0-47da-4e05-8562-f0e71b2adc57" + }, + { + "name": "authorization", + "value": "Bearer " + }, + { + "name": "accept-encoding", + "value": "gzip, compress, deflate, br" + }, + { + "name": "host", + "value": "openam-frodo-dev.forgeblocks.com" + } + ], + "headersSize": 1938, + "httpVersion": "HTTP/1.1", + "method": "GET", + "queryString": [ + { + "name": "_fields", + "value": "*" + } + ], + "url": "https://openam-trivir-fairfax.forgeblocks.com/openidm/managed/svcacct/10d76629-78da-4265-868b-9a0cb68ebdb4?_fields=%2A" + }, + "response": { + "bodySize": 1401, + "content": { + "mimeType": "application/json;charset=utf-8", + "size": 1401, + "text": "{\"_id\":\"10d76629-78da-4265-868b-9a0cb68ebdb4\",\"_rev\":\"4b025e5d-c082-45f8-a3e9-0ac1db308dff-21339\",\"accountStatus\":\"active\",\"name\":\"Frodo-SA-1777919406717\",\"description\":\"dsevy@trivir.com's Frodo Service Account\",\"scopes\":[\"fr:am:*\",\"fr:idc:analytics:*\",\"fr:autoaccess:*\",\"fr:idc:certificate:*\",\"fr:idc:content-security-policy:*\",\"fr:idc:cookie-domain:*\",\"fr:idc:custom-domain:*\",\"fr:idc:dataset:*\",\"fr:idc:esv:*\",\"fr:idm:*\",\"fr:iga:*\",\"fr:idc:promotion:*\",\"fr:idc:release:*\",\"fr:idc:sso-cookie:*\"],\"jwks\":\"{\\\"keys\\\":[{\\\"kty\\\":\\\"RSA\\\",\\\"kid\\\":\\\"hshlr1hlp8bXdLNDrh3rESiHNsMS68c4XtbZX9i_Seg\\\",\\\"alg\\\":\\\"RS256\\\",\\\"e\\\":\\\"AQAB\\\",\\\"n\\\":\\\"owg6VJta_1o9VqyQk4Xs2kA_BDcyWEN1WMERqaJIFCbtecz_IMBp2G5m76dawbB9QvUsFvMqfJ2OGbaCcfC2o5lkxEu4nxdKLKYZ4-JTGsbPN6j-f9yr0LCjFMPd1BRxKQ98euSu5UZ0_gy9QN-eS4zB5zJsb8E7Y7FXsxG6vgd8dCqCSPjJeSmZhnQEeqJeysGlA5jMzQUP9Lvgm2aZp5wz7DXzF9lvsqRjm49H9wlERjy4KDmjlp5Rr3lz8ZXGgsaIdp18hUrPFKJP5qxkICfnbxdyK858A5puUypj1OAqrOtAnwjk5lMPOYzBWjWV72RPnOY3-6KAHo8uFXK3EH8AN8ErHxhpo-soV0e7-Z7gEnmt0rliY3j_-2AHA0Q5G1k52cGQ-dARGzgAQacpdnQv_pT0k83DGZPrpR6PqBRkyiJBD_PTvySZohxFgjpJfJmkYec7Pg40xri_LN1ozkLRBdQwL2zaQFYtq_VZC20a8Y7NpqpoLcvFIB9W2NS03qTokvId7gdSgdcVmpOo4n7OZZCouD6cyWyJ6Nj9uaxz-mw4Mdzhpd8cclSV_gXeWMBBoW3dZ7zzkEFMWHBT2x9S8JAZor_aaGJ2MXOoNoHRg-q9shNhQ3h7U14MXfL7I9R4ixClZMOpxILa0VT0Vzm-h685xkXwa28WLSw21QU\\\"}]}\",\"maxCachingTime\":\"15\",\"maxIdleTime\":\"15\",\"maxSessionTime\":\"15\",\"quotaLimit\":\"5\"}" + }, + "cookies": [], + "headers": [ + { + "name": "date", + "value": "Tue, 19 May 2026 20:27:10 GMT" + }, + { + "name": "vary", + "value": "Origin" + }, + { + "name": "cache-control", + "value": "no-store" + }, + { + "name": "content-security-policy", + "value": "default-src 'none';frame-ancestors 'none';sandbox" + }, + { + "name": "content-type", + "value": "application/json;charset=utf-8" + }, + { + "name": "cross-origin-opener-policy", + "value": "same-origin" + }, + { + "name": "cross-origin-resource-policy", + "value": "same-origin" + }, + { + "name": "etag", + "value": "\"4b025e5d-c082-45f8-a3e9-0ac1db308dff-21339\"" + }, + { + "name": "expires", + "value": "0" + }, + { + "name": "pragma", + "value": "no-cache" + }, + { + "name": "x-content-type-options", + "value": "nosniff" + }, + { + "name": "x-frame-options", + "value": "DENY" + }, + { + "name": "content-length", + "value": "1401" + }, + { + "name": "x-forgerock-transactionid", + "value": "frodo-93be60b0-47da-4e05-8562-f0e71b2adc57" + }, + { + "name": "strict-transport-security", + "value": "max-age=31536000; includeSubDomains; preload;" + }, + { + "name": "x-robots-tag", + "value": "none" + }, + { + "name": "via", + "value": "1.1 google" + }, + { + "name": "alt-svc", + "value": "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" + } + ], + "headersSize": 683, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2026-05-19T20:27:10.176Z", + "time": 109, + "timings": { + "blocked": -1, + "connect": -1, + "dns": -1, + "receive": 0, + "send": 0, + "ssl": -1, + "wait": 109 + } + } + ], + "pages": [], + "version": "1.2" + } +} diff --git a/test/e2e/mocks/iga_2664973160/scope-export_236648464/0_no-metadata_a_directory_3627220595/am_1076162899/recording.har b/test/e2e/mocks/iga_2664973160/scope-export_236648464/0_no-metadata_a_directory_3627220595/am_1076162899/recording.har new file mode 100644 index 000000000..8911a0a52 --- /dev/null +++ b/test/e2e/mocks/iga_2664973160/scope-export_236648464/0_no-metadata_a_directory_3627220595/am_1076162899/recording.har @@ -0,0 +1,312 @@ +{ + "log": { + "_recordingName": "iga/scope-export/0_no-metadata_a_directory/am", + "creator": { + "comment": "persister:fs", + "name": "Polly.JS", + "version": "6.0.6" + }, + "entries": [ + { + "_id": "ccd7a5defd0fdeaa986a2b54642d911a", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "name": "accept", + "value": "application/json, text/plain, */*" + }, + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "user-agent", + "value": "@rockcarver/frodo-lib/4.0.0-39" + }, + { + "name": "x-forgerock-transactionid", + "value": "frodo-b9b8aea0-f625-450d-8987-f3583734e02a" + }, + { + "name": "accept-api-version", + "value": "resource=1.1" + }, + { + "name": "accept-encoding", + "value": "gzip, compress, deflate, br" + }, + { + "name": "host", + "value": "openam-frodo-dev.forgeblocks.com" + } + ], + "headersSize": 398, + "httpVersion": "HTTP/1.1", + "method": "GET", + "queryString": [], + "url": "https://openam-trivir-fairfax.forgeblocks.com/am/json/serverinfo/*" + }, + "response": { + "bodySize": 614, + "content": { + "mimeType": "application/json;charset=UTF-8", + "size": 614, + "text": "{\"_id\":\"*\",\"_rev\":\"959929574\",\"domains\":[],\"protectedUserAttributes\":[\"telephoneNumber\",\"mail\"],\"cookieName\":\"311468432e97f1f\",\"secureCookie\":true,\"forgotPassword\":\"false\",\"forgotUsername\":\"false\",\"kbaEnabled\":\"false\",\"selfRegistration\":\"false\",\"lang\":\"en-US\",\"successfulUserRegistrationDestination\":\"default\",\"socialImplementations\":[],\"referralsEnabled\":\"false\",\"zeroPageLogin\":{\"enabled\":false,\"refererWhitelist\":[],\"allowedWithoutReferer\":true},\"realm\":\"/\",\"xuiUserSessionValidationEnabled\":true,\"fileBasedConfiguration\":true,\"userIdAttributes\":[],\"cloudOnlyFeaturesEnabled\":true,\"oauth2AIAgentsEnabled\":false}" + }, + "cookies": [], + "headers": [ + { + "name": "x-frame-options", + "value": "SAMEORIGIN" + }, + { + "name": "content-security-policy-report-only", + "value": "frame-ancestors 'self'; script-src 'self' 'unsafe-eval' 'unsafe-inline'" + }, + { + "name": "x-content-type-options", + "value": "nosniff" + }, + { + "name": "cache-control", + "value": "no-store" + }, + { + "name": "content-api-version", + "value": "resource=1.1" + }, + { + "name": "content-security-policy", + "value": "default-src 'none';frame-ancestors 'none';sandbox" + }, + { + "name": "cross-origin-opener-policy", + "value": "same-origin" + }, + { + "name": "cross-origin-resource-policy", + "value": "same-origin" + }, + { + "name": "etag", + "value": "\"959929574\"" + }, + { + "name": "expires", + "value": "0" + }, + { + "name": "pragma", + "value": "no-cache" + }, + { + "name": "content-type", + "value": "application/json;charset=UTF-8" + }, + { + "name": "content-length", + "value": "614" + }, + { + "name": "date", + "value": "Tue, 19 May 2026 20:25:39 GMT" + }, + { + "name": "x-forgerock-transactionid", + "value": "frodo-b9b8aea0-f625-450d-8987-f3583734e02a" + }, + { + "name": "strict-transport-security", + "value": "max-age=31536000; includeSubDomains; preload;" + }, + { + "name": "x-robots-tag", + "value": "none" + }, + { + "name": "via", + "value": "1.1 google" + }, + { + "name": "alt-svc", + "value": "h3=\":443\"; ma=2592000" + } + ], + "headersSize": 761, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2026-05-19T20:25:39.715Z", + "time": 174, + "timings": { + "blocked": -1, + "connect": -1, + "dns": -1, + "receive": 0, + "send": 0, + "ssl": -1, + "wait": 174 + } + }, + { + "_id": "6125d0328ad0dcaee55f73fd8b22ca14", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "name": "accept", + "value": "application/json, text/plain, */*" + }, + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "user-agent", + "value": "@rockcarver/frodo-lib/4.0.0-39" + }, + { + "name": "x-forgerock-transactionid", + "value": "frodo-b9b8aea0-f625-450d-8987-f3583734e02a" + }, + { + "name": "accept-api-version", + "value": "resource=1.0" + }, + { + "name": "authorization", + "value": "Bearer " + }, + { + "name": "accept-encoding", + "value": "gzip, compress, deflate, br" + }, + { + "name": "host", + "value": "openam-frodo-dev.forgeblocks.com" + } + ], + "headersSize": 1926, + "httpVersion": "HTTP/1.1", + "method": "GET", + "queryString": [], + "url": "https://openam-trivir-fairfax.forgeblocks.com/am/json/serverinfo/version" + }, + "response": { + "bodySize": 274, + "content": { + "mimeType": "application/json;charset=UTF-8", + "size": 274, + "text": "{\"_id\":\"version\",\"_rev\":\"194838800\",\"version\":\"9.0.0-SNAPSHOT\",\"fullVersion\":\"ForgeRock Access Management 9.0.0-SNAPSHOT Build 500b736d5354dc1171d65a84ec4230d63a5a084e (2026-April-21 11:20)\",\"revision\":\"500b736d5354dc1171d65a84ec4230d63a5a084e\",\"date\":\"2026-April-21 11:20\"}" + }, + "cookies": [], + "headers": [ + { + "name": "x-frame-options", + "value": "SAMEORIGIN" + }, + { + "name": "content-security-policy-report-only", + "value": "frame-ancestors 'self'; script-src 'self' 'unsafe-eval' 'unsafe-inline'" + }, + { + "name": "x-content-type-options", + "value": "nosniff" + }, + { + "name": "cache-control", + "value": "no-store" + }, + { + "name": "content-api-version", + "value": "resource=1.0" + }, + { + "name": "content-security-policy", + "value": "default-src 'none';frame-ancestors 'none';sandbox" + }, + { + "name": "cross-origin-opener-policy", + "value": "same-origin" + }, + { + "name": "cross-origin-resource-policy", + "value": "same-origin" + }, + { + "name": "etag", + "value": "\"194838800\"" + }, + { + "name": "expires", + "value": "0" + }, + { + "name": "pragma", + "value": "no-cache" + }, + { + "name": "content-type", + "value": "application/json;charset=UTF-8" + }, + { + "name": "content-length", + "value": "274" + }, + { + "name": "date", + "value": "Tue, 19 May 2026 20:25:40 GMT" + }, + { + "name": "x-forgerock-transactionid", + "value": "frodo-b9b8aea0-f625-450d-8987-f3583734e02a" + }, + { + "name": "strict-transport-security", + "value": "max-age=31536000; includeSubDomains; preload;" + }, + { + "name": "x-robots-tag", + "value": "none" + }, + { + "name": "via", + "value": "1.1 google" + }, + { + "name": "alt-svc", + "value": "h3=\":443\"; ma=2592000" + } + ], + "headersSize": 761, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2026-05-19T20:25:40.084Z", + "time": 120, + "timings": { + "blocked": -1, + "connect": -1, + "dns": -1, + "receive": 0, + "send": 0, + "ssl": -1, + "wait": 120 + } + } + ], + "pages": [], + "version": "1.2" + } +} diff --git a/test/e2e/mocks/iga_2664973160/scope-export_236648464/0_no-metadata_a_directory_3627220595/environment_1072573434/recording.har b/test/e2e/mocks/iga_2664973160/scope-export_236648464/0_no-metadata_a_directory_3627220595/environment_1072573434/recording.har new file mode 100644 index 000000000..1e793abeb --- /dev/null +++ b/test/e2e/mocks/iga_2664973160/scope-export_236648464/0_no-metadata_a_directory_3627220595/environment_1072573434/recording.har @@ -0,0 +1,125 @@ +{ + "log": { + "_recordingName": "iga/scope-export/0_no-metadata_a_directory/environment", + "creator": { + "comment": "persister:fs", + "name": "Polly.JS", + "version": "6.0.6" + }, + "entries": [ + { + "_id": "ccc7ec61c2094114d7917814bb19b83b", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "name": "accept", + "value": "application/json, text/plain, */*" + }, + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "user-agent", + "value": "@rockcarver/frodo-lib/4.0.0-39" + }, + { + "name": "accept-api-version", + "value": "protocol=1.0,resource=1.0" + }, + { + "name": "authorization", + "value": "Bearer " + }, + { + "name": "accept-encoding", + "value": "gzip, compress, deflate, br" + }, + { + "name": "host", + "value": "openam-frodo-dev.forgeblocks.com" + } + ], + "headersSize": 1877, + "httpVersion": "HTTP/1.1", + "method": "GET", + "queryString": [], + "url": "https://openam-trivir-fairfax.forgeblocks.com/environment/scopes/service-accounts" + }, + "response": { + "bodySize": 1975, + "content": { + "mimeType": "application/json; charset=utf-8", + "size": 1975, + "text": "[{\"scope\":\"fr:am:*\",\"description\":\"All Access Management APIs\"},{\"scope\":\"fr:autoaccess:*\",\"description\":\"All Auto Access APIs\"},{\"scope\":\"fr:idc:analytics:*\",\"description\":\"All Analytics APIs\"},{\"scope\":\"fr:idc:certificate:*\",\"description\":\"All TLS certificate APIs\",\"childScopes\":[{\"scope\":\"fr:idc:certificate:read\",\"description\":\"Read TLS certificates\"}]},{\"scope\":\"fr:idc:content-security-policy:*\",\"description\":\"All content security policy APIs\",\"childScopes\":[{\"scope\":\"fr:idc:content-security-policy:read\",\"description\":\"Read content security policy\"}]},{\"scope\":\"fr:idc:cookie-domain:*\",\"description\":\"All cookie domain APIs\",\"childScopes\":[{\"scope\":\"fr:idc:cookie-domain:read\",\"description\":\"Read cookie domains\"}]},{\"scope\":\"fr:idc:custom-domain:*\",\"description\":\"All custom domain APIs\",\"childScopes\":[{\"scope\":\"fr:idc:custom-domain:read\",\"description\":\"Read custom domains\"}]},{\"scope\":\"fr:idc:dataset:*\",\"description\":\"All dataset deletion APIs\",\"childScopes\":[{\"scope\":\"fr:idc:dataset:read\",\"description\":\"Read dataset deletions\"}]},{\"scope\":\"fr:idc:esv:*\",\"description\":\"All ESV APIs\",\"childScopes\":[{\"scope\":\"fr:idc:esv:read\",\"description\":\"Read ESVs, excluding values of secrets\"},{\"scope\":\"fr:idc:esv:update\",\"description\":\"Create, modify, and delete ESVs\"},{\"scope\":\"fr:idc:esv:restart\",\"description\":\"Restart workloads that consume ESVs\"}]},{\"scope\":\"fr:idc:promotion:*\",\"description\":\"All configuration promotion APIs\",\"childScopes\":[{\"scope\":\"fr:idc:promotion:read\",\"description\":\"Read configuration promotion\"}]},{\"scope\":\"fr:idc:release:*\",\"description\":\"All product release APIs\",\"childScopes\":[{\"scope\":\"fr:idc:release:read\",\"description\":\"Read product release\"}]},{\"scope\":\"fr:idc:sso-cookie:*\",\"description\":\"All SSO cookie APIs\",\"childScopes\":[{\"scope\":\"fr:idc:sso-cookie:read\",\"description\":\"Read SSO cookie\"}]},{\"scope\":\"fr:idm:*\",\"description\":\"All Identity Management APIs\"},{\"scope\":\"fr:iga:*\",\"description\":\"All Identity Governance APIs\"}]" + }, + "cookies": [], + "headers": [ + { + "name": "x-frame-options", + "value": "SAMEORIGIN" + }, + { + "name": "content-type", + "value": "application/json; charset=utf-8" + }, + { + "name": "content-length", + "value": "1975" + }, + { + "name": "etag", + "value": "W/\"7b7-tIBWy/EinSCKaoNz4aU2iqiTmFc\"" + }, + { + "name": "date", + "value": "Tue, 19 May 2026 20:25:40 GMT" + }, + { + "name": "x-forgerock-transactionid", + "value": "a5d37a55-549c-44b2-ae38-e0a5160d4fb3" + }, + { + "name": "strict-transport-security", + "value": "max-age=31536000; includeSubDomains; preload;" + }, + { + "name": "x-robots-tag", + "value": "none" + }, + { + "name": "via", + "value": "1.1 google" + }, + { + "name": "alt-svc", + "value": "h3=\":443\"; ma=2592000" + } + ], + "headersSize": 388, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2026-05-19T20:25:40.210Z", + "time": 118, + "timings": { + "blocked": -1, + "connect": -1, + "dns": -1, + "receive": 0, + "send": 0, + "ssl": -1, + "wait": 118 + } + } + ], + "pages": [], + "version": "1.2" + } +} diff --git a/test/e2e/mocks/iga_2664973160/scope-export_236648464/0_no-metadata_a_directory_3627220595/iga_2664973160/recording.har b/test/e2e/mocks/iga_2664973160/scope-export_236648464/0_no-metadata_a_directory_3627220595/iga_2664973160/recording.har new file mode 100644 index 000000000..879e1b87e --- /dev/null +++ b/test/e2e/mocks/iga_2664973160/scope-export_236648464/0_no-metadata_a_directory_3627220595/iga_2664973160/recording.har @@ -0,0 +1,147 @@ +{ + "log": { + "_recordingName": "iga/scope-export/0_no-metadata_a_directory/iga", + "creator": { + "comment": "persister:fs", + "name": "Polly.JS", + "version": "6.0.6" + }, + "entries": [ + { + "_id": "af55958a3898b129bc68978def6db818", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "name": "accept", + "value": "application/json, text/plain, */*" + }, + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "user-agent", + "value": "@rockcarver/frodo-lib/4.0.0-39" + }, + { + "name": "authorization", + "value": "Bearer " + }, + { + "name": "accept-encoding", + "value": "gzip, compress, deflate, br" + }, + { + "name": "host", + "value": "openam-frodo-dev.forgeblocks.com" + } + ], + "headersSize": 1871, + "httpVersion": "HTTP/1.1", + "method": "GET", + "queryString": [ + { + "name": "_queryFilter", + "value": "true" + }, + { + "name": "_pageSize", + "value": "10000" + }, + { + "name": "_pagedResultsOffset", + "value": "0" + } + ], + "url": "https://openam-trivir-fairfax.forgeblocks.com/iga/governance/scope?_queryFilter=true&_pageSize=10000&_pagedResultsOffset=0" + }, + "response": { + "bodySize": 2023, + "content": { + "encoding": "base64", + "mimeType": "application/json; charset=utf-8", + "size": 2023, + "text": "[\"G0YbAORaavX6qvp1Qa0iRP0upOhC0Iy58yAv4PFOufTzc633Cx08tW1/uDeieJz8vf2PuSbTxkXwknWXMItnKeyuNTIhkgsme90H9Y35pYSVwZV2l3nAYbLmgvWvB6QN5Rt7HWWvsMKgPqYe9ytNeW9TGf/CuNcRSp1yuQxqMENJsIIIhmcnJIbAJSquAnorFIbkNXnGVEoWZqjhmWCFtFPHug+Mex2hVBzUB8zQ91uL9NFeUxllr7A+4NapwfqAXC6DGqwP2Busfz2g7uMU9zpCqR3WB5R66qOV+gQro2CJZbzCDPu6418v84BjJD3wAiv8MsIZjuP455hh/3dHhRVeBBzHDH2EceuwQoijvBDMMEI7AlZJCQ99zHBq9AIrn+GZRkhhBFgfIKFL+zgMghUEEwaZRu5/FmwVfOVyUV4bJpjVf8IMm3pXxXKT2nvn3Z9wHLO8kCTMQmYjhWIJBRMWlckRN0eE3lilN5JWBkdcw0tUKbnD+ijPBD6po4zLQSlkh3W0G80VK+z1xXVeCt0/a6GOHp2tk/8v4pMlIHu2g0QXindzL4Xuv3RqH8RIPT1PftwvJLtJNp4vi8hmIbnVwDFrWPdDTfD2f+4jDPq+7S+lRtK1fLD+jrzIeOWtNwMJSUV0/9ZCKuIptFLAboOvgWrqp3sZZ1gf0G85l7cWltbhmOGweVGzoZWqAn6qNcT2yBuVZplenOVCO+UUIZauWy5sMAu92exNZmg3k1BFltFZJnEzgTHJiEXH6feT3tzCpaNtIc1hmolRliTKQzk4d412tukI5gMr1ZwxjHDZnxZm/0XIyoX0xqDnK9AceUcDy19qyEGLdtbf27Kj4JL/tkR4i1fXCv3afqHFOMgGkrrQoqeS8qHgNR4YWzlfpGJWOS8M8SyDS+OZDhV9MIGmhVFNfbqXcUZLK1pNfJNa4MZkP/0cHLdgNSqbknQuOx8FrUA1dbyXcUY4RhInqfPThvkPO5UEByoyAcwuXGnnBHPiHEvnnHkf1hjn0qfSpzDBS7b9zTBqp5Ri6GQKqKza0Csr0QWdbFBSeoVUZ3wLNe3P/zAEkesUWguvOo85DJdhfJe/a09g9YzIqpzJbmjtRqiSCei1USizTy4qyRQxOJqCqJO9Zz+Fy5i+Dv/T9FEZr3bmVJGKog5TUE6Ny4Urr4xlmjiWzjVXMkgn9PJOB0oedb35jqhG+2xC\",\"KmsWLgktpLSYmeSovGHovQgok7XSMJ6czjRi39J9+umT7Yl0JnJw4uTloFUuFis9M4K7B+LonBlt/IOkic3AhZQ0Q8Y5odJBYhDGoddOe5uEFjEQ2pEX54/BKM9pIzS2nnyv4dJro+y5fVETve1uA3ijE0rT8C8MIGREp7ZIhj9gJjPC22tHpjf9JtRa8uIhWCVFpLDuFgoeaZZAmjaP7XDQElAoGH6kUho8vAQ0ho60FYpvKPim5WaL4857Jx4cQzOMYwM5ZuFdtFJHQpNTRBWMQMdYRmO0l86RUjySxn/p1KavP/pm+tkvkXQKJKG6XW6CSIyYx+BDRMVjwJCFQhcy0yIqx7LAKl28dWpTODtdz2e8hkZ14N6eEEFRRC34yutEP7TMF+2Y95xr/sGyDO68tarjwk1hIICJ+/aPXeX3ZoYhGoYqW4EhuYCUnd0255zfxixQQiWNQ7BFjsOv7LQc9Jue5AiL5R3nflVmFXYRXCtrHbeEYem2UUyGlNKnun9G/10/zEFnQ1ozFD5vqBwldDZzTFJHFz0zNiYKKEPjNIbEieJ/xxwD1ypzi+BCCqGlfXAcTeHee8+xPrhc9nufzr8gjahP7+ASY7+og56o8YneTOzdaezTS6H7dIIFPJNo2rf/KI5uSeZghGcmebTJWFSae9w498glk3zbhHbe0NWv5zMmutBTGITbWiKIxEGjY/jKKEuzeEyQVS51iNmRSkZBbzSsFsG1VlZwp4pY4pXnowRB/8wNMgUf5EHtK3qF9S9h1/lnhstOs8ZH+60OWDmfZ5zxT/od\"]" + }, + "cookies": [], + "headers": [ + { + "name": "x-powered-by", + "value": "Express" + }, + { + "name": "cache-control", + "value": "no-store" + }, + { + "name": "content-type", + "value": "application/json; charset=utf-8" + }, + { + "name": "etag", + "value": "W/\"1b47-XNnXc9MPNP1B8DNWFc5xVB0RlVc\"" + }, + { + "name": "vary", + "value": "Accept-Encoding" + }, + { + "name": "content-encoding", + "value": "br" + }, + { + "name": "date", + "value": "Tue, 19 May 2026 20:25:40 GMT" + }, + { + "name": "x-forgerock-transactionid", + "value": "f1bd1876-b0b2-415d-9a88-4199ddb512d9" + }, + { + "name": "strict-transport-security", + "value": "max-age=31536000; includeSubDomains; preload;" + }, + { + "name": "x-robots-tag", + "value": "none" + }, + { + "name": "via", + "value": "1.1 google" + }, + { + "name": "alt-svc", + "value": "h3=\":443\"; ma=2592000" + }, + { + "name": "transfer-encoding", + "value": "chunked" + } + ], + "headersSize": 459, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2026-05-19T20:25:40.437Z", + "time": 160, + "timings": { + "blocked": -1, + "connect": -1, + "dns": -1, + "receive": 0, + "send": 0, + "ssl": -1, + "wait": 160 + } + } + ], + "pages": [], + "version": "1.2" + } +} diff --git a/test/e2e/mocks/iga_2664973160/scope-export_236648464/0_no-metadata_a_directory_3627220595/oauth2_393036114/recording.har b/test/e2e/mocks/iga_2664973160/scope-export_236648464/0_no-metadata_a_directory_3627220595/oauth2_393036114/recording.har new file mode 100644 index 000000000..752130880 --- /dev/null +++ b/test/e2e/mocks/iga_2664973160/scope-export_236648464/0_no-metadata_a_directory_3627220595/oauth2_393036114/recording.har @@ -0,0 +1,146 @@ +{ + "log": { + "_recordingName": "iga/scope-export/0_no-metadata_a_directory/oauth2", + "creator": { + "comment": "persister:fs", + "name": "Polly.JS", + "version": "6.0.6" + }, + "entries": [ + { + "_id": "ff75519a93ccab829f8ee8cf5e92b49f", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 1328, + "cookies": [], + "headers": [ + { + "name": "accept", + "value": "application/json, text/plain, */*" + }, + { + "name": "content-type", + "value": "application/x-www-form-urlencoded" + }, + { + "name": "user-agent", + "value": "@rockcarver/frodo-lib/4.0.0-39" + }, + { + "name": "x-forgerock-transactionid", + "value": "frodo-b9b8aea0-f625-450d-8987-f3583734e02a" + }, + { + "name": "accept-api-version", + "value": "protocol=2.1,resource=1.0" + }, + { + "name": "content-length", + "value": "1328" + }, + { + "name": "accept-encoding", + "value": "gzip, compress, deflate, br" + }, + { + "name": "host", + "value": "openam-frodo-dev.forgeblocks.com" + } + ], + "headersSize": 453, + "httpVersion": "HTTP/1.1", + "method": "POST", + "postData": { + "mimeType": "application/x-www-form-urlencoded", + "params": [], + "text": "assertion=&client_id=service-account&grant_type=urn:ietf:params:oauth:grant-type:jwt-bearer&scope=fr:idc:custom-domain:* fr:idc:release:* fr:idc:sso-cookie:* fr:am:* fr:idc:esv:* fr:idc:content-security-policy:* fr:iga:* fr:idc:certificate:* fr:idm:* fr:idc:analytics:* fr:idc:cookie-domain:* fr:idc:promotion:*" + }, + "queryString": [], + "url": "https://openam-trivir-fairfax.forgeblocks.com/am/oauth2/access_token" + }, + "response": { + "bodySize": 1780, + "content": { + "mimeType": "application/json;charset=UTF-8", + "size": 1780, + "text": "{\"access_token\":\"\",\"scope\":\"fr:idc:custom-domain:* fr:idc:release:* fr:idc:sso-cookie:* fr:am:* fr:idc:esv:* fr:idc:content-security-policy:* fr:iga:* fr:idc:certificate:* fr:idm:* fr:idc:analytics:* fr:idc:cookie-domain:* fr:idc:promotion:*\",\"token_type\":\"Bearer\",\"expires_in\":899}" + }, + "cookies": [], + "headers": [ + { + "name": "x-frame-options", + "value": "SAMEORIGIN" + }, + { + "name": "content-security-policy-report-only", + "value": "frame-ancestors 'self'; script-src 'self' 'unsafe-eval' 'unsafe-inline'" + }, + { + "name": "x-content-type-options", + "value": "nosniff" + }, + { + "name": "cache-control", + "value": "no-store" + }, + { + "name": "pragma", + "value": "no-cache" + }, + { + "name": "content-type", + "value": "application/json;charset=UTF-8" + }, + { + "name": "content-length", + "value": "1780" + }, + { + "name": "date", + "value": "Tue, 19 May 2026 20:25:40 GMT" + }, + { + "name": "x-forgerock-transactionid", + "value": "frodo-b9b8aea0-f625-450d-8987-f3583734e02a" + }, + { + "name": "strict-transport-security", + "value": "max-age=31536000; includeSubDomains; preload;" + }, + { + "name": "x-robots-tag", + "value": "none" + }, + { + "name": "via", + "value": "1.1 google" + }, + { + "name": "alt-svc", + "value": "h3=\":443\"; ma=2592000" + } + ], + "headersSize": 536, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2026-05-19T20:25:39.902Z", + "time": 176, + "timings": { + "blocked": -1, + "connect": -1, + "dns": -1, + "receive": 0, + "send": 0, + "ssl": -1, + "wait": 176 + } + } + ], + "pages": [], + "version": "1.2" + } +} diff --git a/test/e2e/mocks/iga_2664973160/scope-export_236648464/0_no-metadata_a_directory_3627220595/openidm_3290118515/recording.har b/test/e2e/mocks/iga_2664973160/scope-export_236648464/0_no-metadata_a_directory_3627220595/openidm_3290118515/recording.har new file mode 100644 index 000000000..bcc2d2640 --- /dev/null +++ b/test/e2e/mocks/iga_2664973160/scope-export_236648464/0_no-metadata_a_directory_3627220595/openidm_3290118515/recording.har @@ -0,0 +1,310 @@ +{ + "log": { + "_recordingName": "iga/scope-export/0_no-metadata_a_directory/openidm", + "creator": { + "comment": "persister:fs", + "name": "Polly.JS", + "version": "6.0.6" + }, + "entries": [ + { + "_id": "9cb8561357870863838a9948da32d1e8", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "name": "accept", + "value": "application/json, text/plain, */*" + }, + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "user-agent", + "value": "@rockcarver/frodo-lib/4.0.0-39" + }, + { + "name": "x-forgerock-transactionid", + "value": "frodo-b9b8aea0-f625-450d-8987-f3583734e02a" + }, + { + "name": "authorization", + "value": "Bearer " + }, + { + "name": "accept-encoding", + "value": "gzip, compress, deflate, br" + }, + { + "name": "host", + "value": "openam-frodo-dev.forgeblocks.com" + } + ], + "headersSize": 1938, + "httpVersion": "HTTP/1.1", + "method": "GET", + "queryString": [ + { + "name": "_fields", + "value": "*" + } + ], + "url": "https://openam-trivir-fairfax.forgeblocks.com/openidm/managed/svcacct/10d76629-78da-4265-868b-9a0cb68ebdb4?_fields=%2A" + }, + "response": { + "bodySize": 1401, + "content": { + "mimeType": "application/json;charset=utf-8", + "size": 1401, + "text": "{\"_id\":\"10d76629-78da-4265-868b-9a0cb68ebdb4\",\"_rev\":\"4b025e5d-c082-45f8-a3e9-0ac1db308dff-21339\",\"accountStatus\":\"active\",\"name\":\"Frodo-SA-1777919406717\",\"description\":\"dsevy@trivir.com's Frodo Service Account\",\"scopes\":[\"fr:am:*\",\"fr:idc:analytics:*\",\"fr:autoaccess:*\",\"fr:idc:certificate:*\",\"fr:idc:content-security-policy:*\",\"fr:idc:cookie-domain:*\",\"fr:idc:custom-domain:*\",\"fr:idc:dataset:*\",\"fr:idc:esv:*\",\"fr:idm:*\",\"fr:iga:*\",\"fr:idc:promotion:*\",\"fr:idc:release:*\",\"fr:idc:sso-cookie:*\"],\"jwks\":\"{\\\"keys\\\":[{\\\"kty\\\":\\\"RSA\\\",\\\"kid\\\":\\\"hshlr1hlp8bXdLNDrh3rESiHNsMS68c4XtbZX9i_Seg\\\",\\\"alg\\\":\\\"RS256\\\",\\\"e\\\":\\\"AQAB\\\",\\\"n\\\":\\\"owg6VJta_1o9VqyQk4Xs2kA_BDcyWEN1WMERqaJIFCbtecz_IMBp2G5m76dawbB9QvUsFvMqfJ2OGbaCcfC2o5lkxEu4nxdKLKYZ4-JTGsbPN6j-f9yr0LCjFMPd1BRxKQ98euSu5UZ0_gy9QN-eS4zB5zJsb8E7Y7FXsxG6vgd8dCqCSPjJeSmZhnQEeqJeysGlA5jMzQUP9Lvgm2aZp5wz7DXzF9lvsqRjm49H9wlERjy4KDmjlp5Rr3lz8ZXGgsaIdp18hUrPFKJP5qxkICfnbxdyK858A5puUypj1OAqrOtAnwjk5lMPOYzBWjWV72RPnOY3-6KAHo8uFXK3EH8AN8ErHxhpo-soV0e7-Z7gEnmt0rliY3j_-2AHA0Q5G1k52cGQ-dARGzgAQacpdnQv_pT0k83DGZPrpR6PqBRkyiJBD_PTvySZohxFgjpJfJmkYec7Pg40xri_LN1ozkLRBdQwL2zaQFYtq_VZC20a8Y7NpqpoLcvFIB9W2NS03qTokvId7gdSgdcVmpOo4n7OZZCouD6cyWyJ6Nj9uaxz-mw4Mdzhpd8cclSV_gXeWMBBoW3dZ7zzkEFMWHBT2x9S8JAZor_aaGJ2MXOoNoHRg-q9shNhQ3h7U14MXfL7I9R4ixClZMOpxILa0VT0Vzm-h685xkXwa28WLSw21QU\\\"}]}\",\"maxCachingTime\":\"15\",\"maxIdleTime\":\"15\",\"maxSessionTime\":\"15\",\"quotaLimit\":\"5\"}" + }, + "cookies": [], + "headers": [ + { + "name": "date", + "value": "Tue, 19 May 2026 20:25:40 GMT" + }, + { + "name": "vary", + "value": "Origin" + }, + { + "name": "cache-control", + "value": "no-store" + }, + { + "name": "content-security-policy", + "value": "default-src 'none';frame-ancestors 'none';sandbox" + }, + { + "name": "content-type", + "value": "application/json;charset=utf-8" + }, + { + "name": "cross-origin-opener-policy", + "value": "same-origin" + }, + { + "name": "cross-origin-resource-policy", + "value": "same-origin" + }, + { + "name": "etag", + "value": "\"4b025e5d-c082-45f8-a3e9-0ac1db308dff-21339\"" + }, + { + "name": "expires", + "value": "0" + }, + { + "name": "pragma", + "value": "no-cache" + }, + { + "name": "x-content-type-options", + "value": "nosniff" + }, + { + "name": "x-frame-options", + "value": "DENY" + }, + { + "name": "content-length", + "value": "1401" + }, + { + "name": "x-forgerock-transactionid", + "value": "frodo-b9b8aea0-f625-450d-8987-f3583734e02a" + }, + { + "name": "strict-transport-security", + "value": "max-age=31536000; includeSubDomains; preload;" + }, + { + "name": "x-robots-tag", + "value": "none" + }, + { + "name": "via", + "value": "1.1 google" + }, + { + "name": "alt-svc", + "value": "h3=\":443\"; ma=2592000" + } + ], + "headersSize": 658, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2026-05-19T20:25:40.120Z", + "time": 195, + "timings": { + "blocked": -1, + "connect": -1, + "dns": -1, + "receive": 0, + "send": 0, + "ssl": -1, + "wait": 195 + } + }, + { + "_id": "9cb8561357870863838a9948da32d1e8", + "_order": 1, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "name": "accept", + "value": "application/json, text/plain, */*" + }, + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "user-agent", + "value": "@rockcarver/frodo-lib/4.0.0-39" + }, + { + "name": "x-forgerock-transactionid", + "value": "frodo-b9b8aea0-f625-450d-8987-f3583734e02a" + }, + { + "name": "authorization", + "value": "Bearer " + }, + { + "name": "accept-encoding", + "value": "gzip, compress, deflate, br" + }, + { + "name": "host", + "value": "openam-frodo-dev.forgeblocks.com" + } + ], + "headersSize": 1938, + "httpVersion": "HTTP/1.1", + "method": "GET", + "queryString": [ + { + "name": "_fields", + "value": "*" + } + ], + "url": "https://openam-trivir-fairfax.forgeblocks.com/openidm/managed/svcacct/10d76629-78da-4265-868b-9a0cb68ebdb4?_fields=%2A" + }, + "response": { + "bodySize": 1401, + "content": { + "mimeType": "application/json;charset=utf-8", + "size": 1401, + "text": "{\"_id\":\"10d76629-78da-4265-868b-9a0cb68ebdb4\",\"_rev\":\"4b025e5d-c082-45f8-a3e9-0ac1db308dff-21339\",\"accountStatus\":\"active\",\"name\":\"Frodo-SA-1777919406717\",\"description\":\"dsevy@trivir.com's Frodo Service Account\",\"scopes\":[\"fr:am:*\",\"fr:idc:analytics:*\",\"fr:autoaccess:*\",\"fr:idc:certificate:*\",\"fr:idc:content-security-policy:*\",\"fr:idc:cookie-domain:*\",\"fr:idc:custom-domain:*\",\"fr:idc:dataset:*\",\"fr:idc:esv:*\",\"fr:idm:*\",\"fr:iga:*\",\"fr:idc:promotion:*\",\"fr:idc:release:*\",\"fr:idc:sso-cookie:*\"],\"jwks\":\"{\\\"keys\\\":[{\\\"kty\\\":\\\"RSA\\\",\\\"kid\\\":\\\"hshlr1hlp8bXdLNDrh3rESiHNsMS68c4XtbZX9i_Seg\\\",\\\"alg\\\":\\\"RS256\\\",\\\"e\\\":\\\"AQAB\\\",\\\"n\\\":\\\"owg6VJta_1o9VqyQk4Xs2kA_BDcyWEN1WMERqaJIFCbtecz_IMBp2G5m76dawbB9QvUsFvMqfJ2OGbaCcfC2o5lkxEu4nxdKLKYZ4-JTGsbPN6j-f9yr0LCjFMPd1BRxKQ98euSu5UZ0_gy9QN-eS4zB5zJsb8E7Y7FXsxG6vgd8dCqCSPjJeSmZhnQEeqJeysGlA5jMzQUP9Lvgm2aZp5wz7DXzF9lvsqRjm49H9wlERjy4KDmjlp5Rr3lz8ZXGgsaIdp18hUrPFKJP5qxkICfnbxdyK858A5puUypj1OAqrOtAnwjk5lMPOYzBWjWV72RPnOY3-6KAHo8uFXK3EH8AN8ErHxhpo-soV0e7-Z7gEnmt0rliY3j_-2AHA0Q5G1k52cGQ-dARGzgAQacpdnQv_pT0k83DGZPrpR6PqBRkyiJBD_PTvySZohxFgjpJfJmkYec7Pg40xri_LN1ozkLRBdQwL2zaQFYtq_VZC20a8Y7NpqpoLcvFIB9W2NS03qTokvId7gdSgdcVmpOo4n7OZZCouD6cyWyJ6Nj9uaxz-mw4Mdzhpd8cclSV_gXeWMBBoW3dZ7zzkEFMWHBT2x9S8JAZor_aaGJ2MXOoNoHRg-q9shNhQ3h7U14MXfL7I9R4ixClZMOpxILa0VT0Vzm-h685xkXwa28WLSw21QU\\\"}]}\",\"maxCachingTime\":\"15\",\"maxIdleTime\":\"15\",\"maxSessionTime\":\"15\",\"quotaLimit\":\"5\"}" + }, + "cookies": [], + "headers": [ + { + "name": "date", + "value": "Tue, 19 May 2026 20:25:40 GMT" + }, + { + "name": "vary", + "value": "Origin" + }, + { + "name": "cache-control", + "value": "no-store" + }, + { + "name": "content-security-policy", + "value": "default-src 'none';frame-ancestors 'none';sandbox" + }, + { + "name": "content-type", + "value": "application/json;charset=utf-8" + }, + { + "name": "cross-origin-opener-policy", + "value": "same-origin" + }, + { + "name": "cross-origin-resource-policy", + "value": "same-origin" + }, + { + "name": "etag", + "value": "\"4b025e5d-c082-45f8-a3e9-0ac1db308dff-21339\"" + }, + { + "name": "expires", + "value": "0" + }, + { + "name": "pragma", + "value": "no-cache" + }, + { + "name": "x-content-type-options", + "value": "nosniff" + }, + { + "name": "x-frame-options", + "value": "DENY" + }, + { + "name": "content-length", + "value": "1401" + }, + { + "name": "x-forgerock-transactionid", + "value": "frodo-b9b8aea0-f625-450d-8987-f3583734e02a" + }, + { + "name": "strict-transport-security", + "value": "max-age=31536000; includeSubDomains; preload;" + }, + { + "name": "x-robots-tag", + "value": "none" + }, + { + "name": "via", + "value": "1.1 google" + }, + { + "name": "alt-svc", + "value": "h3=\":443\"; ma=2592000" + } + ], + "headersSize": 658, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2026-05-19T20:25:40.335Z", + "time": 96, + "timings": { + "blocked": -1, + "connect": -1, + "dns": -1, + "receive": 0, + "send": 0, + "ssl": -1, + "wait": 96 + } + } + ], + "pages": [], + "version": "1.2" + } +} diff --git a/test/e2e/mocks/iga_2664973160/scope-import_883436943/0_AD_3050885125/am_1076162899/recording.har b/test/e2e/mocks/iga_2664973160/scope-import_883436943/0_AD_3050885125/am_1076162899/recording.har new file mode 100644 index 000000000..3692b4355 --- /dev/null +++ b/test/e2e/mocks/iga_2664973160/scope-import_883436943/0_AD_3050885125/am_1076162899/recording.har @@ -0,0 +1,312 @@ +{ + "log": { + "_recordingName": "iga/scope-import/0_AD/am", + "creator": { + "comment": "persister:fs", + "name": "Polly.JS", + "version": "6.0.6" + }, + "entries": [ + { + "_id": "ccd7a5defd0fdeaa986a2b54642d911a", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "name": "accept", + "value": "application/json, text/plain, */*" + }, + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "user-agent", + "value": "@rockcarver/frodo-lib/4.0.0-39" + }, + { + "name": "x-forgerock-transactionid", + "value": "frodo-f7ab79c3-d42a-4ff8-95a3-58c64602f743" + }, + { + "name": "accept-api-version", + "value": "resource=1.1" + }, + { + "name": "accept-encoding", + "value": "gzip, compress, deflate, br" + }, + { + "name": "host", + "value": "openam-frodo-dev.forgeblocks.com" + } + ], + "headersSize": 398, + "httpVersion": "HTTP/1.1", + "method": "GET", + "queryString": [], + "url": "https://openam-trivir-fairfax.forgeblocks.com/am/json/serverinfo/*" + }, + "response": { + "bodySize": 614, + "content": { + "mimeType": "application/json;charset=UTF-8", + "size": 614, + "text": "{\"_id\":\"*\",\"_rev\":\"959929574\",\"domains\":[],\"protectedUserAttributes\":[\"telephoneNumber\",\"mail\"],\"cookieName\":\"311468432e97f1f\",\"secureCookie\":true,\"forgotPassword\":\"false\",\"forgotUsername\":\"false\",\"kbaEnabled\":\"false\",\"selfRegistration\":\"false\",\"lang\":\"en-US\",\"successfulUserRegistrationDestination\":\"default\",\"socialImplementations\":[],\"referralsEnabled\":\"false\",\"zeroPageLogin\":{\"enabled\":false,\"refererWhitelist\":[],\"allowedWithoutReferer\":true},\"realm\":\"/\",\"xuiUserSessionValidationEnabled\":true,\"fileBasedConfiguration\":true,\"userIdAttributes\":[],\"cloudOnlyFeaturesEnabled\":true,\"oauth2AIAgentsEnabled\":false}" + }, + "cookies": [], + "headers": [ + { + "name": "x-frame-options", + "value": "SAMEORIGIN" + }, + { + "name": "content-security-policy-report-only", + "value": "frame-ancestors 'self'; script-src 'self' 'unsafe-eval' 'unsafe-inline'" + }, + { + "name": "x-content-type-options", + "value": "nosniff" + }, + { + "name": "cache-control", + "value": "no-store" + }, + { + "name": "content-api-version", + "value": "resource=1.1" + }, + { + "name": "content-security-policy", + "value": "default-src 'none';frame-ancestors 'none';sandbox" + }, + { + "name": "cross-origin-opener-policy", + "value": "same-origin" + }, + { + "name": "cross-origin-resource-policy", + "value": "same-origin" + }, + { + "name": "etag", + "value": "\"959929574\"" + }, + { + "name": "expires", + "value": "0" + }, + { + "name": "pragma", + "value": "no-cache" + }, + { + "name": "content-type", + "value": "application/json;charset=UTF-8" + }, + { + "name": "content-length", + "value": "614" + }, + { + "name": "date", + "value": "Tue, 19 May 2026 20:21:51 GMT" + }, + { + "name": "x-forgerock-transactionid", + "value": "frodo-f7ab79c3-d42a-4ff8-95a3-58c64602f743" + }, + { + "name": "strict-transport-security", + "value": "max-age=31536000; includeSubDomains; preload;" + }, + { + "name": "x-robots-tag", + "value": "none" + }, + { + "name": "via", + "value": "1.1 google" + }, + { + "name": "alt-svc", + "value": "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" + } + ], + "headersSize": 786, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2026-05-19T20:21:50.965Z", + "time": 283, + "timings": { + "blocked": -1, + "connect": -1, + "dns": -1, + "receive": 0, + "send": 0, + "ssl": -1, + "wait": 283 + } + }, + { + "_id": "6125d0328ad0dcaee55f73fd8b22ca14", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "name": "accept", + "value": "application/json, text/plain, */*" + }, + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "user-agent", + "value": "@rockcarver/frodo-lib/4.0.0-39" + }, + { + "name": "x-forgerock-transactionid", + "value": "frodo-f7ab79c3-d42a-4ff8-95a3-58c64602f743" + }, + { + "name": "accept-api-version", + "value": "resource=1.0" + }, + { + "name": "authorization", + "value": "Bearer " + }, + { + "name": "accept-encoding", + "value": "gzip, compress, deflate, br" + }, + { + "name": "host", + "value": "openam-frodo-dev.forgeblocks.com" + } + ], + "headersSize": 1926, + "httpVersion": "HTTP/1.1", + "method": "GET", + "queryString": [], + "url": "https://openam-trivir-fairfax.forgeblocks.com/am/json/serverinfo/version" + }, + "response": { + "bodySize": 274, + "content": { + "mimeType": "application/json;charset=UTF-8", + "size": 274, + "text": "{\"_id\":\"version\",\"_rev\":\"194838800\",\"version\":\"9.0.0-SNAPSHOT\",\"fullVersion\":\"ForgeRock Access Management 9.0.0-SNAPSHOT Build 500b736d5354dc1171d65a84ec4230d63a5a084e (2026-April-21 11:20)\",\"revision\":\"500b736d5354dc1171d65a84ec4230d63a5a084e\",\"date\":\"2026-April-21 11:20\"}" + }, + "cookies": [], + "headers": [ + { + "name": "x-frame-options", + "value": "SAMEORIGIN" + }, + { + "name": "content-security-policy-report-only", + "value": "frame-ancestors 'self'; script-src 'self' 'unsafe-eval' 'unsafe-inline'" + }, + { + "name": "x-content-type-options", + "value": "nosniff" + }, + { + "name": "cache-control", + "value": "no-store" + }, + { + "name": "content-api-version", + "value": "resource=1.0" + }, + { + "name": "content-security-policy", + "value": "default-src 'none';frame-ancestors 'none';sandbox" + }, + { + "name": "cross-origin-opener-policy", + "value": "same-origin" + }, + { + "name": "cross-origin-resource-policy", + "value": "same-origin" + }, + { + "name": "etag", + "value": "\"194838800\"" + }, + { + "name": "expires", + "value": "0" + }, + { + "name": "pragma", + "value": "no-cache" + }, + { + "name": "content-type", + "value": "application/json;charset=UTF-8" + }, + { + "name": "content-length", + "value": "274" + }, + { + "name": "date", + "value": "Tue, 19 May 2026 20:21:51 GMT" + }, + { + "name": "x-forgerock-transactionid", + "value": "frodo-f7ab79c3-d42a-4ff8-95a3-58c64602f743" + }, + { + "name": "strict-transport-security", + "value": "max-age=31536000; includeSubDomains; preload;" + }, + { + "name": "x-robots-tag", + "value": "none" + }, + { + "name": "via", + "value": "1.1 google" + }, + { + "name": "alt-svc", + "value": "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" + } + ], + "headersSize": 786, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2026-05-19T20:21:51.528Z", + "time": 142, + "timings": { + "blocked": -1, + "connect": -1, + "dns": -1, + "receive": 0, + "send": 0, + "ssl": -1, + "wait": 142 + } + } + ], + "pages": [], + "version": "1.2" + } +} diff --git a/test/e2e/mocks/iga_2664973160/scope-import_883436943/0_AD_3050885125/environment_1072573434/recording.har b/test/e2e/mocks/iga_2664973160/scope-import_883436943/0_AD_3050885125/environment_1072573434/recording.har new file mode 100644 index 000000000..566cd0ccb --- /dev/null +++ b/test/e2e/mocks/iga_2664973160/scope-import_883436943/0_AD_3050885125/environment_1072573434/recording.har @@ -0,0 +1,125 @@ +{ + "log": { + "_recordingName": "iga/scope-import/0_AD/environment", + "creator": { + "comment": "persister:fs", + "name": "Polly.JS", + "version": "6.0.6" + }, + "entries": [ + { + "_id": "ccc7ec61c2094114d7917814bb19b83b", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "name": "accept", + "value": "application/json, text/plain, */*" + }, + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "user-agent", + "value": "@rockcarver/frodo-lib/4.0.0-39" + }, + { + "name": "accept-api-version", + "value": "protocol=1.0,resource=1.0" + }, + { + "name": "authorization", + "value": "Bearer " + }, + { + "name": "accept-encoding", + "value": "gzip, compress, deflate, br" + }, + { + "name": "host", + "value": "openam-frodo-dev.forgeblocks.com" + } + ], + "headersSize": 1877, + "httpVersion": "HTTP/1.1", + "method": "GET", + "queryString": [], + "url": "https://openam-trivir-fairfax.forgeblocks.com/environment/scopes/service-accounts" + }, + "response": { + "bodySize": 1975, + "content": { + "mimeType": "application/json; charset=utf-8", + "size": 1975, + "text": "[{\"scope\":\"fr:am:*\",\"description\":\"All Access Management APIs\"},{\"scope\":\"fr:autoaccess:*\",\"description\":\"All Auto Access APIs\"},{\"scope\":\"fr:idc:analytics:*\",\"description\":\"All Analytics APIs\"},{\"scope\":\"fr:idc:certificate:*\",\"description\":\"All TLS certificate APIs\",\"childScopes\":[{\"scope\":\"fr:idc:certificate:read\",\"description\":\"Read TLS certificates\"}]},{\"scope\":\"fr:idc:content-security-policy:*\",\"description\":\"All content security policy APIs\",\"childScopes\":[{\"scope\":\"fr:idc:content-security-policy:read\",\"description\":\"Read content security policy\"}]},{\"scope\":\"fr:idc:cookie-domain:*\",\"description\":\"All cookie domain APIs\",\"childScopes\":[{\"scope\":\"fr:idc:cookie-domain:read\",\"description\":\"Read cookie domains\"}]},{\"scope\":\"fr:idc:custom-domain:*\",\"description\":\"All custom domain APIs\",\"childScopes\":[{\"scope\":\"fr:idc:custom-domain:read\",\"description\":\"Read custom domains\"}]},{\"scope\":\"fr:idc:dataset:*\",\"description\":\"All dataset deletion APIs\",\"childScopes\":[{\"scope\":\"fr:idc:dataset:read\",\"description\":\"Read dataset deletions\"}]},{\"scope\":\"fr:idc:esv:*\",\"description\":\"All ESV APIs\",\"childScopes\":[{\"scope\":\"fr:idc:esv:read\",\"description\":\"Read ESVs, excluding values of secrets\"},{\"scope\":\"fr:idc:esv:update\",\"description\":\"Create, modify, and delete ESVs\"},{\"scope\":\"fr:idc:esv:restart\",\"description\":\"Restart workloads that consume ESVs\"}]},{\"scope\":\"fr:idc:promotion:*\",\"description\":\"All configuration promotion APIs\",\"childScopes\":[{\"scope\":\"fr:idc:promotion:read\",\"description\":\"Read configuration promotion\"}]},{\"scope\":\"fr:idc:release:*\",\"description\":\"All product release APIs\",\"childScopes\":[{\"scope\":\"fr:idc:release:read\",\"description\":\"Read product release\"}]},{\"scope\":\"fr:idc:sso-cookie:*\",\"description\":\"All SSO cookie APIs\",\"childScopes\":[{\"scope\":\"fr:idc:sso-cookie:read\",\"description\":\"Read SSO cookie\"}]},{\"scope\":\"fr:idm:*\",\"description\":\"All Identity Management APIs\"},{\"scope\":\"fr:iga:*\",\"description\":\"All Identity Governance APIs\"}]" + }, + "cookies": [], + "headers": [ + { + "name": "x-frame-options", + "value": "SAMEORIGIN" + }, + { + "name": "content-type", + "value": "application/json; charset=utf-8" + }, + { + "name": "content-length", + "value": "1975" + }, + { + "name": "etag", + "value": "W/\"7b7-tIBWy/EinSCKaoNz4aU2iqiTmFc\"" + }, + { + "name": "date", + "value": "Tue, 19 May 2026 20:21:51 GMT" + }, + { + "name": "x-forgerock-transactionid", + "value": "dd220973-64ed-41b3-959f-0f004bfc3244" + }, + { + "name": "strict-transport-security", + "value": "max-age=31536000; includeSubDomains; preload;" + }, + { + "name": "x-robots-tag", + "value": "none" + }, + { + "name": "via", + "value": "1.1 google" + }, + { + "name": "alt-svc", + "value": "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" + } + ], + "headersSize": 413, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2026-05-19T20:21:51.677Z", + "time": 217, + "timings": { + "blocked": -1, + "connect": -1, + "dns": -1, + "receive": 0, + "send": 0, + "ssl": -1, + "wait": 217 + } + } + ], + "pages": [], + "version": "1.2" + } +} diff --git a/test/e2e/mocks/iga_2664973160/scope-import_883436943/0_AD_3050885125/iga_2664973160/recording.har b/test/e2e/mocks/iga_2664973160/scope-import_883436943/0_AD_3050885125/iga_2664973160/recording.har new file mode 100644 index 000000000..9a2578b1c --- /dev/null +++ b/test/e2e/mocks/iga_2664973160/scope-import_883436943/0_AD_3050885125/iga_2664973160/recording.har @@ -0,0 +1,147 @@ +{ + "log": { + "_recordingName": "iga/scope-import/0_AD/iga", + "creator": { + "comment": "persister:fs", + "name": "Polly.JS", + "version": "6.0.6" + }, + "entries": [ + { + "_id": "af55958a3898b129bc68978def6db818", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "name": "accept", + "value": "application/json, text/plain, */*" + }, + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "user-agent", + "value": "@rockcarver/frodo-lib/4.0.0-39" + }, + { + "name": "authorization", + "value": "Bearer " + }, + { + "name": "accept-encoding", + "value": "gzip, compress, deflate, br" + }, + { + "name": "host", + "value": "openam-frodo-dev.forgeblocks.com" + } + ], + "headersSize": 1871, + "httpVersion": "HTTP/1.1", + "method": "GET", + "queryString": [ + { + "name": "_queryFilter", + "value": "true" + }, + { + "name": "_pageSize", + "value": "10000" + }, + { + "name": "_pagedResultsOffset", + "value": "0" + } + ], + "url": "https://openam-trivir-fairfax.forgeblocks.com/iga/governance/scope?_queryFilter=true&_pageSize=10000&_pagedResultsOffset=0" + }, + "response": { + "bodySize": 2023, + "content": { + "encoding": "base64", + "mimeType": "application/json; charset=utf-8", + "size": 2023, + "text": "[\"G0YbAORaavX6qvp1Qa0iRP0upOhC0Iy58yAv4PFOufTzc633Cx08tW1/uDeieJz8vf2PuSbTxkXwknWXMItnKeyuNTIhkgsme90H9Y35pYSVwZV2l3nAYbLmgvWvB6QN5Rt7HWWvsMKgPqYe9ytNeW9TGf/CuNcRSp1yuQxqMENJsIIIhmcnJIbAJSquAnorFIbkNXnGVEoWZqjhmWCFtFPHug+Mex2hVBzUB8zQ91uL9NFeUxllr7A+4NapwfqAXC6DGqwP2Busfz2g7uMU9zpCqR3WB5R66qOV+gQro2CJZbzCDPu6418v84BjJD3wAiv8MsIZjuP455hh/3dHhRVeBBzHDH2EceuwQoijvBDMMEI7AlZJCQ99zHBq9AIrn+GZRkhhBFgfIKFL+zgMghUEEwaZRu5/FmwVfOVyUV4bJpjVf8IMm3pXxXKT2nvn3Z9wHLO8kCTMQmYjhWIJBRMWlckRN0eE3lilN5JWBkdcw0tUKbnD+ijPBD6po4zLQSlkh3W0G80VK+z1xXVeCt0/a6GOHp2tk/8v4pMlIHu2g0QXindzL4Xuv3RqH8RIPT1PftwvJLtJNp4vi8hmIbnVwDFrWPdDTfD2f+4jDPq+7S+lRtK1fLD+jrzIeOWtNwMJSUV0/9ZCKuIptFLAboOvgWrqp3sZZ1gf0G85l7cWltbhmOGweVGzoZWqAn6qNcT2yBuVZplenOVCO+UUIZauWy5sMAu92exNZmg3k1BFltFZJnEzgTHJiEXH6feT3tzCpaNtIc1hmolRliTKQzk4d412tukI5gMr1ZwxjHDZnxZm/0XIyoX0xqDnK9AceUcDy19qyEGLdtbf27Kj4JL/tkR4i1fXCv3afqHFOMgGkrrQoqeS8qHgNR4YWzlfpGJWOS8M8SyDS+OZDhV9MIGmhVFNfbqXcUZLK1pNfJNa4MZkP/0cHLdgNSqbknQuOx8FrUA1dbyXcUY4RhInqfPThvkPO5UEByoyAcwuXGnnBHPiHEvnnHkf1hjn0qfSpzDBS7b9zTBqp5Ri6GQKqKza0Csr0QWdbFBSeoVUZ3wLNe3P/zAEkesUWguvOo85DJdhfJe/a09g9YzIqpzJbmjtRqiSCei1USizTy4qyRQxOJqCqJO9Zz+Fy5i+Dv/T9FEZr3bmVJGKog5TUE6Ny4Urr4xlmjiWzjVXMkgn9PJOB0oedb35jqhG+2xC\",\"KmsWLgktpLSYmeSovGHovQgok7XSMJ6czjRi39J9+umT7Yl0JnJw4uTloFUuFis9M4K7B+LonBlt/IOkic3AhZQ0Q8Y5odJBYhDGoddOe5uEFjEQ2pEX54/BKM9pIzS2nnyv4dJro+y5fVETve1uA3ijE0rT8C8MIGREp7ZIhj9gJjPC22tHpjf9JtRa8uIhWCVFpLDuFgoeaZZAmjaP7XDQElAoGH6kUho8vAQ0ho60FYpvKPim5WaL4857Jx4cQzOMYwM5ZuFdtFJHQpNTRBWMQMdYRmO0l86RUjySxn/p1KavP/pm+tkvkXQKJKG6XW6CSIyYx+BDRMVjwJCFQhcy0yIqx7LAKl28dWpTODtdz2e8hkZ14N6eEEFRRC34yutEP7TMF+2Y95xr/sGyDO68tarjwk1hIICJ+/aPXeX3ZoYhGoYqW4EhuYCUnd0255zfxixQQiWNQ7BFjsOv7LQc9Jue5AiL5R3nflVmFXYRXCtrHbeEYem2UUyGlNKnun9G/10/zEFnQ1ozFD5vqBwldDZzTFJHFz0zNiYKKEPjNIbEieJ/xxwD1ypzi+BCCqGlfXAcTeHee8+xPrhc9nufzr8gjahP7+ASY7+og56o8YneTOzdaezTS6H7dIIFPJNo2rf/KI5uSeZghGcmebTJWFSae9w498glk3zbhHbe0NWv5zMmutBTGITbWiKIxEGjY/jKKEuzeEyQVS51iNmRSkZBbzSsFsG1VlZwp4pY4pXnowRB/8wNMgUf5EHtK3qF9S9h1/lnhstOs8ZH+60OWDmfZ5zxT/od\"]" + }, + "cookies": [], + "headers": [ + { + "name": "x-powered-by", + "value": "Express" + }, + { + "name": "cache-control", + "value": "no-store" + }, + { + "name": "content-type", + "value": "application/json; charset=utf-8" + }, + { + "name": "etag", + "value": "W/\"1b47-XNnXc9MPNP1B8DNWFc5xVB0RlVc\"" + }, + { + "name": "vary", + "value": "Accept-Encoding" + }, + { + "name": "content-encoding", + "value": "br" + }, + { + "name": "date", + "value": "Tue, 19 May 2026 20:21:52 GMT" + }, + { + "name": "x-forgerock-transactionid", + "value": "9345f0e5-42dc-4bbe-9bf2-c1212a375d10" + }, + { + "name": "strict-transport-security", + "value": "max-age=31536000; includeSubDomains; preload;" + }, + { + "name": "x-robots-tag", + "value": "none" + }, + { + "name": "via", + "value": "1.1 google" + }, + { + "name": "alt-svc", + "value": "h3=\":443\"; ma=2592000" + }, + { + "name": "transfer-encoding", + "value": "chunked" + } + ], + "headersSize": 459, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2026-05-19T20:21:52.061Z", + "time": 193, + "timings": { + "blocked": -1, + "connect": -1, + "dns": -1, + "receive": 0, + "send": 0, + "ssl": -1, + "wait": 193 + } + } + ], + "pages": [], + "version": "1.2" + } +} diff --git a/test/e2e/mocks/iga_2664973160/scope-import_883436943/0_AD_3050885125/oauth2_393036114/recording.har b/test/e2e/mocks/iga_2664973160/scope-import_883436943/0_AD_3050885125/oauth2_393036114/recording.har new file mode 100644 index 000000000..cc00ed4df --- /dev/null +++ b/test/e2e/mocks/iga_2664973160/scope-import_883436943/0_AD_3050885125/oauth2_393036114/recording.har @@ -0,0 +1,146 @@ +{ + "log": { + "_recordingName": "iga/scope-import/0_AD/oauth2", + "creator": { + "comment": "persister:fs", + "name": "Polly.JS", + "version": "6.0.6" + }, + "entries": [ + { + "_id": "ff75519a93ccab829f8ee8cf5e92b49f", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 1328, + "cookies": [], + "headers": [ + { + "name": "accept", + "value": "application/json, text/plain, */*" + }, + { + "name": "content-type", + "value": "application/x-www-form-urlencoded" + }, + { + "name": "user-agent", + "value": "@rockcarver/frodo-lib/4.0.0-39" + }, + { + "name": "x-forgerock-transactionid", + "value": "frodo-f7ab79c3-d42a-4ff8-95a3-58c64602f743" + }, + { + "name": "accept-api-version", + "value": "protocol=2.1,resource=1.0" + }, + { + "name": "content-length", + "value": "1328" + }, + { + "name": "accept-encoding", + "value": "gzip, compress, deflate, br" + }, + { + "name": "host", + "value": "openam-frodo-dev.forgeblocks.com" + } + ], + "headersSize": 453, + "httpVersion": "HTTP/1.1", + "method": "POST", + "postData": { + "mimeType": "application/x-www-form-urlencoded", + "params": [], + "text": "assertion=&client_id=service-account&grant_type=urn:ietf:params:oauth:grant-type:jwt-bearer&scope=fr:idc:custom-domain:* fr:idc:release:* fr:idc:sso-cookie:* fr:am:* fr:idc:esv:* fr:idc:content-security-policy:* fr:iga:* fr:idc:certificate:* fr:idm:* fr:idc:analytics:* fr:idc:cookie-domain:* fr:idc:promotion:*" + }, + "queryString": [], + "url": "https://openam-trivir-fairfax.forgeblocks.com/am/oauth2/access_token" + }, + "response": { + "bodySize": 1780, + "content": { + "mimeType": "application/json;charset=UTF-8", + "size": 1780, + "text": "{\"access_token\":\"\",\"scope\":\"fr:idc:custom-domain:* fr:idc:release:* fr:idc:sso-cookie:* fr:am:* fr:idc:esv:* fr:idc:content-security-policy:* fr:iga:* fr:idc:certificate:* fr:idm:* fr:idc:analytics:* fr:idc:cookie-domain:* fr:idc:promotion:*\",\"token_type\":\"Bearer\",\"expires_in\":899}" + }, + "cookies": [], + "headers": [ + { + "name": "x-frame-options", + "value": "SAMEORIGIN" + }, + { + "name": "content-security-policy-report-only", + "value": "frame-ancestors 'self'; script-src 'self' 'unsafe-eval' 'unsafe-inline'" + }, + { + "name": "x-content-type-options", + "value": "nosniff" + }, + { + "name": "cache-control", + "value": "no-store" + }, + { + "name": "pragma", + "value": "no-cache" + }, + { + "name": "content-type", + "value": "application/json;charset=UTF-8" + }, + { + "name": "content-length", + "value": "1780" + }, + { + "name": "date", + "value": "Tue, 19 May 2026 20:21:51 GMT" + }, + { + "name": "x-forgerock-transactionid", + "value": "frodo-f7ab79c3-d42a-4ff8-95a3-58c64602f743" + }, + { + "name": "strict-transport-security", + "value": "max-age=31536000; includeSubDomains; preload;" + }, + { + "name": "x-robots-tag", + "value": "none" + }, + { + "name": "via", + "value": "1.1 google" + }, + { + "name": "alt-svc", + "value": "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" + } + ], + "headersSize": 561, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2026-05-19T20:21:51.262Z", + "time": 259, + "timings": { + "blocked": -1, + "connect": -1, + "dns": -1, + "receive": 0, + "send": 0, + "ssl": -1, + "wait": 259 + } + } + ], + "pages": [], + "version": "1.2" + } +} diff --git a/test/e2e/mocks/iga_2664973160/scope-import_883436943/0_AD_3050885125/openidm_3290118515/recording.har b/test/e2e/mocks/iga_2664973160/scope-import_883436943/0_AD_3050885125/openidm_3290118515/recording.har new file mode 100644 index 000000000..41b06c480 --- /dev/null +++ b/test/e2e/mocks/iga_2664973160/scope-import_883436943/0_AD_3050885125/openidm_3290118515/recording.har @@ -0,0 +1,310 @@ +{ + "log": { + "_recordingName": "iga/scope-import/0_AD/openidm", + "creator": { + "comment": "persister:fs", + "name": "Polly.JS", + "version": "6.0.6" + }, + "entries": [ + { + "_id": "9cb8561357870863838a9948da32d1e8", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "name": "accept", + "value": "application/json, text/plain, */*" + }, + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "user-agent", + "value": "@rockcarver/frodo-lib/4.0.0-39" + }, + { + "name": "x-forgerock-transactionid", + "value": "frodo-f7ab79c3-d42a-4ff8-95a3-58c64602f743" + }, + { + "name": "authorization", + "value": "Bearer " + }, + { + "name": "accept-encoding", + "value": "gzip, compress, deflate, br" + }, + { + "name": "host", + "value": "openam-frodo-dev.forgeblocks.com" + } + ], + "headersSize": 1938, + "httpVersion": "HTTP/1.1", + "method": "GET", + "queryString": [ + { + "name": "_fields", + "value": "*" + } + ], + "url": "https://openam-trivir-fairfax.forgeblocks.com/openidm/managed/svcacct/10d76629-78da-4265-868b-9a0cb68ebdb4?_fields=%2A" + }, + "response": { + "bodySize": 1401, + "content": { + "mimeType": "application/json;charset=utf-8", + "size": 1401, + "text": "{\"_id\":\"10d76629-78da-4265-868b-9a0cb68ebdb4\",\"_rev\":\"4b025e5d-c082-45f8-a3e9-0ac1db308dff-21339\",\"accountStatus\":\"active\",\"name\":\"Frodo-SA-1777919406717\",\"description\":\"dsevy@trivir.com's Frodo Service Account\",\"scopes\":[\"fr:am:*\",\"fr:idc:analytics:*\",\"fr:autoaccess:*\",\"fr:idc:certificate:*\",\"fr:idc:content-security-policy:*\",\"fr:idc:cookie-domain:*\",\"fr:idc:custom-domain:*\",\"fr:idc:dataset:*\",\"fr:idc:esv:*\",\"fr:idm:*\",\"fr:iga:*\",\"fr:idc:promotion:*\",\"fr:idc:release:*\",\"fr:idc:sso-cookie:*\"],\"jwks\":\"{\\\"keys\\\":[{\\\"kty\\\":\\\"RSA\\\",\\\"kid\\\":\\\"hshlr1hlp8bXdLNDrh3rESiHNsMS68c4XtbZX9i_Seg\\\",\\\"alg\\\":\\\"RS256\\\",\\\"e\\\":\\\"AQAB\\\",\\\"n\\\":\\\"owg6VJta_1o9VqyQk4Xs2kA_BDcyWEN1WMERqaJIFCbtecz_IMBp2G5m76dawbB9QvUsFvMqfJ2OGbaCcfC2o5lkxEu4nxdKLKYZ4-JTGsbPN6j-f9yr0LCjFMPd1BRxKQ98euSu5UZ0_gy9QN-eS4zB5zJsb8E7Y7FXsxG6vgd8dCqCSPjJeSmZhnQEeqJeysGlA5jMzQUP9Lvgm2aZp5wz7DXzF9lvsqRjm49H9wlERjy4KDmjlp5Rr3lz8ZXGgsaIdp18hUrPFKJP5qxkICfnbxdyK858A5puUypj1OAqrOtAnwjk5lMPOYzBWjWV72RPnOY3-6KAHo8uFXK3EH8AN8ErHxhpo-soV0e7-Z7gEnmt0rliY3j_-2AHA0Q5G1k52cGQ-dARGzgAQacpdnQv_pT0k83DGZPrpR6PqBRkyiJBD_PTvySZohxFgjpJfJmkYec7Pg40xri_LN1ozkLRBdQwL2zaQFYtq_VZC20a8Y7NpqpoLcvFIB9W2NS03qTokvId7gdSgdcVmpOo4n7OZZCouD6cyWyJ6Nj9uaxz-mw4Mdzhpd8cclSV_gXeWMBBoW3dZ7zzkEFMWHBT2x9S8JAZor_aaGJ2MXOoNoHRg-q9shNhQ3h7U14MXfL7I9R4ixClZMOpxILa0VT0Vzm-h685xkXwa28WLSw21QU\\\"}]}\",\"maxCachingTime\":\"15\",\"maxIdleTime\":\"15\",\"maxSessionTime\":\"15\",\"quotaLimit\":\"5\"}" + }, + "cookies": [], + "headers": [ + { + "name": "date", + "value": "Tue, 19 May 2026 20:21:51 GMT" + }, + { + "name": "vary", + "value": "Origin" + }, + { + "name": "cache-control", + "value": "no-store" + }, + { + "name": "content-security-policy", + "value": "default-src 'none';frame-ancestors 'none';sandbox" + }, + { + "name": "content-type", + "value": "application/json;charset=utf-8" + }, + { + "name": "cross-origin-opener-policy", + "value": "same-origin" + }, + { + "name": "cross-origin-resource-policy", + "value": "same-origin" + }, + { + "name": "etag", + "value": "\"4b025e5d-c082-45f8-a3e9-0ac1db308dff-21339\"" + }, + { + "name": "expires", + "value": "0" + }, + { + "name": "pragma", + "value": "no-cache" + }, + { + "name": "x-content-type-options", + "value": "nosniff" + }, + { + "name": "x-frame-options", + "value": "DENY" + }, + { + "name": "content-length", + "value": "1401" + }, + { + "name": "x-forgerock-transactionid", + "value": "frodo-f7ab79c3-d42a-4ff8-95a3-58c64602f743" + }, + { + "name": "strict-transport-security", + "value": "max-age=31536000; includeSubDomains; preload;" + }, + { + "name": "x-robots-tag", + "value": "none" + }, + { + "name": "via", + "value": "1.1 google" + }, + { + "name": "alt-svc", + "value": "h3=\":443\"; ma=2592000" + } + ], + "headersSize": 658, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2026-05-19T20:21:51.578Z", + "time": 317, + "timings": { + "blocked": -1, + "connect": -1, + "dns": -1, + "receive": 0, + "send": 0, + "ssl": -1, + "wait": 317 + } + }, + { + "_id": "9cb8561357870863838a9948da32d1e8", + "_order": 1, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "name": "accept", + "value": "application/json, text/plain, */*" + }, + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "user-agent", + "value": "@rockcarver/frodo-lib/4.0.0-39" + }, + { + "name": "x-forgerock-transactionid", + "value": "frodo-f7ab79c3-d42a-4ff8-95a3-58c64602f743" + }, + { + "name": "authorization", + "value": "Bearer " + }, + { + "name": "accept-encoding", + "value": "gzip, compress, deflate, br" + }, + { + "name": "host", + "value": "openam-frodo-dev.forgeblocks.com" + } + ], + "headersSize": 1938, + "httpVersion": "HTTP/1.1", + "method": "GET", + "queryString": [ + { + "name": "_fields", + "value": "*" + } + ], + "url": "https://openam-trivir-fairfax.forgeblocks.com/openidm/managed/svcacct/10d76629-78da-4265-868b-9a0cb68ebdb4?_fields=%2A" + }, + "response": { + "bodySize": 1401, + "content": { + "mimeType": "application/json;charset=utf-8", + "size": 1401, + "text": "{\"_id\":\"10d76629-78da-4265-868b-9a0cb68ebdb4\",\"_rev\":\"4b025e5d-c082-45f8-a3e9-0ac1db308dff-21339\",\"accountStatus\":\"active\",\"name\":\"Frodo-SA-1777919406717\",\"description\":\"dsevy@trivir.com's Frodo Service Account\",\"scopes\":[\"fr:am:*\",\"fr:idc:analytics:*\",\"fr:autoaccess:*\",\"fr:idc:certificate:*\",\"fr:idc:content-security-policy:*\",\"fr:idc:cookie-domain:*\",\"fr:idc:custom-domain:*\",\"fr:idc:dataset:*\",\"fr:idc:esv:*\",\"fr:idm:*\",\"fr:iga:*\",\"fr:idc:promotion:*\",\"fr:idc:release:*\",\"fr:idc:sso-cookie:*\"],\"jwks\":\"{\\\"keys\\\":[{\\\"kty\\\":\\\"RSA\\\",\\\"kid\\\":\\\"hshlr1hlp8bXdLNDrh3rESiHNsMS68c4XtbZX9i_Seg\\\",\\\"alg\\\":\\\"RS256\\\",\\\"e\\\":\\\"AQAB\\\",\\\"n\\\":\\\"owg6VJta_1o9VqyQk4Xs2kA_BDcyWEN1WMERqaJIFCbtecz_IMBp2G5m76dawbB9QvUsFvMqfJ2OGbaCcfC2o5lkxEu4nxdKLKYZ4-JTGsbPN6j-f9yr0LCjFMPd1BRxKQ98euSu5UZ0_gy9QN-eS4zB5zJsb8E7Y7FXsxG6vgd8dCqCSPjJeSmZhnQEeqJeysGlA5jMzQUP9Lvgm2aZp5wz7DXzF9lvsqRjm49H9wlERjy4KDmjlp5Rr3lz8ZXGgsaIdp18hUrPFKJP5qxkICfnbxdyK858A5puUypj1OAqrOtAnwjk5lMPOYzBWjWV72RPnOY3-6KAHo8uFXK3EH8AN8ErHxhpo-soV0e7-Z7gEnmt0rliY3j_-2AHA0Q5G1k52cGQ-dARGzgAQacpdnQv_pT0k83DGZPrpR6PqBRkyiJBD_PTvySZohxFgjpJfJmkYec7Pg40xri_LN1ozkLRBdQwL2zaQFYtq_VZC20a8Y7NpqpoLcvFIB9W2NS03qTokvId7gdSgdcVmpOo4n7OZZCouD6cyWyJ6Nj9uaxz-mw4Mdzhpd8cclSV_gXeWMBBoW3dZ7zzkEFMWHBT2x9S8JAZor_aaGJ2MXOoNoHRg-q9shNhQ3h7U14MXfL7I9R4ixClZMOpxILa0VT0Vzm-h685xkXwa28WLSw21QU\\\"}]}\",\"maxCachingTime\":\"15\",\"maxIdleTime\":\"15\",\"maxSessionTime\":\"15\",\"quotaLimit\":\"5\"}" + }, + "cookies": [], + "headers": [ + { + "name": "date", + "value": "Tue, 19 May 2026 20:21:52 GMT" + }, + { + "name": "vary", + "value": "Origin" + }, + { + "name": "cache-control", + "value": "no-store" + }, + { + "name": "content-security-policy", + "value": "default-src 'none';frame-ancestors 'none';sandbox" + }, + { + "name": "content-type", + "value": "application/json;charset=utf-8" + }, + { + "name": "cross-origin-opener-policy", + "value": "same-origin" + }, + { + "name": "cross-origin-resource-policy", + "value": "same-origin" + }, + { + "name": "etag", + "value": "\"4b025e5d-c082-45f8-a3e9-0ac1db308dff-21339\"" + }, + { + "name": "expires", + "value": "0" + }, + { + "name": "pragma", + "value": "no-cache" + }, + { + "name": "x-content-type-options", + "value": "nosniff" + }, + { + "name": "x-frame-options", + "value": "DENY" + }, + { + "name": "content-length", + "value": "1401" + }, + { + "name": "x-forgerock-transactionid", + "value": "frodo-f7ab79c3-d42a-4ff8-95a3-58c64602f743" + }, + { + "name": "strict-transport-security", + "value": "max-age=31536000; includeSubDomains; preload;" + }, + { + "name": "x-robots-tag", + "value": "none" + }, + { + "name": "via", + "value": "1.1 google" + }, + { + "name": "alt-svc", + "value": "h3=\":443\"; ma=2592000" + } + ], + "headersSize": 658, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2026-05-19T20:21:51.900Z", + "time": 154, + "timings": { + "blocked": -1, + "connect": -1, + "dns": -1, + "receive": 0, + "send": 0, + "ssl": -1, + "wait": 154 + } + } + ], + "pages": [], + "version": "1.2" + } +} diff --git a/test/e2e/mocks/iga_2664973160/scope-import_883436943/0_af_3559436575/am_1076162899/recording.har b/test/e2e/mocks/iga_2664973160/scope-import_883436943/0_af_3559436575/am_1076162899/recording.har new file mode 100644 index 000000000..ac0d0c7b6 --- /dev/null +++ b/test/e2e/mocks/iga_2664973160/scope-import_883436943/0_af_3559436575/am_1076162899/recording.har @@ -0,0 +1,312 @@ +{ + "log": { + "_recordingName": "iga/scope-import/0_af/am", + "creator": { + "comment": "persister:fs", + "name": "Polly.JS", + "version": "6.0.6" + }, + "entries": [ + { + "_id": "ccd7a5defd0fdeaa986a2b54642d911a", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "name": "accept", + "value": "application/json, text/plain, */*" + }, + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "user-agent", + "value": "@rockcarver/frodo-lib/4.0.0-39" + }, + { + "name": "x-forgerock-transactionid", + "value": "frodo-b5fcc796-c0e8-4368-8019-2c7ae02d96f8" + }, + { + "name": "accept-api-version", + "value": "resource=1.1" + }, + { + "name": "accept-encoding", + "value": "gzip, compress, deflate, br" + }, + { + "name": "host", + "value": "openam-frodo-dev.forgeblocks.com" + } + ], + "headersSize": 398, + "httpVersion": "HTTP/1.1", + "method": "GET", + "queryString": [], + "url": "https://openam-trivir-fairfax.forgeblocks.com/am/json/serverinfo/*" + }, + "response": { + "bodySize": 614, + "content": { + "mimeType": "application/json;charset=UTF-8", + "size": 614, + "text": "{\"_id\":\"*\",\"_rev\":\"959929574\",\"domains\":[],\"protectedUserAttributes\":[\"telephoneNumber\",\"mail\"],\"cookieName\":\"311468432e97f1f\",\"secureCookie\":true,\"forgotPassword\":\"false\",\"forgotUsername\":\"false\",\"kbaEnabled\":\"false\",\"selfRegistration\":\"false\",\"lang\":\"en-US\",\"successfulUserRegistrationDestination\":\"default\",\"socialImplementations\":[],\"referralsEnabled\":\"false\",\"zeroPageLogin\":{\"enabled\":false,\"refererWhitelist\":[],\"allowedWithoutReferer\":true},\"realm\":\"/\",\"xuiUserSessionValidationEnabled\":true,\"fileBasedConfiguration\":true,\"userIdAttributes\":[],\"cloudOnlyFeaturesEnabled\":true,\"oauth2AIAgentsEnabled\":false}" + }, + "cookies": [], + "headers": [ + { + "name": "x-frame-options", + "value": "SAMEORIGIN" + }, + { + "name": "content-security-policy-report-only", + "value": "frame-ancestors 'self'; script-src 'self' 'unsafe-eval' 'unsafe-inline'" + }, + { + "name": "x-content-type-options", + "value": "nosniff" + }, + { + "name": "cache-control", + "value": "no-store" + }, + { + "name": "content-api-version", + "value": "resource=1.1" + }, + { + "name": "content-security-policy", + "value": "default-src 'none';frame-ancestors 'none';sandbox" + }, + { + "name": "cross-origin-opener-policy", + "value": "same-origin" + }, + { + "name": "cross-origin-resource-policy", + "value": "same-origin" + }, + { + "name": "etag", + "value": "\"959929574\"" + }, + { + "name": "expires", + "value": "0" + }, + { + "name": "pragma", + "value": "no-cache" + }, + { + "name": "content-type", + "value": "application/json;charset=UTF-8" + }, + { + "name": "content-length", + "value": "614" + }, + { + "name": "date", + "value": "Tue, 19 May 2026 20:21:01 GMT" + }, + { + "name": "x-forgerock-transactionid", + "value": "frodo-b5fcc796-c0e8-4368-8019-2c7ae02d96f8" + }, + { + "name": "strict-transport-security", + "value": "max-age=31536000; includeSubDomains; preload;" + }, + { + "name": "x-robots-tag", + "value": "none" + }, + { + "name": "via", + "value": "1.1 google" + }, + { + "name": "alt-svc", + "value": "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" + } + ], + "headersSize": 786, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2026-05-19T20:21:01.293Z", + "time": 175, + "timings": { + "blocked": -1, + "connect": -1, + "dns": -1, + "receive": 0, + "send": 0, + "ssl": -1, + "wait": 175 + } + }, + { + "_id": "6125d0328ad0dcaee55f73fd8b22ca14", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "name": "accept", + "value": "application/json, text/plain, */*" + }, + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "user-agent", + "value": "@rockcarver/frodo-lib/4.0.0-39" + }, + { + "name": "x-forgerock-transactionid", + "value": "frodo-b5fcc796-c0e8-4368-8019-2c7ae02d96f8" + }, + { + "name": "accept-api-version", + "value": "resource=1.0" + }, + { + "name": "authorization", + "value": "Bearer " + }, + { + "name": "accept-encoding", + "value": "gzip, compress, deflate, br" + }, + { + "name": "host", + "value": "openam-frodo-dev.forgeblocks.com" + } + ], + "headersSize": 1926, + "httpVersion": "HTTP/1.1", + "method": "GET", + "queryString": [], + "url": "https://openam-trivir-fairfax.forgeblocks.com/am/json/serverinfo/version" + }, + "response": { + "bodySize": 274, + "content": { + "mimeType": "application/json;charset=UTF-8", + "size": 274, + "text": "{\"_id\":\"version\",\"_rev\":\"194838800\",\"version\":\"9.0.0-SNAPSHOT\",\"fullVersion\":\"ForgeRock Access Management 9.0.0-SNAPSHOT Build 500b736d5354dc1171d65a84ec4230d63a5a084e (2026-April-21 11:20)\",\"revision\":\"500b736d5354dc1171d65a84ec4230d63a5a084e\",\"date\":\"2026-April-21 11:20\"}" + }, + "cookies": [], + "headers": [ + { + "name": "x-frame-options", + "value": "SAMEORIGIN" + }, + { + "name": "content-security-policy-report-only", + "value": "frame-ancestors 'self'; script-src 'self' 'unsafe-eval' 'unsafe-inline'" + }, + { + "name": "x-content-type-options", + "value": "nosniff" + }, + { + "name": "cache-control", + "value": "no-store" + }, + { + "name": "content-api-version", + "value": "resource=1.0" + }, + { + "name": "content-security-policy", + "value": "default-src 'none';frame-ancestors 'none';sandbox" + }, + { + "name": "cross-origin-opener-policy", + "value": "same-origin" + }, + { + "name": "cross-origin-resource-policy", + "value": "same-origin" + }, + { + "name": "etag", + "value": "\"194838800\"" + }, + { + "name": "expires", + "value": "0" + }, + { + "name": "pragma", + "value": "no-cache" + }, + { + "name": "content-type", + "value": "application/json;charset=UTF-8" + }, + { + "name": "content-length", + "value": "274" + }, + { + "name": "date", + "value": "Tue, 19 May 2026 20:21:01 GMT" + }, + { + "name": "x-forgerock-transactionid", + "value": "frodo-b5fcc796-c0e8-4368-8019-2c7ae02d96f8" + }, + { + "name": "strict-transport-security", + "value": "max-age=31536000; includeSubDomains; preload;" + }, + { + "name": "x-robots-tag", + "value": "none" + }, + { + "name": "via", + "value": "1.1 google" + }, + { + "name": "alt-svc", + "value": "h3=\":443\"; ma=2592000" + } + ], + "headersSize": 761, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2026-05-19T20:21:01.658Z", + "time": 109, + "timings": { + "blocked": -1, + "connect": -1, + "dns": -1, + "receive": 0, + "send": 0, + "ssl": -1, + "wait": 109 + } + } + ], + "pages": [], + "version": "1.2" + } +} diff --git a/test/e2e/mocks/iga_2664973160/scope-import_883436943/0_af_3559436575/environment_1072573434/recording.har b/test/e2e/mocks/iga_2664973160/scope-import_883436943/0_af_3559436575/environment_1072573434/recording.har new file mode 100644 index 000000000..95abc1660 --- /dev/null +++ b/test/e2e/mocks/iga_2664973160/scope-import_883436943/0_af_3559436575/environment_1072573434/recording.har @@ -0,0 +1,125 @@ +{ + "log": { + "_recordingName": "iga/scope-import/0_af/environment", + "creator": { + "comment": "persister:fs", + "name": "Polly.JS", + "version": "6.0.6" + }, + "entries": [ + { + "_id": "ccc7ec61c2094114d7917814bb19b83b", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "name": "accept", + "value": "application/json, text/plain, */*" + }, + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "user-agent", + "value": "@rockcarver/frodo-lib/4.0.0-39" + }, + { + "name": "accept-api-version", + "value": "protocol=1.0,resource=1.0" + }, + { + "name": "authorization", + "value": "Bearer " + }, + { + "name": "accept-encoding", + "value": "gzip, compress, deflate, br" + }, + { + "name": "host", + "value": "openam-frodo-dev.forgeblocks.com" + } + ], + "headersSize": 1877, + "httpVersion": "HTTP/1.1", + "method": "GET", + "queryString": [], + "url": "https://openam-trivir-fairfax.forgeblocks.com/environment/scopes/service-accounts" + }, + "response": { + "bodySize": 1975, + "content": { + "mimeType": "application/json; charset=utf-8", + "size": 1975, + "text": "[{\"scope\":\"fr:am:*\",\"description\":\"All Access Management APIs\"},{\"scope\":\"fr:autoaccess:*\",\"description\":\"All Auto Access APIs\"},{\"scope\":\"fr:idc:analytics:*\",\"description\":\"All Analytics APIs\"},{\"scope\":\"fr:idc:certificate:*\",\"description\":\"All TLS certificate APIs\",\"childScopes\":[{\"scope\":\"fr:idc:certificate:read\",\"description\":\"Read TLS certificates\"}]},{\"scope\":\"fr:idc:content-security-policy:*\",\"description\":\"All content security policy APIs\",\"childScopes\":[{\"scope\":\"fr:idc:content-security-policy:read\",\"description\":\"Read content security policy\"}]},{\"scope\":\"fr:idc:cookie-domain:*\",\"description\":\"All cookie domain APIs\",\"childScopes\":[{\"scope\":\"fr:idc:cookie-domain:read\",\"description\":\"Read cookie domains\"}]},{\"scope\":\"fr:idc:custom-domain:*\",\"description\":\"All custom domain APIs\",\"childScopes\":[{\"scope\":\"fr:idc:custom-domain:read\",\"description\":\"Read custom domains\"}]},{\"scope\":\"fr:idc:dataset:*\",\"description\":\"All dataset deletion APIs\",\"childScopes\":[{\"scope\":\"fr:idc:dataset:read\",\"description\":\"Read dataset deletions\"}]},{\"scope\":\"fr:idc:esv:*\",\"description\":\"All ESV APIs\",\"childScopes\":[{\"scope\":\"fr:idc:esv:read\",\"description\":\"Read ESVs, excluding values of secrets\"},{\"scope\":\"fr:idc:esv:update\",\"description\":\"Create, modify, and delete ESVs\"},{\"scope\":\"fr:idc:esv:restart\",\"description\":\"Restart workloads that consume ESVs\"}]},{\"scope\":\"fr:idc:promotion:*\",\"description\":\"All configuration promotion APIs\",\"childScopes\":[{\"scope\":\"fr:idc:promotion:read\",\"description\":\"Read configuration promotion\"}]},{\"scope\":\"fr:idc:release:*\",\"description\":\"All product release APIs\",\"childScopes\":[{\"scope\":\"fr:idc:release:read\",\"description\":\"Read product release\"}]},{\"scope\":\"fr:idc:sso-cookie:*\",\"description\":\"All SSO cookie APIs\",\"childScopes\":[{\"scope\":\"fr:idc:sso-cookie:read\",\"description\":\"Read SSO cookie\"}]},{\"scope\":\"fr:idm:*\",\"description\":\"All Identity Management APIs\"},{\"scope\":\"fr:iga:*\",\"description\":\"All Identity Governance APIs\"}]" + }, + "cookies": [], + "headers": [ + { + "name": "x-frame-options", + "value": "SAMEORIGIN" + }, + { + "name": "content-type", + "value": "application/json; charset=utf-8" + }, + { + "name": "content-length", + "value": "1975" + }, + { + "name": "etag", + "value": "W/\"7b7-tIBWy/EinSCKaoNz4aU2iqiTmFc\"" + }, + { + "name": "date", + "value": "Tue, 19 May 2026 20:21:01 GMT" + }, + { + "name": "x-forgerock-transactionid", + "value": "d1ebda44-8b49-44a8-a5c3-eb5e460305f1" + }, + { + "name": "strict-transport-security", + "value": "max-age=31536000; includeSubDomains; preload;" + }, + { + "name": "x-robots-tag", + "value": "none" + }, + { + "name": "via", + "value": "1.1 google" + }, + { + "name": "alt-svc", + "value": "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" + } + ], + "headersSize": 413, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2026-05-19T20:21:01.773Z", + "time": 129, + "timings": { + "blocked": -1, + "connect": -1, + "dns": -1, + "receive": 0, + "send": 0, + "ssl": -1, + "wait": 129 + } + } + ], + "pages": [], + "version": "1.2" + } +} diff --git a/test/e2e/mocks/iga_2664973160/scope-import_883436943/0_af_3559436575/iga_2664973160/recording.har b/test/e2e/mocks/iga_2664973160/scope-import_883436943/0_af_3559436575/iga_2664973160/recording.har new file mode 100644 index 000000000..a151e737e --- /dev/null +++ b/test/e2e/mocks/iga_2664973160/scope-import_883436943/0_af_3559436575/iga_2664973160/recording.har @@ -0,0 +1,1313 @@ +{ + "log": { + "_recordingName": "iga/scope-import/0_af/iga", + "creator": { + "comment": "persister:fs", + "name": "Polly.JS", + "version": "6.0.6" + }, + "entries": [ + { + "_id": "af55958a3898b129bc68978def6db818", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "name": "accept", + "value": "application/json, text/plain, */*" + }, + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "user-agent", + "value": "@rockcarver/frodo-lib/4.0.0-39" + }, + { + "name": "authorization", + "value": "Bearer " + }, + { + "name": "accept-encoding", + "value": "gzip, compress, deflate, br" + }, + { + "name": "host", + "value": "openam-frodo-dev.forgeblocks.com" + } + ], + "headersSize": 1871, + "httpVersion": "HTTP/1.1", + "method": "GET", + "queryString": [ + { + "name": "_queryFilter", + "value": "true" + }, + { + "name": "_pageSize", + "value": "10000" + }, + { + "name": "_pagedResultsOffset", + "value": "0" + } + ], + "url": "https://openam-trivir-fairfax.forgeblocks.com/iga/governance/scope?_queryFilter=true&_pageSize=10000&_pagedResultsOffset=0" + }, + "response": { + "bodySize": 760, + "content": { + "encoding": "base64", + "mimeType": "application/json; charset=utf-8", + "size": 760, + "text": "[\"GykGAMRyafX6juqNLRxS/y7EwOD2HpINc9Ce1cpi4mZA3kU4F+ZZ1mVjYxeuYYHl6bI0i2D/+Z8/kL+tOXVvygDpAZsSz8iBbbJqQD8OzAvl/72LuOBBgIKbQejOwzL1iy6Gcz8XrdVLMQ66Kc690brRrO1YQcGbjUHg/7tZUyGcBAoXjptLyQWfQAdsZCP8yIuTlTf2ApK4s8IWZrfcPfLiZOWNvYAk7qxwdXz7JBovCSRxZwUrR/6UOPaSmwBbbZl5Zbrjro5vPyWO96zlJA/gfVjZ1izrstsIoSEsrCNZIYU9Wn4Q/OwglA7sSqkOLG6VOzFEqCGYBkAHVl4ERG0orZM7KOSbi9GBnZwuriB8EvMPOedfWSFL31YQrjVyVkhiZE8gGCvuylAQE/fpalXH9vdHAFr1WiNmDTclM1ka2V1JEMLbJaHAdrUBUsD4eXwrN1N6ZzLEMldm+K81IqO5A0OhE8PKZXAEW4P0hVL/uBnp1VnhT+QrqFLYWMxsxIAOzBM7PTTCINS67gvdFdX0sdZUa6qqsmn10I5T3X9HePliObDpJ919R85q1vhAOMkp2XDh0xLicQQoxvl0igJ4TvlF20y6rxddGNvrol2GujDzaApexuF8HsdxOhdEEHIFFmwI/zGgA87/SRKdv8EaSYSJPrb5kje8fYddwGb54tVEbU/1UNZV1w7DWA3FgcXYt7r5jpx/vdUT3FuE4wu+A/0APfZL4WwV9A/C7gVUq48D0kdk\"]" + }, + "cookies": [], + "headers": [ + { + "name": "x-powered-by", + "value": "Express" + }, + { + "name": "cache-control", + "value": "no-store" + }, + { + "name": "content-type", + "value": "application/json; charset=utf-8" + }, + { + "name": "etag", + "value": "W/\"62a-m289MBgp9AaXYQhU1LMvvut4uZk\"" + }, + { + "name": "vary", + "value": "Accept-Encoding" + }, + { + "name": "content-encoding", + "value": "br" + }, + { + "name": "date", + "value": "Tue, 19 May 2026 20:21:02 GMT" + }, + { + "name": "x-forgerock-transactionid", + "value": "46b22e38-bedf-462b-b1b8-56253538fbab" + }, + { + "name": "strict-transport-security", + "value": "max-age=31536000; includeSubDomains; preload;" + }, + { + "name": "x-robots-tag", + "value": "none" + }, + { + "name": "via", + "value": "1.1 google" + }, + { + "name": "alt-svc", + "value": "h3=\":443\"; ma=2592000" + }, + { + "name": "transfer-encoding", + "value": "chunked" + } + ], + "headersSize": 458, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2026-05-19T20:21:02.011Z", + "time": 159, + "timings": { + "blocked": -1, + "connect": -1, + "dns": -1, + "receive": 0, + "send": 0, + "ssl": -1, + "wait": 159 + } + }, + { + "_id": "69eb6bdf9cecf8fa1fdca1cc6352f2d8", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 561, + "cookies": [], + "headers": [ + { + "name": "accept", + "value": "application/json, text/plain, */*" + }, + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "user-agent", + "value": "@rockcarver/frodo-lib/4.0.0-39" + }, + { + "name": "authorization", + "value": "Bearer " + }, + { + "name": "content-length", + "value": "561" + }, + { + "name": "accept-encoding", + "value": "gzip, compress, deflate, br" + }, + { + "name": "host", + "value": "openam-frodo-dev.forgeblocks.com" + } + ], + "headersSize": 1852, + "httpVersion": "HTTP/1.1", + "method": "POST", + "postData": { + "mimeType": "application/json", + "params": [], + "text": "{\"description\":\"this is a test\",\"id\":\"57441e24-6310-49d7-984c-3692ba87bbab\",\"metadata\":{},\"name\":\"random-scope\",\"sourceCondition\":{\"user\":{\"filter\":{\"or\":[{\"not_contains\":{\"in_string_array\":\"user.adminOfOrg\",\"search_string\":{\"literal\":\"e74ffe7b-77be-4d6a-9564-3f9d8c4304e0\"}}},{\"equals\":{\"left\":\"user.city\",\"right\":{\"literal\":\"Salt Lake City\"}}}]},\"version\":\"v2\"}},\"status\":\"active\",\"targetCondition\":{\"application\":{\"filter\":{},\"version\":\"v2\"},\"entitlement\":{\"filter\":{},\"version\":\"v2\"},\"role\":{\"filter\":{},\"version\":\"v2\"},\"user\":{\"filter\":{},\"version\":\"v2\"}}}" + }, + "queryString": [ + { + "name": "_action", + "value": "create" + } + ], + "url": "https://openam-trivir-fairfax.forgeblocks.com/iga/governance/scope?_action=create" + }, + "response": { + "bodySize": 570, + "content": { + "mimeType": "application/json; charset=utf-8", + "size": 570, + "text": "{\"description\":\"this is a test\",\"id\":\"7c584440-83da-474b-9473-8a5d7a433947\",\"metadata\":{},\"name\":\"random-scope\",\"sourceCondition\":{\"user\":{\"filter\":{\"or\":[{\"not_contains\":{\"in_string_array\":\"user.adminOfOrg\",\"search_string\":{\"literal\":\"e74ffe7b-77be-4d6a-9564-3f9d8c4304e0\"}}},{\"equals\":{\"left\":\"user.city\",\"right\":{\"literal\":\"Salt Lake City\"}}}]},\"version\":\"v2\"}},\"status\":\"active\",\"targetCondition\":{\"application\":{\"filter\":{},\"version\":\"v2\"},\"entitlement\":{\"filter\":{},\"version\":\"v2\"},\"role\":{\"filter\":{},\"version\":\"v2\"},\"user\":{\"filter\":{},\"version\":\"v2\"}},\"_rev\":1}" + }, + "cookies": [], + "headers": [ + { + "name": "x-powered-by", + "value": "Express" + }, + { + "name": "cache-control", + "value": "no-store" + }, + { + "name": "content-type", + "value": "application/json; charset=utf-8" + }, + { + "name": "content-length", + "value": "570" + }, + { + "name": "etag", + "value": "W/\"23a-RJiNcY/H62LToBv7gKfktVuqQns\"" + }, + { + "name": "vary", + "value": "Accept-Encoding" + }, + { + "name": "date", + "value": "Tue, 19 May 2026 20:21:03 GMT" + }, + { + "name": "x-forgerock-transactionid", + "value": "57be3ed6-e29a-4cf1-885b-e4476e293d26" + }, + { + "name": "strict-transport-security", + "value": "max-age=31536000; includeSubDomains; preload;" + }, + { + "name": "x-robots-tag", + "value": "none" + }, + { + "name": "via", + "value": "1.1 google" + }, + { + "name": "alt-svc", + "value": "h3=\":443\"; ma=2592000" + } + ], + "headersSize": 429, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2026-05-19T20:21:02.181Z", + "time": 1709, + "timings": { + "blocked": -1, + "connect": -1, + "dns": -1, + "receive": 0, + "send": 0, + "ssl": -1, + "wait": 1709 + } + }, + { + "_id": "d7a92d5407c8d4d42df457ab8733775b", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 461, + "cookies": [], + "headers": [ + { + "name": "accept", + "value": "application/json, text/plain, */*" + }, + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "user-agent", + "value": "@rockcarver/frodo-lib/4.0.0-39" + }, + { + "name": "authorization", + "value": "Bearer " + }, + { + "name": "content-length", + "value": "461" + }, + { + "name": "accept-encoding", + "value": "gzip, compress, deflate, br" + }, + { + "name": "host", + "value": "openam-frodo-dev.forgeblocks.com" + } + ], + "headersSize": 1852, + "httpVersion": "HTTP/1.1", + "method": "POST", + "postData": { + "mimeType": "application/json", + "params": [], + "text": "{\"description\":\"Allows employees (frIndexedInteger1 eq 0) to view other employee objects\",\"id\":\"8203ecdd-d9b6-4103-aac5-1c4ad99e1b24\",\"metadata\":{},\"name\":\"phh-delegate-visibility\",\"sourceCondition\":{\"user\":{\"filter\":{\"and\":[{\"equals\":{\"left\":\"user.frIndexedInteger1\",\"right\":{\"literal\":0}}}]},\"version\":\"v2\"}},\"status\":\"inactive\",\"targetCondition\":{\"user\":{\"filter\":{\"and\":[{\"equals\":{\"left\":\"user.frIndexedInteger1\",\"right\":{\"literal\":0}}}]},\"version\":\"v2\"}}}" + }, + "queryString": [ + { + "name": "_action", + "value": "create" + } + ], + "url": "https://openam-trivir-fairfax.forgeblocks.com/iga/governance/scope?_action=create" + }, + "response": { + "bodySize": 470, + "content": { + "mimeType": "application/json; charset=utf-8", + "size": 470, + "text": "{\"description\":\"Allows employees (frIndexedInteger1 eq 0) to view other employee objects\",\"id\":\"c62906d9-7d67-4519-b119-13031bb25896\",\"metadata\":{},\"name\":\"phh-delegate-visibility\",\"sourceCondition\":{\"user\":{\"filter\":{\"and\":[{\"equals\":{\"left\":\"user.frIndexedInteger1\",\"right\":{\"literal\":0}}}]},\"version\":\"v2\"}},\"status\":\"inactive\",\"targetCondition\":{\"user\":{\"filter\":{\"and\":[{\"equals\":{\"left\":\"user.frIndexedInteger1\",\"right\":{\"literal\":0}}}]},\"version\":\"v2\"}},\"_rev\":1}" + }, + "cookies": [], + "headers": [ + { + "name": "x-powered-by", + "value": "Express" + }, + { + "name": "cache-control", + "value": "no-store" + }, + { + "name": "content-type", + "value": "application/json; charset=utf-8" + }, + { + "name": "content-length", + "value": "470" + }, + { + "name": "etag", + "value": "W/\"1d6-7wXBIBNpSB9DwpMYvUAhxLA1jis\"" + }, + { + "name": "vary", + "value": "Accept-Encoding" + }, + { + "name": "date", + "value": "Tue, 19 May 2026 20:21:04 GMT" + }, + { + "name": "x-forgerock-transactionid", + "value": "f289e978-b04f-42ab-9160-033aa54a5d41" + }, + { + "name": "strict-transport-security", + "value": "max-age=31536000; includeSubDomains; preload;" + }, + { + "name": "x-robots-tag", + "value": "none" + }, + { + "name": "via", + "value": "1.1 google" + }, + { + "name": "alt-svc", + "value": "h3=\":443\"; ma=2592000" + } + ], + "headersSize": 429, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2026-05-19T20:21:03.898Z", + "time": 997, + "timings": { + "blocked": -1, + "connect": -1, + "dns": -1, + "receive": 0, + "send": 0, + "ssl": -1, + "wait": 997 + } + }, + { + "_id": "87d0eaf6ba1f8b5f68f78636cf3a671f", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 745, + "cookies": [], + "headers": [ + { + "name": "accept", + "value": "application/json, text/plain, */*" + }, + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "user-agent", + "value": "@rockcarver/frodo-lib/4.0.0-39" + }, + { + "name": "authorization", + "value": "Bearer " + }, + { + "name": "content-length", + "value": "745" + }, + { + "name": "accept-encoding", + "value": "gzip, compress, deflate, br" + }, + { + "name": "host", + "value": "openam-frodo-dev.forgeblocks.com" + } + ], + "headersSize": 1852, + "httpVersion": "HTTP/1.1", + "method": "POST", + "postData": { + "mimeType": "application/json", + "params": [], + "text": "{\"description\":\"\",\"id\":\"8e08b64c-2333-49d5-a31f-43fd2fc6ba6d\",\"metadata\":{},\"name\":\"test\",\"permissions\":{\"createEntitlement\":true,\"createRole\":true,\"createUser\":true,\"deleteRole\":true,\"deleteUser\":true,\"modifyEntitlement\":true,\"modifyRole\":true,\"modifyUser\":true,\"publishRole\":true,\"viewGrants\":true,\"viewUserAccess\":true},\"sourceCondition\":{\"user\":{\"filter\":{\"and\":[{\"not_contains\":{\"in_string\":\"user.stateProvince\",\"search_string\":{\"literal\":\"Utah\"}}}]},\"version\":\"v2\"}},\"status\":\"active\",\"targetCondition\":{\"application\":{\"filter\":{},\"version\":\"v2\"},\"entitlement\":{\"filter\":{},\"version\":\"v2\"},\"role\":{\"filter\":{},\"version\":\"v2\"},\"user\":{\"filter\":{\"or\":[{\"ends_with\":{\"suffix\":{\"literal\":\"s\"},\"value\":\"user.accountStatus\"}}]},\"version\":\"v2\"}}}" + }, + "queryString": [ + { + "name": "_action", + "value": "create" + } + ], + "url": "https://openam-trivir-fairfax.forgeblocks.com/iga/governance/scope?_action=create" + }, + "response": { + "bodySize": 754, + "content": { + "mimeType": "application/json; charset=utf-8", + "size": 754, + "text": "{\"description\":\"\",\"id\":\"3f63240d-2027-46fc-b8ee-96745be373a8\",\"metadata\":{},\"name\":\"test\",\"permissions\":{\"createEntitlement\":true,\"modifyEntitlement\":true,\"viewGrants\":true,\"createUser\":true,\"modifyUser\":true,\"deleteUser\":true,\"viewUserAccess\":true,\"createRole\":true,\"modifyRole\":true,\"publishRole\":true,\"deleteRole\":true},\"sourceCondition\":{\"user\":{\"filter\":{\"and\":[{\"not_contains\":{\"in_string\":\"user.stateProvince\",\"search_string\":{\"literal\":\"Utah\"}}}]},\"version\":\"v2\"}},\"status\":\"active\",\"targetCondition\":{\"application\":{\"filter\":{},\"version\":\"v2\"},\"entitlement\":{\"filter\":{},\"version\":\"v2\"},\"role\":{\"filter\":{},\"version\":\"v2\"},\"user\":{\"filter\":{\"or\":[{\"ends_with\":{\"suffix\":{\"literal\":\"s\"},\"value\":\"user.accountStatus\"}}]},\"version\":\"v2\"}},\"_rev\":1}" + }, + "cookies": [], + "headers": [ + { + "name": "x-powered-by", + "value": "Express" + }, + { + "name": "cache-control", + "value": "no-store" + }, + { + "name": "content-type", + "value": "application/json; charset=utf-8" + }, + { + "name": "content-length", + "value": "754" + }, + { + "name": "etag", + "value": "W/\"2f2-vaULo88xFht0FNKkE/ba75l4HKc\"" + }, + { + "name": "vary", + "value": "Accept-Encoding" + }, + { + "name": "date", + "value": "Tue, 19 May 2026 20:21:06 GMT" + }, + { + "name": "x-forgerock-transactionid", + "value": "3170d818-3ad3-4a63-a75b-253dde949b2d" + }, + { + "name": "strict-transport-security", + "value": "max-age=31536000; includeSubDomains; preload;" + }, + { + "name": "x-robots-tag", + "value": "none" + }, + { + "name": "via", + "value": "1.1 google" + }, + { + "name": "alt-svc", + "value": "h3=\":443\"; ma=2592000" + } + ], + "headersSize": 429, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2026-05-19T20:21:04.901Z", + "time": 2016, + "timings": { + "blocked": -1, + "connect": -1, + "dns": -1, + "receive": 0, + "send": 0, + "ssl": -1, + "wait": 2016 + } + }, + { + "_id": "3eb3e53205bcc6daf2176f765c081689", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 295, + "cookies": [], + "headers": [ + { + "name": "accept", + "value": "application/json, text/plain, */*" + }, + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "user-agent", + "value": "@rockcarver/frodo-lib/4.0.0-39" + }, + { + "name": "authorization", + "value": "Bearer " + }, + { + "name": "content-length", + "value": "295" + }, + { + "name": "accept-encoding", + "value": "gzip, compress, deflate, br" + }, + { + "name": "host", + "value": "openam-frodo-dev.forgeblocks.com" + } + ], + "headersSize": 1852, + "httpVersion": "HTTP/1.1", + "method": "POST", + "postData": { + "mimeType": "application/json", + "params": [], + "text": "{\"description\":\"A test scope for ends with filter\",\"id\":\"9a189189-73d3-4e87-a7ad-2c218e4cff93\",\"metadata\":{},\"name\":\"ends-with-scope\",\"sourceCondition\":{\"user\":{\"filter\":{\"or\":[{\"ends_with\":{\"suffix\":{\"literal\":\"1\"},\"value\":\"user._id\"}}]},\"version\":\"v2\"}},\"status\":\"active\",\"targetCondition\":{}}" + }, + "queryString": [ + { + "name": "_action", + "value": "create" + } + ], + "url": "https://openam-trivir-fairfax.forgeblocks.com/iga/governance/scope?_action=create" + }, + "response": { + "bodySize": 304, + "content": { + "mimeType": "application/json; charset=utf-8", + "size": 304, + "text": "{\"description\":\"A test scope for ends with filter\",\"id\":\"75e1b352-b037-46f1-ba75-47dd388f89c2\",\"metadata\":{},\"name\":\"ends-with-scope\",\"sourceCondition\":{\"user\":{\"filter\":{\"or\":[{\"ends_with\":{\"suffix\":{\"literal\":\"1\"},\"value\":\"user._id\"}}]},\"version\":\"v2\"}},\"status\":\"active\",\"targetCondition\":{},\"_rev\":1}" + }, + "cookies": [], + "headers": [ + { + "name": "x-powered-by", + "value": "Express" + }, + { + "name": "cache-control", + "value": "no-store" + }, + { + "name": "content-type", + "value": "application/json; charset=utf-8" + }, + { + "name": "content-length", + "value": "304" + }, + { + "name": "etag", + "value": "W/\"130-hO5YwkMLPJJ6Xmg/kH4380VogG8\"" + }, + { + "name": "vary", + "value": "Accept-Encoding" + }, + { + "name": "date", + "value": "Tue, 19 May 2026 20:21:07 GMT" + }, + { + "name": "x-forgerock-transactionid", + "value": "6af0a753-c587-4fd4-a066-f9e802d3b670" + }, + { + "name": "strict-transport-security", + "value": "max-age=31536000; includeSubDomains; preload;" + }, + { + "name": "x-robots-tag", + "value": "none" + }, + { + "name": "via", + "value": "1.1 google" + }, + { + "name": "alt-svc", + "value": "h3=\":443\"; ma=2592000" + } + ], + "headersSize": 429, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2026-05-19T20:21:06.924Z", + "time": 1000, + "timings": { + "blocked": -1, + "connect": -1, + "dns": -1, + "receive": 0, + "send": 0, + "ssl": -1, + "wait": 1000 + } + }, + { + "_id": "3fcee6a15f79a4e561b20a03be5782a6", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 290, + "cookies": [], + "headers": [ + { + "name": "accept", + "value": "application/json, text/plain, */*" + }, + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "user-agent", + "value": "@rockcarver/frodo-lib/4.0.0-39" + }, + { + "name": "authorization", + "value": "Bearer " + }, + { + "name": "content-length", + "value": "290" + }, + { + "name": "accept-encoding", + "value": "gzip, compress, deflate, br" + }, + { + "name": "host", + "value": "openam-frodo-dev.forgeblocks.com" + } + ], + "headersSize": 1852, + "httpVersion": "HTTP/1.1", + "method": "POST", + "postData": { + "mimeType": "application/json", + "params": [], + "text": "{\"description\":\"test scope for is no filter\\n\",\"id\":\"ad0c0ba2-9283-43e8-8d61-0a6bb2546141\",\"metadata\":{},\"name\":\"is-not-test\",\"sourceCondition\":{\"user\":{\"filter\":{\"or\":[{\"not_equals\":{\"left\":\"user.city\",\"right\":{\"literal\":\"Utah\"}}}]},\"version\":\"v2\"}},\"status\":\"active\",\"targetCondition\":{}}" + }, + "queryString": [ + { + "name": "_action", + "value": "create" + } + ], + "url": "https://openam-trivir-fairfax.forgeblocks.com/iga/governance/scope?_action=create" + }, + "response": { + "bodySize": 299, + "content": { + "mimeType": "application/json; charset=utf-8", + "size": 299, + "text": "{\"description\":\"test scope for is no filter\\n\",\"id\":\"c5f6e550-29fb-48ed-87f1-d35c8c9067cd\",\"metadata\":{},\"name\":\"is-not-test\",\"sourceCondition\":{\"user\":{\"filter\":{\"or\":[{\"not_equals\":{\"left\":\"user.city\",\"right\":{\"literal\":\"Utah\"}}}]},\"version\":\"v2\"}},\"status\":\"active\",\"targetCondition\":{},\"_rev\":1}" + }, + "cookies": [], + "headers": [ + { + "name": "x-powered-by", + "value": "Express" + }, + { + "name": "cache-control", + "value": "no-store" + }, + { + "name": "content-type", + "value": "application/json; charset=utf-8" + }, + { + "name": "content-length", + "value": "299" + }, + { + "name": "etag", + "value": "W/\"12b-RDTFfT7K1AtHdG9yv7jljICJipo\"" + }, + { + "name": "vary", + "value": "Accept-Encoding" + }, + { + "name": "date", + "value": "Tue, 19 May 2026 20:21:08 GMT" + }, + { + "name": "x-forgerock-transactionid", + "value": "80600a72-d82a-47db-a1af-6e81feddd3dd" + }, + { + "name": "strict-transport-security", + "value": "max-age=31536000; includeSubDomains; preload;" + }, + { + "name": "x-robots-tag", + "value": "none" + }, + { + "name": "via", + "value": "1.1 google" + }, + { + "name": "alt-svc", + "value": "h3=\":443\"; ma=2592000" + } + ], + "headersSize": 429, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2026-05-19T20:21:07.929Z", + "time": 1014, + "timings": { + "blocked": -1, + "connect": -1, + "dns": -1, + "receive": 0, + "send": 0, + "ssl": -1, + "wait": 1014 + } + }, + { + "_id": "1b49203544dcdf83ca8a805c9d54a4ab", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 1073, + "cookies": [], + "headers": [ + { + "name": "accept", + "value": "application/json, text/plain, */*" + }, + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "user-agent", + "value": "@rockcarver/frodo-lib/4.0.0-39" + }, + { + "name": "authorization", + "value": "Bearer " + }, + { + "name": "content-length", + "value": "1073" + }, + { + "name": "accept-encoding", + "value": "gzip, compress, deflate, br" + }, + { + "name": "host", + "value": "openam-frodo-dev.forgeblocks.com" + } + ], + "headersSize": 1853, + "httpVersion": "HTTP/1.1", + "method": "POST", + "postData": { + "mimeType": "application/json", + "params": [], + "text": "{\"description\":\"\",\"id\":\"c03d12b5-179e-4dac-aa7e-b2d9eb253fb3\",\"metadata\":{},\"name\":\"starts-with-test\",\"permissions\":{\"createRole\":true,\"createUser\":true,\"deleteRole\":true,\"deleteUser\":true,\"modifyRole\":true,\"modifyUser\":true,\"publishRole\":true,\"viewUserAccess\":true},\"sourceCondition\":{\"user\":{\"filter\":{\"or\":[{\"starts_with\":{\"prefix\":{\"literal\":\"1\"},\"value\":\"user.frIndexedDate1\"}},{\"or\":[{\"starts_with\":{\"prefix\":{\"literal\":\"U\"},\"value\":\"user.city\"}},{\"starts_with\":{\"prefix\":{\"literal\":\"A\"},\"value\":\"user.country\"}}]}]},\"version\":\"v2\"}},\"status\":\"active\",\"targetCondition\":{\"application\":{\"filter\":{\"or\":[{\"starts_with\":{\"prefix\":{\"literal\":\"A\"},\"value\":\"catalog.application._id\"}}]},\"version\":\"v2\"},\"entitlement\":{\"filter\":{\"or\":[{\"starts_with\":{\"prefix\":{\"literal\":\"A\"},\"value\":\"catalog.entitlement.descriptor.displayName\"}}]},\"version\":\"v2\"},\"role\":{\"filter\":{\"or\":[{\"starts_with\":{\"prefix\":{\"literal\":\"A\"},\"value\":\"catalog.role.description\"}}]},\"version\":\"v2\"},\"user\":{\"filter\":{\"or\":[{\"starts_with\":{\"prefix\":{\"literal\":\"1\"},\"value\":\"user._id\"}}]},\"version\":\"v2\"}}}" + }, + "queryString": [ + { + "name": "_action", + "value": "create" + } + ], + "url": "https://openam-trivir-fairfax.forgeblocks.com/iga/governance/scope?_action=create" + }, + "response": { + "bodySize": 512, + "content": { + "encoding": "base64", + "mimeType": "application/json; charset=utf-8", + "size": 512, + "text": "[\"GzkEAMRUNaf9ZtlfarSlt6kTFp3ITQ+KXw39300/xjuxIz5rLFwT5LyxgBf1EuiF8QLMNKCMP3uqZ2KJ04OlqpkTc3q41/H/ZaU+dLCAgXewWLolOTcbZsPRiLPpjCYZjefL7Gi2nB0t3Hg2LggGLSs5UoLtk0FHLcMiKonGbOv1P1OOCoMVS+tj9KGLsD0KYVJ+jyywKms2aIPz5f49ssDq6Izjhv0uNp6375HluCg4xhmGR3kJDRcs97Z6wZEtkSsHySCGtRR8GjrnFTF7rClwPUrfaI8PAvvRY5/o5wVsj5Vw6XewPRIwzTawGCEZZA1rwIJ9sbyU687xjt0ZKY+QksHEv0eF131rCkE4vgvrTmWPlL7SVzL4AfApLDZjpGQQlXQdYUGF+g3DQElygM3LVLhZ0olaRXqrBSk14S/HDvMf75iW1g0G3KnXJncGOAzyJuenpB8k/6hzyQO1TEqQqILCJpXQMI0pPnRiAIrWWqLvJYMf4Q3sKAE=\"]" + }, + "cookies": [], + "headers": [ + { + "name": "x-powered-by", + "value": "Express" + }, + { + "name": "cache-control", + "value": "no-store" + }, + { + "name": "content-type", + "value": "application/json; charset=utf-8" + }, + { + "name": "etag", + "value": "W/\"43a-teDLKW1Brl+d0oLulyDszR71Khw\"" + }, + { + "name": "vary", + "value": "Accept-Encoding" + }, + { + "name": "content-encoding", + "value": "br" + }, + { + "name": "date", + "value": "Tue, 19 May 2026 20:21:10 GMT" + }, + { + "name": "x-forgerock-transactionid", + "value": "e5eaaa4f-b585-4188-ba2c-f8e45b1b85d7" + }, + { + "name": "strict-transport-security", + "value": "max-age=31536000; includeSubDomains; preload;" + }, + { + "name": "x-robots-tag", + "value": "none" + }, + { + "name": "via", + "value": "1.1 google" + }, + { + "name": "alt-svc", + "value": "h3=\":443\"; ma=2592000" + }, + { + "name": "transfer-encoding", + "value": "chunked" + } + ], + "headersSize": 458, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2026-05-19T20:21:08.948Z", + "time": 2075, + "timings": { + "blocked": -1, + "connect": -1, + "dns": -1, + "receive": 0, + "send": 0, + "ssl": -1, + "wait": 2075 + } + }, + { + "_id": "bfc9a9061670cb02060992fdf7fa1200", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 438, + "cookies": [], + "headers": [ + { + "name": "accept", + "value": "application/json, text/plain, */*" + }, + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "user-agent", + "value": "@rockcarver/frodo-lib/4.0.0-39" + }, + { + "name": "authorization", + "value": "Bearer " + }, + { + "name": "content-length", + "value": "438" + }, + { + "name": "accept-encoding", + "value": "gzip, compress, deflate, br" + }, + { + "name": "host", + "value": "openam-frodo-dev.forgeblocks.com" + } + ], + "headersSize": 1852, + "httpVersion": "HTTP/1.1", + "method": "POST", + "postData": { + "mimeType": "application/json", + "params": [], + "text": "{\"description\":\"\",\"id\":\"e9bc6e7e-ab6b-45f2-a5e4-af976d8a0c24\",\"metadata\":{},\"name\":\"User LCM Test\",\"permissions\":{\"createUser\":true},\"sourceCondition\":{\"user\":{\"filter\":{\"or\":[{\"equals\":{\"left\":\"user._id\",\"right\":{\"literal\":\"6a2d0e09-a9ac-41ca-af24-8af052c480f2\"}}},{\"equals\":{\"left\":\"user.userName\",\"right\":{\"literal\":\"phh-parent-org-admin\"}}}]},\"version\":\"v2\"}},\"status\":\"active\",\"targetCondition\":{\"user\":{\"filter\":{},\"version\":\"v2\"}}}" + }, + "queryString": [ + { + "name": "_action", + "value": "create" + } + ], + "url": "https://openam-trivir-fairfax.forgeblocks.com/iga/governance/scope?_action=create" + }, + "response": { + "bodySize": 447, + "content": { + "mimeType": "application/json; charset=utf-8", + "size": 447, + "text": "{\"description\":\"\",\"id\":\"98c735ce-6fdc-4a62-800f-6659388e441c\",\"metadata\":{},\"name\":\"User LCM Test\",\"permissions\":{\"createUser\":true},\"sourceCondition\":{\"user\":{\"filter\":{\"or\":[{\"equals\":{\"left\":\"user._id\",\"right\":{\"literal\":\"6a2d0e09-a9ac-41ca-af24-8af052c480f2\"}}},{\"equals\":{\"left\":\"user.userName\",\"right\":{\"literal\":\"phh-parent-org-admin\"}}}]},\"version\":\"v2\"}},\"status\":\"active\",\"targetCondition\":{\"user\":{\"filter\":{},\"version\":\"v2\"}},\"_rev\":1}" + }, + "cookies": [], + "headers": [ + { + "name": "x-powered-by", + "value": "Express" + }, + { + "name": "cache-control", + "value": "no-store" + }, + { + "name": "content-type", + "value": "application/json; charset=utf-8" + }, + { + "name": "content-length", + "value": "447" + }, + { + "name": "etag", + "value": "W/\"1bf-ln/GIciU76APaSVKfPHCCDNTTGY\"" + }, + { + "name": "vary", + "value": "Accept-Encoding" + }, + { + "name": "date", + "value": "Tue, 19 May 2026 20:21:11 GMT" + }, + { + "name": "x-forgerock-transactionid", + "value": "37dcf28e-9126-45d3-8924-e407b26c6841" + }, + { + "name": "strict-transport-security", + "value": "max-age=31536000; includeSubDomains; preload;" + }, + { + "name": "x-robots-tag", + "value": "none" + }, + { + "name": "via", + "value": "1.1 google" + }, + { + "name": "alt-svc", + "value": "h3=\":443\"; ma=2592000" + } + ], + "headersSize": 429, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2026-05-19T20:21:11.032Z", + "time": 1016, + "timings": { + "blocked": -1, + "connect": -1, + "dns": -1, + "receive": 0, + "send": 0, + "ssl": -1, + "wait": 1016 + } + }, + { + "_id": "a446e374f0ca2892f927f1b72430b0ce", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 284, + "cookies": [], + "headers": [ + { + "name": "accept", + "value": "application/json, text/plain, */*" + }, + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "user-agent", + "value": "@rockcarver/frodo-lib/4.0.0-39" + }, + { + "name": "authorization", + "value": "Bearer " + }, + { + "name": "content-length", + "value": "284" + }, + { + "name": "accept-encoding", + "value": "gzip, compress, deflate, br" + }, + { + "name": "host", + "value": "openam-frodo-dev.forgeblocks.com" + } + ], + "headersSize": 1852, + "httpVersion": "HTTP/1.1", + "method": "POST", + "postData": { + "mimeType": "application/json", + "params": [], + "text": "{\"description\":\"Description of the put scope request\",\"id\":\"edca1abc-7381-46c4-87a8-948790737c68\",\"metadata\":{},\"name\":\"New Scope\",\"sourceCondition\":{\"user\":{\"filter\":{\"and\":[]},\"version\":\"v2\"}},\"status\":\"active\",\"targetCondition\":{\"application\":{\"filter\":{\"and\":[]},\"version\":\"v2\"}}}" + }, + "queryString": [ + { + "name": "_action", + "value": "create" + } + ], + "url": "https://openam-trivir-fairfax.forgeblocks.com/iga/governance/scope?_action=create" + }, + "response": { + "bodySize": 293, + "content": { + "mimeType": "application/json; charset=utf-8", + "size": 293, + "text": "{\"description\":\"Description of the put scope request\",\"id\":\"8d252337-f031-4960-992a-3d773601d85f\",\"metadata\":{},\"name\":\"New Scope\",\"sourceCondition\":{\"user\":{\"filter\":{\"and\":[]},\"version\":\"v2\"}},\"status\":\"active\",\"targetCondition\":{\"application\":{\"filter\":{\"and\":[]},\"version\":\"v2\"}},\"_rev\":1}" + }, + "cookies": [], + "headers": [ + { + "name": "x-powered-by", + "value": "Express" + }, + { + "name": "cache-control", + "value": "no-store" + }, + { + "name": "content-type", + "value": "application/json; charset=utf-8" + }, + { + "name": "content-length", + "value": "293" + }, + { + "name": "etag", + "value": "W/\"125-M0UqZP9+xxcytoWcvMt1334OeVE\"" + }, + { + "name": "vary", + "value": "Accept-Encoding" + }, + { + "name": "date", + "value": "Tue, 19 May 2026 20:21:12 GMT" + }, + { + "name": "x-forgerock-transactionid", + "value": "25db726b-c73a-4590-aa61-abc624bd8077" + }, + { + "name": "strict-transport-security", + "value": "max-age=31536000; includeSubDomains; preload;" + }, + { + "name": "x-robots-tag", + "value": "none" + }, + { + "name": "via", + "value": "1.1 google" + }, + { + "name": "alt-svc", + "value": "h3=\":443\"; ma=2592000" + } + ], + "headersSize": 429, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2026-05-19T20:21:12.053Z", + "time": 941, + "timings": { + "blocked": -1, + "connect": -1, + "dns": -1, + "receive": 0, + "send": 0, + "ssl": -1, + "wait": 941 + } + }, + { + "_id": "7155aaef3e7173825af3fcee0b57e6d3", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 324, + "cookies": [], + "headers": [ + { + "name": "accept", + "value": "application/json, text/plain, */*" + }, + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "user-agent", + "value": "@rockcarver/frodo-lib/4.0.0-39" + }, + { + "name": "authorization", + "value": "Bearer " + }, + { + "name": "content-length", + "value": "324" + }, + { + "name": "accept-encoding", + "value": "gzip, compress, deflate, br" + }, + { + "name": "host", + "value": "openam-frodo-dev.forgeblocks.com" + } + ], + "headersSize": 1852, + "httpVersion": "HTTP/1.1", + "method": "POST", + "postData": { + "mimeType": "application/json", + "params": [], + "text": "{\"description\":\"test scope for does not contain filter\",\"id\":\"fcbccf06-1683-4209-9293-ba5be3ee2443\",\"metadata\":{},\"name\":\"does-not-contain-test\",\"sourceCondition\":{\"user\":{\"filter\":{\"or\":[{\"not_contains\":{\"in_string\":\"user.city\",\"search_string\":{\"literal\":\"Utah\"}}}]},\"version\":\"v2\"}},\"status\":\"active\",\"targetCondition\":{}}" + }, + "queryString": [ + { + "name": "_action", + "value": "create" + } + ], + "url": "https://openam-trivir-fairfax.forgeblocks.com/iga/governance/scope?_action=create" + }, + "response": { + "bodySize": 333, + "content": { + "mimeType": "application/json; charset=utf-8", + "size": 333, + "text": "{\"description\":\"test scope for does not contain filter\",\"id\":\"2a61f823-aa13-414a-9724-ad95e9004dd7\",\"metadata\":{},\"name\":\"does-not-contain-test\",\"sourceCondition\":{\"user\":{\"filter\":{\"or\":[{\"not_contains\":{\"in_string\":\"user.city\",\"search_string\":{\"literal\":\"Utah\"}}}]},\"version\":\"v2\"}},\"status\":\"active\",\"targetCondition\":{},\"_rev\":1}" + }, + "cookies": [], + "headers": [ + { + "name": "x-powered-by", + "value": "Express" + }, + { + "name": "cache-control", + "value": "no-store" + }, + { + "name": "content-type", + "value": "application/json; charset=utf-8" + }, + { + "name": "content-length", + "value": "333" + }, + { + "name": "etag", + "value": "W/\"14d-1O83az8k/E4XdgdP4fy05/IBo84\"" + }, + { + "name": "vary", + "value": "Accept-Encoding" + }, + { + "name": "date", + "value": "Tue, 19 May 2026 20:21:13 GMT" + }, + { + "name": "x-forgerock-transactionid", + "value": "6a53bd7b-a62d-4319-a725-4202298ef143" + }, + { + "name": "strict-transport-security", + "value": "max-age=31536000; includeSubDomains; preload;" + }, + { + "name": "x-robots-tag", + "value": "none" + }, + { + "name": "via", + "value": "1.1 google" + }, + { + "name": "alt-svc", + "value": "h3=\":443\"; ma=2592000" + } + ], + "headersSize": 429, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2026-05-19T20:21:13.000Z", + "time": 1017, + "timings": { + "blocked": -1, + "connect": -1, + "dns": -1, + "receive": 0, + "send": 0, + "ssl": -1, + "wait": 1017 + } + } + ], + "pages": [], + "version": "1.2" + } +} diff --git a/test/e2e/mocks/iga_2664973160/scope-import_883436943/0_af_3559436575/oauth2_393036114/recording.har b/test/e2e/mocks/iga_2664973160/scope-import_883436943/0_af_3559436575/oauth2_393036114/recording.har new file mode 100644 index 000000000..40a113100 --- /dev/null +++ b/test/e2e/mocks/iga_2664973160/scope-import_883436943/0_af_3559436575/oauth2_393036114/recording.har @@ -0,0 +1,146 @@ +{ + "log": { + "_recordingName": "iga/scope-import/0_af/oauth2", + "creator": { + "comment": "persister:fs", + "name": "Polly.JS", + "version": "6.0.6" + }, + "entries": [ + { + "_id": "ff75519a93ccab829f8ee8cf5e92b49f", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 1328, + "cookies": [], + "headers": [ + { + "name": "accept", + "value": "application/json, text/plain, */*" + }, + { + "name": "content-type", + "value": "application/x-www-form-urlencoded" + }, + { + "name": "user-agent", + "value": "@rockcarver/frodo-lib/4.0.0-39" + }, + { + "name": "x-forgerock-transactionid", + "value": "frodo-b5fcc796-c0e8-4368-8019-2c7ae02d96f8" + }, + { + "name": "accept-api-version", + "value": "protocol=2.1,resource=1.0" + }, + { + "name": "content-length", + "value": "1328" + }, + { + "name": "accept-encoding", + "value": "gzip, compress, deflate, br" + }, + { + "name": "host", + "value": "openam-frodo-dev.forgeblocks.com" + } + ], + "headersSize": 453, + "httpVersion": "HTTP/1.1", + "method": "POST", + "postData": { + "mimeType": "application/x-www-form-urlencoded", + "params": [], + "text": "assertion=&client_id=service-account&grant_type=urn:ietf:params:oauth:grant-type:jwt-bearer&scope=fr:idc:custom-domain:* fr:idc:release:* fr:idc:sso-cookie:* fr:am:* fr:idc:esv:* fr:idc:content-security-policy:* fr:iga:* fr:idc:certificate:* fr:idm:* fr:idc:analytics:* fr:idc:cookie-domain:* fr:idc:promotion:*" + }, + "queryString": [], + "url": "https://openam-trivir-fairfax.forgeblocks.com/am/oauth2/access_token" + }, + "response": { + "bodySize": 1780, + "content": { + "mimeType": "application/json;charset=UTF-8", + "size": 1780, + "text": "{\"access_token\":\"\",\"scope\":\"fr:idc:custom-domain:* fr:idc:release:* fr:idc:sso-cookie:* fr:am:* fr:idc:esv:* fr:idc:content-security-policy:* fr:iga:* fr:idc:certificate:* fr:idm:* fr:idc:analytics:* fr:idc:cookie-domain:* fr:idc:promotion:*\",\"token_type\":\"Bearer\",\"expires_in\":899}" + }, + "cookies": [], + "headers": [ + { + "name": "x-frame-options", + "value": "SAMEORIGIN" + }, + { + "name": "content-security-policy-report-only", + "value": "frame-ancestors 'self'; script-src 'self' 'unsafe-eval' 'unsafe-inline'" + }, + { + "name": "x-content-type-options", + "value": "nosniff" + }, + { + "name": "cache-control", + "value": "no-store" + }, + { + "name": "pragma", + "value": "no-cache" + }, + { + "name": "content-type", + "value": "application/json;charset=UTF-8" + }, + { + "name": "content-length", + "value": "1780" + }, + { + "name": "date", + "value": "Tue, 19 May 2026 20:21:01 GMT" + }, + { + "name": "x-forgerock-transactionid", + "value": "frodo-b5fcc796-c0e8-4368-8019-2c7ae02d96f8" + }, + { + "name": "strict-transport-security", + "value": "max-age=31536000; includeSubDomains; preload;" + }, + { + "name": "x-robots-tag", + "value": "none" + }, + { + "name": "via", + "value": "1.1 google" + }, + { + "name": "alt-svc", + "value": "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" + } + ], + "headersSize": 561, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2026-05-19T20:21:01.484Z", + "time": 162, + "timings": { + "blocked": -1, + "connect": -1, + "dns": -1, + "receive": 0, + "send": 0, + "ssl": -1, + "wait": 162 + } + } + ], + "pages": [], + "version": "1.2" + } +} diff --git a/test/e2e/mocks/iga_2664973160/scope-import_883436943/0_af_3559436575/openidm_3290118515/recording.har b/test/e2e/mocks/iga_2664973160/scope-import_883436943/0_af_3559436575/openidm_3290118515/recording.har new file mode 100644 index 000000000..a7d4ce6b9 --- /dev/null +++ b/test/e2e/mocks/iga_2664973160/scope-import_883436943/0_af_3559436575/openidm_3290118515/recording.har @@ -0,0 +1,310 @@ +{ + "log": { + "_recordingName": "iga/scope-import/0_af/openidm", + "creator": { + "comment": "persister:fs", + "name": "Polly.JS", + "version": "6.0.6" + }, + "entries": [ + { + "_id": "9cb8561357870863838a9948da32d1e8", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "name": "accept", + "value": "application/json, text/plain, */*" + }, + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "user-agent", + "value": "@rockcarver/frodo-lib/4.0.0-39" + }, + { + "name": "x-forgerock-transactionid", + "value": "frodo-b5fcc796-c0e8-4368-8019-2c7ae02d96f8" + }, + { + "name": "authorization", + "value": "Bearer " + }, + { + "name": "accept-encoding", + "value": "gzip, compress, deflate, br" + }, + { + "name": "host", + "value": "openam-frodo-dev.forgeblocks.com" + } + ], + "headersSize": 1938, + "httpVersion": "HTTP/1.1", + "method": "GET", + "queryString": [ + { + "name": "_fields", + "value": "*" + } + ], + "url": "https://openam-trivir-fairfax.forgeblocks.com/openidm/managed/svcacct/10d76629-78da-4265-868b-9a0cb68ebdb4?_fields=%2A" + }, + "response": { + "bodySize": 1401, + "content": { + "mimeType": "application/json;charset=utf-8", + "size": 1401, + "text": "{\"_id\":\"10d76629-78da-4265-868b-9a0cb68ebdb4\",\"_rev\":\"4b025e5d-c082-45f8-a3e9-0ac1db308dff-21339\",\"accountStatus\":\"active\",\"name\":\"Frodo-SA-1777919406717\",\"description\":\"dsevy@trivir.com's Frodo Service Account\",\"scopes\":[\"fr:am:*\",\"fr:idc:analytics:*\",\"fr:autoaccess:*\",\"fr:idc:certificate:*\",\"fr:idc:content-security-policy:*\",\"fr:idc:cookie-domain:*\",\"fr:idc:custom-domain:*\",\"fr:idc:dataset:*\",\"fr:idc:esv:*\",\"fr:idm:*\",\"fr:iga:*\",\"fr:idc:promotion:*\",\"fr:idc:release:*\",\"fr:idc:sso-cookie:*\"],\"jwks\":\"{\\\"keys\\\":[{\\\"kty\\\":\\\"RSA\\\",\\\"kid\\\":\\\"hshlr1hlp8bXdLNDrh3rESiHNsMS68c4XtbZX9i_Seg\\\",\\\"alg\\\":\\\"RS256\\\",\\\"e\\\":\\\"AQAB\\\",\\\"n\\\":\\\"owg6VJta_1o9VqyQk4Xs2kA_BDcyWEN1WMERqaJIFCbtecz_IMBp2G5m76dawbB9QvUsFvMqfJ2OGbaCcfC2o5lkxEu4nxdKLKYZ4-JTGsbPN6j-f9yr0LCjFMPd1BRxKQ98euSu5UZ0_gy9QN-eS4zB5zJsb8E7Y7FXsxG6vgd8dCqCSPjJeSmZhnQEeqJeysGlA5jMzQUP9Lvgm2aZp5wz7DXzF9lvsqRjm49H9wlERjy4KDmjlp5Rr3lz8ZXGgsaIdp18hUrPFKJP5qxkICfnbxdyK858A5puUypj1OAqrOtAnwjk5lMPOYzBWjWV72RPnOY3-6KAHo8uFXK3EH8AN8ErHxhpo-soV0e7-Z7gEnmt0rliY3j_-2AHA0Q5G1k52cGQ-dARGzgAQacpdnQv_pT0k83DGZPrpR6PqBRkyiJBD_PTvySZohxFgjpJfJmkYec7Pg40xri_LN1ozkLRBdQwL2zaQFYtq_VZC20a8Y7NpqpoLcvFIB9W2NS03qTokvId7gdSgdcVmpOo4n7OZZCouD6cyWyJ6Nj9uaxz-mw4Mdzhpd8cclSV_gXeWMBBoW3dZ7zzkEFMWHBT2x9S8JAZor_aaGJ2MXOoNoHRg-q9shNhQ3h7U14MXfL7I9R4ixClZMOpxILa0VT0Vzm-h685xkXwa28WLSw21QU\\\"}]}\",\"maxCachingTime\":\"15\",\"maxIdleTime\":\"15\",\"maxSessionTime\":\"15\",\"quotaLimit\":\"5\"}" + }, + "cookies": [], + "headers": [ + { + "name": "date", + "value": "Tue, 19 May 2026 20:21:01 GMT" + }, + { + "name": "vary", + "value": "Origin" + }, + { + "name": "cache-control", + "value": "no-store" + }, + { + "name": "content-security-policy", + "value": "default-src 'none';frame-ancestors 'none';sandbox" + }, + { + "name": "content-type", + "value": "application/json;charset=utf-8" + }, + { + "name": "cross-origin-opener-policy", + "value": "same-origin" + }, + { + "name": "cross-origin-resource-policy", + "value": "same-origin" + }, + { + "name": "etag", + "value": "\"4b025e5d-c082-45f8-a3e9-0ac1db308dff-21339\"" + }, + { + "name": "expires", + "value": "0" + }, + { + "name": "pragma", + "value": "no-cache" + }, + { + "name": "x-content-type-options", + "value": "nosniff" + }, + { + "name": "x-frame-options", + "value": "DENY" + }, + { + "name": "content-length", + "value": "1401" + }, + { + "name": "x-forgerock-transactionid", + "value": "frodo-b5fcc796-c0e8-4368-8019-2c7ae02d96f8" + }, + { + "name": "strict-transport-security", + "value": "max-age=31536000; includeSubDomains; preload;" + }, + { + "name": "x-robots-tag", + "value": "none" + }, + { + "name": "via", + "value": "1.1 google" + }, + { + "name": "alt-svc", + "value": "h3=\":443\"; ma=2592000" + } + ], + "headersSize": 658, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2026-05-19T20:21:01.701Z", + "time": 202, + "timings": { + "blocked": -1, + "connect": -1, + "dns": -1, + "receive": 0, + "send": 0, + "ssl": -1, + "wait": 202 + } + }, + { + "_id": "9cb8561357870863838a9948da32d1e8", + "_order": 1, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "name": "accept", + "value": "application/json, text/plain, */*" + }, + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "user-agent", + "value": "@rockcarver/frodo-lib/4.0.0-39" + }, + { + "name": "x-forgerock-transactionid", + "value": "frodo-b5fcc796-c0e8-4368-8019-2c7ae02d96f8" + }, + { + "name": "authorization", + "value": "Bearer " + }, + { + "name": "accept-encoding", + "value": "gzip, compress, deflate, br" + }, + { + "name": "host", + "value": "openam-frodo-dev.forgeblocks.com" + } + ], + "headersSize": 1938, + "httpVersion": "HTTP/1.1", + "method": "GET", + "queryString": [ + { + "name": "_fields", + "value": "*" + } + ], + "url": "https://openam-trivir-fairfax.forgeblocks.com/openidm/managed/svcacct/10d76629-78da-4265-868b-9a0cb68ebdb4?_fields=%2A" + }, + "response": { + "bodySize": 1401, + "content": { + "mimeType": "application/json;charset=utf-8", + "size": 1401, + "text": "{\"_id\":\"10d76629-78da-4265-868b-9a0cb68ebdb4\",\"_rev\":\"4b025e5d-c082-45f8-a3e9-0ac1db308dff-21339\",\"accountStatus\":\"active\",\"name\":\"Frodo-SA-1777919406717\",\"description\":\"dsevy@trivir.com's Frodo Service Account\",\"scopes\":[\"fr:am:*\",\"fr:idc:analytics:*\",\"fr:autoaccess:*\",\"fr:idc:certificate:*\",\"fr:idc:content-security-policy:*\",\"fr:idc:cookie-domain:*\",\"fr:idc:custom-domain:*\",\"fr:idc:dataset:*\",\"fr:idc:esv:*\",\"fr:idm:*\",\"fr:iga:*\",\"fr:idc:promotion:*\",\"fr:idc:release:*\",\"fr:idc:sso-cookie:*\"],\"jwks\":\"{\\\"keys\\\":[{\\\"kty\\\":\\\"RSA\\\",\\\"kid\\\":\\\"hshlr1hlp8bXdLNDrh3rESiHNsMS68c4XtbZX9i_Seg\\\",\\\"alg\\\":\\\"RS256\\\",\\\"e\\\":\\\"AQAB\\\",\\\"n\\\":\\\"owg6VJta_1o9VqyQk4Xs2kA_BDcyWEN1WMERqaJIFCbtecz_IMBp2G5m76dawbB9QvUsFvMqfJ2OGbaCcfC2o5lkxEu4nxdKLKYZ4-JTGsbPN6j-f9yr0LCjFMPd1BRxKQ98euSu5UZ0_gy9QN-eS4zB5zJsb8E7Y7FXsxG6vgd8dCqCSPjJeSmZhnQEeqJeysGlA5jMzQUP9Lvgm2aZp5wz7DXzF9lvsqRjm49H9wlERjy4KDmjlp5Rr3lz8ZXGgsaIdp18hUrPFKJP5qxkICfnbxdyK858A5puUypj1OAqrOtAnwjk5lMPOYzBWjWV72RPnOY3-6KAHo8uFXK3EH8AN8ErHxhpo-soV0e7-Z7gEnmt0rliY3j_-2AHA0Q5G1k52cGQ-dARGzgAQacpdnQv_pT0k83DGZPrpR6PqBRkyiJBD_PTvySZohxFgjpJfJmkYec7Pg40xri_LN1ozkLRBdQwL2zaQFYtq_VZC20a8Y7NpqpoLcvFIB9W2NS03qTokvId7gdSgdcVmpOo4n7OZZCouD6cyWyJ6Nj9uaxz-mw4Mdzhpd8cclSV_gXeWMBBoW3dZ7zzkEFMWHBT2x9S8JAZor_aaGJ2MXOoNoHRg-q9shNhQ3h7U14MXfL7I9R4ixClZMOpxILa0VT0Vzm-h685xkXwa28WLSw21QU\\\"}]}\",\"maxCachingTime\":\"15\",\"maxIdleTime\":\"15\",\"maxSessionTime\":\"15\",\"quotaLimit\":\"5\"}" + }, + "cookies": [], + "headers": [ + { + "name": "date", + "value": "Tue, 19 May 2026 20:21:01 GMT" + }, + { + "name": "vary", + "value": "Origin" + }, + { + "name": "cache-control", + "value": "no-store" + }, + { + "name": "content-security-policy", + "value": "default-src 'none';frame-ancestors 'none';sandbox" + }, + { + "name": "content-type", + "value": "application/json;charset=utf-8" + }, + { + "name": "cross-origin-opener-policy", + "value": "same-origin" + }, + { + "name": "cross-origin-resource-policy", + "value": "same-origin" + }, + { + "name": "etag", + "value": "\"4b025e5d-c082-45f8-a3e9-0ac1db308dff-21339\"" + }, + { + "name": "expires", + "value": "0" + }, + { + "name": "pragma", + "value": "no-cache" + }, + { + "name": "x-content-type-options", + "value": "nosniff" + }, + { + "name": "x-frame-options", + "value": "DENY" + }, + { + "name": "content-length", + "value": "1401" + }, + { + "name": "x-forgerock-transactionid", + "value": "frodo-b5fcc796-c0e8-4368-8019-2c7ae02d96f8" + }, + { + "name": "strict-transport-security", + "value": "max-age=31536000; includeSubDomains; preload;" + }, + { + "name": "x-robots-tag", + "value": "none" + }, + { + "name": "via", + "value": "1.1 google" + }, + { + "name": "alt-svc", + "value": "h3=\":443\"; ma=2592000" + } + ], + "headersSize": 658, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2026-05-19T20:21:01.908Z", + "time": 96, + "timings": { + "blocked": -1, + "connect": -1, + "dns": -1, + "receive": 0, + "send": 0, + "ssl": -1, + "wait": 96 + } + } + ], + "pages": [], + "version": "1.2" + } +} diff --git a/test/e2e/mocks/iga_2664973160/scope-import_883436943/0_all-separate_directory_3135850579/am_1076162899/recording.har b/test/e2e/mocks/iga_2664973160/scope-import_883436943/0_all-separate_directory_3135850579/am_1076162899/recording.har new file mode 100644 index 000000000..d792b9156 --- /dev/null +++ b/test/e2e/mocks/iga_2664973160/scope-import_883436943/0_all-separate_directory_3135850579/am_1076162899/recording.har @@ -0,0 +1,312 @@ +{ + "log": { + "_recordingName": "iga/scope-import/0_all-separate_directory/am", + "creator": { + "comment": "persister:fs", + "name": "Polly.JS", + "version": "6.0.6" + }, + "entries": [ + { + "_id": "ccd7a5defd0fdeaa986a2b54642d911a", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "name": "accept", + "value": "application/json, text/plain, */*" + }, + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "user-agent", + "value": "@rockcarver/frodo-lib/4.0.0-39" + }, + { + "name": "x-forgerock-transactionid", + "value": "frodo-ad86ed3b-7ede-46dc-89dd-0348e737fe3d" + }, + { + "name": "accept-api-version", + "value": "resource=1.1" + }, + { + "name": "accept-encoding", + "value": "gzip, compress, deflate, br" + }, + { + "name": "host", + "value": "openam-frodo-dev.forgeblocks.com" + } + ], + "headersSize": 398, + "httpVersion": "HTTP/1.1", + "method": "GET", + "queryString": [], + "url": "https://openam-trivir-fairfax.forgeblocks.com/am/json/serverinfo/*" + }, + "response": { + "bodySize": 614, + "content": { + "mimeType": "application/json;charset=UTF-8", + "size": 614, + "text": "{\"_id\":\"*\",\"_rev\":\"959929574\",\"domains\":[],\"protectedUserAttributes\":[\"telephoneNumber\",\"mail\"],\"cookieName\":\"311468432e97f1f\",\"secureCookie\":true,\"forgotPassword\":\"false\",\"forgotUsername\":\"false\",\"kbaEnabled\":\"false\",\"selfRegistration\":\"false\",\"lang\":\"en-US\",\"successfulUserRegistrationDestination\":\"default\",\"socialImplementations\":[],\"referralsEnabled\":\"false\",\"zeroPageLogin\":{\"enabled\":false,\"refererWhitelist\":[],\"allowedWithoutReferer\":true},\"realm\":\"/\",\"xuiUserSessionValidationEnabled\":true,\"fileBasedConfiguration\":true,\"userIdAttributes\":[],\"cloudOnlyFeaturesEnabled\":true,\"oauth2AIAgentsEnabled\":false}" + }, + "cookies": [], + "headers": [ + { + "name": "x-frame-options", + "value": "SAMEORIGIN" + }, + { + "name": "content-security-policy-report-only", + "value": "frame-ancestors 'self'; script-src 'self' 'unsafe-eval' 'unsafe-inline'" + }, + { + "name": "x-content-type-options", + "value": "nosniff" + }, + { + "name": "cache-control", + "value": "no-store" + }, + { + "name": "content-api-version", + "value": "resource=1.1" + }, + { + "name": "content-security-policy", + "value": "default-src 'none';frame-ancestors 'none';sandbox" + }, + { + "name": "cross-origin-opener-policy", + "value": "same-origin" + }, + { + "name": "cross-origin-resource-policy", + "value": "same-origin" + }, + { + "name": "etag", + "value": "\"959929574\"" + }, + { + "name": "expires", + "value": "0" + }, + { + "name": "pragma", + "value": "no-cache" + }, + { + "name": "content-type", + "value": "application/json;charset=UTF-8" + }, + { + "name": "content-length", + "value": "614" + }, + { + "name": "date", + "value": "Tue, 19 May 2026 20:23:27 GMT" + }, + { + "name": "x-forgerock-transactionid", + "value": "frodo-ad86ed3b-7ede-46dc-89dd-0348e737fe3d" + }, + { + "name": "strict-transport-security", + "value": "max-age=31536000; includeSubDomains; preload;" + }, + { + "name": "x-robots-tag", + "value": "none" + }, + { + "name": "via", + "value": "1.1 google" + }, + { + "name": "alt-svc", + "value": "h3=\":443\"; ma=2592000" + } + ], + "headersSize": 761, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2026-05-19T20:23:27.652Z", + "time": 186, + "timings": { + "blocked": -1, + "connect": -1, + "dns": -1, + "receive": 0, + "send": 0, + "ssl": -1, + "wait": 186 + } + }, + { + "_id": "6125d0328ad0dcaee55f73fd8b22ca14", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "name": "accept", + "value": "application/json, text/plain, */*" + }, + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "user-agent", + "value": "@rockcarver/frodo-lib/4.0.0-39" + }, + { + "name": "x-forgerock-transactionid", + "value": "frodo-ad86ed3b-7ede-46dc-89dd-0348e737fe3d" + }, + { + "name": "accept-api-version", + "value": "resource=1.0" + }, + { + "name": "authorization", + "value": "Bearer " + }, + { + "name": "accept-encoding", + "value": "gzip, compress, deflate, br" + }, + { + "name": "host", + "value": "openam-frodo-dev.forgeblocks.com" + } + ], + "headersSize": 1926, + "httpVersion": "HTTP/1.1", + "method": "GET", + "queryString": [], + "url": "https://openam-trivir-fairfax.forgeblocks.com/am/json/serverinfo/version" + }, + "response": { + "bodySize": 274, + "content": { + "mimeType": "application/json;charset=UTF-8", + "size": 274, + "text": "{\"_id\":\"version\",\"_rev\":\"194838800\",\"version\":\"9.0.0-SNAPSHOT\",\"fullVersion\":\"ForgeRock Access Management 9.0.0-SNAPSHOT Build 500b736d5354dc1171d65a84ec4230d63a5a084e (2026-April-21 11:20)\",\"revision\":\"500b736d5354dc1171d65a84ec4230d63a5a084e\",\"date\":\"2026-April-21 11:20\"}" + }, + "cookies": [], + "headers": [ + { + "name": "x-frame-options", + "value": "SAMEORIGIN" + }, + { + "name": "content-security-policy-report-only", + "value": "frame-ancestors 'self'; script-src 'self' 'unsafe-eval' 'unsafe-inline'" + }, + { + "name": "x-content-type-options", + "value": "nosniff" + }, + { + "name": "cache-control", + "value": "no-store" + }, + { + "name": "content-api-version", + "value": "resource=1.0" + }, + { + "name": "content-security-policy", + "value": "default-src 'none';frame-ancestors 'none';sandbox" + }, + { + "name": "cross-origin-opener-policy", + "value": "same-origin" + }, + { + "name": "cross-origin-resource-policy", + "value": "same-origin" + }, + { + "name": "etag", + "value": "\"194838800\"" + }, + { + "name": "expires", + "value": "0" + }, + { + "name": "pragma", + "value": "no-cache" + }, + { + "name": "content-type", + "value": "application/json;charset=UTF-8" + }, + { + "name": "content-length", + "value": "274" + }, + { + "name": "date", + "value": "Tue, 19 May 2026 20:23:28 GMT" + }, + { + "name": "x-forgerock-transactionid", + "value": "frodo-ad86ed3b-7ede-46dc-89dd-0348e737fe3d" + }, + { + "name": "strict-transport-security", + "value": "max-age=31536000; includeSubDomains; preload;" + }, + { + "name": "x-robots-tag", + "value": "none" + }, + { + "name": "via", + "value": "1.1 google" + }, + { + "name": "alt-svc", + "value": "h3=\":443\"; ma=2592000" + } + ], + "headersSize": 761, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2026-05-19T20:23:28.020Z", + "time": 117, + "timings": { + "blocked": -1, + "connect": -1, + "dns": -1, + "receive": 0, + "send": 0, + "ssl": -1, + "wait": 117 + } + } + ], + "pages": [], + "version": "1.2" + } +} diff --git a/test/e2e/mocks/iga_2664973160/scope-import_883436943/0_all-separate_directory_3135850579/environment_1072573434/recording.har b/test/e2e/mocks/iga_2664973160/scope-import_883436943/0_all-separate_directory_3135850579/environment_1072573434/recording.har new file mode 100644 index 000000000..2e7319965 --- /dev/null +++ b/test/e2e/mocks/iga_2664973160/scope-import_883436943/0_all-separate_directory_3135850579/environment_1072573434/recording.har @@ -0,0 +1,125 @@ +{ + "log": { + "_recordingName": "iga/scope-import/0_all-separate_directory/environment", + "creator": { + "comment": "persister:fs", + "name": "Polly.JS", + "version": "6.0.6" + }, + "entries": [ + { + "_id": "ccc7ec61c2094114d7917814bb19b83b", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "name": "accept", + "value": "application/json, text/plain, */*" + }, + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "user-agent", + "value": "@rockcarver/frodo-lib/4.0.0-39" + }, + { + "name": "accept-api-version", + "value": "protocol=1.0,resource=1.0" + }, + { + "name": "authorization", + "value": "Bearer " + }, + { + "name": "accept-encoding", + "value": "gzip, compress, deflate, br" + }, + { + "name": "host", + "value": "openam-frodo-dev.forgeblocks.com" + } + ], + "headersSize": 1877, + "httpVersion": "HTTP/1.1", + "method": "GET", + "queryString": [], + "url": "https://openam-trivir-fairfax.forgeblocks.com/environment/scopes/service-accounts" + }, + "response": { + "bodySize": 1975, + "content": { + "mimeType": "application/json; charset=utf-8", + "size": 1975, + "text": "[{\"scope\":\"fr:am:*\",\"description\":\"All Access Management APIs\"},{\"scope\":\"fr:autoaccess:*\",\"description\":\"All Auto Access APIs\"},{\"scope\":\"fr:idc:analytics:*\",\"description\":\"All Analytics APIs\"},{\"scope\":\"fr:idc:certificate:*\",\"description\":\"All TLS certificate APIs\",\"childScopes\":[{\"scope\":\"fr:idc:certificate:read\",\"description\":\"Read TLS certificates\"}]},{\"scope\":\"fr:idc:content-security-policy:*\",\"description\":\"All content security policy APIs\",\"childScopes\":[{\"scope\":\"fr:idc:content-security-policy:read\",\"description\":\"Read content security policy\"}]},{\"scope\":\"fr:idc:cookie-domain:*\",\"description\":\"All cookie domain APIs\",\"childScopes\":[{\"scope\":\"fr:idc:cookie-domain:read\",\"description\":\"Read cookie domains\"}]},{\"scope\":\"fr:idc:custom-domain:*\",\"description\":\"All custom domain APIs\",\"childScopes\":[{\"scope\":\"fr:idc:custom-domain:read\",\"description\":\"Read custom domains\"}]},{\"scope\":\"fr:idc:dataset:*\",\"description\":\"All dataset deletion APIs\",\"childScopes\":[{\"scope\":\"fr:idc:dataset:read\",\"description\":\"Read dataset deletions\"}]},{\"scope\":\"fr:idc:esv:*\",\"description\":\"All ESV APIs\",\"childScopes\":[{\"scope\":\"fr:idc:esv:read\",\"description\":\"Read ESVs, excluding values of secrets\"},{\"scope\":\"fr:idc:esv:update\",\"description\":\"Create, modify, and delete ESVs\"},{\"scope\":\"fr:idc:esv:restart\",\"description\":\"Restart workloads that consume ESVs\"}]},{\"scope\":\"fr:idc:promotion:*\",\"description\":\"All configuration promotion APIs\",\"childScopes\":[{\"scope\":\"fr:idc:promotion:read\",\"description\":\"Read configuration promotion\"}]},{\"scope\":\"fr:idc:release:*\",\"description\":\"All product release APIs\",\"childScopes\":[{\"scope\":\"fr:idc:release:read\",\"description\":\"Read product release\"}]},{\"scope\":\"fr:idc:sso-cookie:*\",\"description\":\"All SSO cookie APIs\",\"childScopes\":[{\"scope\":\"fr:idc:sso-cookie:read\",\"description\":\"Read SSO cookie\"}]},{\"scope\":\"fr:idm:*\",\"description\":\"All Identity Management APIs\"},{\"scope\":\"fr:iga:*\",\"description\":\"All Identity Governance APIs\"}]" + }, + "cookies": [], + "headers": [ + { + "name": "x-frame-options", + "value": "SAMEORIGIN" + }, + { + "name": "content-type", + "value": "application/json; charset=utf-8" + }, + { + "name": "content-length", + "value": "1975" + }, + { + "name": "etag", + "value": "W/\"7b7-tIBWy/EinSCKaoNz4aU2iqiTmFc\"" + }, + { + "name": "date", + "value": "Tue, 19 May 2026 20:23:28 GMT" + }, + { + "name": "x-forgerock-transactionid", + "value": "207ff820-95d3-46ea-918d-5ee06efdfa1a" + }, + { + "name": "strict-transport-security", + "value": "max-age=31536000; includeSubDomains; preload;" + }, + { + "name": "x-robots-tag", + "value": "none" + }, + { + "name": "via", + "value": "1.1 google" + }, + { + "name": "alt-svc", + "value": "h3=\":443\"; ma=2592000" + } + ], + "headersSize": 388, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2026-05-19T20:23:28.143Z", + "time": 115, + "timings": { + "blocked": -1, + "connect": -1, + "dns": -1, + "receive": 0, + "send": 0, + "ssl": -1, + "wait": 115 + } + } + ], + "pages": [], + "version": "1.2" + } +} diff --git a/test/e2e/mocks/iga_2664973160/scope-import_883436943/0_all-separate_directory_3135850579/iga_2664973160/recording.har b/test/e2e/mocks/iga_2664973160/scope-import_883436943/0_all-separate_directory_3135850579/iga_2664973160/recording.har new file mode 100644 index 000000000..fd074f877 --- /dev/null +++ b/test/e2e/mocks/iga_2664973160/scope-import_883436943/0_all-separate_directory_3135850579/iga_2664973160/recording.har @@ -0,0 +1,147 @@ +{ + "log": { + "_recordingName": "iga/scope-import/0_all-separate_directory/iga", + "creator": { + "comment": "persister:fs", + "name": "Polly.JS", + "version": "6.0.6" + }, + "entries": [ + { + "_id": "af55958a3898b129bc68978def6db818", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "name": "accept", + "value": "application/json, text/plain, */*" + }, + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "user-agent", + "value": "@rockcarver/frodo-lib/4.0.0-39" + }, + { + "name": "authorization", + "value": "Bearer " + }, + { + "name": "accept-encoding", + "value": "gzip, compress, deflate, br" + }, + { + "name": "host", + "value": "openam-frodo-dev.forgeblocks.com" + } + ], + "headersSize": 1871, + "httpVersion": "HTTP/1.1", + "method": "GET", + "queryString": [ + { + "name": "_queryFilter", + "value": "true" + }, + { + "name": "_pageSize", + "value": "10000" + }, + { + "name": "_pagedResultsOffset", + "value": "0" + } + ], + "url": "https://openam-trivir-fairfax.forgeblocks.com/iga/governance/scope?_queryFilter=true&_pageSize=10000&_pagedResultsOffset=0" + }, + "response": { + "bodySize": 2023, + "content": { + "encoding": "base64", + "mimeType": "application/json; charset=utf-8", + "size": 2023, + "text": "[\"G0YbAORaavX6qvp1Qa0iRP0upOhC0Iy58yAv4PFOufTzc633Cx08tW1/uDeieJz8vf2PuSbTxkXwknWXMItnKeyuNTIhkgsme90H9Y35pYSVwZV2l3nAYbLmgvWvB6QN5Rt7HWWvsMKgPqYe9ytNeW9TGf/CuNcRSp1yuQxqMENJsIIIhmcnJIbAJSquAnorFIbkNXnGVEoWZqjhmWCFtFPHug+Mex2hVBzUB8zQ91uL9NFeUxllr7A+4NapwfqAXC6DGqwP2Busfz2g7uMU9zpCqR3WB5R66qOV+gQro2CJZbzCDPu6418v84BjJD3wAiv8MsIZjuP455hh/3dHhRVeBBzHDH2EceuwQoijvBDMMEI7AlZJCQ99zHBq9AIrn+GZRkhhBFgfIKFL+zgMghUEEwaZRu5/FmwVfOVyUV4bJpjVf8IMm3pXxXKT2nvn3Z9wHLO8kCTMQmYjhWIJBRMWlckRN0eE3lilN5JWBkdcw0tUKbnD+ijPBD6po4zLQSlkh3W0G80VK+z1xXVeCt0/a6GOHp2tk/8v4pMlIHu2g0QXindzL4Xuv3RqH8RIPT1PftwvJLtJNp4vi8hmIbnVwDFrWPdDTfD2f+4jDPq+7S+lRtK1fLD+jrzIeOWtNwMJSUV0/9ZCKuIptFLAboOvgWrqp3sZZ1gf0G85l7cWltbhmOGweVGzoZWqAn6qNcT2yBuVZplenOVCO+UUIZauWy5sMAu92exNZmg3k1BFltFZJnEzgTHJiEXH6feT3tzCpaNtIc1hmolRliTKQzk4d412tukI5gMr1ZwxjHDZnxZm/0XIyoX0xqDnK9AceUcDy19qyEGLdtbf27Kj4JL/tkR4i1fXCv3afqHFOMgGkrrQoqeS8qHgNR4YWzlfpGJWOS8M8SyDS+OZDhV9MIGmhVFNfbqXcUZLK1pNfJNa4MZkP/0cHLdgNSqbknQuOx8FrUA1dbyXcUY4RhInqfPThvkPO5UEByoyAcwuXGnnBHPiHEvnnHkf1hjn0qfSpzDBS7b9zTBqp5Ri6GQKqKza0Csr0QWdbFBSeoVUZ3wLNe3P/zAEkesUWguvOo85DJdhfJe/a09g9YzIqpzJbmjtRqiSCei1USizTy4qyRQxOJqCqJO9Zz+Fy5i+Dv/T9FEZr3bmVJGKog5TUE6Ny4Urr4xlmjiWzjVXMkgn9PJOB0oedb35jqhG+2xC\",\"KmsWLgktpLSYmeSovGHovQgok7XSMJ6czjRi39J9+umT7Yl0JnJw4uTloFUuFis9M4K7B+LonBlt/IOkic3AhZQ0Q8Y5odJBYhDGoddOe5uEFjEQ2pEX54/BKM9pIzS2nnyv4dJro+y5fVETve1uA3ijE0rT8C8MIGREp7ZIhj9gJjPC22tHpjf9JtRa8uIhWCVFpLDuFgoeaZZAmjaP7XDQElAoGH6kUho8vAQ0ho60FYpvKPim5WaL4857Jx4cQzOMYwM5ZuFdtFJHQpNTRBWMQMdYRmO0l86RUjySxn/p1KavP/pm+tkvkXQKJKG6XW6CSIyYx+BDRMVjwJCFQhcy0yIqx7LAKl28dWpTODtdz2e8hkZ14N6eEEFRRC34yutEP7TMF+2Y95xr/sGyDO68tarjwk1hIICJ+/aPXeX3ZoYhGoYqW4EhuYCUnd0255zfxixQQiWNQ7BFjsOv7LQc9Jue5AiL5R3nflVmFXYRXCtrHbeEYem2UUyGlNKnun9G/10/zEFnQ1ozFD5vqBwldDZzTFJHFz0zNiYKKEPjNIbEieJ/xxwD1ypzi+BCCqGlfXAcTeHee8+xPrhc9nufzr8gjahP7+ASY7+og56o8YneTOzdaezTS6H7dIIFPJNo2rf/KI5uSeZghGcmebTJWFSae9w498glk3zbhHbe0NWv5zMmutBTGITbWiKIxEGjY/jKKEuzeEyQVS51iNmRSkZBbzSsFsG1VlZwp4pY4pXnowRB/8wNMgUf5EHtK3qF9S9h1/lnhstOs8ZH+60OWDmfZ5zxT/od\"]" + }, + "cookies": [], + "headers": [ + { + "name": "x-powered-by", + "value": "Express" + }, + { + "name": "cache-control", + "value": "no-store" + }, + { + "name": "content-type", + "value": "application/json; charset=utf-8" + }, + { + "name": "etag", + "value": "W/\"1b47-XNnXc9MPNP1B8DNWFc5xVB0RlVc\"" + }, + { + "name": "vary", + "value": "Accept-Encoding" + }, + { + "name": "content-encoding", + "value": "br" + }, + { + "name": "date", + "value": "Tue, 19 May 2026 20:23:28 GMT" + }, + { + "name": "x-forgerock-transactionid", + "value": "e9970659-f541-45e4-b069-d607df2c8b82" + }, + { + "name": "strict-transport-security", + "value": "max-age=31536000; includeSubDomains; preload;" + }, + { + "name": "x-robots-tag", + "value": "none" + }, + { + "name": "via", + "value": "1.1 google" + }, + { + "name": "alt-svc", + "value": "h3=\":443\"; ma=2592000" + }, + { + "name": "transfer-encoding", + "value": "chunked" + } + ], + "headersSize": 459, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2026-05-19T20:23:28.372Z", + "time": 161, + "timings": { + "blocked": -1, + "connect": -1, + "dns": -1, + "receive": 0, + "send": 0, + "ssl": -1, + "wait": 161 + } + } + ], + "pages": [], + "version": "1.2" + } +} diff --git a/test/e2e/mocks/iga_2664973160/scope-import_883436943/0_all-separate_directory_3135850579/oauth2_393036114/recording.har b/test/e2e/mocks/iga_2664973160/scope-import_883436943/0_all-separate_directory_3135850579/oauth2_393036114/recording.har new file mode 100644 index 000000000..ca1ca5f87 --- /dev/null +++ b/test/e2e/mocks/iga_2664973160/scope-import_883436943/0_all-separate_directory_3135850579/oauth2_393036114/recording.har @@ -0,0 +1,146 @@ +{ + "log": { + "_recordingName": "iga/scope-import/0_all-separate_directory/oauth2", + "creator": { + "comment": "persister:fs", + "name": "Polly.JS", + "version": "6.0.6" + }, + "entries": [ + { + "_id": "ff75519a93ccab829f8ee8cf5e92b49f", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 1328, + "cookies": [], + "headers": [ + { + "name": "accept", + "value": "application/json, text/plain, */*" + }, + { + "name": "content-type", + "value": "application/x-www-form-urlencoded" + }, + { + "name": "user-agent", + "value": "@rockcarver/frodo-lib/4.0.0-39" + }, + { + "name": "x-forgerock-transactionid", + "value": "frodo-ad86ed3b-7ede-46dc-89dd-0348e737fe3d" + }, + { + "name": "accept-api-version", + "value": "protocol=2.1,resource=1.0" + }, + { + "name": "content-length", + "value": "1328" + }, + { + "name": "accept-encoding", + "value": "gzip, compress, deflate, br" + }, + { + "name": "host", + "value": "openam-frodo-dev.forgeblocks.com" + } + ], + "headersSize": 453, + "httpVersion": "HTTP/1.1", + "method": "POST", + "postData": { + "mimeType": "application/x-www-form-urlencoded", + "params": [], + "text": "assertion=&client_id=service-account&grant_type=urn:ietf:params:oauth:grant-type:jwt-bearer&scope=fr:idc:custom-domain:* fr:idc:release:* fr:idc:sso-cookie:* fr:am:* fr:idc:esv:* fr:idc:content-security-policy:* fr:iga:* fr:idc:certificate:* fr:idm:* fr:idc:analytics:* fr:idc:cookie-domain:* fr:idc:promotion:*" + }, + "queryString": [], + "url": "https://openam-trivir-fairfax.forgeblocks.com/am/oauth2/access_token" + }, + "response": { + "bodySize": 1780, + "content": { + "mimeType": "application/json;charset=UTF-8", + "size": 1780, + "text": "{\"access_token\":\"\",\"scope\":\"fr:idc:custom-domain:* fr:idc:release:* fr:idc:sso-cookie:* fr:am:* fr:idc:esv:* fr:idc:content-security-policy:* fr:iga:* fr:idc:certificate:* fr:idm:* fr:idc:analytics:* fr:idc:cookie-domain:* fr:idc:promotion:*\",\"token_type\":\"Bearer\",\"expires_in\":899}" + }, + "cookies": [], + "headers": [ + { + "name": "x-frame-options", + "value": "SAMEORIGIN" + }, + { + "name": "content-security-policy-report-only", + "value": "frame-ancestors 'self'; script-src 'self' 'unsafe-eval' 'unsafe-inline'" + }, + { + "name": "x-content-type-options", + "value": "nosniff" + }, + { + "name": "cache-control", + "value": "no-store" + }, + { + "name": "pragma", + "value": "no-cache" + }, + { + "name": "content-type", + "value": "application/json;charset=UTF-8" + }, + { + "name": "content-length", + "value": "1780" + }, + { + "name": "date", + "value": "Tue, 19 May 2026 20:23:27 GMT" + }, + { + "name": "x-forgerock-transactionid", + "value": "frodo-ad86ed3b-7ede-46dc-89dd-0348e737fe3d" + }, + { + "name": "strict-transport-security", + "value": "max-age=31536000; includeSubDomains; preload;" + }, + { + "name": "x-robots-tag", + "value": "none" + }, + { + "name": "via", + "value": "1.1 google" + }, + { + "name": "alt-svc", + "value": "h3=\":443\"; ma=2592000" + } + ], + "headersSize": 536, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2026-05-19T20:23:27.852Z", + "time": 161, + "timings": { + "blocked": -1, + "connect": -1, + "dns": -1, + "receive": 0, + "send": 0, + "ssl": -1, + "wait": 161 + } + } + ], + "pages": [], + "version": "1.2" + } +} diff --git a/test/e2e/mocks/iga_2664973160/scope-import_883436943/0_all-separate_directory_3135850579/openidm_3290118515/recording.har b/test/e2e/mocks/iga_2664973160/scope-import_883436943/0_all-separate_directory_3135850579/openidm_3290118515/recording.har new file mode 100644 index 000000000..0362167d1 --- /dev/null +++ b/test/e2e/mocks/iga_2664973160/scope-import_883436943/0_all-separate_directory_3135850579/openidm_3290118515/recording.har @@ -0,0 +1,310 @@ +{ + "log": { + "_recordingName": "iga/scope-import/0_all-separate_directory/openidm", + "creator": { + "comment": "persister:fs", + "name": "Polly.JS", + "version": "6.0.6" + }, + "entries": [ + { + "_id": "9cb8561357870863838a9948da32d1e8", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "name": "accept", + "value": "application/json, text/plain, */*" + }, + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "user-agent", + "value": "@rockcarver/frodo-lib/4.0.0-39" + }, + { + "name": "x-forgerock-transactionid", + "value": "frodo-ad86ed3b-7ede-46dc-89dd-0348e737fe3d" + }, + { + "name": "authorization", + "value": "Bearer " + }, + { + "name": "accept-encoding", + "value": "gzip, compress, deflate, br" + }, + { + "name": "host", + "value": "openam-frodo-dev.forgeblocks.com" + } + ], + "headersSize": 1938, + "httpVersion": "HTTP/1.1", + "method": "GET", + "queryString": [ + { + "name": "_fields", + "value": "*" + } + ], + "url": "https://openam-trivir-fairfax.forgeblocks.com/openidm/managed/svcacct/10d76629-78da-4265-868b-9a0cb68ebdb4?_fields=%2A" + }, + "response": { + "bodySize": 1401, + "content": { + "mimeType": "application/json;charset=utf-8", + "size": 1401, + "text": "{\"_id\":\"10d76629-78da-4265-868b-9a0cb68ebdb4\",\"_rev\":\"4b025e5d-c082-45f8-a3e9-0ac1db308dff-21339\",\"accountStatus\":\"active\",\"name\":\"Frodo-SA-1777919406717\",\"description\":\"dsevy@trivir.com's Frodo Service Account\",\"scopes\":[\"fr:am:*\",\"fr:idc:analytics:*\",\"fr:autoaccess:*\",\"fr:idc:certificate:*\",\"fr:idc:content-security-policy:*\",\"fr:idc:cookie-domain:*\",\"fr:idc:custom-domain:*\",\"fr:idc:dataset:*\",\"fr:idc:esv:*\",\"fr:idm:*\",\"fr:iga:*\",\"fr:idc:promotion:*\",\"fr:idc:release:*\",\"fr:idc:sso-cookie:*\"],\"jwks\":\"{\\\"keys\\\":[{\\\"kty\\\":\\\"RSA\\\",\\\"kid\\\":\\\"hshlr1hlp8bXdLNDrh3rESiHNsMS68c4XtbZX9i_Seg\\\",\\\"alg\\\":\\\"RS256\\\",\\\"e\\\":\\\"AQAB\\\",\\\"n\\\":\\\"owg6VJta_1o9VqyQk4Xs2kA_BDcyWEN1WMERqaJIFCbtecz_IMBp2G5m76dawbB9QvUsFvMqfJ2OGbaCcfC2o5lkxEu4nxdKLKYZ4-JTGsbPN6j-f9yr0LCjFMPd1BRxKQ98euSu5UZ0_gy9QN-eS4zB5zJsb8E7Y7FXsxG6vgd8dCqCSPjJeSmZhnQEeqJeysGlA5jMzQUP9Lvgm2aZp5wz7DXzF9lvsqRjm49H9wlERjy4KDmjlp5Rr3lz8ZXGgsaIdp18hUrPFKJP5qxkICfnbxdyK858A5puUypj1OAqrOtAnwjk5lMPOYzBWjWV72RPnOY3-6KAHo8uFXK3EH8AN8ErHxhpo-soV0e7-Z7gEnmt0rliY3j_-2AHA0Q5G1k52cGQ-dARGzgAQacpdnQv_pT0k83DGZPrpR6PqBRkyiJBD_PTvySZohxFgjpJfJmkYec7Pg40xri_LN1ozkLRBdQwL2zaQFYtq_VZC20a8Y7NpqpoLcvFIB9W2NS03qTokvId7gdSgdcVmpOo4n7OZZCouD6cyWyJ6Nj9uaxz-mw4Mdzhpd8cclSV_gXeWMBBoW3dZ7zzkEFMWHBT2x9S8JAZor_aaGJ2MXOoNoHRg-q9shNhQ3h7U14MXfL7I9R4ixClZMOpxILa0VT0Vzm-h685xkXwa28WLSw21QU\\\"}]}\",\"maxCachingTime\":\"15\",\"maxIdleTime\":\"15\",\"maxSessionTime\":\"15\",\"quotaLimit\":\"5\"}" + }, + "cookies": [], + "headers": [ + { + "name": "date", + "value": "Tue, 19 May 2026 20:23:28 GMT" + }, + { + "name": "vary", + "value": "Origin" + }, + { + "name": "cache-control", + "value": "no-store" + }, + { + "name": "content-security-policy", + "value": "default-src 'none';frame-ancestors 'none';sandbox" + }, + { + "name": "content-type", + "value": "application/json;charset=utf-8" + }, + { + "name": "cross-origin-opener-policy", + "value": "same-origin" + }, + { + "name": "cross-origin-resource-policy", + "value": "same-origin" + }, + { + "name": "etag", + "value": "\"4b025e5d-c082-45f8-a3e9-0ac1db308dff-21339\"" + }, + { + "name": "expires", + "value": "0" + }, + { + "name": "pragma", + "value": "no-cache" + }, + { + "name": "x-content-type-options", + "value": "nosniff" + }, + { + "name": "x-frame-options", + "value": "DENY" + }, + { + "name": "content-length", + "value": "1401" + }, + { + "name": "x-forgerock-transactionid", + "value": "frodo-ad86ed3b-7ede-46dc-89dd-0348e737fe3d" + }, + { + "name": "strict-transport-security", + "value": "max-age=31536000; includeSubDomains; preload;" + }, + { + "name": "x-robots-tag", + "value": "none" + }, + { + "name": "via", + "value": "1.1 google" + }, + { + "name": "alt-svc", + "value": "h3=\":443\"; ma=2592000" + } + ], + "headersSize": 658, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2026-05-19T20:23:28.064Z", + "time": 203, + "timings": { + "blocked": -1, + "connect": -1, + "dns": -1, + "receive": 0, + "send": 0, + "ssl": -1, + "wait": 203 + } + }, + { + "_id": "9cb8561357870863838a9948da32d1e8", + "_order": 1, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "name": "accept", + "value": "application/json, text/plain, */*" + }, + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "user-agent", + "value": "@rockcarver/frodo-lib/4.0.0-39" + }, + { + "name": "x-forgerock-transactionid", + "value": "frodo-ad86ed3b-7ede-46dc-89dd-0348e737fe3d" + }, + { + "name": "authorization", + "value": "Bearer " + }, + { + "name": "accept-encoding", + "value": "gzip, compress, deflate, br" + }, + { + "name": "host", + "value": "openam-frodo-dev.forgeblocks.com" + } + ], + "headersSize": 1938, + "httpVersion": "HTTP/1.1", + "method": "GET", + "queryString": [ + { + "name": "_fields", + "value": "*" + } + ], + "url": "https://openam-trivir-fairfax.forgeblocks.com/openidm/managed/svcacct/10d76629-78da-4265-868b-9a0cb68ebdb4?_fields=%2A" + }, + "response": { + "bodySize": 1401, + "content": { + "mimeType": "application/json;charset=utf-8", + "size": 1401, + "text": "{\"_id\":\"10d76629-78da-4265-868b-9a0cb68ebdb4\",\"_rev\":\"4b025e5d-c082-45f8-a3e9-0ac1db308dff-21339\",\"accountStatus\":\"active\",\"name\":\"Frodo-SA-1777919406717\",\"description\":\"dsevy@trivir.com's Frodo Service Account\",\"scopes\":[\"fr:am:*\",\"fr:idc:analytics:*\",\"fr:autoaccess:*\",\"fr:idc:certificate:*\",\"fr:idc:content-security-policy:*\",\"fr:idc:cookie-domain:*\",\"fr:idc:custom-domain:*\",\"fr:idc:dataset:*\",\"fr:idc:esv:*\",\"fr:idm:*\",\"fr:iga:*\",\"fr:idc:promotion:*\",\"fr:idc:release:*\",\"fr:idc:sso-cookie:*\"],\"jwks\":\"{\\\"keys\\\":[{\\\"kty\\\":\\\"RSA\\\",\\\"kid\\\":\\\"hshlr1hlp8bXdLNDrh3rESiHNsMS68c4XtbZX9i_Seg\\\",\\\"alg\\\":\\\"RS256\\\",\\\"e\\\":\\\"AQAB\\\",\\\"n\\\":\\\"owg6VJta_1o9VqyQk4Xs2kA_BDcyWEN1WMERqaJIFCbtecz_IMBp2G5m76dawbB9QvUsFvMqfJ2OGbaCcfC2o5lkxEu4nxdKLKYZ4-JTGsbPN6j-f9yr0LCjFMPd1BRxKQ98euSu5UZ0_gy9QN-eS4zB5zJsb8E7Y7FXsxG6vgd8dCqCSPjJeSmZhnQEeqJeysGlA5jMzQUP9Lvgm2aZp5wz7DXzF9lvsqRjm49H9wlERjy4KDmjlp5Rr3lz8ZXGgsaIdp18hUrPFKJP5qxkICfnbxdyK858A5puUypj1OAqrOtAnwjk5lMPOYzBWjWV72RPnOY3-6KAHo8uFXK3EH8AN8ErHxhpo-soV0e7-Z7gEnmt0rliY3j_-2AHA0Q5G1k52cGQ-dARGzgAQacpdnQv_pT0k83DGZPrpR6PqBRkyiJBD_PTvySZohxFgjpJfJmkYec7Pg40xri_LN1ozkLRBdQwL2zaQFYtq_VZC20a8Y7NpqpoLcvFIB9W2NS03qTokvId7gdSgdcVmpOo4n7OZZCouD6cyWyJ6Nj9uaxz-mw4Mdzhpd8cclSV_gXeWMBBoW3dZ7zzkEFMWHBT2x9S8JAZor_aaGJ2MXOoNoHRg-q9shNhQ3h7U14MXfL7I9R4ixClZMOpxILa0VT0Vzm-h685xkXwa28WLSw21QU\\\"}]}\",\"maxCachingTime\":\"15\",\"maxIdleTime\":\"15\",\"maxSessionTime\":\"15\",\"quotaLimit\":\"5\"}" + }, + "cookies": [], + "headers": [ + { + "name": "date", + "value": "Tue, 19 May 2026 20:23:28 GMT" + }, + { + "name": "vary", + "value": "Origin" + }, + { + "name": "cache-control", + "value": "no-store" + }, + { + "name": "content-security-policy", + "value": "default-src 'none';frame-ancestors 'none';sandbox" + }, + { + "name": "content-type", + "value": "application/json;charset=utf-8" + }, + { + "name": "cross-origin-opener-policy", + "value": "same-origin" + }, + { + "name": "cross-origin-resource-policy", + "value": "same-origin" + }, + { + "name": "etag", + "value": "\"4b025e5d-c082-45f8-a3e9-0ac1db308dff-21339\"" + }, + { + "name": "expires", + "value": "0" + }, + { + "name": "pragma", + "value": "no-cache" + }, + { + "name": "x-content-type-options", + "value": "nosniff" + }, + { + "name": "x-frame-options", + "value": "DENY" + }, + { + "name": "content-length", + "value": "1401" + }, + { + "name": "x-forgerock-transactionid", + "value": "frodo-ad86ed3b-7ede-46dc-89dd-0348e737fe3d" + }, + { + "name": "strict-transport-security", + "value": "max-age=31536000; includeSubDomains; preload;" + }, + { + "name": "x-robots-tag", + "value": "none" + }, + { + "name": "via", + "value": "1.1 google" + }, + { + "name": "alt-svc", + "value": "h3=\":443\"; ma=2592000" + } + ], + "headersSize": 658, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2026-05-19T20:23:28.264Z", + "time": 99, + "timings": { + "blocked": -1, + "connect": -1, + "dns": -1, + "receive": 0, + "send": 0, + "ssl": -1, + "wait": 99 + } + } + ], + "pages": [], + "version": "1.2" + } +} diff --git a/test/e2e/mocks/iga_2664973160/scope-import_883436943/0_f_2727575938/am_1076162899/recording.har b/test/e2e/mocks/iga_2664973160/scope-import_883436943/0_f_2727575938/am_1076162899/recording.har new file mode 100644 index 000000000..f55ec1e7e --- /dev/null +++ b/test/e2e/mocks/iga_2664973160/scope-import_883436943/0_f_2727575938/am_1076162899/recording.har @@ -0,0 +1,312 @@ +{ + "log": { + "_recordingName": "iga/scope-import/0_f/am", + "creator": { + "comment": "persister:fs", + "name": "Polly.JS", + "version": "6.0.6" + }, + "entries": [ + { + "_id": "ccd7a5defd0fdeaa986a2b54642d911a", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "name": "accept", + "value": "application/json, text/plain, */*" + }, + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "user-agent", + "value": "@rockcarver/frodo-lib/4.0.0-39" + }, + { + "name": "x-forgerock-transactionid", + "value": "frodo-11af02bc-8bcd-44ee-91d8-b994b9f61a90" + }, + { + "name": "accept-api-version", + "value": "resource=1.1" + }, + { + "name": "accept-encoding", + "value": "gzip, compress, deflate, br" + }, + { + "name": "host", + "value": "openam-frodo-dev.forgeblocks.com" + } + ], + "headersSize": 398, + "httpVersion": "HTTP/1.1", + "method": "GET", + "queryString": [], + "url": "https://openam-trivir-fairfax.forgeblocks.com/am/json/serverinfo/*" + }, + "response": { + "bodySize": 614, + "content": { + "mimeType": "application/json;charset=UTF-8", + "size": 614, + "text": "{\"_id\":\"*\",\"_rev\":\"959929574\",\"domains\":[],\"protectedUserAttributes\":[\"telephoneNumber\",\"mail\"],\"cookieName\":\"311468432e97f1f\",\"secureCookie\":true,\"forgotPassword\":\"false\",\"forgotUsername\":\"false\",\"kbaEnabled\":\"false\",\"selfRegistration\":\"false\",\"lang\":\"en-US\",\"successfulUserRegistrationDestination\":\"default\",\"socialImplementations\":[],\"referralsEnabled\":\"false\",\"zeroPageLogin\":{\"enabled\":false,\"refererWhitelist\":[],\"allowedWithoutReferer\":true},\"realm\":\"/\",\"xuiUserSessionValidationEnabled\":true,\"fileBasedConfiguration\":true,\"userIdAttributes\":[],\"cloudOnlyFeaturesEnabled\":true,\"oauth2AIAgentsEnabled\":false}" + }, + "cookies": [], + "headers": [ + { + "name": "x-frame-options", + "value": "SAMEORIGIN" + }, + { + "name": "content-security-policy-report-only", + "value": "frame-ancestors 'self'; script-src 'self' 'unsafe-eval' 'unsafe-inline'" + }, + { + "name": "x-content-type-options", + "value": "nosniff" + }, + { + "name": "cache-control", + "value": "no-store" + }, + { + "name": "content-api-version", + "value": "resource=1.1" + }, + { + "name": "content-security-policy", + "value": "default-src 'none';frame-ancestors 'none';sandbox" + }, + { + "name": "cross-origin-opener-policy", + "value": "same-origin" + }, + { + "name": "cross-origin-resource-policy", + "value": "same-origin" + }, + { + "name": "etag", + "value": "\"959929574\"" + }, + { + "name": "expires", + "value": "0" + }, + { + "name": "pragma", + "value": "no-cache" + }, + { + "name": "content-type", + "value": "application/json;charset=UTF-8" + }, + { + "name": "content-length", + "value": "614" + }, + { + "name": "date", + "value": "Tue, 19 May 2026 20:20:08 GMT" + }, + { + "name": "x-forgerock-transactionid", + "value": "frodo-11af02bc-8bcd-44ee-91d8-b994b9f61a90" + }, + { + "name": "strict-transport-security", + "value": "max-age=31536000; includeSubDomains; preload;" + }, + { + "name": "x-robots-tag", + "value": "none" + }, + { + "name": "via", + "value": "1.1 google" + }, + { + "name": "alt-svc", + "value": "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" + } + ], + "headersSize": 786, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2026-05-19T20:20:08.720Z", + "time": 170, + "timings": { + "blocked": -1, + "connect": -1, + "dns": -1, + "receive": 0, + "send": 0, + "ssl": -1, + "wait": 170 + } + }, + { + "_id": "6125d0328ad0dcaee55f73fd8b22ca14", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "name": "accept", + "value": "application/json, text/plain, */*" + }, + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "user-agent", + "value": "@rockcarver/frodo-lib/4.0.0-39" + }, + { + "name": "x-forgerock-transactionid", + "value": "frodo-11af02bc-8bcd-44ee-91d8-b994b9f61a90" + }, + { + "name": "accept-api-version", + "value": "resource=1.0" + }, + { + "name": "authorization", + "value": "Bearer " + }, + { + "name": "accept-encoding", + "value": "gzip, compress, deflate, br" + }, + { + "name": "host", + "value": "openam-frodo-dev.forgeblocks.com" + } + ], + "headersSize": 1926, + "httpVersion": "HTTP/1.1", + "method": "GET", + "queryString": [], + "url": "https://openam-trivir-fairfax.forgeblocks.com/am/json/serverinfo/version" + }, + "response": { + "bodySize": 274, + "content": { + "mimeType": "application/json;charset=UTF-8", + "size": 274, + "text": "{\"_id\":\"version\",\"_rev\":\"194838800\",\"version\":\"9.0.0-SNAPSHOT\",\"fullVersion\":\"ForgeRock Access Management 9.0.0-SNAPSHOT Build 500b736d5354dc1171d65a84ec4230d63a5a084e (2026-April-21 11:20)\",\"revision\":\"500b736d5354dc1171d65a84ec4230d63a5a084e\",\"date\":\"2026-April-21 11:20\"}" + }, + "cookies": [], + "headers": [ + { + "name": "x-frame-options", + "value": "SAMEORIGIN" + }, + { + "name": "content-security-policy-report-only", + "value": "frame-ancestors 'self'; script-src 'self' 'unsafe-eval' 'unsafe-inline'" + }, + { + "name": "x-content-type-options", + "value": "nosniff" + }, + { + "name": "cache-control", + "value": "no-store" + }, + { + "name": "content-api-version", + "value": "resource=1.0" + }, + { + "name": "content-security-policy", + "value": "default-src 'none';frame-ancestors 'none';sandbox" + }, + { + "name": "cross-origin-opener-policy", + "value": "same-origin" + }, + { + "name": "cross-origin-resource-policy", + "value": "same-origin" + }, + { + "name": "etag", + "value": "\"194838800\"" + }, + { + "name": "expires", + "value": "0" + }, + { + "name": "pragma", + "value": "no-cache" + }, + { + "name": "content-type", + "value": "application/json;charset=UTF-8" + }, + { + "name": "content-length", + "value": "274" + }, + { + "name": "date", + "value": "Tue, 19 May 2026 20:20:09 GMT" + }, + { + "name": "x-forgerock-transactionid", + "value": "frodo-11af02bc-8bcd-44ee-91d8-b994b9f61a90" + }, + { + "name": "strict-transport-security", + "value": "max-age=31536000; includeSubDomains; preload;" + }, + { + "name": "x-robots-tag", + "value": "none" + }, + { + "name": "via", + "value": "1.1 google" + }, + { + "name": "alt-svc", + "value": "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" + } + ], + "headersSize": 786, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2026-05-19T20:20:09.093Z", + "time": 122, + "timings": { + "blocked": -1, + "connect": -1, + "dns": -1, + "receive": 0, + "send": 0, + "ssl": -1, + "wait": 122 + } + } + ], + "pages": [], + "version": "1.2" + } +} diff --git a/test/e2e/mocks/iga_2664973160/scope-import_883436943/0_f_2727575938/environment_1072573434/recording.har b/test/e2e/mocks/iga_2664973160/scope-import_883436943/0_f_2727575938/environment_1072573434/recording.har new file mode 100644 index 000000000..860076f59 --- /dev/null +++ b/test/e2e/mocks/iga_2664973160/scope-import_883436943/0_f_2727575938/environment_1072573434/recording.har @@ -0,0 +1,125 @@ +{ + "log": { + "_recordingName": "iga/scope-import/0_f/environment", + "creator": { + "comment": "persister:fs", + "name": "Polly.JS", + "version": "6.0.6" + }, + "entries": [ + { + "_id": "ccc7ec61c2094114d7917814bb19b83b", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "name": "accept", + "value": "application/json, text/plain, */*" + }, + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "user-agent", + "value": "@rockcarver/frodo-lib/4.0.0-39" + }, + { + "name": "accept-api-version", + "value": "protocol=1.0,resource=1.0" + }, + { + "name": "authorization", + "value": "Bearer " + }, + { + "name": "accept-encoding", + "value": "gzip, compress, deflate, br" + }, + { + "name": "host", + "value": "openam-frodo-dev.forgeblocks.com" + } + ], + "headersSize": 1877, + "httpVersion": "HTTP/1.1", + "method": "GET", + "queryString": [], + "url": "https://openam-trivir-fairfax.forgeblocks.com/environment/scopes/service-accounts" + }, + "response": { + "bodySize": 1975, + "content": { + "mimeType": "application/json; charset=utf-8", + "size": 1975, + "text": "[{\"scope\":\"fr:am:*\",\"description\":\"All Access Management APIs\"},{\"scope\":\"fr:autoaccess:*\",\"description\":\"All Auto Access APIs\"},{\"scope\":\"fr:idc:analytics:*\",\"description\":\"All Analytics APIs\"},{\"scope\":\"fr:idc:certificate:*\",\"description\":\"All TLS certificate APIs\",\"childScopes\":[{\"scope\":\"fr:idc:certificate:read\",\"description\":\"Read TLS certificates\"}]},{\"scope\":\"fr:idc:content-security-policy:*\",\"description\":\"All content security policy APIs\",\"childScopes\":[{\"scope\":\"fr:idc:content-security-policy:read\",\"description\":\"Read content security policy\"}]},{\"scope\":\"fr:idc:cookie-domain:*\",\"description\":\"All cookie domain APIs\",\"childScopes\":[{\"scope\":\"fr:idc:cookie-domain:read\",\"description\":\"Read cookie domains\"}]},{\"scope\":\"fr:idc:custom-domain:*\",\"description\":\"All custom domain APIs\",\"childScopes\":[{\"scope\":\"fr:idc:custom-domain:read\",\"description\":\"Read custom domains\"}]},{\"scope\":\"fr:idc:dataset:*\",\"description\":\"All dataset deletion APIs\",\"childScopes\":[{\"scope\":\"fr:idc:dataset:read\",\"description\":\"Read dataset deletions\"}]},{\"scope\":\"fr:idc:esv:*\",\"description\":\"All ESV APIs\",\"childScopes\":[{\"scope\":\"fr:idc:esv:read\",\"description\":\"Read ESVs, excluding values of secrets\"},{\"scope\":\"fr:idc:esv:update\",\"description\":\"Create, modify, and delete ESVs\"},{\"scope\":\"fr:idc:esv:restart\",\"description\":\"Restart workloads that consume ESVs\"}]},{\"scope\":\"fr:idc:promotion:*\",\"description\":\"All configuration promotion APIs\",\"childScopes\":[{\"scope\":\"fr:idc:promotion:read\",\"description\":\"Read configuration promotion\"}]},{\"scope\":\"fr:idc:release:*\",\"description\":\"All product release APIs\",\"childScopes\":[{\"scope\":\"fr:idc:release:read\",\"description\":\"Read product release\"}]},{\"scope\":\"fr:idc:sso-cookie:*\",\"description\":\"All SSO cookie APIs\",\"childScopes\":[{\"scope\":\"fr:idc:sso-cookie:read\",\"description\":\"Read SSO cookie\"}]},{\"scope\":\"fr:idm:*\",\"description\":\"All Identity Management APIs\"},{\"scope\":\"fr:iga:*\",\"description\":\"All Identity Governance APIs\"}]" + }, + "cookies": [], + "headers": [ + { + "name": "x-frame-options", + "value": "SAMEORIGIN" + }, + { + "name": "content-type", + "value": "application/json; charset=utf-8" + }, + { + "name": "content-length", + "value": "1975" + }, + { + "name": "etag", + "value": "W/\"7b7-tIBWy/EinSCKaoNz4aU2iqiTmFc\"" + }, + { + "name": "date", + "value": "Tue, 19 May 2026 20:20:09 GMT" + }, + { + "name": "x-forgerock-transactionid", + "value": "ecbef627-127d-4384-8610-f1e7acaa2fd6" + }, + { + "name": "strict-transport-security", + "value": "max-age=31536000; includeSubDomains; preload;" + }, + { + "name": "x-robots-tag", + "value": "none" + }, + { + "name": "via", + "value": "1.1 google" + }, + { + "name": "alt-svc", + "value": "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" + } + ], + "headersSize": 413, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2026-05-19T20:20:09.218Z", + "time": 111, + "timings": { + "blocked": -1, + "connect": -1, + "dns": -1, + "receive": 0, + "send": 0, + "ssl": -1, + "wait": 111 + } + } + ], + "pages": [], + "version": "1.2" + } +} diff --git a/test/e2e/mocks/iga_2664973160/scope-import_883436943/0_f_2727575938/iga_2664973160/recording.har b/test/e2e/mocks/iga_2664973160/scope-import_883436943/0_f_2727575938/iga_2664973160/recording.har new file mode 100644 index 000000000..75dd5007d --- /dev/null +++ b/test/e2e/mocks/iga_2664973160/scope-import_883436943/0_f_2727575938/iga_2664973160/recording.har @@ -0,0 +1,271 @@ +{ + "log": { + "_recordingName": "iga/scope-import/0_f/iga", + "creator": { + "comment": "persister:fs", + "name": "Polly.JS", + "version": "6.0.6" + }, + "entries": [ + { + "_id": "af55958a3898b129bc68978def6db818", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "name": "accept", + "value": "application/json, text/plain, */*" + }, + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "user-agent", + "value": "@rockcarver/frodo-lib/4.0.0-39" + }, + { + "name": "authorization", + "value": "Bearer " + }, + { + "name": "accept-encoding", + "value": "gzip, compress, deflate, br" + }, + { + "name": "host", + "value": "openam-frodo-dev.forgeblocks.com" + } + ], + "headersSize": 1871, + "httpVersion": "HTTP/1.1", + "method": "GET", + "queryString": [ + { + "name": "_queryFilter", + "value": "true" + }, + { + "name": "_pageSize", + "value": "10000" + }, + { + "name": "_pagedResultsOffset", + "value": "0" + } + ], + "url": "https://openam-trivir-fairfax.forgeblocks.com/iga/governance/scope?_queryFilter=true&_pageSize=10000&_pagedResultsOffset=0" + }, + "response": { + "bodySize": 504, + "content": { + "mimeType": "application/json; charset=utf-8", + "size": 504, + "text": "{\"result\":[{\"description\":\"test scope for contains filter\",\"id\":\"c39062f0-ac60-4f72-ad8a-ef87bb8889b1\",\"name\":\"contains-test\",\"sourceCondition\":{\"user\":{\"filter\":{\"or\":[{\"contains\":{\"in_string\":\"user._id\",\"search_string\":{\"literal\":\"\"}}}]},\"version\":\"v2\"}},\"status\":\"active\",\"targetCondition\":{},\"_rev\":1,\"metadata\":{\"modifiedDate\":\"2026-05-19T19:46:27.215477817Z\",\"createdDate\":\"2026-05-19T19:46:27.215476403Z\"}}],\"searchAfterKey\":[\"c39062f0-ac60-4f72-ad8a-ef87bb8889b1\"],\"totalCount\":1,\"resultCount\":1}" + }, + "cookies": [], + "headers": [ + { + "name": "x-powered-by", + "value": "Express" + }, + { + "name": "cache-control", + "value": "no-store" + }, + { + "name": "content-type", + "value": "application/json; charset=utf-8" + }, + { + "name": "content-length", + "value": "504" + }, + { + "name": "etag", + "value": "W/\"1f8-74sUYXkKw9ZARlInQMQueraAagI\"" + }, + { + "name": "vary", + "value": "Accept-Encoding" + }, + { + "name": "date", + "value": "Tue, 19 May 2026 20:20:09 GMT" + }, + { + "name": "x-forgerock-transactionid", + "value": "ad786f93-965b-480a-9029-cbc47d75c1da" + }, + { + "name": "strict-transport-security", + "value": "max-age=31536000; includeSubDomains; preload;" + }, + { + "name": "x-robots-tag", + "value": "none" + }, + { + "name": "via", + "value": "1.1 google" + }, + { + "name": "alt-svc", + "value": "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" + } + ], + "headersSize": 454, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2026-05-19T20:20:09.442Z", + "time": 207, + "timings": { + "blocked": -1, + "connect": -1, + "dns": -1, + "receive": 0, + "send": 0, + "ssl": -1, + "wait": 207 + } + }, + { + "_id": "9a9b1e6f05605cbfbe49bb2a04c35d4a", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 970, + "cookies": [], + "headers": [ + { + "name": "accept", + "value": "application/json, text/plain, */*" + }, + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "user-agent", + "value": "@rockcarver/frodo-lib/4.0.0-39" + }, + { + "name": "authorization", + "value": "Bearer " + }, + { + "name": "content-length", + "value": "970" + }, + { + "name": "accept-encoding", + "value": "gzip, compress, deflate, br" + }, + { + "name": "host", + "value": "openam-frodo-dev.forgeblocks.com" + } + ], + "headersSize": 1852, + "httpVersion": "HTTP/1.1", + "method": "POST", + "postData": { + "mimeType": "application/json", + "params": [], + "text": "{\"description\":\"\",\"id\":\"34153ec1-adde-472b-a1b3-65f9b0119df6\",\"metadata\":{},\"name\":\"equals-test\",\"permissions\":{\"createEntitlement\":true,\"createRole\":true,\"createUser\":true,\"deleteRole\":true,\"deleteUser\":true,\"modifyEntitlement\":true,\"modifyRole\":true,\"modifyUser\":true,\"publishRole\":true,\"viewGrants\":true,\"viewUserAccess\":true},\"sourceCondition\":{\"user\":{\"filter\":{\"or\":[{\"equals\":{\"left\":\"user.city\",\"right\":{\"literal\":\"Utah\"}}}]},\"version\":\"v2\"}},\"status\":\"active\",\"targetCondition\":{\"application\":{\"filter\":{\"or\":[{\"equals\":{\"left\":\"catalog.application.name\",\"right\":{\"literal\":\"temp\"}}}]},\"version\":\"v2\"},\"entitlement\":{\"filter\":{\"and\":[{\"equals\":{\"left\":\"catalog.entitlement.descriptor.displayName\",\"right\":{\"literal\":\"temp\"}}}]},\"version\":\"v2\"},\"role\":{\"filter\":{\"or\":[{\"equals\":{\"left\":\"catalog.role.description\",\"right\":{\"literal\":\"temp\"}}}]},\"version\":\"v2\"},\"user\":{\"filter\":{\"or\":[{\"equals\":{\"left\":\"user._id\",\"right\":{\"literal\":\"temp\"}}}]},\"version\":\"v2\"}}}" + }, + "queryString": [ + { + "name": "_action", + "value": "create" + } + ], + "url": "https://openam-trivir-fairfax.forgeblocks.com/iga/governance/scope?_action=create" + }, + "response": { + "bodySize": 979, + "content": { + "mimeType": "application/json; charset=utf-8", + "size": 979, + "text": "{\"description\":\"\",\"id\":\"5b7f96f0-7b6d-4c0f-8703-b6a0030e0c81\",\"metadata\":{},\"name\":\"equals-test\",\"permissions\":{\"createEntitlement\":true,\"modifyEntitlement\":true,\"viewGrants\":true,\"createUser\":true,\"modifyUser\":true,\"deleteUser\":true,\"viewUserAccess\":true,\"createRole\":true,\"modifyRole\":true,\"publishRole\":true,\"deleteRole\":true},\"sourceCondition\":{\"user\":{\"filter\":{\"or\":[{\"equals\":{\"left\":\"user.city\",\"right\":{\"literal\":\"Utah\"}}}]},\"version\":\"v2\"}},\"status\":\"active\",\"targetCondition\":{\"application\":{\"filter\":{\"or\":[{\"equals\":{\"left\":\"catalog.application.name\",\"right\":{\"literal\":\"temp\"}}}]},\"version\":\"v2\"},\"entitlement\":{\"filter\":{\"and\":[{\"equals\":{\"left\":\"catalog.entitlement.descriptor.displayName\",\"right\":{\"literal\":\"temp\"}}}]},\"version\":\"v2\"},\"role\":{\"filter\":{\"or\":[{\"equals\":{\"left\":\"catalog.role.description\",\"right\":{\"literal\":\"temp\"}}}]},\"version\":\"v2\"},\"user\":{\"filter\":{\"or\":[{\"equals\":{\"left\":\"user._id\",\"right\":{\"literal\":\"temp\"}}}]},\"version\":\"v2\"}},\"_rev\":1}" + }, + "cookies": [], + "headers": [ + { + "name": "x-powered-by", + "value": "Express" + }, + { + "name": "cache-control", + "value": "no-store" + }, + { + "name": "content-type", + "value": "application/json; charset=utf-8" + }, + { + "name": "content-length", + "value": "979" + }, + { + "name": "etag", + "value": "W/\"3d3-/0gA8v7Uu35EtH4lQkWT2C0JI2A\"" + }, + { + "name": "vary", + "value": "Accept-Encoding" + }, + { + "name": "date", + "value": "Tue, 19 May 2026 20:20:12 GMT" + }, + { + "name": "x-forgerock-transactionid", + "value": "79ab4198-d8d3-4291-91d0-4b14b546d5e4" + }, + { + "name": "strict-transport-security", + "value": "max-age=31536000; includeSubDomains; preload;" + }, + { + "name": "x-robots-tag", + "value": "none" + }, + { + "name": "via", + "value": "1.1 google" + }, + { + "name": "alt-svc", + "value": "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" + } + ], + "headersSize": 454, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2026-05-19T20:20:09.655Z", + "time": 2498, + "timings": { + "blocked": -1, + "connect": -1, + "dns": -1, + "receive": 0, + "send": 0, + "ssl": -1, + "wait": 2498 + } + } + ], + "pages": [], + "version": "1.2" + } +} diff --git a/test/e2e/mocks/iga_2664973160/scope-import_883436943/0_f_2727575938/oauth2_393036114/recording.har b/test/e2e/mocks/iga_2664973160/scope-import_883436943/0_f_2727575938/oauth2_393036114/recording.har new file mode 100644 index 000000000..a109228b4 --- /dev/null +++ b/test/e2e/mocks/iga_2664973160/scope-import_883436943/0_f_2727575938/oauth2_393036114/recording.har @@ -0,0 +1,146 @@ +{ + "log": { + "_recordingName": "iga/scope-import/0_f/oauth2", + "creator": { + "comment": "persister:fs", + "name": "Polly.JS", + "version": "6.0.6" + }, + "entries": [ + { + "_id": "ff75519a93ccab829f8ee8cf5e92b49f", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 1328, + "cookies": [], + "headers": [ + { + "name": "accept", + "value": "application/json, text/plain, */*" + }, + { + "name": "content-type", + "value": "application/x-www-form-urlencoded" + }, + { + "name": "user-agent", + "value": "@rockcarver/frodo-lib/4.0.0-39" + }, + { + "name": "x-forgerock-transactionid", + "value": "frodo-11af02bc-8bcd-44ee-91d8-b994b9f61a90" + }, + { + "name": "accept-api-version", + "value": "protocol=2.1,resource=1.0" + }, + { + "name": "content-length", + "value": "1328" + }, + { + "name": "accept-encoding", + "value": "gzip, compress, deflate, br" + }, + { + "name": "host", + "value": "openam-frodo-dev.forgeblocks.com" + } + ], + "headersSize": 453, + "httpVersion": "HTTP/1.1", + "method": "POST", + "postData": { + "mimeType": "application/x-www-form-urlencoded", + "params": [], + "text": "assertion=&client_id=service-account&grant_type=urn:ietf:params:oauth:grant-type:jwt-bearer&scope=fr:idc:custom-domain:* fr:idc:release:* fr:idc:sso-cookie:* fr:am:* fr:idc:esv:* fr:idc:content-security-policy:* fr:iga:* fr:idc:certificate:* fr:idm:* fr:idc:analytics:* fr:idc:cookie-domain:* fr:idc:promotion:*" + }, + "queryString": [], + "url": "https://openam-trivir-fairfax.forgeblocks.com/am/oauth2/access_token" + }, + "response": { + "bodySize": 1780, + "content": { + "mimeType": "application/json;charset=UTF-8", + "size": 1780, + "text": "{\"access_token\":\"\",\"scope\":\"fr:idc:custom-domain:* fr:idc:release:* fr:idc:sso-cookie:* fr:am:* fr:idc:esv:* fr:idc:content-security-policy:* fr:iga:* fr:idc:certificate:* fr:idm:* fr:idc:analytics:* fr:idc:cookie-domain:* fr:idc:promotion:*\",\"token_type\":\"Bearer\",\"expires_in\":898}" + }, + "cookies": [], + "headers": [ + { + "name": "x-frame-options", + "value": "SAMEORIGIN" + }, + { + "name": "content-security-policy-report-only", + "value": "frame-ancestors 'self'; script-src 'self' 'unsafe-eval' 'unsafe-inline'" + }, + { + "name": "x-content-type-options", + "value": "nosniff" + }, + { + "name": "cache-control", + "value": "no-store" + }, + { + "name": "pragma", + "value": "no-cache" + }, + { + "name": "content-type", + "value": "application/json;charset=UTF-8" + }, + { + "name": "content-length", + "value": "1780" + }, + { + "name": "date", + "value": "Tue, 19 May 2026 20:20:09 GMT" + }, + { + "name": "x-forgerock-transactionid", + "value": "frodo-11af02bc-8bcd-44ee-91d8-b994b9f61a90" + }, + { + "name": "strict-transport-security", + "value": "max-age=31536000; includeSubDomains; preload;" + }, + { + "name": "x-robots-tag", + "value": "none" + }, + { + "name": "via", + "value": "1.1 google" + }, + { + "name": "alt-svc", + "value": "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" + } + ], + "headersSize": 561, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2026-05-19T20:20:08.907Z", + "time": 180, + "timings": { + "blocked": -1, + "connect": -1, + "dns": -1, + "receive": 0, + "send": 0, + "ssl": -1, + "wait": 180 + } + } + ], + "pages": [], + "version": "1.2" + } +} diff --git a/test/e2e/mocks/iga_2664973160/scope-import_883436943/0_f_2727575938/openidm_3290118515/recording.har b/test/e2e/mocks/iga_2664973160/scope-import_883436943/0_f_2727575938/openidm_3290118515/recording.har new file mode 100644 index 000000000..21b19336a --- /dev/null +++ b/test/e2e/mocks/iga_2664973160/scope-import_883436943/0_f_2727575938/openidm_3290118515/recording.har @@ -0,0 +1,310 @@ +{ + "log": { + "_recordingName": "iga/scope-import/0_f/openidm", + "creator": { + "comment": "persister:fs", + "name": "Polly.JS", + "version": "6.0.6" + }, + "entries": [ + { + "_id": "9cb8561357870863838a9948da32d1e8", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "name": "accept", + "value": "application/json, text/plain, */*" + }, + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "user-agent", + "value": "@rockcarver/frodo-lib/4.0.0-39" + }, + { + "name": "x-forgerock-transactionid", + "value": "frodo-11af02bc-8bcd-44ee-91d8-b994b9f61a90" + }, + { + "name": "authorization", + "value": "Bearer " + }, + { + "name": "accept-encoding", + "value": "gzip, compress, deflate, br" + }, + { + "name": "host", + "value": "openam-frodo-dev.forgeblocks.com" + } + ], + "headersSize": 1938, + "httpVersion": "HTTP/1.1", + "method": "GET", + "queryString": [ + { + "name": "_fields", + "value": "*" + } + ], + "url": "https://openam-trivir-fairfax.forgeblocks.com/openidm/managed/svcacct/10d76629-78da-4265-868b-9a0cb68ebdb4?_fields=%2A" + }, + "response": { + "bodySize": 1401, + "content": { + "mimeType": "application/json;charset=utf-8", + "size": 1401, + "text": "{\"_id\":\"10d76629-78da-4265-868b-9a0cb68ebdb4\",\"_rev\":\"4b025e5d-c082-45f8-a3e9-0ac1db308dff-21339\",\"accountStatus\":\"active\",\"name\":\"Frodo-SA-1777919406717\",\"description\":\"dsevy@trivir.com's Frodo Service Account\",\"scopes\":[\"fr:am:*\",\"fr:idc:analytics:*\",\"fr:autoaccess:*\",\"fr:idc:certificate:*\",\"fr:idc:content-security-policy:*\",\"fr:idc:cookie-domain:*\",\"fr:idc:custom-domain:*\",\"fr:idc:dataset:*\",\"fr:idc:esv:*\",\"fr:idm:*\",\"fr:iga:*\",\"fr:idc:promotion:*\",\"fr:idc:release:*\",\"fr:idc:sso-cookie:*\"],\"jwks\":\"{\\\"keys\\\":[{\\\"kty\\\":\\\"RSA\\\",\\\"kid\\\":\\\"hshlr1hlp8bXdLNDrh3rESiHNsMS68c4XtbZX9i_Seg\\\",\\\"alg\\\":\\\"RS256\\\",\\\"e\\\":\\\"AQAB\\\",\\\"n\\\":\\\"owg6VJta_1o9VqyQk4Xs2kA_BDcyWEN1WMERqaJIFCbtecz_IMBp2G5m76dawbB9QvUsFvMqfJ2OGbaCcfC2o5lkxEu4nxdKLKYZ4-JTGsbPN6j-f9yr0LCjFMPd1BRxKQ98euSu5UZ0_gy9QN-eS4zB5zJsb8E7Y7FXsxG6vgd8dCqCSPjJeSmZhnQEeqJeysGlA5jMzQUP9Lvgm2aZp5wz7DXzF9lvsqRjm49H9wlERjy4KDmjlp5Rr3lz8ZXGgsaIdp18hUrPFKJP5qxkICfnbxdyK858A5puUypj1OAqrOtAnwjk5lMPOYzBWjWV72RPnOY3-6KAHo8uFXK3EH8AN8ErHxhpo-soV0e7-Z7gEnmt0rliY3j_-2AHA0Q5G1k52cGQ-dARGzgAQacpdnQv_pT0k83DGZPrpR6PqBRkyiJBD_PTvySZohxFgjpJfJmkYec7Pg40xri_LN1ozkLRBdQwL2zaQFYtq_VZC20a8Y7NpqpoLcvFIB9W2NS03qTokvId7gdSgdcVmpOo4n7OZZCouD6cyWyJ6Nj9uaxz-mw4Mdzhpd8cclSV_gXeWMBBoW3dZ7zzkEFMWHBT2x9S8JAZor_aaGJ2MXOoNoHRg-q9shNhQ3h7U14MXfL7I9R4ixClZMOpxILa0VT0Vzm-h685xkXwa28WLSw21QU\\\"}]}\",\"maxCachingTime\":\"15\",\"maxIdleTime\":\"15\",\"maxSessionTime\":\"15\",\"quotaLimit\":\"5\"}" + }, + "cookies": [], + "headers": [ + { + "name": "date", + "value": "Tue, 19 May 2026 20:20:09 GMT" + }, + { + "name": "vary", + "value": "Origin" + }, + { + "name": "cache-control", + "value": "no-store" + }, + { + "name": "content-security-policy", + "value": "default-src 'none';frame-ancestors 'none';sandbox" + }, + { + "name": "content-type", + "value": "application/json;charset=utf-8" + }, + { + "name": "cross-origin-opener-policy", + "value": "same-origin" + }, + { + "name": "cross-origin-resource-policy", + "value": "same-origin" + }, + { + "name": "etag", + "value": "\"4b025e5d-c082-45f8-a3e9-0ac1db308dff-21339\"" + }, + { + "name": "expires", + "value": "0" + }, + { + "name": "pragma", + "value": "no-cache" + }, + { + "name": "x-content-type-options", + "value": "nosniff" + }, + { + "name": "x-frame-options", + "value": "DENY" + }, + { + "name": "content-length", + "value": "1401" + }, + { + "name": "x-forgerock-transactionid", + "value": "frodo-11af02bc-8bcd-44ee-91d8-b994b9f61a90" + }, + { + "name": "strict-transport-security", + "value": "max-age=31536000; includeSubDomains; preload;" + }, + { + "name": "x-robots-tag", + "value": "none" + }, + { + "name": "via", + "value": "1.1 google" + }, + { + "name": "alt-svc", + "value": "h3=\":443\"; ma=2592000" + } + ], + "headersSize": 658, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2026-05-19T20:20:09.129Z", + "time": 199, + "timings": { + "blocked": -1, + "connect": -1, + "dns": -1, + "receive": 0, + "send": 0, + "ssl": -1, + "wait": 199 + } + }, + { + "_id": "9cb8561357870863838a9948da32d1e8", + "_order": 1, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "name": "accept", + "value": "application/json, text/plain, */*" + }, + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "user-agent", + "value": "@rockcarver/frodo-lib/4.0.0-39" + }, + { + "name": "x-forgerock-transactionid", + "value": "frodo-11af02bc-8bcd-44ee-91d8-b994b9f61a90" + }, + { + "name": "authorization", + "value": "Bearer " + }, + { + "name": "accept-encoding", + "value": "gzip, compress, deflate, br" + }, + { + "name": "host", + "value": "openam-frodo-dev.forgeblocks.com" + } + ], + "headersSize": 1938, + "httpVersion": "HTTP/1.1", + "method": "GET", + "queryString": [ + { + "name": "_fields", + "value": "*" + } + ], + "url": "https://openam-trivir-fairfax.forgeblocks.com/openidm/managed/svcacct/10d76629-78da-4265-868b-9a0cb68ebdb4?_fields=%2A" + }, + "response": { + "bodySize": 1401, + "content": { + "mimeType": "application/json;charset=utf-8", + "size": 1401, + "text": "{\"_id\":\"10d76629-78da-4265-868b-9a0cb68ebdb4\",\"_rev\":\"4b025e5d-c082-45f8-a3e9-0ac1db308dff-21339\",\"accountStatus\":\"active\",\"name\":\"Frodo-SA-1777919406717\",\"description\":\"dsevy@trivir.com's Frodo Service Account\",\"scopes\":[\"fr:am:*\",\"fr:idc:analytics:*\",\"fr:autoaccess:*\",\"fr:idc:certificate:*\",\"fr:idc:content-security-policy:*\",\"fr:idc:cookie-domain:*\",\"fr:idc:custom-domain:*\",\"fr:idc:dataset:*\",\"fr:idc:esv:*\",\"fr:idm:*\",\"fr:iga:*\",\"fr:idc:promotion:*\",\"fr:idc:release:*\",\"fr:idc:sso-cookie:*\"],\"jwks\":\"{\\\"keys\\\":[{\\\"kty\\\":\\\"RSA\\\",\\\"kid\\\":\\\"hshlr1hlp8bXdLNDrh3rESiHNsMS68c4XtbZX9i_Seg\\\",\\\"alg\\\":\\\"RS256\\\",\\\"e\\\":\\\"AQAB\\\",\\\"n\\\":\\\"owg6VJta_1o9VqyQk4Xs2kA_BDcyWEN1WMERqaJIFCbtecz_IMBp2G5m76dawbB9QvUsFvMqfJ2OGbaCcfC2o5lkxEu4nxdKLKYZ4-JTGsbPN6j-f9yr0LCjFMPd1BRxKQ98euSu5UZ0_gy9QN-eS4zB5zJsb8E7Y7FXsxG6vgd8dCqCSPjJeSmZhnQEeqJeysGlA5jMzQUP9Lvgm2aZp5wz7DXzF9lvsqRjm49H9wlERjy4KDmjlp5Rr3lz8ZXGgsaIdp18hUrPFKJP5qxkICfnbxdyK858A5puUypj1OAqrOtAnwjk5lMPOYzBWjWV72RPnOY3-6KAHo8uFXK3EH8AN8ErHxhpo-soV0e7-Z7gEnmt0rliY3j_-2AHA0Q5G1k52cGQ-dARGzgAQacpdnQv_pT0k83DGZPrpR6PqBRkyiJBD_PTvySZohxFgjpJfJmkYec7Pg40xri_LN1ozkLRBdQwL2zaQFYtq_VZC20a8Y7NpqpoLcvFIB9W2NS03qTokvId7gdSgdcVmpOo4n7OZZCouD6cyWyJ6Nj9uaxz-mw4Mdzhpd8cclSV_gXeWMBBoW3dZ7zzkEFMWHBT2x9S8JAZor_aaGJ2MXOoNoHRg-q9shNhQ3h7U14MXfL7I9R4ixClZMOpxILa0VT0Vzm-h685xkXwa28WLSw21QU\\\"}]}\",\"maxCachingTime\":\"15\",\"maxIdleTime\":\"15\",\"maxSessionTime\":\"15\",\"quotaLimit\":\"5\"}" + }, + "cookies": [], + "headers": [ + { + "name": "date", + "value": "Tue, 19 May 2026 20:20:09 GMT" + }, + { + "name": "vary", + "value": "Origin" + }, + { + "name": "cache-control", + "value": "no-store" + }, + { + "name": "content-security-policy", + "value": "default-src 'none';frame-ancestors 'none';sandbox" + }, + { + "name": "content-type", + "value": "application/json;charset=utf-8" + }, + { + "name": "cross-origin-opener-policy", + "value": "same-origin" + }, + { + "name": "cross-origin-resource-policy", + "value": "same-origin" + }, + { + "name": "etag", + "value": "\"4b025e5d-c082-45f8-a3e9-0ac1db308dff-21339\"" + }, + { + "name": "expires", + "value": "0" + }, + { + "name": "pragma", + "value": "no-cache" + }, + { + "name": "x-content-type-options", + "value": "nosniff" + }, + { + "name": "x-frame-options", + "value": "DENY" + }, + { + "name": "content-length", + "value": "1401" + }, + { + "name": "x-forgerock-transactionid", + "value": "frodo-11af02bc-8bcd-44ee-91d8-b994b9f61a90" + }, + { + "name": "strict-transport-security", + "value": "max-age=31536000; includeSubDomains; preload;" + }, + { + "name": "x-robots-tag", + "value": "none" + }, + { + "name": "via", + "value": "1.1 google" + }, + { + "name": "alt-svc", + "value": "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" + } + ], + "headersSize": 683, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2026-05-19T20:20:09.335Z", + "time": 100, + "timings": { + "blocked": -1, + "connect": -1, + "dns": -1, + "receive": 0, + "send": 0, + "ssl": -1, + "wait": 100 + } + } + ], + "pages": [], + "version": "1.2" + } +} diff --git a/test/e2e/mocks/iga_2664973160/scope-import_883436943/0_n_f_4242328059/am_1076162899/recording.har b/test/e2e/mocks/iga_2664973160/scope-import_883436943/0_n_f_4242328059/am_1076162899/recording.har new file mode 100644 index 000000000..cb62b01c2 --- /dev/null +++ b/test/e2e/mocks/iga_2664973160/scope-import_883436943/0_n_f_4242328059/am_1076162899/recording.har @@ -0,0 +1,312 @@ +{ + "log": { + "_recordingName": "iga/scope-import/0_n_f/am", + "creator": { + "comment": "persister:fs", + "name": "Polly.JS", + "version": "6.0.6" + }, + "entries": [ + { + "_id": "ccd7a5defd0fdeaa986a2b54642d911a", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "name": "accept", + "value": "application/json, text/plain, */*" + }, + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "user-agent", + "value": "@rockcarver/frodo-lib/4.0.0-39" + }, + { + "name": "x-forgerock-transactionid", + "value": "frodo-b9abe163-560a-4d80-b6d8-0613435aa1ca" + }, + { + "name": "accept-api-version", + "value": "resource=1.1" + }, + { + "name": "accept-encoding", + "value": "gzip, compress, deflate, br" + }, + { + "name": "host", + "value": "openam-frodo-dev.forgeblocks.com" + } + ], + "headersSize": 398, + "httpVersion": "HTTP/1.1", + "method": "GET", + "queryString": [], + "url": "https://openam-trivir-fairfax.forgeblocks.com/am/json/serverinfo/*" + }, + "response": { + "bodySize": 614, + "content": { + "mimeType": "application/json;charset=UTF-8", + "size": 614, + "text": "{\"_id\":\"*\",\"_rev\":\"959929574\",\"domains\":[],\"protectedUserAttributes\":[\"telephoneNumber\",\"mail\"],\"cookieName\":\"311468432e97f1f\",\"secureCookie\":true,\"forgotPassword\":\"false\",\"forgotUsername\":\"false\",\"kbaEnabled\":\"false\",\"selfRegistration\":\"false\",\"lang\":\"en-US\",\"successfulUserRegistrationDestination\":\"default\",\"socialImplementations\":[],\"referralsEnabled\":\"false\",\"zeroPageLogin\":{\"enabled\":false,\"refererWhitelist\":[],\"allowedWithoutReferer\":true},\"realm\":\"/\",\"xuiUserSessionValidationEnabled\":true,\"fileBasedConfiguration\":true,\"userIdAttributes\":[],\"cloudOnlyFeaturesEnabled\":true,\"oauth2AIAgentsEnabled\":false}" + }, + "cookies": [], + "headers": [ + { + "name": "x-frame-options", + "value": "SAMEORIGIN" + }, + { + "name": "content-security-policy-report-only", + "value": "frame-ancestors 'self'; script-src 'self' 'unsafe-eval' 'unsafe-inline'" + }, + { + "name": "x-content-type-options", + "value": "nosniff" + }, + { + "name": "cache-control", + "value": "no-store" + }, + { + "name": "content-api-version", + "value": "resource=1.1" + }, + { + "name": "content-security-policy", + "value": "default-src 'none';frame-ancestors 'none';sandbox" + }, + { + "name": "cross-origin-opener-policy", + "value": "same-origin" + }, + { + "name": "cross-origin-resource-policy", + "value": "same-origin" + }, + { + "name": "etag", + "value": "\"959929574\"" + }, + { + "name": "expires", + "value": "0" + }, + { + "name": "pragma", + "value": "no-cache" + }, + { + "name": "content-type", + "value": "application/json;charset=UTF-8" + }, + { + "name": "content-length", + "value": "614" + }, + { + "name": "date", + "value": "Tue, 19 May 2026 19:46:26 GMT" + }, + { + "name": "x-forgerock-transactionid", + "value": "frodo-b9abe163-560a-4d80-b6d8-0613435aa1ca" + }, + { + "name": "strict-transport-security", + "value": "max-age=31536000; includeSubDomains; preload;" + }, + { + "name": "x-robots-tag", + "value": "none" + }, + { + "name": "via", + "value": "1.1 google" + }, + { + "name": "alt-svc", + "value": "h3=\":443\"; ma=2592000" + } + ], + "headersSize": 761, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2026-05-19T19:46:26.113Z", + "time": 160, + "timings": { + "blocked": -1, + "connect": -1, + "dns": -1, + "receive": 0, + "send": 0, + "ssl": -1, + "wait": 160 + } + }, + { + "_id": "6125d0328ad0dcaee55f73fd8b22ca14", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "name": "accept", + "value": "application/json, text/plain, */*" + }, + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "user-agent", + "value": "@rockcarver/frodo-lib/4.0.0-39" + }, + { + "name": "x-forgerock-transactionid", + "value": "frodo-b9abe163-560a-4d80-b6d8-0613435aa1ca" + }, + { + "name": "accept-api-version", + "value": "resource=1.0" + }, + { + "name": "authorization", + "value": "Bearer " + }, + { + "name": "accept-encoding", + "value": "gzip, compress, deflate, br" + }, + { + "name": "host", + "value": "openam-frodo-dev.forgeblocks.com" + } + ], + "headersSize": 1926, + "httpVersion": "HTTP/1.1", + "method": "GET", + "queryString": [], + "url": "https://openam-trivir-fairfax.forgeblocks.com/am/json/serverinfo/version" + }, + "response": { + "bodySize": 274, + "content": { + "mimeType": "application/json;charset=UTF-8", + "size": 274, + "text": "{\"_id\":\"version\",\"_rev\":\"194838800\",\"version\":\"9.0.0-SNAPSHOT\",\"fullVersion\":\"ForgeRock Access Management 9.0.0-SNAPSHOT Build 500b736d5354dc1171d65a84ec4230d63a5a084e (2026-April-21 11:20)\",\"revision\":\"500b736d5354dc1171d65a84ec4230d63a5a084e\",\"date\":\"2026-April-21 11:20\"}" + }, + "cookies": [], + "headers": [ + { + "name": "x-frame-options", + "value": "SAMEORIGIN" + }, + { + "name": "content-security-policy-report-only", + "value": "frame-ancestors 'self'; script-src 'self' 'unsafe-eval' 'unsafe-inline'" + }, + { + "name": "x-content-type-options", + "value": "nosniff" + }, + { + "name": "cache-control", + "value": "no-store" + }, + { + "name": "content-api-version", + "value": "resource=1.0" + }, + { + "name": "content-security-policy", + "value": "default-src 'none';frame-ancestors 'none';sandbox" + }, + { + "name": "cross-origin-opener-policy", + "value": "same-origin" + }, + { + "name": "cross-origin-resource-policy", + "value": "same-origin" + }, + { + "name": "etag", + "value": "\"194838800\"" + }, + { + "name": "expires", + "value": "0" + }, + { + "name": "pragma", + "value": "no-cache" + }, + { + "name": "content-type", + "value": "application/json;charset=UTF-8" + }, + { + "name": "content-length", + "value": "274" + }, + { + "name": "date", + "value": "Tue, 19 May 2026 19:46:26 GMT" + }, + { + "name": "x-forgerock-transactionid", + "value": "frodo-b9abe163-560a-4d80-b6d8-0613435aa1ca" + }, + { + "name": "strict-transport-security", + "value": "max-age=31536000; includeSubDomains; preload;" + }, + { + "name": "x-robots-tag", + "value": "none" + }, + { + "name": "via", + "value": "1.1 google" + }, + { + "name": "alt-svc", + "value": "h3=\":443\"; ma=2592000" + } + ], + "headersSize": 761, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2026-05-19T19:46:26.431Z", + "time": 112, + "timings": { + "blocked": -1, + "connect": -1, + "dns": -1, + "receive": 0, + "send": 0, + "ssl": -1, + "wait": 112 + } + } + ], + "pages": [], + "version": "1.2" + } +} diff --git a/test/e2e/mocks/iga_2664973160/scope-import_883436943/0_n_f_4242328059/environment_1072573434/recording.har b/test/e2e/mocks/iga_2664973160/scope-import_883436943/0_n_f_4242328059/environment_1072573434/recording.har new file mode 100644 index 000000000..8167c2c9c --- /dev/null +++ b/test/e2e/mocks/iga_2664973160/scope-import_883436943/0_n_f_4242328059/environment_1072573434/recording.har @@ -0,0 +1,125 @@ +{ + "log": { + "_recordingName": "iga/scope-import/0_n_f/environment", + "creator": { + "comment": "persister:fs", + "name": "Polly.JS", + "version": "6.0.6" + }, + "entries": [ + { + "_id": "ccc7ec61c2094114d7917814bb19b83b", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "name": "accept", + "value": "application/json, text/plain, */*" + }, + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "user-agent", + "value": "@rockcarver/frodo-lib/4.0.0-39" + }, + { + "name": "accept-api-version", + "value": "protocol=1.0,resource=1.0" + }, + { + "name": "authorization", + "value": "Bearer " + }, + { + "name": "accept-encoding", + "value": "gzip, compress, deflate, br" + }, + { + "name": "host", + "value": "openam-frodo-dev.forgeblocks.com" + } + ], + "headersSize": 1877, + "httpVersion": "HTTP/1.1", + "method": "GET", + "queryString": [], + "url": "https://openam-trivir-fairfax.forgeblocks.com/environment/scopes/service-accounts" + }, + "response": { + "bodySize": 1975, + "content": { + "mimeType": "application/json; charset=utf-8", + "size": 1975, + "text": "[{\"scope\":\"fr:am:*\",\"description\":\"All Access Management APIs\"},{\"scope\":\"fr:autoaccess:*\",\"description\":\"All Auto Access APIs\"},{\"scope\":\"fr:idc:analytics:*\",\"description\":\"All Analytics APIs\"},{\"scope\":\"fr:idc:certificate:*\",\"description\":\"All TLS certificate APIs\",\"childScopes\":[{\"scope\":\"fr:idc:certificate:read\",\"description\":\"Read TLS certificates\"}]},{\"scope\":\"fr:idc:content-security-policy:*\",\"description\":\"All content security policy APIs\",\"childScopes\":[{\"scope\":\"fr:idc:content-security-policy:read\",\"description\":\"Read content security policy\"}]},{\"scope\":\"fr:idc:cookie-domain:*\",\"description\":\"All cookie domain APIs\",\"childScopes\":[{\"scope\":\"fr:idc:cookie-domain:read\",\"description\":\"Read cookie domains\"}]},{\"scope\":\"fr:idc:custom-domain:*\",\"description\":\"All custom domain APIs\",\"childScopes\":[{\"scope\":\"fr:idc:custom-domain:read\",\"description\":\"Read custom domains\"}]},{\"scope\":\"fr:idc:dataset:*\",\"description\":\"All dataset deletion APIs\",\"childScopes\":[{\"scope\":\"fr:idc:dataset:read\",\"description\":\"Read dataset deletions\"}]},{\"scope\":\"fr:idc:esv:*\",\"description\":\"All ESV APIs\",\"childScopes\":[{\"scope\":\"fr:idc:esv:read\",\"description\":\"Read ESVs, excluding values of secrets\"},{\"scope\":\"fr:idc:esv:update\",\"description\":\"Create, modify, and delete ESVs\"},{\"scope\":\"fr:idc:esv:restart\",\"description\":\"Restart workloads that consume ESVs\"}]},{\"scope\":\"fr:idc:promotion:*\",\"description\":\"All configuration promotion APIs\",\"childScopes\":[{\"scope\":\"fr:idc:promotion:read\",\"description\":\"Read configuration promotion\"}]},{\"scope\":\"fr:idc:release:*\",\"description\":\"All product release APIs\",\"childScopes\":[{\"scope\":\"fr:idc:release:read\",\"description\":\"Read product release\"}]},{\"scope\":\"fr:idc:sso-cookie:*\",\"description\":\"All SSO cookie APIs\",\"childScopes\":[{\"scope\":\"fr:idc:sso-cookie:read\",\"description\":\"Read SSO cookie\"}]},{\"scope\":\"fr:idm:*\",\"description\":\"All Identity Management APIs\"},{\"scope\":\"fr:iga:*\",\"description\":\"All Identity Governance APIs\"}]" + }, + "cookies": [], + "headers": [ + { + "name": "x-frame-options", + "value": "SAMEORIGIN" + }, + { + "name": "content-type", + "value": "application/json; charset=utf-8" + }, + { + "name": "content-length", + "value": "1975" + }, + { + "name": "etag", + "value": "W/\"7b7-tIBWy/EinSCKaoNz4aU2iqiTmFc\"" + }, + { + "name": "date", + "value": "Tue, 19 May 2026 19:46:26 GMT" + }, + { + "name": "x-forgerock-transactionid", + "value": "ab948bc5-66a7-498d-921c-8842463bf582" + }, + { + "name": "strict-transport-security", + "value": "max-age=31536000; includeSubDomains; preload;" + }, + { + "name": "x-robots-tag", + "value": "none" + }, + { + "name": "via", + "value": "1.1 google" + }, + { + "name": "alt-svc", + "value": "h3=\":443\"; ma=2592000" + } + ], + "headersSize": 388, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2026-05-19T19:46:26.548Z", + "time": 105, + "timings": { + "blocked": -1, + "connect": -1, + "dns": -1, + "receive": 0, + "send": 0, + "ssl": -1, + "wait": 105 + } + } + ], + "pages": [], + "version": "1.2" + } +} diff --git a/test/e2e/mocks/iga_2664973160/scope-import_883436943/0_n_f_4242328059/iga_2664973160/recording.har b/test/e2e/mocks/iga_2664973160/scope-import_883436943/0_n_f_4242328059/iga_2664973160/recording.har new file mode 100644 index 000000000..1b94e3ea9 --- /dev/null +++ b/test/e2e/mocks/iga_2664973160/scope-import_883436943/0_n_f_4242328059/iga_2664973160/recording.har @@ -0,0 +1,271 @@ +{ + "log": { + "_recordingName": "iga/scope-import/0_n_f/iga", + "creator": { + "comment": "persister:fs", + "name": "Polly.JS", + "version": "6.0.6" + }, + "entries": [ + { + "_id": "af55958a3898b129bc68978def6db818", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "name": "accept", + "value": "application/json, text/plain, */*" + }, + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "user-agent", + "value": "@rockcarver/frodo-lib/4.0.0-39" + }, + { + "name": "authorization", + "value": "Bearer " + }, + { + "name": "accept-encoding", + "value": "gzip, compress, deflate, br" + }, + { + "name": "host", + "value": "openam-frodo-dev.forgeblocks.com" + } + ], + "headersSize": 1871, + "httpVersion": "HTTP/1.1", + "method": "GET", + "queryString": [ + { + "name": "_queryFilter", + "value": "true" + }, + { + "name": "_pageSize", + "value": "10000" + }, + { + "name": "_pagedResultsOffset", + "value": "0" + } + ], + "url": "https://openam-trivir-fairfax.forgeblocks.com/iga/governance/scope?_queryFilter=true&_pageSize=10000&_pagedResultsOffset=0" + }, + "response": { + "bodySize": 66, + "content": { + "mimeType": "application/json; charset=utf-8", + "size": 66, + "text": "{\"result\":[],\"searchAfterKey\":null,\"totalCount\":0,\"resultCount\":0}" + }, + "cookies": [], + "headers": [ + { + "name": "x-powered-by", + "value": "Express" + }, + { + "name": "cache-control", + "value": "no-store" + }, + { + "name": "content-type", + "value": "application/json; charset=utf-8" + }, + { + "name": "content-length", + "value": "66" + }, + { + "name": "etag", + "value": "W/\"42-6WyYF1p6hZFqH61y+4aiRN1wKRM\"" + }, + { + "name": "vary", + "value": "Accept-Encoding" + }, + { + "name": "date", + "value": "Tue, 19 May 2026 19:46:26 GMT" + }, + { + "name": "x-forgerock-transactionid", + "value": "88b00678-d8a2-48ef-b7c0-0a53414eae1a" + }, + { + "name": "strict-transport-security", + "value": "max-age=31536000; includeSubDomains; preload;" + }, + { + "name": "x-robots-tag", + "value": "none" + }, + { + "name": "via", + "value": "1.1 google" + }, + { + "name": "alt-svc", + "value": "h3=\":443\"; ma=2592000" + } + ], + "headersSize": 427, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2026-05-19T19:46:26.758Z", + "time": 153, + "timings": { + "blocked": -1, + "connect": -1, + "dns": -1, + "receive": 0, + "send": 0, + "ssl": -1, + "wait": 153 + } + }, + { + "_id": "6581f594049458ed2dc837ac084c3e9b", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 299, + "cookies": [], + "headers": [ + { + "name": "accept", + "value": "application/json, text/plain, */*" + }, + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "user-agent", + "value": "@rockcarver/frodo-lib/4.0.0-39" + }, + { + "name": "authorization", + "value": "Bearer " + }, + { + "name": "content-length", + "value": "299" + }, + { + "name": "accept-encoding", + "value": "gzip, compress, deflate, br" + }, + { + "name": "host", + "value": "openam-frodo-dev.forgeblocks.com" + } + ], + "headersSize": 1852, + "httpVersion": "HTTP/1.1", + "method": "POST", + "postData": { + "mimeType": "application/json", + "params": [], + "text": "{\"description\":\"test scope for contains filter\",\"id\":\"9ea91a47-1be1-4a70-8925-d25898a3c8d5\",\"metadata\":{},\"name\":\"contains-test\",\"sourceCondition\":{\"user\":{\"filter\":{\"or\":[{\"contains\":{\"in_string\":\"user._id\",\"search_string\":{\"literal\":\"\"}}}]},\"version\":\"v2\"}},\"status\":\"active\",\"targetCondition\":{}}" + }, + "queryString": [ + { + "name": "_action", + "value": "create" + } + ], + "url": "https://openam-trivir-fairfax.forgeblocks.com/iga/governance/scope?_action=create" + }, + "response": { + "bodySize": 308, + "content": { + "mimeType": "application/json; charset=utf-8", + "size": 308, + "text": "{\"description\":\"test scope for contains filter\",\"id\":\"c39062f0-ac60-4f72-ad8a-ef87bb8889b1\",\"metadata\":{},\"name\":\"contains-test\",\"sourceCondition\":{\"user\":{\"filter\":{\"or\":[{\"contains\":{\"in_string\":\"user._id\",\"search_string\":{\"literal\":\"\"}}}]},\"version\":\"v2\"}},\"status\":\"active\",\"targetCondition\":{},\"_rev\":1}" + }, + "cookies": [], + "headers": [ + { + "name": "x-powered-by", + "value": "Express" + }, + { + "name": "cache-control", + "value": "no-store" + }, + { + "name": "content-type", + "value": "application/json; charset=utf-8" + }, + { + "name": "content-length", + "value": "308" + }, + { + "name": "etag", + "value": "W/\"134-igJfgWQd+y9uVokCBDlSUE7ZB3Y\"" + }, + { + "name": "vary", + "value": "Accept-Encoding" + }, + { + "name": "date", + "value": "Tue, 19 May 2026 19:46:27 GMT" + }, + { + "name": "x-forgerock-transactionid", + "value": "dcfc643d-a884-4314-8669-4486dd444490" + }, + { + "name": "strict-transport-security", + "value": "max-age=31536000; includeSubDomains; preload;" + }, + { + "name": "x-robots-tag", + "value": "none" + }, + { + "name": "via", + "value": "1.1 google" + }, + { + "name": "alt-svc", + "value": "h3=\":443\"; ma=2592000" + } + ], + "headersSize": 429, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2026-05-19T19:46:26.917Z", + "time": 569, + "timings": { + "blocked": -1, + "connect": -1, + "dns": -1, + "receive": 0, + "send": 0, + "ssl": -1, + "wait": 569 + } + } + ], + "pages": [], + "version": "1.2" + } +} diff --git a/test/e2e/mocks/iga_2664973160/scope-import_883436943/0_n_f_4242328059/oauth2_393036114/recording.har b/test/e2e/mocks/iga_2664973160/scope-import_883436943/0_n_f_4242328059/oauth2_393036114/recording.har new file mode 100644 index 000000000..f996b96a7 --- /dev/null +++ b/test/e2e/mocks/iga_2664973160/scope-import_883436943/0_n_f_4242328059/oauth2_393036114/recording.har @@ -0,0 +1,146 @@ +{ + "log": { + "_recordingName": "iga/scope-import/0_n_f/oauth2", + "creator": { + "comment": "persister:fs", + "name": "Polly.JS", + "version": "6.0.6" + }, + "entries": [ + { + "_id": "ff75519a93ccab829f8ee8cf5e92b49f", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 1328, + "cookies": [], + "headers": [ + { + "name": "accept", + "value": "application/json, text/plain, */*" + }, + { + "name": "content-type", + "value": "application/x-www-form-urlencoded" + }, + { + "name": "user-agent", + "value": "@rockcarver/frodo-lib/4.0.0-39" + }, + { + "name": "x-forgerock-transactionid", + "value": "frodo-b9abe163-560a-4d80-b6d8-0613435aa1ca" + }, + { + "name": "accept-api-version", + "value": "protocol=2.1,resource=1.0" + }, + { + "name": "content-length", + "value": "1328" + }, + { + "name": "accept-encoding", + "value": "gzip, compress, deflate, br" + }, + { + "name": "host", + "value": "openam-frodo-dev.forgeblocks.com" + } + ], + "headersSize": 453, + "httpVersion": "HTTP/1.1", + "method": "POST", + "postData": { + "mimeType": "application/x-www-form-urlencoded", + "params": [], + "text": "assertion=&client_id=service-account&grant_type=urn:ietf:params:oauth:grant-type:jwt-bearer&scope=fr:idc:custom-domain:* fr:idc:release:* fr:idc:sso-cookie:* fr:am:* fr:idc:esv:* fr:idc:content-security-policy:* fr:iga:* fr:idc:certificate:* fr:idm:* fr:idc:analytics:* fr:idc:cookie-domain:* fr:idc:promotion:*" + }, + "queryString": [], + "url": "https://openam-trivir-fairfax.forgeblocks.com/am/oauth2/access_token" + }, + "response": { + "bodySize": 1780, + "content": { + "mimeType": "application/json;charset=UTF-8", + "size": 1780, + "text": "{\"access_token\":\"\",\"scope\":\"fr:idc:custom-domain:* fr:idc:release:* fr:idc:sso-cookie:* fr:am:* fr:idc:esv:* fr:idc:content-security-policy:* fr:iga:* fr:idc:certificate:* fr:idm:* fr:idc:analytics:* fr:idc:cookie-domain:* fr:idc:promotion:*\",\"token_type\":\"Bearer\",\"expires_in\":899}" + }, + "cookies": [], + "headers": [ + { + "name": "x-frame-options", + "value": "SAMEORIGIN" + }, + { + "name": "content-security-policy-report-only", + "value": "frame-ancestors 'self'; script-src 'self' 'unsafe-eval' 'unsafe-inline'" + }, + { + "name": "x-content-type-options", + "value": "nosniff" + }, + { + "name": "cache-control", + "value": "no-store" + }, + { + "name": "pragma", + "value": "no-cache" + }, + { + "name": "content-type", + "value": "application/json;charset=UTF-8" + }, + { + "name": "content-length", + "value": "1780" + }, + { + "name": "date", + "value": "Tue, 19 May 2026 19:46:26 GMT" + }, + { + "name": "x-forgerock-transactionid", + "value": "frodo-b9abe163-560a-4d80-b6d8-0613435aa1ca" + }, + { + "name": "strict-transport-security", + "value": "max-age=31536000; includeSubDomains; preload;" + }, + { + "name": "x-robots-tag", + "value": "none" + }, + { + "name": "via", + "value": "1.1 google" + }, + { + "name": "alt-svc", + "value": "h3=\":443\"; ma=2592000" + } + ], + "headersSize": 536, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2026-05-19T19:46:26.286Z", + "time": 138, + "timings": { + "blocked": -1, + "connect": -1, + "dns": -1, + "receive": 0, + "send": 0, + "ssl": -1, + "wait": 138 + } + } + ], + "pages": [], + "version": "1.2" + } +} diff --git a/test/e2e/mocks/iga_2664973160/scope-import_883436943/0_n_f_4242328059/openidm_3290118515/recording.har b/test/e2e/mocks/iga_2664973160/scope-import_883436943/0_n_f_4242328059/openidm_3290118515/recording.har new file mode 100644 index 000000000..b07c15dc3 --- /dev/null +++ b/test/e2e/mocks/iga_2664973160/scope-import_883436943/0_n_f_4242328059/openidm_3290118515/recording.har @@ -0,0 +1,310 @@ +{ + "log": { + "_recordingName": "iga/scope-import/0_n_f/openidm", + "creator": { + "comment": "persister:fs", + "name": "Polly.JS", + "version": "6.0.6" + }, + "entries": [ + { + "_id": "9cb8561357870863838a9948da32d1e8", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "name": "accept", + "value": "application/json, text/plain, */*" + }, + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "user-agent", + "value": "@rockcarver/frodo-lib/4.0.0-39" + }, + { + "name": "x-forgerock-transactionid", + "value": "frodo-b9abe163-560a-4d80-b6d8-0613435aa1ca" + }, + { + "name": "authorization", + "value": "Bearer " + }, + { + "name": "accept-encoding", + "value": "gzip, compress, deflate, br" + }, + { + "name": "host", + "value": "openam-frodo-dev.forgeblocks.com" + } + ], + "headersSize": 1938, + "httpVersion": "HTTP/1.1", + "method": "GET", + "queryString": [ + { + "name": "_fields", + "value": "*" + } + ], + "url": "https://openam-trivir-fairfax.forgeblocks.com/openidm/managed/svcacct/10d76629-78da-4265-868b-9a0cb68ebdb4?_fields=%2A" + }, + "response": { + "bodySize": 1401, + "content": { + "mimeType": "application/json;charset=utf-8", + "size": 1401, + "text": "{\"_id\":\"10d76629-78da-4265-868b-9a0cb68ebdb4\",\"_rev\":\"4b025e5d-c082-45f8-a3e9-0ac1db308dff-21339\",\"accountStatus\":\"active\",\"name\":\"Frodo-SA-1777919406717\",\"description\":\"dsevy@trivir.com's Frodo Service Account\",\"scopes\":[\"fr:am:*\",\"fr:idc:analytics:*\",\"fr:autoaccess:*\",\"fr:idc:certificate:*\",\"fr:idc:content-security-policy:*\",\"fr:idc:cookie-domain:*\",\"fr:idc:custom-domain:*\",\"fr:idc:dataset:*\",\"fr:idc:esv:*\",\"fr:idm:*\",\"fr:iga:*\",\"fr:idc:promotion:*\",\"fr:idc:release:*\",\"fr:idc:sso-cookie:*\"],\"jwks\":\"{\\\"keys\\\":[{\\\"kty\\\":\\\"RSA\\\",\\\"kid\\\":\\\"hshlr1hlp8bXdLNDrh3rESiHNsMS68c4XtbZX9i_Seg\\\",\\\"alg\\\":\\\"RS256\\\",\\\"e\\\":\\\"AQAB\\\",\\\"n\\\":\\\"owg6VJta_1o9VqyQk4Xs2kA_BDcyWEN1WMERqaJIFCbtecz_IMBp2G5m76dawbB9QvUsFvMqfJ2OGbaCcfC2o5lkxEu4nxdKLKYZ4-JTGsbPN6j-f9yr0LCjFMPd1BRxKQ98euSu5UZ0_gy9QN-eS4zB5zJsb8E7Y7FXsxG6vgd8dCqCSPjJeSmZhnQEeqJeysGlA5jMzQUP9Lvgm2aZp5wz7DXzF9lvsqRjm49H9wlERjy4KDmjlp5Rr3lz8ZXGgsaIdp18hUrPFKJP5qxkICfnbxdyK858A5puUypj1OAqrOtAnwjk5lMPOYzBWjWV72RPnOY3-6KAHo8uFXK3EH8AN8ErHxhpo-soV0e7-Z7gEnmt0rliY3j_-2AHA0Q5G1k52cGQ-dARGzgAQacpdnQv_pT0k83DGZPrpR6PqBRkyiJBD_PTvySZohxFgjpJfJmkYec7Pg40xri_LN1ozkLRBdQwL2zaQFYtq_VZC20a8Y7NpqpoLcvFIB9W2NS03qTokvId7gdSgdcVmpOo4n7OZZCouD6cyWyJ6Nj9uaxz-mw4Mdzhpd8cclSV_gXeWMBBoW3dZ7zzkEFMWHBT2x9S8JAZor_aaGJ2MXOoNoHRg-q9shNhQ3h7U14MXfL7I9R4ixClZMOpxILa0VT0Vzm-h685xkXwa28WLSw21QU\\\"}]}\",\"maxCachingTime\":\"15\",\"maxIdleTime\":\"15\",\"maxSessionTime\":\"15\",\"quotaLimit\":\"5\"}" + }, + "cookies": [], + "headers": [ + { + "name": "date", + "value": "Tue, 19 May 2026 19:46:26 GMT" + }, + { + "name": "vary", + "value": "Origin" + }, + { + "name": "cache-control", + "value": "no-store" + }, + { + "name": "content-security-policy", + "value": "default-src 'none';frame-ancestors 'none';sandbox" + }, + { + "name": "content-type", + "value": "application/json;charset=utf-8" + }, + { + "name": "cross-origin-opener-policy", + "value": "same-origin" + }, + { + "name": "cross-origin-resource-policy", + "value": "same-origin" + }, + { + "name": "etag", + "value": "\"4b025e5d-c082-45f8-a3e9-0ac1db308dff-21339\"" + }, + { + "name": "expires", + "value": "0" + }, + { + "name": "pragma", + "value": "no-cache" + }, + { + "name": "x-content-type-options", + "value": "nosniff" + }, + { + "name": "x-frame-options", + "value": "DENY" + }, + { + "name": "content-length", + "value": "1401" + }, + { + "name": "x-forgerock-transactionid", + "value": "frodo-b9abe163-560a-4d80-b6d8-0613435aa1ca" + }, + { + "name": "strict-transport-security", + "value": "max-age=31536000; includeSubDomains; preload;" + }, + { + "name": "x-robots-tag", + "value": "none" + }, + { + "name": "via", + "value": "1.1 google" + }, + { + "name": "alt-svc", + "value": "h3=\":443\"; ma=2592000" + } + ], + "headersSize": 658, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2026-05-19T19:46:26.476Z", + "time": 195, + "timings": { + "blocked": -1, + "connect": -1, + "dns": -1, + "receive": 0, + "send": 0, + "ssl": -1, + "wait": 195 + } + }, + { + "_id": "9cb8561357870863838a9948da32d1e8", + "_order": 1, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "name": "accept", + "value": "application/json, text/plain, */*" + }, + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "user-agent", + "value": "@rockcarver/frodo-lib/4.0.0-39" + }, + { + "name": "x-forgerock-transactionid", + "value": "frodo-b9abe163-560a-4d80-b6d8-0613435aa1ca" + }, + { + "name": "authorization", + "value": "Bearer " + }, + { + "name": "accept-encoding", + "value": "gzip, compress, deflate, br" + }, + { + "name": "host", + "value": "openam-frodo-dev.forgeblocks.com" + } + ], + "headersSize": 1938, + "httpVersion": "HTTP/1.1", + "method": "GET", + "queryString": [ + { + "name": "_fields", + "value": "*" + } + ], + "url": "https://openam-trivir-fairfax.forgeblocks.com/openidm/managed/svcacct/10d76629-78da-4265-868b-9a0cb68ebdb4?_fields=%2A" + }, + "response": { + "bodySize": 1401, + "content": { + "mimeType": "application/json;charset=utf-8", + "size": 1401, + "text": "{\"_id\":\"10d76629-78da-4265-868b-9a0cb68ebdb4\",\"_rev\":\"4b025e5d-c082-45f8-a3e9-0ac1db308dff-21339\",\"accountStatus\":\"active\",\"name\":\"Frodo-SA-1777919406717\",\"description\":\"dsevy@trivir.com's Frodo Service Account\",\"scopes\":[\"fr:am:*\",\"fr:idc:analytics:*\",\"fr:autoaccess:*\",\"fr:idc:certificate:*\",\"fr:idc:content-security-policy:*\",\"fr:idc:cookie-domain:*\",\"fr:idc:custom-domain:*\",\"fr:idc:dataset:*\",\"fr:idc:esv:*\",\"fr:idm:*\",\"fr:iga:*\",\"fr:idc:promotion:*\",\"fr:idc:release:*\",\"fr:idc:sso-cookie:*\"],\"jwks\":\"{\\\"keys\\\":[{\\\"kty\\\":\\\"RSA\\\",\\\"kid\\\":\\\"hshlr1hlp8bXdLNDrh3rESiHNsMS68c4XtbZX9i_Seg\\\",\\\"alg\\\":\\\"RS256\\\",\\\"e\\\":\\\"AQAB\\\",\\\"n\\\":\\\"owg6VJta_1o9VqyQk4Xs2kA_BDcyWEN1WMERqaJIFCbtecz_IMBp2G5m76dawbB9QvUsFvMqfJ2OGbaCcfC2o5lkxEu4nxdKLKYZ4-JTGsbPN6j-f9yr0LCjFMPd1BRxKQ98euSu5UZ0_gy9QN-eS4zB5zJsb8E7Y7FXsxG6vgd8dCqCSPjJeSmZhnQEeqJeysGlA5jMzQUP9Lvgm2aZp5wz7DXzF9lvsqRjm49H9wlERjy4KDmjlp5Rr3lz8ZXGgsaIdp18hUrPFKJP5qxkICfnbxdyK858A5puUypj1OAqrOtAnwjk5lMPOYzBWjWV72RPnOY3-6KAHo8uFXK3EH8AN8ErHxhpo-soV0e7-Z7gEnmt0rliY3j_-2AHA0Q5G1k52cGQ-dARGzgAQacpdnQv_pT0k83DGZPrpR6PqBRkyiJBD_PTvySZohxFgjpJfJmkYec7Pg40xri_LN1ozkLRBdQwL2zaQFYtq_VZC20a8Y7NpqpoLcvFIB9W2NS03qTokvId7gdSgdcVmpOo4n7OZZCouD6cyWyJ6Nj9uaxz-mw4Mdzhpd8cclSV_gXeWMBBoW3dZ7zzkEFMWHBT2x9S8JAZor_aaGJ2MXOoNoHRg-q9shNhQ3h7U14MXfL7I9R4ixClZMOpxILa0VT0Vzm-h685xkXwa28WLSw21QU\\\"}]}\",\"maxCachingTime\":\"15\",\"maxIdleTime\":\"15\",\"maxSessionTime\":\"15\",\"quotaLimit\":\"5\"}" + }, + "cookies": [], + "headers": [ + { + "name": "date", + "value": "Tue, 19 May 2026 19:46:26 GMT" + }, + { + "name": "vary", + "value": "Origin" + }, + { + "name": "cache-control", + "value": "no-store" + }, + { + "name": "content-security-policy", + "value": "default-src 'none';frame-ancestors 'none';sandbox" + }, + { + "name": "content-type", + "value": "application/json;charset=utf-8" + }, + { + "name": "cross-origin-opener-policy", + "value": "same-origin" + }, + { + "name": "cross-origin-resource-policy", + "value": "same-origin" + }, + { + "name": "etag", + "value": "\"4b025e5d-c082-45f8-a3e9-0ac1db308dff-21339\"" + }, + { + "name": "expires", + "value": "0" + }, + { + "name": "pragma", + "value": "no-cache" + }, + { + "name": "x-content-type-options", + "value": "nosniff" + }, + { + "name": "x-frame-options", + "value": "DENY" + }, + { + "name": "content-length", + "value": "1401" + }, + { + "name": "x-forgerock-transactionid", + "value": "frodo-b9abe163-560a-4d80-b6d8-0613435aa1ca" + }, + { + "name": "strict-transport-security", + "value": "max-age=31536000; includeSubDomains; preload;" + }, + { + "name": "x-robots-tag", + "value": "none" + }, + { + "name": "via", + "value": "1.1 google" + }, + { + "name": "alt-svc", + "value": "h3=\":443\"; ma=2592000" + } + ], + "headersSize": 658, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2026-05-19T19:46:26.660Z", + "time": 91, + "timings": { + "blocked": -1, + "connect": -1, + "dns": -1, + "receive": 0, + "send": 0, + "ssl": -1, + "wait": 91 + } + } + ], + "pages": [], + "version": "1.2" + } +} diff --git a/test/e2e/mocks/iga_2664973160/scope-import_883436943/0_scope-name_file_3296311755/am_1076162899/recording.har b/test/e2e/mocks/iga_2664973160/scope-import_883436943/0_scope-name_file_3296311755/am_1076162899/recording.har new file mode 100644 index 000000000..da85b1afe --- /dev/null +++ b/test/e2e/mocks/iga_2664973160/scope-import_883436943/0_scope-name_file_3296311755/am_1076162899/recording.har @@ -0,0 +1,312 @@ +{ + "log": { + "_recordingName": "iga/scope-import/0_scope-name_file/am", + "creator": { + "comment": "persister:fs", + "name": "Polly.JS", + "version": "6.0.6" + }, + "entries": [ + { + "_id": "ccd7a5defd0fdeaa986a2b54642d911a", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "name": "accept", + "value": "application/json, text/plain, */*" + }, + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "user-agent", + "value": "@rockcarver/frodo-lib/4.0.0-39" + }, + { + "name": "x-forgerock-transactionid", + "value": "frodo-827a0c7d-f3d6-4b86-8cc0-18474b53ebd6" + }, + { + "name": "accept-api-version", + "value": "resource=1.1" + }, + { + "name": "accept-encoding", + "value": "gzip, compress, deflate, br" + }, + { + "name": "host", + "value": "openam-frodo-dev.forgeblocks.com" + } + ], + "headersSize": 398, + "httpVersion": "HTTP/1.1", + "method": "GET", + "queryString": [], + "url": "https://openam-trivir-fairfax.forgeblocks.com/am/json/serverinfo/*" + }, + "response": { + "bodySize": 614, + "content": { + "mimeType": "application/json;charset=UTF-8", + "size": 614, + "text": "{\"_id\":\"*\",\"_rev\":\"959929574\",\"domains\":[],\"protectedUserAttributes\":[\"telephoneNumber\",\"mail\"],\"cookieName\":\"311468432e97f1f\",\"secureCookie\":true,\"forgotPassword\":\"false\",\"forgotUsername\":\"false\",\"kbaEnabled\":\"false\",\"selfRegistration\":\"false\",\"lang\":\"en-US\",\"successfulUserRegistrationDestination\":\"default\",\"socialImplementations\":[],\"referralsEnabled\":\"false\",\"zeroPageLogin\":{\"enabled\":false,\"refererWhitelist\":[],\"allowedWithoutReferer\":true},\"realm\":\"/\",\"xuiUserSessionValidationEnabled\":true,\"fileBasedConfiguration\":true,\"userIdAttributes\":[],\"cloudOnlyFeaturesEnabled\":true,\"oauth2AIAgentsEnabled\":false}" + }, + "cookies": [], + "headers": [ + { + "name": "x-frame-options", + "value": "SAMEORIGIN" + }, + { + "name": "content-security-policy-report-only", + "value": "frame-ancestors 'self'; script-src 'self' 'unsafe-eval' 'unsafe-inline'" + }, + { + "name": "x-content-type-options", + "value": "nosniff" + }, + { + "name": "cache-control", + "value": "no-store" + }, + { + "name": "content-api-version", + "value": "resource=1.1" + }, + { + "name": "content-security-policy", + "value": "default-src 'none';frame-ancestors 'none';sandbox" + }, + { + "name": "cross-origin-opener-policy", + "value": "same-origin" + }, + { + "name": "cross-origin-resource-policy", + "value": "same-origin" + }, + { + "name": "etag", + "value": "\"959929574\"" + }, + { + "name": "expires", + "value": "0" + }, + { + "name": "pragma", + "value": "no-cache" + }, + { + "name": "content-type", + "value": "application/json;charset=UTF-8" + }, + { + "name": "content-length", + "value": "614" + }, + { + "name": "date", + "value": "Tue, 19 May 2026 20:41:22 GMT" + }, + { + "name": "x-forgerock-transactionid", + "value": "frodo-827a0c7d-f3d6-4b86-8cc0-18474b53ebd6" + }, + { + "name": "strict-transport-security", + "value": "max-age=31536000; includeSubDomains; preload;" + }, + { + "name": "x-robots-tag", + "value": "none" + }, + { + "name": "via", + "value": "1.1 google" + }, + { + "name": "alt-svc", + "value": "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" + } + ], + "headersSize": 786, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2026-05-19T20:41:21.990Z", + "time": 171, + "timings": { + "blocked": -1, + "connect": -1, + "dns": -1, + "receive": 0, + "send": 0, + "ssl": -1, + "wait": 171 + } + }, + { + "_id": "6125d0328ad0dcaee55f73fd8b22ca14", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "name": "accept", + "value": "application/json, text/plain, */*" + }, + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "user-agent", + "value": "@rockcarver/frodo-lib/4.0.0-39" + }, + { + "name": "x-forgerock-transactionid", + "value": "frodo-827a0c7d-f3d6-4b86-8cc0-18474b53ebd6" + }, + { + "name": "accept-api-version", + "value": "resource=1.0" + }, + { + "name": "authorization", + "value": "Bearer " + }, + { + "name": "accept-encoding", + "value": "gzip, compress, deflate, br" + }, + { + "name": "host", + "value": "openam-frodo-dev.forgeblocks.com" + } + ], + "headersSize": 1926, + "httpVersion": "HTTP/1.1", + "method": "GET", + "queryString": [], + "url": "https://openam-trivir-fairfax.forgeblocks.com/am/json/serverinfo/version" + }, + "response": { + "bodySize": 274, + "content": { + "mimeType": "application/json;charset=UTF-8", + "size": 274, + "text": "{\"_id\":\"version\",\"_rev\":\"194838800\",\"version\":\"9.0.0-SNAPSHOT\",\"fullVersion\":\"ForgeRock Access Management 9.0.0-SNAPSHOT Build 500b736d5354dc1171d65a84ec4230d63a5a084e (2026-April-21 11:20)\",\"revision\":\"500b736d5354dc1171d65a84ec4230d63a5a084e\",\"date\":\"2026-April-21 11:20\"}" + }, + "cookies": [], + "headers": [ + { + "name": "x-frame-options", + "value": "SAMEORIGIN" + }, + { + "name": "content-security-policy-report-only", + "value": "frame-ancestors 'self'; script-src 'self' 'unsafe-eval' 'unsafe-inline'" + }, + { + "name": "x-content-type-options", + "value": "nosniff" + }, + { + "name": "cache-control", + "value": "no-store" + }, + { + "name": "content-api-version", + "value": "resource=1.0" + }, + { + "name": "content-security-policy", + "value": "default-src 'none';frame-ancestors 'none';sandbox" + }, + { + "name": "cross-origin-opener-policy", + "value": "same-origin" + }, + { + "name": "cross-origin-resource-policy", + "value": "same-origin" + }, + { + "name": "etag", + "value": "\"194838800\"" + }, + { + "name": "expires", + "value": "0" + }, + { + "name": "pragma", + "value": "no-cache" + }, + { + "name": "content-type", + "value": "application/json;charset=UTF-8" + }, + { + "name": "content-length", + "value": "274" + }, + { + "name": "date", + "value": "Tue, 19 May 2026 20:41:22 GMT" + }, + { + "name": "x-forgerock-transactionid", + "value": "frodo-827a0c7d-f3d6-4b86-8cc0-18474b53ebd6" + }, + { + "name": "strict-transport-security", + "value": "max-age=31536000; includeSubDomains; preload;" + }, + { + "name": "x-robots-tag", + "value": "none" + }, + { + "name": "via", + "value": "1.1 google" + }, + { + "name": "alt-svc", + "value": "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" + } + ], + "headersSize": 786, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2026-05-19T20:41:22.316Z", + "time": 113, + "timings": { + "blocked": -1, + "connect": -1, + "dns": -1, + "receive": 0, + "send": 0, + "ssl": -1, + "wait": 113 + } + } + ], + "pages": [], + "version": "1.2" + } +} diff --git a/test/e2e/mocks/iga_2664973160/scope-import_883436943/0_scope-name_file_3296311755/environment_1072573434/recording.har b/test/e2e/mocks/iga_2664973160/scope-import_883436943/0_scope-name_file_3296311755/environment_1072573434/recording.har new file mode 100644 index 000000000..0ad5b6dc3 --- /dev/null +++ b/test/e2e/mocks/iga_2664973160/scope-import_883436943/0_scope-name_file_3296311755/environment_1072573434/recording.har @@ -0,0 +1,125 @@ +{ + "log": { + "_recordingName": "iga/scope-import/0_scope-name_file/environment", + "creator": { + "comment": "persister:fs", + "name": "Polly.JS", + "version": "6.0.6" + }, + "entries": [ + { + "_id": "ccc7ec61c2094114d7917814bb19b83b", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "name": "accept", + "value": "application/json, text/plain, */*" + }, + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "user-agent", + "value": "@rockcarver/frodo-lib/4.0.0-39" + }, + { + "name": "accept-api-version", + "value": "protocol=1.0,resource=1.0" + }, + { + "name": "authorization", + "value": "Bearer " + }, + { + "name": "accept-encoding", + "value": "gzip, compress, deflate, br" + }, + { + "name": "host", + "value": "openam-frodo-dev.forgeblocks.com" + } + ], + "headersSize": 1877, + "httpVersion": "HTTP/1.1", + "method": "GET", + "queryString": [], + "url": "https://openam-trivir-fairfax.forgeblocks.com/environment/scopes/service-accounts" + }, + "response": { + "bodySize": 1975, + "content": { + "mimeType": "application/json; charset=utf-8", + "size": 1975, + "text": "[{\"scope\":\"fr:am:*\",\"description\":\"All Access Management APIs\"},{\"scope\":\"fr:autoaccess:*\",\"description\":\"All Auto Access APIs\"},{\"scope\":\"fr:idc:analytics:*\",\"description\":\"All Analytics APIs\"},{\"scope\":\"fr:idc:certificate:*\",\"description\":\"All TLS certificate APIs\",\"childScopes\":[{\"scope\":\"fr:idc:certificate:read\",\"description\":\"Read TLS certificates\"}]},{\"scope\":\"fr:idc:content-security-policy:*\",\"description\":\"All content security policy APIs\",\"childScopes\":[{\"scope\":\"fr:idc:content-security-policy:read\",\"description\":\"Read content security policy\"}]},{\"scope\":\"fr:idc:cookie-domain:*\",\"description\":\"All cookie domain APIs\",\"childScopes\":[{\"scope\":\"fr:idc:cookie-domain:read\",\"description\":\"Read cookie domains\"}]},{\"scope\":\"fr:idc:custom-domain:*\",\"description\":\"All custom domain APIs\",\"childScopes\":[{\"scope\":\"fr:idc:custom-domain:read\",\"description\":\"Read custom domains\"}]},{\"scope\":\"fr:idc:dataset:*\",\"description\":\"All dataset deletion APIs\",\"childScopes\":[{\"scope\":\"fr:idc:dataset:read\",\"description\":\"Read dataset deletions\"}]},{\"scope\":\"fr:idc:esv:*\",\"description\":\"All ESV APIs\",\"childScopes\":[{\"scope\":\"fr:idc:esv:read\",\"description\":\"Read ESVs, excluding values of secrets\"},{\"scope\":\"fr:idc:esv:update\",\"description\":\"Create, modify, and delete ESVs\"},{\"scope\":\"fr:idc:esv:restart\",\"description\":\"Restart workloads that consume ESVs\"}]},{\"scope\":\"fr:idc:promotion:*\",\"description\":\"All configuration promotion APIs\",\"childScopes\":[{\"scope\":\"fr:idc:promotion:read\",\"description\":\"Read configuration promotion\"}]},{\"scope\":\"fr:idc:release:*\",\"description\":\"All product release APIs\",\"childScopes\":[{\"scope\":\"fr:idc:release:read\",\"description\":\"Read product release\"}]},{\"scope\":\"fr:idc:sso-cookie:*\",\"description\":\"All SSO cookie APIs\",\"childScopes\":[{\"scope\":\"fr:idc:sso-cookie:read\",\"description\":\"Read SSO cookie\"}]},{\"scope\":\"fr:idm:*\",\"description\":\"All Identity Management APIs\"},{\"scope\":\"fr:iga:*\",\"description\":\"All Identity Governance APIs\"}]" + }, + "cookies": [], + "headers": [ + { + "name": "x-frame-options", + "value": "SAMEORIGIN" + }, + { + "name": "content-type", + "value": "application/json; charset=utf-8" + }, + { + "name": "content-length", + "value": "1975" + }, + { + "name": "etag", + "value": "W/\"7b7-tIBWy/EinSCKaoNz4aU2iqiTmFc\"" + }, + { + "name": "date", + "value": "Tue, 19 May 2026 20:41:22 GMT" + }, + { + "name": "x-forgerock-transactionid", + "value": "d4b70889-2c0d-4eb5-a53c-0653ca71e3fb" + }, + { + "name": "strict-transport-security", + "value": "max-age=31536000; includeSubDomains; preload;" + }, + { + "name": "x-robots-tag", + "value": "none" + }, + { + "name": "via", + "value": "1.1 google" + }, + { + "name": "alt-svc", + "value": "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" + } + ], + "headersSize": 413, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2026-05-19T20:41:22.437Z", + "time": 100, + "timings": { + "blocked": -1, + "connect": -1, + "dns": -1, + "receive": 0, + "send": 0, + "ssl": -1, + "wait": 100 + } + } + ], + "pages": [], + "version": "1.2" + } +} diff --git a/test/e2e/mocks/iga_2664973160/scope-import_883436943/0_scope-name_file_3296311755/iga_2664973160/recording.har b/test/e2e/mocks/iga_2664973160/scope-import_883436943/0_scope-name_file_3296311755/iga_2664973160/recording.har new file mode 100644 index 000000000..31bf51508 --- /dev/null +++ b/test/e2e/mocks/iga_2664973160/scope-import_883436943/0_scope-name_file_3296311755/iga_2664973160/recording.har @@ -0,0 +1,147 @@ +{ + "log": { + "_recordingName": "iga/scope-import/0_scope-name_file/iga", + "creator": { + "comment": "persister:fs", + "name": "Polly.JS", + "version": "6.0.6" + }, + "entries": [ + { + "_id": "af55958a3898b129bc68978def6db818", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "name": "accept", + "value": "application/json, text/plain, */*" + }, + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "user-agent", + "value": "@rockcarver/frodo-lib/4.0.0-39" + }, + { + "name": "authorization", + "value": "Bearer " + }, + { + "name": "accept-encoding", + "value": "gzip, compress, deflate, br" + }, + { + "name": "host", + "value": "openam-frodo-dev.forgeblocks.com" + } + ], + "headersSize": 1871, + "httpVersion": "HTTP/1.1", + "method": "GET", + "queryString": [ + { + "name": "_queryFilter", + "value": "true" + }, + { + "name": "_pageSize", + "value": "10000" + }, + { + "name": "_pagedResultsOffset", + "value": "0" + } + ], + "url": "https://openam-trivir-fairfax.forgeblocks.com/iga/governance/scope?_queryFilter=true&_pageSize=10000&_pagedResultsOffset=0" + }, + "response": { + "bodySize": 2027, + "content": { + "encoding": "base64", + "mimeType": "application/json; charset=utf-8", + "size": 2027, + "text": "[\"G0YbAORaavX6qvp1Qa0iRP0upOhC0Iy58yAv4PFOufTzc633Cx08tW1/uDeieJz8vf2PuSbTxkXwknWXMItnKeyuNTIhkgsme90H9Y35pYSVwZV2l3nAYbLmgvWvB6QN5Rt7HWWvsMKgPqYe9ytNeW9TGf/CuNcRSp1yuQxqMENJsIIIhmcnJIbAJSquAnorFIbkNXnGVEoWZqjhmWCFtFPHug+Mex2hVBzUB8zQ91uL9NFeUxllr7A+4NapwfqAXC6DGqwP2Busfz2g7uMU9zpCqR3WB5R66qOV+gQro2CJZbzCDPu6418v84BjJD3wAiv8MsIZjuP455hh/3dHhRVeBBzHDH2EceuwQoijvBDMMEI7AlZJCQ99zHBq9AIrn+GZRkhhBFgfIKFL+zgMghUEEwaZRu5/FmwVfOVyUV4bJpjVf8IMm3pXxXKT2nvn3Z9wHLO8kCTMQmYjhWIJBRMWlckRN0eE3lilN5JWBkdcw0tUKbnD+ijPBD6po4zLQSlkh3W0G80VK+z1xXVeCt0/a6GOHp2tk/8v4pMlIHu2g0QXindzL4Xuv3RqH8RIPT1PftwvJLtJNp4vi8hmIbnVwDFrWPdDTfD2f+4jDPq+7S+lRtK1fLD+jrzIeOWtNwMJSUV0/9ZCKuIptFLAboOvgWrqp3sZZ1gf0G85l7cWltbhmOGweVGzoZWqAn6qNcT2yBuVZplenOVCO+UUIZauWy5sMAu92exNZmg3k1BFltFZJnEzgTHJiEXH6feT3tzCpaNtIc1hmolRliTKQzk4d412tukI5gMr1ZwxjHDZnxZm/0XIyoX0xqDnK9AceUcDy19qyEGLdtbf27Kj4JL/tkR4i1fXCv3afqHFOMgGkrrQoqeS8qHgNR4YWzlfpGJWOS8M8SyDS+OZDhV9MIGmhVFNfbqXcUZLK1pNfJNa4MZkP/0cHLdgNSqbknQuOx8FrUA1dbyXcUY4RhInqfPThvkPO5UEByoyAcwuXGnnBHPiHEvnnHkf1hjn0qfSpzDBS7b9zTBqp5Ri6GQKqKza0Csr0QWdbA==\",\"UFJ6hVRnfAs17c//MASR6xRaC686jzkMl2F8l79rT2D1jMiqnMluaO1GqJIJ6LVRKLNPLirJFDE4moKok71nP4XLmL4O/9P0URmvduZUkYqiDlNQTo3LhSuvjGWaOJbONVcySCf08k4HSh51vfmOqEb7bEIqaxYuCS2ktJiZ5Ki8Yei9CCiTtdIwnpzONGLf0n366ZPtiXQmcnDi5OWgVS4WKz0zgrsH4uicGW38g6SJzcCFlDRDxjmh0kFiEMah1057m4QWMRDakRfnj8Eoz2kjNLaefK/h0muj7Ll9URO97W4DeKMTStPwLwwgZESntkiGP2AmM8Lba0emN/0m1Fry4iFYJUWksO4WCh5plkCaNo/tcNASUCgYfqRSGjy8BDSGjrQVim8o+KblZovjznsnHhxDM4xjAzlm4V20UkdCk1NEFYxAx1hGY7SXzpFSPJLGf+nUpq8/+mb62S+RdAokobpdboJIjJjH4ENExWPAkIVCFzLTIirHssAqXbx1alM4O13PZ7yGRnXg3p4QQVFELfjK60Q/tMwX7Zj3nGv+wbIM7ry1quPCTWEggIn79o9d5fdmhiEahipbgSG5gJSd3TbnnN/GLFBCJY1DsEWOw6/stBz0m57kCIvlHed+VWYVdhFcK2sdt4Rh6bZRTIaU0qe6f0b/XT/MQWdDWjMUPm+oHCV0NnNMUkcXPTM2JgooQ+M0hsSJ4n/HHAPXKnOL4EIKoaV9cBxN4d57z7E+uFz2e5/OvyCNqE/v4BJjv6iDnqjxid5M7N1p7NNLoft0ggU8k2jat/8ojm5J5mCEZyZ5tMlYVJp73Dj3yCWTfNuEdt7Q1a/nMya60FMYhNtaIojEQaNj+MooS7N4TJBVLnWI2ZFKRkFvNKwWwbVWVnCniljileejBEH/zA0yBR/kQe0reoX1L2HX+WeGy06zxkf7rQ5YOZ9nnPFP+h0=\"]" + }, + "cookies": [], + "headers": [ + { + "name": "x-powered-by", + "value": "Express" + }, + { + "name": "cache-control", + "value": "no-store" + }, + { + "name": "content-type", + "value": "application/json; charset=utf-8" + }, + { + "name": "etag", + "value": "W/\"1b47-XNnXc9MPNP1B8DNWFc5xVB0RlVc\"" + }, + { + "name": "vary", + "value": "Accept-Encoding" + }, + { + "name": "content-encoding", + "value": "br" + }, + { + "name": "date", + "value": "Tue, 19 May 2026 20:41:22 GMT" + }, + { + "name": "x-forgerock-transactionid", + "value": "44d74dc3-b2c9-496a-8007-4a65904be322" + }, + { + "name": "strict-transport-security", + "value": "max-age=31536000; includeSubDomains; preload;" + }, + { + "name": "x-robots-tag", + "value": "none" + }, + { + "name": "via", + "value": "1.1 google" + }, + { + "name": "alt-svc", + "value": "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" + }, + { + "name": "transfer-encoding", + "value": "chunked" + } + ], + "headersSize": 484, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2026-05-19T20:41:22.661Z", + "time": 148, + "timings": { + "blocked": -1, + "connect": -1, + "dns": -1, + "receive": 0, + "send": 0, + "ssl": -1, + "wait": 148 + } + } + ], + "pages": [], + "version": "1.2" + } +} diff --git a/test/e2e/mocks/iga_2664973160/scope-import_883436943/0_scope-name_file_3296311755/oauth2_393036114/recording.har b/test/e2e/mocks/iga_2664973160/scope-import_883436943/0_scope-name_file_3296311755/oauth2_393036114/recording.har new file mode 100644 index 000000000..37dc0faf8 --- /dev/null +++ b/test/e2e/mocks/iga_2664973160/scope-import_883436943/0_scope-name_file_3296311755/oauth2_393036114/recording.har @@ -0,0 +1,146 @@ +{ + "log": { + "_recordingName": "iga/scope-import/0_scope-name_file/oauth2", + "creator": { + "comment": "persister:fs", + "name": "Polly.JS", + "version": "6.0.6" + }, + "entries": [ + { + "_id": "ff75519a93ccab829f8ee8cf5e92b49f", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 1328, + "cookies": [], + "headers": [ + { + "name": "accept", + "value": "application/json, text/plain, */*" + }, + { + "name": "content-type", + "value": "application/x-www-form-urlencoded" + }, + { + "name": "user-agent", + "value": "@rockcarver/frodo-lib/4.0.0-39" + }, + { + "name": "x-forgerock-transactionid", + "value": "frodo-827a0c7d-f3d6-4b86-8cc0-18474b53ebd6" + }, + { + "name": "accept-api-version", + "value": "protocol=2.1,resource=1.0" + }, + { + "name": "content-length", + "value": "1328" + }, + { + "name": "accept-encoding", + "value": "gzip, compress, deflate, br" + }, + { + "name": "host", + "value": "openam-frodo-dev.forgeblocks.com" + } + ], + "headersSize": 453, + "httpVersion": "HTTP/1.1", + "method": "POST", + "postData": { + "mimeType": "application/x-www-form-urlencoded", + "params": [], + "text": "assertion=&client_id=service-account&grant_type=urn:ietf:params:oauth:grant-type:jwt-bearer&scope=fr:idc:custom-domain:* fr:idc:release:* fr:idc:sso-cookie:* fr:am:* fr:idc:esv:* fr:idc:content-security-policy:* fr:iga:* fr:idc:certificate:* fr:idm:* fr:idc:analytics:* fr:idc:cookie-domain:* fr:idc:promotion:*" + }, + "queryString": [], + "url": "https://openam-trivir-fairfax.forgeblocks.com/am/oauth2/access_token" + }, + "response": { + "bodySize": 1780, + "content": { + "mimeType": "application/json;charset=UTF-8", + "size": 1780, + "text": "{\"access_token\":\"\",\"scope\":\"fr:idc:custom-domain:* fr:idc:release:* fr:idc:sso-cookie:* fr:am:* fr:idc:esv:* fr:idc:content-security-policy:* fr:iga:* fr:idc:certificate:* fr:idm:* fr:idc:analytics:* fr:idc:cookie-domain:* fr:idc:promotion:*\",\"token_type\":\"Bearer\",\"expires_in\":899}" + }, + "cookies": [], + "headers": [ + { + "name": "x-frame-options", + "value": "SAMEORIGIN" + }, + { + "name": "content-security-policy-report-only", + "value": "frame-ancestors 'self'; script-src 'self' 'unsafe-eval' 'unsafe-inline'" + }, + { + "name": "x-content-type-options", + "value": "nosniff" + }, + { + "name": "cache-control", + "value": "no-store" + }, + { + "name": "pragma", + "value": "no-cache" + }, + { + "name": "content-type", + "value": "application/json;charset=UTF-8" + }, + { + "name": "content-length", + "value": "1780" + }, + { + "name": "date", + "value": "Tue, 19 May 2026 20:41:22 GMT" + }, + { + "name": "x-forgerock-transactionid", + "value": "frodo-827a0c7d-f3d6-4b86-8cc0-18474b53ebd6" + }, + { + "name": "strict-transport-security", + "value": "max-age=31536000; includeSubDomains; preload;" + }, + { + "name": "x-robots-tag", + "value": "none" + }, + { + "name": "via", + "value": "1.1 google" + }, + { + "name": "alt-svc", + "value": "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" + } + ], + "headersSize": 561, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2026-05-19T20:41:22.175Z", + "time": 135, + "timings": { + "blocked": -1, + "connect": -1, + "dns": -1, + "receive": 0, + "send": 0, + "ssl": -1, + "wait": 135 + } + } + ], + "pages": [], + "version": "1.2" + } +} diff --git a/test/e2e/mocks/iga_2664973160/scope-import_883436943/0_scope-name_file_3296311755/openidm_3290118515/recording.har b/test/e2e/mocks/iga_2664973160/scope-import_883436943/0_scope-name_file_3296311755/openidm_3290118515/recording.har new file mode 100644 index 000000000..735760df1 --- /dev/null +++ b/test/e2e/mocks/iga_2664973160/scope-import_883436943/0_scope-name_file_3296311755/openidm_3290118515/recording.har @@ -0,0 +1,310 @@ +{ + "log": { + "_recordingName": "iga/scope-import/0_scope-name_file/openidm", + "creator": { + "comment": "persister:fs", + "name": "Polly.JS", + "version": "6.0.6" + }, + "entries": [ + { + "_id": "9cb8561357870863838a9948da32d1e8", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "name": "accept", + "value": "application/json, text/plain, */*" + }, + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "user-agent", + "value": "@rockcarver/frodo-lib/4.0.0-39" + }, + { + "name": "x-forgerock-transactionid", + "value": "frodo-827a0c7d-f3d6-4b86-8cc0-18474b53ebd6" + }, + { + "name": "authorization", + "value": "Bearer " + }, + { + "name": "accept-encoding", + "value": "gzip, compress, deflate, br" + }, + { + "name": "host", + "value": "openam-frodo-dev.forgeblocks.com" + } + ], + "headersSize": 1938, + "httpVersion": "HTTP/1.1", + "method": "GET", + "queryString": [ + { + "name": "_fields", + "value": "*" + } + ], + "url": "https://openam-trivir-fairfax.forgeblocks.com/openidm/managed/svcacct/10d76629-78da-4265-868b-9a0cb68ebdb4?_fields=%2A" + }, + "response": { + "bodySize": 1401, + "content": { + "mimeType": "application/json;charset=utf-8", + "size": 1401, + "text": "{\"_id\":\"10d76629-78da-4265-868b-9a0cb68ebdb4\",\"_rev\":\"4b025e5d-c082-45f8-a3e9-0ac1db308dff-21339\",\"accountStatus\":\"active\",\"name\":\"Frodo-SA-1777919406717\",\"description\":\"dsevy@trivir.com's Frodo Service Account\",\"scopes\":[\"fr:am:*\",\"fr:idc:analytics:*\",\"fr:autoaccess:*\",\"fr:idc:certificate:*\",\"fr:idc:content-security-policy:*\",\"fr:idc:cookie-domain:*\",\"fr:idc:custom-domain:*\",\"fr:idc:dataset:*\",\"fr:idc:esv:*\",\"fr:idm:*\",\"fr:iga:*\",\"fr:idc:promotion:*\",\"fr:idc:release:*\",\"fr:idc:sso-cookie:*\"],\"jwks\":\"{\\\"keys\\\":[{\\\"kty\\\":\\\"RSA\\\",\\\"kid\\\":\\\"hshlr1hlp8bXdLNDrh3rESiHNsMS68c4XtbZX9i_Seg\\\",\\\"alg\\\":\\\"RS256\\\",\\\"e\\\":\\\"AQAB\\\",\\\"n\\\":\\\"owg6VJta_1o9VqyQk4Xs2kA_BDcyWEN1WMERqaJIFCbtecz_IMBp2G5m76dawbB9QvUsFvMqfJ2OGbaCcfC2o5lkxEu4nxdKLKYZ4-JTGsbPN6j-f9yr0LCjFMPd1BRxKQ98euSu5UZ0_gy9QN-eS4zB5zJsb8E7Y7FXsxG6vgd8dCqCSPjJeSmZhnQEeqJeysGlA5jMzQUP9Lvgm2aZp5wz7DXzF9lvsqRjm49H9wlERjy4KDmjlp5Rr3lz8ZXGgsaIdp18hUrPFKJP5qxkICfnbxdyK858A5puUypj1OAqrOtAnwjk5lMPOYzBWjWV72RPnOY3-6KAHo8uFXK3EH8AN8ErHxhpo-soV0e7-Z7gEnmt0rliY3j_-2AHA0Q5G1k52cGQ-dARGzgAQacpdnQv_pT0k83DGZPrpR6PqBRkyiJBD_PTvySZohxFgjpJfJmkYec7Pg40xri_LN1ozkLRBdQwL2zaQFYtq_VZC20a8Y7NpqpoLcvFIB9W2NS03qTokvId7gdSgdcVmpOo4n7OZZCouD6cyWyJ6Nj9uaxz-mw4Mdzhpd8cclSV_gXeWMBBoW3dZ7zzkEFMWHBT2x9S8JAZor_aaGJ2MXOoNoHRg-q9shNhQ3h7U14MXfL7I9R4ixClZMOpxILa0VT0Vzm-h685xkXwa28WLSw21QU\\\"}]}\",\"maxCachingTime\":\"15\",\"maxIdleTime\":\"15\",\"maxSessionTime\":\"15\",\"quotaLimit\":\"5\"}" + }, + "cookies": [], + "headers": [ + { + "name": "date", + "value": "Tue, 19 May 2026 20:41:22 GMT" + }, + { + "name": "vary", + "value": "Origin" + }, + { + "name": "cache-control", + "value": "no-store" + }, + { + "name": "content-security-policy", + "value": "default-src 'none';frame-ancestors 'none';sandbox" + }, + { + "name": "content-type", + "value": "application/json;charset=utf-8" + }, + { + "name": "cross-origin-opener-policy", + "value": "same-origin" + }, + { + "name": "cross-origin-resource-policy", + "value": "same-origin" + }, + { + "name": "etag", + "value": "\"4b025e5d-c082-45f8-a3e9-0ac1db308dff-21339\"" + }, + { + "name": "expires", + "value": "0" + }, + { + "name": "pragma", + "value": "no-cache" + }, + { + "name": "x-content-type-options", + "value": "nosniff" + }, + { + "name": "x-frame-options", + "value": "DENY" + }, + { + "name": "content-length", + "value": "1401" + }, + { + "name": "x-forgerock-transactionid", + "value": "frodo-827a0c7d-f3d6-4b86-8cc0-18474b53ebd6" + }, + { + "name": "strict-transport-security", + "value": "max-age=31536000; includeSubDomains; preload;" + }, + { + "name": "x-robots-tag", + "value": "none" + }, + { + "name": "via", + "value": "1.1 google" + }, + { + "name": "alt-svc", + "value": "h3=\":443\"; ma=2592000" + } + ], + "headersSize": 658, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2026-05-19T20:41:22.360Z", + "time": 264, + "timings": { + "blocked": -1, + "connect": -1, + "dns": -1, + "receive": 0, + "send": 0, + "ssl": -1, + "wait": 264 + } + }, + { + "_id": "9cb8561357870863838a9948da32d1e8", + "_order": 1, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "name": "accept", + "value": "application/json, text/plain, */*" + }, + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "user-agent", + "value": "@rockcarver/frodo-lib/4.0.0-39" + }, + { + "name": "x-forgerock-transactionid", + "value": "frodo-827a0c7d-f3d6-4b86-8cc0-18474b53ebd6" + }, + { + "name": "authorization", + "value": "Bearer " + }, + { + "name": "accept-encoding", + "value": "gzip, compress, deflate, br" + }, + { + "name": "host", + "value": "openam-frodo-dev.forgeblocks.com" + } + ], + "headersSize": 1938, + "httpVersion": "HTTP/1.1", + "method": "GET", + "queryString": [ + { + "name": "_fields", + "value": "*" + } + ], + "url": "https://openam-trivir-fairfax.forgeblocks.com/openidm/managed/svcacct/10d76629-78da-4265-868b-9a0cb68ebdb4?_fields=%2A" + }, + "response": { + "bodySize": 1401, + "content": { + "mimeType": "application/json;charset=utf-8", + "size": 1401, + "text": "{\"_id\":\"10d76629-78da-4265-868b-9a0cb68ebdb4\",\"_rev\":\"4b025e5d-c082-45f8-a3e9-0ac1db308dff-21339\",\"accountStatus\":\"active\",\"name\":\"Frodo-SA-1777919406717\",\"description\":\"dsevy@trivir.com's Frodo Service Account\",\"scopes\":[\"fr:am:*\",\"fr:idc:analytics:*\",\"fr:autoaccess:*\",\"fr:idc:certificate:*\",\"fr:idc:content-security-policy:*\",\"fr:idc:cookie-domain:*\",\"fr:idc:custom-domain:*\",\"fr:idc:dataset:*\",\"fr:idc:esv:*\",\"fr:idm:*\",\"fr:iga:*\",\"fr:idc:promotion:*\",\"fr:idc:release:*\",\"fr:idc:sso-cookie:*\"],\"jwks\":\"{\\\"keys\\\":[{\\\"kty\\\":\\\"RSA\\\",\\\"kid\\\":\\\"hshlr1hlp8bXdLNDrh3rESiHNsMS68c4XtbZX9i_Seg\\\",\\\"alg\\\":\\\"RS256\\\",\\\"e\\\":\\\"AQAB\\\",\\\"n\\\":\\\"owg6VJta_1o9VqyQk4Xs2kA_BDcyWEN1WMERqaJIFCbtecz_IMBp2G5m76dawbB9QvUsFvMqfJ2OGbaCcfC2o5lkxEu4nxdKLKYZ4-JTGsbPN6j-f9yr0LCjFMPd1BRxKQ98euSu5UZ0_gy9QN-eS4zB5zJsb8E7Y7FXsxG6vgd8dCqCSPjJeSmZhnQEeqJeysGlA5jMzQUP9Lvgm2aZp5wz7DXzF9lvsqRjm49H9wlERjy4KDmjlp5Rr3lz8ZXGgsaIdp18hUrPFKJP5qxkICfnbxdyK858A5puUypj1OAqrOtAnwjk5lMPOYzBWjWV72RPnOY3-6KAHo8uFXK3EH8AN8ErHxhpo-soV0e7-Z7gEnmt0rliY3j_-2AHA0Q5G1k52cGQ-dARGzgAQacpdnQv_pT0k83DGZPrpR6PqBRkyiJBD_PTvySZohxFgjpJfJmkYec7Pg40xri_LN1ozkLRBdQwL2zaQFYtq_VZC20a8Y7NpqpoLcvFIB9W2NS03qTokvId7gdSgdcVmpOo4n7OZZCouD6cyWyJ6Nj9uaxz-mw4Mdzhpd8cclSV_gXeWMBBoW3dZ7zzkEFMWHBT2x9S8JAZor_aaGJ2MXOoNoHRg-q9shNhQ3h7U14MXfL7I9R4ixClZMOpxILa0VT0Vzm-h685xkXwa28WLSw21QU\\\"}]}\",\"maxCachingTime\":\"15\",\"maxIdleTime\":\"15\",\"maxSessionTime\":\"15\",\"quotaLimit\":\"5\"}" + }, + "cookies": [], + "headers": [ + { + "name": "date", + "value": "Tue, 19 May 2026 20:41:22 GMT" + }, + { + "name": "vary", + "value": "Origin" + }, + { + "name": "cache-control", + "value": "no-store" + }, + { + "name": "content-security-policy", + "value": "default-src 'none';frame-ancestors 'none';sandbox" + }, + { + "name": "content-type", + "value": "application/json;charset=utf-8" + }, + { + "name": "cross-origin-opener-policy", + "value": "same-origin" + }, + { + "name": "cross-origin-resource-policy", + "value": "same-origin" + }, + { + "name": "etag", + "value": "\"4b025e5d-c082-45f8-a3e9-0ac1db308dff-21339\"" + }, + { + "name": "expires", + "value": "0" + }, + { + "name": "pragma", + "value": "no-cache" + }, + { + "name": "x-content-type-options", + "value": "nosniff" + }, + { + "name": "x-frame-options", + "value": "DENY" + }, + { + "name": "content-length", + "value": "1401" + }, + { + "name": "x-forgerock-transactionid", + "value": "frodo-827a0c7d-f3d6-4b86-8cc0-18474b53ebd6" + }, + { + "name": "strict-transport-security", + "value": "max-age=31536000; includeSubDomains; preload;" + }, + { + "name": "x-robots-tag", + "value": "none" + }, + { + "name": "via", + "value": "1.1 google" + }, + { + "name": "alt-svc", + "value": "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" + } + ], + "headersSize": 683, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2026-05-19T20:41:22.543Z", + "time": 111, + "timings": { + "blocked": -1, + "connect": -1, + "dns": -1, + "receive": 0, + "send": 0, + "ssl": -1, + "wait": 111 + } + } + ], + "pages": [], + "version": "1.2" + } +} diff --git a/test/e2e/mocks/iga_2664973160/scope-list_1484915438/0_890022063/am_1076162899/recording.har b/test/e2e/mocks/iga_2664973160/scope-list_1484915438/0_890022063/am_1076162899/recording.har new file mode 100644 index 000000000..68bc7b0fb --- /dev/null +++ b/test/e2e/mocks/iga_2664973160/scope-list_1484915438/0_890022063/am_1076162899/recording.har @@ -0,0 +1,312 @@ +{ + "log": { + "_recordingName": "iga/scope-list/0/am", + "creator": { + "comment": "persister:fs", + "name": "Polly.JS", + "version": "6.0.6" + }, + "entries": [ + { + "_id": "ccd7a5defd0fdeaa986a2b54642d911a", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "name": "accept", + "value": "application/json, text/plain, */*" + }, + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "user-agent", + "value": "@rockcarver/frodo-lib/4.0.0-39" + }, + { + "name": "x-forgerock-transactionid", + "value": "frodo-6518cc95-2640-431f-a489-133f507f2c2d" + }, + { + "name": "accept-api-version", + "value": "resource=1.1" + }, + { + "name": "accept-encoding", + "value": "gzip, compress, deflate, br" + }, + { + "name": "host", + "value": "openam-frodo-dev.forgeblocks.com" + } + ], + "headersSize": 398, + "httpVersion": "HTTP/1.1", + "method": "GET", + "queryString": [], + "url": "https://openam-trivir-fairfax.forgeblocks.com/am/json/serverinfo/*" + }, + "response": { + "bodySize": 614, + "content": { + "mimeType": "application/json;charset=UTF-8", + "size": 614, + "text": "{\"_id\":\"*\",\"_rev\":\"959929574\",\"domains\":[],\"protectedUserAttributes\":[\"telephoneNumber\",\"mail\"],\"cookieName\":\"311468432e97f1f\",\"secureCookie\":true,\"forgotPassword\":\"false\",\"forgotUsername\":\"false\",\"kbaEnabled\":\"false\",\"selfRegistration\":\"false\",\"lang\":\"en-US\",\"successfulUserRegistrationDestination\":\"default\",\"socialImplementations\":[],\"referralsEnabled\":\"false\",\"zeroPageLogin\":{\"enabled\":false,\"refererWhitelist\":[],\"allowedWithoutReferer\":true},\"realm\":\"/\",\"xuiUserSessionValidationEnabled\":true,\"fileBasedConfiguration\":true,\"userIdAttributes\":[],\"cloudOnlyFeaturesEnabled\":true,\"oauth2AIAgentsEnabled\":false}" + }, + "cookies": [], + "headers": [ + { + "name": "x-frame-options", + "value": "SAMEORIGIN" + }, + { + "name": "content-security-policy-report-only", + "value": "frame-ancestors 'self'; script-src 'self' 'unsafe-eval' 'unsafe-inline'" + }, + { + "name": "x-content-type-options", + "value": "nosniff" + }, + { + "name": "cache-control", + "value": "no-store" + }, + { + "name": "content-api-version", + "value": "resource=1.1" + }, + { + "name": "content-security-policy", + "value": "default-src 'none';frame-ancestors 'none';sandbox" + }, + { + "name": "cross-origin-opener-policy", + "value": "same-origin" + }, + { + "name": "cross-origin-resource-policy", + "value": "same-origin" + }, + { + "name": "etag", + "value": "\"959929574\"" + }, + { + "name": "expires", + "value": "0" + }, + { + "name": "pragma", + "value": "no-cache" + }, + { + "name": "content-type", + "value": "application/json;charset=UTF-8" + }, + { + "name": "content-length", + "value": "614" + }, + { + "name": "date", + "value": "Tue, 19 May 2026 20:39:23 GMT" + }, + { + "name": "x-forgerock-transactionid", + "value": "frodo-6518cc95-2640-431f-a489-133f507f2c2d" + }, + { + "name": "strict-transport-security", + "value": "max-age=31536000; includeSubDomains; preload;" + }, + { + "name": "x-robots-tag", + "value": "none" + }, + { + "name": "via", + "value": "1.1 google" + }, + { + "name": "alt-svc", + "value": "h3=\":443\"; ma=2592000" + } + ], + "headersSize": 761, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2026-05-19T20:39:23.484Z", + "time": 183, + "timings": { + "blocked": -1, + "connect": -1, + "dns": -1, + "receive": 0, + "send": 0, + "ssl": -1, + "wait": 183 + } + }, + { + "_id": "6125d0328ad0dcaee55f73fd8b22ca14", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "name": "accept", + "value": "application/json, text/plain, */*" + }, + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "user-agent", + "value": "@rockcarver/frodo-lib/4.0.0-39" + }, + { + "name": "x-forgerock-transactionid", + "value": "frodo-6518cc95-2640-431f-a489-133f507f2c2d" + }, + { + "name": "accept-api-version", + "value": "resource=1.0" + }, + { + "name": "authorization", + "value": "Bearer " + }, + { + "name": "accept-encoding", + "value": "gzip, compress, deflate, br" + }, + { + "name": "host", + "value": "openam-frodo-dev.forgeblocks.com" + } + ], + "headersSize": 1926, + "httpVersion": "HTTP/1.1", + "method": "GET", + "queryString": [], + "url": "https://openam-trivir-fairfax.forgeblocks.com/am/json/serverinfo/version" + }, + "response": { + "bodySize": 274, + "content": { + "mimeType": "application/json;charset=UTF-8", + "size": 274, + "text": "{\"_id\":\"version\",\"_rev\":\"194838800\",\"version\":\"9.0.0-SNAPSHOT\",\"fullVersion\":\"ForgeRock Access Management 9.0.0-SNAPSHOT Build 500b736d5354dc1171d65a84ec4230d63a5a084e (2026-April-21 11:20)\",\"revision\":\"500b736d5354dc1171d65a84ec4230d63a5a084e\",\"date\":\"2026-April-21 11:20\"}" + }, + "cookies": [], + "headers": [ + { + "name": "x-frame-options", + "value": "SAMEORIGIN" + }, + { + "name": "content-security-policy-report-only", + "value": "frame-ancestors 'self'; script-src 'self' 'unsafe-eval' 'unsafe-inline'" + }, + { + "name": "x-content-type-options", + "value": "nosniff" + }, + { + "name": "cache-control", + "value": "no-store" + }, + { + "name": "content-api-version", + "value": "resource=1.0" + }, + { + "name": "content-security-policy", + "value": "default-src 'none';frame-ancestors 'none';sandbox" + }, + { + "name": "cross-origin-opener-policy", + "value": "same-origin" + }, + { + "name": "cross-origin-resource-policy", + "value": "same-origin" + }, + { + "name": "etag", + "value": "\"194838800\"" + }, + { + "name": "expires", + "value": "0" + }, + { + "name": "pragma", + "value": "no-cache" + }, + { + "name": "content-type", + "value": "application/json;charset=UTF-8" + }, + { + "name": "content-length", + "value": "274" + }, + { + "name": "date", + "value": "Tue, 19 May 2026 20:39:23 GMT" + }, + { + "name": "x-forgerock-transactionid", + "value": "frodo-6518cc95-2640-431f-a489-133f507f2c2d" + }, + { + "name": "strict-transport-security", + "value": "max-age=31536000; includeSubDomains; preload;" + }, + { + "name": "x-robots-tag", + "value": "none" + }, + { + "name": "via", + "value": "1.1 google" + }, + { + "name": "alt-svc", + "value": "h3=\":443\"; ma=2592000" + } + ], + "headersSize": 761, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2026-05-19T20:39:23.847Z", + "time": 127, + "timings": { + "blocked": -1, + "connect": -1, + "dns": -1, + "receive": 0, + "send": 0, + "ssl": -1, + "wait": 127 + } + } + ], + "pages": [], + "version": "1.2" + } +} diff --git a/test/e2e/mocks/iga_2664973160/scope-list_1484915438/0_890022063/environment_1072573434/recording.har b/test/e2e/mocks/iga_2664973160/scope-list_1484915438/0_890022063/environment_1072573434/recording.har new file mode 100644 index 000000000..7a33329d7 --- /dev/null +++ b/test/e2e/mocks/iga_2664973160/scope-list_1484915438/0_890022063/environment_1072573434/recording.har @@ -0,0 +1,125 @@ +{ + "log": { + "_recordingName": "iga/scope-list/0/environment", + "creator": { + "comment": "persister:fs", + "name": "Polly.JS", + "version": "6.0.6" + }, + "entries": [ + { + "_id": "ccc7ec61c2094114d7917814bb19b83b", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "name": "accept", + "value": "application/json, text/plain, */*" + }, + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "user-agent", + "value": "@rockcarver/frodo-lib/4.0.0-39" + }, + { + "name": "accept-api-version", + "value": "protocol=1.0,resource=1.0" + }, + { + "name": "authorization", + "value": "Bearer " + }, + { + "name": "accept-encoding", + "value": "gzip, compress, deflate, br" + }, + { + "name": "host", + "value": "openam-frodo-dev.forgeblocks.com" + } + ], + "headersSize": 1877, + "httpVersion": "HTTP/1.1", + "method": "GET", + "queryString": [], + "url": "https://openam-trivir-fairfax.forgeblocks.com/environment/scopes/service-accounts" + }, + "response": { + "bodySize": 1975, + "content": { + "mimeType": "application/json; charset=utf-8", + "size": 1975, + "text": "[{\"scope\":\"fr:am:*\",\"description\":\"All Access Management APIs\"},{\"scope\":\"fr:autoaccess:*\",\"description\":\"All Auto Access APIs\"},{\"scope\":\"fr:idc:analytics:*\",\"description\":\"All Analytics APIs\"},{\"scope\":\"fr:idc:certificate:*\",\"description\":\"All TLS certificate APIs\",\"childScopes\":[{\"scope\":\"fr:idc:certificate:read\",\"description\":\"Read TLS certificates\"}]},{\"scope\":\"fr:idc:content-security-policy:*\",\"description\":\"All content security policy APIs\",\"childScopes\":[{\"scope\":\"fr:idc:content-security-policy:read\",\"description\":\"Read content security policy\"}]},{\"scope\":\"fr:idc:cookie-domain:*\",\"description\":\"All cookie domain APIs\",\"childScopes\":[{\"scope\":\"fr:idc:cookie-domain:read\",\"description\":\"Read cookie domains\"}]},{\"scope\":\"fr:idc:custom-domain:*\",\"description\":\"All custom domain APIs\",\"childScopes\":[{\"scope\":\"fr:idc:custom-domain:read\",\"description\":\"Read custom domains\"}]},{\"scope\":\"fr:idc:dataset:*\",\"description\":\"All dataset deletion APIs\",\"childScopes\":[{\"scope\":\"fr:idc:dataset:read\",\"description\":\"Read dataset deletions\"}]},{\"scope\":\"fr:idc:esv:*\",\"description\":\"All ESV APIs\",\"childScopes\":[{\"scope\":\"fr:idc:esv:read\",\"description\":\"Read ESVs, excluding values of secrets\"},{\"scope\":\"fr:idc:esv:update\",\"description\":\"Create, modify, and delete ESVs\"},{\"scope\":\"fr:idc:esv:restart\",\"description\":\"Restart workloads that consume ESVs\"}]},{\"scope\":\"fr:idc:promotion:*\",\"description\":\"All configuration promotion APIs\",\"childScopes\":[{\"scope\":\"fr:idc:promotion:read\",\"description\":\"Read configuration promotion\"}]},{\"scope\":\"fr:idc:release:*\",\"description\":\"All product release APIs\",\"childScopes\":[{\"scope\":\"fr:idc:release:read\",\"description\":\"Read product release\"}]},{\"scope\":\"fr:idc:sso-cookie:*\",\"description\":\"All SSO cookie APIs\",\"childScopes\":[{\"scope\":\"fr:idc:sso-cookie:read\",\"description\":\"Read SSO cookie\"}]},{\"scope\":\"fr:idm:*\",\"description\":\"All Identity Management APIs\"},{\"scope\":\"fr:iga:*\",\"description\":\"All Identity Governance APIs\"}]" + }, + "cookies": [], + "headers": [ + { + "name": "x-frame-options", + "value": "SAMEORIGIN" + }, + { + "name": "content-type", + "value": "application/json; charset=utf-8" + }, + { + "name": "content-length", + "value": "1975" + }, + { + "name": "etag", + "value": "W/\"7b7-tIBWy/EinSCKaoNz4aU2iqiTmFc\"" + }, + { + "name": "date", + "value": "Tue, 19 May 2026 20:39:24 GMT" + }, + { + "name": "x-forgerock-transactionid", + "value": "d0f8d0dd-076c-4266-a367-7b531df13002" + }, + { + "name": "strict-transport-security", + "value": "max-age=31536000; includeSubDomains; preload;" + }, + { + "name": "x-robots-tag", + "value": "none" + }, + { + "name": "via", + "value": "1.1 google" + }, + { + "name": "alt-svc", + "value": "h3=\":443\"; ma=2592000" + } + ], + "headersSize": 388, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2026-05-19T20:39:23.978Z", + "time": 109, + "timings": { + "blocked": -1, + "connect": -1, + "dns": -1, + "receive": 0, + "send": 0, + "ssl": -1, + "wait": 109 + } + } + ], + "pages": [], + "version": "1.2" + } +} diff --git a/test/e2e/mocks/iga_2664973160/scope-list_1484915438/0_890022063/iga_2664973160/recording.har b/test/e2e/mocks/iga_2664973160/scope-list_1484915438/0_890022063/iga_2664973160/recording.har new file mode 100644 index 000000000..332d44d9b --- /dev/null +++ b/test/e2e/mocks/iga_2664973160/scope-list_1484915438/0_890022063/iga_2664973160/recording.har @@ -0,0 +1,147 @@ +{ + "log": { + "_recordingName": "iga/scope-list/0/iga", + "creator": { + "comment": "persister:fs", + "name": "Polly.JS", + "version": "6.0.6" + }, + "entries": [ + { + "_id": "af55958a3898b129bc68978def6db818", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "name": "accept", + "value": "application/json, text/plain, */*" + }, + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "user-agent", + "value": "@rockcarver/frodo-lib/4.0.0-39" + }, + { + "name": "authorization", + "value": "Bearer " + }, + { + "name": "accept-encoding", + "value": "gzip, compress, deflate, br" + }, + { + "name": "host", + "value": "openam-frodo-dev.forgeblocks.com" + } + ], + "headersSize": 1871, + "httpVersion": "HTTP/1.1", + "method": "GET", + "queryString": [ + { + "name": "_queryFilter", + "value": "true" + }, + { + "name": "_pageSize", + "value": "10000" + }, + { + "name": "_pagedResultsOffset", + "value": "0" + } + ], + "url": "https://openam-trivir-fairfax.forgeblocks.com/iga/governance/scope?_queryFilter=true&_pageSize=10000&_pagedResultsOffset=0" + }, + "response": { + "bodySize": 2027, + "content": { + "encoding": "base64", + "mimeType": "application/json; charset=utf-8", + "size": 2027, + "text": "[\"G0YbAORaavX6qvp1Qa0iRP0upOhC0Iy58yAv4PFOufTzc633Cx08tW1/uDeieJz8vf2PuSbTxkXwknWXMItnKeyuNTIhkgsme90H9Y35pYSVwZV2l3nAYbLmgvWvB6QN5Rt7HWWvsMKgPqYe9ytNeW9TGf/CuNcRSp1yuQxqMENJsIIIhmcnJIbAJSquAnorFIbkNXnGVEoWZqjhmWCFtFPHug+Mex2hVBzUB8zQ91uL9NFeUxllr7A+4NapwfqAXC6DGqwP2Busfz2g7uMU9zpCqR3WB5R66qOV+gQro2CJZbzCDPu6418v84BjJD3wAiv8MsIZjuP455hh/3dHhRVeBBzHDH2EceuwQoijvBDMMEI7AlZJCQ99zHBq9AIrn+GZRkhhBFgfIKFL+zgMghUEEwaZRu5/FmwVfOVyUV4bJpjVf8IMm3pXxXKT2nvn3Z9wHLO8kCTMQmYjhWIJBRMWlckRN0eE3lilN5JWBkdcw0tUKbnD+ijPBD6po4zLQSlkh3W0G80VK+z1xXVeCt0/a6GOHp2tk/8v4pMlIHu2g0QXindzL4Xuv3RqH8RIPT1PftwvJLtJNp4vi8hmIbnVwDFrWPdDTfD2f+4jDPq+7S+lRtK1fLD+jrzIeOWtNwMJSUV0/9ZCKuIptFLAboOvgWrqp3sZZ1gf0G85l7cWltbhmOGweVGzoZWqAn6qNcT2yBuVZplenOVCO+UUIZauWy5sMAu92exNZmg3k1BFltFZJnEzgTHJiEXH6feT3tzCpaNtIc1hmolRliTKQzk4d412tukI5gMr1ZwxjHDZnxZm/0XIyoX0xqDnK9AceUcDy19qyEGLdtbf27Kj4JL/tkR4i1fXCv3afqHFOMgGkrrQoqeS8qHgNR4YWzlfpGJWOS8M8SyDS+OZDhV9MIGmhVFNfbqXcUZLK1pNfJNa4MZkP/0cHLdgNSqbknQuOx8FrUA1dbyXcUY4RhInqfPThvkPO5UEByoyAcwuXGnnBHPiHEvnnHkf1hjn0qfSpzDBS7b9zTBqp5Ri6GQKqKza0Cs=\",\"K9EFnWxQUnqFVGd8CzXtz/8wBJHrFFoLrzqPOQyXYXyXv2tPYPWMyKqcyW5o7UaokgnotVEos08uKskUMTiagqiTvWc/hcuYvg7/0/RRGa925lSRiqIOU1BOjcuFK6+MZZo4ls41VzJIJ/TyTgdKHnW9+Y6oRvtsQiprFi4JLaS0mJnkqLxh6L0IKJO10jCenM40Yt/Sffrpk+2JdCZycOLk5aBVLhYrPTOCuwfi6JwZbfyDpInNwIWUNEPGOaHSQWIQxqHXTnubhBYxENqRF+ePwSjPaSM0tp58r+HSa6PsuX1RE73tbgN4oxNK0/AvDCBkRKe2SIY/YCYzwttrR6Y3/SbUWvLiIVglRaSw7hYKHmmWQJo2j+1w0BJQKBh+pFIaPLwENIaOtBWKbyj4puVmi+POeyceHEMzjGMDOWbhXbRSR0KTU0QVjEDHWEZjtJfOkVI8ksZ/6dSmrz/6ZvrZL5F0CiShul1ugkiMmMfgQ0TFY8CQhUIXMtMiKseywCpdvHVqUzg7Xc9nvIZGdeDenhBBUUQt+MrrRD+0zBftmPeca/7BsgzuvLWq48JNYSCAifv2j13l92aGIRqGKluBIbmAlJ3dNuec38YsUEIljUOwRY7Dr+y0HPSbnuQIi+Ud535VZhV2EVwrax23hGHptlFMhpTSp7p/Rv9dP8xBZ0NaMxQ+b6gcJXQ2c0xSRxc9MzYmCihD4zSGxInif8ccA9cqc4vgQgqhpX1wHE3h3nvPsT64XPZ7n86/II2oT+/gEmO/qIOeqPGJ3kzs3Wns00uh+3SCBTyTaNq3/yiObknmYIRnJnm0yVhUmnvcOPfIJZN824R23tDVr+czJrrQUxiE21oiiMRBo2P4yihLs3hMkFUudYjZkUpGQW80rBbBtVZWcKeKWOKV56MEQf/MDTIFH+RB7St6hfUvYdf5Z4bLTrPGR/utDlg5n2ec8U/6HQ==\"]" + }, + "cookies": [], + "headers": [ + { + "name": "x-powered-by", + "value": "Express" + }, + { + "name": "cache-control", + "value": "no-store" + }, + { + "name": "content-type", + "value": "application/json; charset=utf-8" + }, + { + "name": "etag", + "value": "W/\"1b47-XNnXc9MPNP1B8DNWFc5xVB0RlVc\"" + }, + { + "name": "vary", + "value": "Accept-Encoding" + }, + { + "name": "content-encoding", + "value": "br" + }, + { + "name": "date", + "value": "Tue, 19 May 2026 20:39:24 GMT" + }, + { + "name": "x-forgerock-transactionid", + "value": "18ea3ed7-0e34-492b-8417-f2b8006e1ad9" + }, + { + "name": "strict-transport-security", + "value": "max-age=31536000; includeSubDomains; preload;" + }, + { + "name": "x-robots-tag", + "value": "none" + }, + { + "name": "via", + "value": "1.1 google" + }, + { + "name": "alt-svc", + "value": "h3=\":443\"; ma=2592000" + }, + { + "name": "transfer-encoding", + "value": "chunked" + } + ], + "headersSize": 459, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2026-05-19T20:39:24.203Z", + "time": 156, + "timings": { + "blocked": -1, + "connect": -1, + "dns": -1, + "receive": 0, + "send": 0, + "ssl": -1, + "wait": 156 + } + } + ], + "pages": [], + "version": "1.2" + } +} diff --git a/test/e2e/mocks/iga_2664973160/scope-list_1484915438/0_890022063/oauth2_393036114/recording.har b/test/e2e/mocks/iga_2664973160/scope-list_1484915438/0_890022063/oauth2_393036114/recording.har new file mode 100644 index 000000000..92492b5f1 --- /dev/null +++ b/test/e2e/mocks/iga_2664973160/scope-list_1484915438/0_890022063/oauth2_393036114/recording.har @@ -0,0 +1,146 @@ +{ + "log": { + "_recordingName": "iga/scope-list/0/oauth2", + "creator": { + "comment": "persister:fs", + "name": "Polly.JS", + "version": "6.0.6" + }, + "entries": [ + { + "_id": "ff75519a93ccab829f8ee8cf5e92b49f", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 1328, + "cookies": [], + "headers": [ + { + "name": "accept", + "value": "application/json, text/plain, */*" + }, + { + "name": "content-type", + "value": "application/x-www-form-urlencoded" + }, + { + "name": "user-agent", + "value": "@rockcarver/frodo-lib/4.0.0-39" + }, + { + "name": "x-forgerock-transactionid", + "value": "frodo-6518cc95-2640-431f-a489-133f507f2c2d" + }, + { + "name": "accept-api-version", + "value": "protocol=2.1,resource=1.0" + }, + { + "name": "content-length", + "value": "1328" + }, + { + "name": "accept-encoding", + "value": "gzip, compress, deflate, br" + }, + { + "name": "host", + "value": "openam-frodo-dev.forgeblocks.com" + } + ], + "headersSize": 453, + "httpVersion": "HTTP/1.1", + "method": "POST", + "postData": { + "mimeType": "application/x-www-form-urlencoded", + "params": [], + "text": "assertion=&client_id=service-account&grant_type=urn:ietf:params:oauth:grant-type:jwt-bearer&scope=fr:idc:custom-domain:* fr:idc:release:* fr:idc:sso-cookie:* fr:am:* fr:idc:esv:* fr:idc:content-security-policy:* fr:iga:* fr:idc:certificate:* fr:idm:* fr:idc:analytics:* fr:idc:cookie-domain:* fr:idc:promotion:*" + }, + "queryString": [], + "url": "https://openam-trivir-fairfax.forgeblocks.com/am/oauth2/access_token" + }, + "response": { + "bodySize": 1780, + "content": { + "mimeType": "application/json;charset=UTF-8", + "size": 1780, + "text": "{\"access_token\":\"\",\"scope\":\"fr:idc:custom-domain:* fr:idc:release:* fr:idc:sso-cookie:* fr:am:* fr:idc:esv:* fr:idc:content-security-policy:* fr:iga:* fr:idc:certificate:* fr:idm:* fr:idc:analytics:* fr:idc:cookie-domain:* fr:idc:promotion:*\",\"token_type\":\"Bearer\",\"expires_in\":899}" + }, + "cookies": [], + "headers": [ + { + "name": "x-frame-options", + "value": "SAMEORIGIN" + }, + { + "name": "content-security-policy-report-only", + "value": "frame-ancestors 'self'; script-src 'self' 'unsafe-eval' 'unsafe-inline'" + }, + { + "name": "x-content-type-options", + "value": "nosniff" + }, + { + "name": "cache-control", + "value": "no-store" + }, + { + "name": "pragma", + "value": "no-cache" + }, + { + "name": "content-type", + "value": "application/json;charset=UTF-8" + }, + { + "name": "content-length", + "value": "1780" + }, + { + "name": "date", + "value": "Tue, 19 May 2026 20:39:23 GMT" + }, + { + "name": "x-forgerock-transactionid", + "value": "frodo-6518cc95-2640-431f-a489-133f507f2c2d" + }, + { + "name": "strict-transport-security", + "value": "max-age=31536000; includeSubDomains; preload;" + }, + { + "name": "x-robots-tag", + "value": "none" + }, + { + "name": "via", + "value": "1.1 google" + }, + { + "name": "alt-svc", + "value": "h3=\":443\"; ma=2592000" + } + ], + "headersSize": 536, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2026-05-19T20:39:23.682Z", + "time": 155, + "timings": { + "blocked": -1, + "connect": -1, + "dns": -1, + "receive": 0, + "send": 0, + "ssl": -1, + "wait": 155 + } + } + ], + "pages": [], + "version": "1.2" + } +} diff --git a/test/e2e/mocks/iga_2664973160/scope-list_1484915438/0_890022063/openidm_3290118515/recording.har b/test/e2e/mocks/iga_2664973160/scope-list_1484915438/0_890022063/openidm_3290118515/recording.har new file mode 100644 index 000000000..bd4ef8ea0 --- /dev/null +++ b/test/e2e/mocks/iga_2664973160/scope-list_1484915438/0_890022063/openidm_3290118515/recording.har @@ -0,0 +1,310 @@ +{ + "log": { + "_recordingName": "iga/scope-list/0/openidm", + "creator": { + "comment": "persister:fs", + "name": "Polly.JS", + "version": "6.0.6" + }, + "entries": [ + { + "_id": "9cb8561357870863838a9948da32d1e8", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "name": "accept", + "value": "application/json, text/plain, */*" + }, + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "user-agent", + "value": "@rockcarver/frodo-lib/4.0.0-39" + }, + { + "name": "x-forgerock-transactionid", + "value": "frodo-6518cc95-2640-431f-a489-133f507f2c2d" + }, + { + "name": "authorization", + "value": "Bearer " + }, + { + "name": "accept-encoding", + "value": "gzip, compress, deflate, br" + }, + { + "name": "host", + "value": "openam-frodo-dev.forgeblocks.com" + } + ], + "headersSize": 1938, + "httpVersion": "HTTP/1.1", + "method": "GET", + "queryString": [ + { + "name": "_fields", + "value": "*" + } + ], + "url": "https://openam-trivir-fairfax.forgeblocks.com/openidm/managed/svcacct/10d76629-78da-4265-868b-9a0cb68ebdb4?_fields=%2A" + }, + "response": { + "bodySize": 1401, + "content": { + "mimeType": "application/json;charset=utf-8", + "size": 1401, + "text": "{\"_id\":\"10d76629-78da-4265-868b-9a0cb68ebdb4\",\"_rev\":\"4b025e5d-c082-45f8-a3e9-0ac1db308dff-21339\",\"accountStatus\":\"active\",\"name\":\"Frodo-SA-1777919406717\",\"description\":\"dsevy@trivir.com's Frodo Service Account\",\"scopes\":[\"fr:am:*\",\"fr:idc:analytics:*\",\"fr:autoaccess:*\",\"fr:idc:certificate:*\",\"fr:idc:content-security-policy:*\",\"fr:idc:cookie-domain:*\",\"fr:idc:custom-domain:*\",\"fr:idc:dataset:*\",\"fr:idc:esv:*\",\"fr:idm:*\",\"fr:iga:*\",\"fr:idc:promotion:*\",\"fr:idc:release:*\",\"fr:idc:sso-cookie:*\"],\"jwks\":\"{\\\"keys\\\":[{\\\"kty\\\":\\\"RSA\\\",\\\"kid\\\":\\\"hshlr1hlp8bXdLNDrh3rESiHNsMS68c4XtbZX9i_Seg\\\",\\\"alg\\\":\\\"RS256\\\",\\\"e\\\":\\\"AQAB\\\",\\\"n\\\":\\\"owg6VJta_1o9VqyQk4Xs2kA_BDcyWEN1WMERqaJIFCbtecz_IMBp2G5m76dawbB9QvUsFvMqfJ2OGbaCcfC2o5lkxEu4nxdKLKYZ4-JTGsbPN6j-f9yr0LCjFMPd1BRxKQ98euSu5UZ0_gy9QN-eS4zB5zJsb8E7Y7FXsxG6vgd8dCqCSPjJeSmZhnQEeqJeysGlA5jMzQUP9Lvgm2aZp5wz7DXzF9lvsqRjm49H9wlERjy4KDmjlp5Rr3lz8ZXGgsaIdp18hUrPFKJP5qxkICfnbxdyK858A5puUypj1OAqrOtAnwjk5lMPOYzBWjWV72RPnOY3-6KAHo8uFXK3EH8AN8ErHxhpo-soV0e7-Z7gEnmt0rliY3j_-2AHA0Q5G1k52cGQ-dARGzgAQacpdnQv_pT0k83DGZPrpR6PqBRkyiJBD_PTvySZohxFgjpJfJmkYec7Pg40xri_LN1ozkLRBdQwL2zaQFYtq_VZC20a8Y7NpqpoLcvFIB9W2NS03qTokvId7gdSgdcVmpOo4n7OZZCouD6cyWyJ6Nj9uaxz-mw4Mdzhpd8cclSV_gXeWMBBoW3dZ7zzkEFMWHBT2x9S8JAZor_aaGJ2MXOoNoHRg-q9shNhQ3h7U14MXfL7I9R4ixClZMOpxILa0VT0Vzm-h685xkXwa28WLSw21QU\\\"}]}\",\"maxCachingTime\":\"15\",\"maxIdleTime\":\"15\",\"maxSessionTime\":\"15\",\"quotaLimit\":\"5\"}" + }, + "cookies": [], + "headers": [ + { + "name": "date", + "value": "Tue, 19 May 2026 20:39:24 GMT" + }, + { + "name": "vary", + "value": "Origin" + }, + { + "name": "cache-control", + "value": "no-store" + }, + { + "name": "content-security-policy", + "value": "default-src 'none';frame-ancestors 'none';sandbox" + }, + { + "name": "content-type", + "value": "application/json;charset=utf-8" + }, + { + "name": "cross-origin-opener-policy", + "value": "same-origin" + }, + { + "name": "cross-origin-resource-policy", + "value": "same-origin" + }, + { + "name": "etag", + "value": "\"4b025e5d-c082-45f8-a3e9-0ac1db308dff-21339\"" + }, + { + "name": "expires", + "value": "0" + }, + { + "name": "pragma", + "value": "no-cache" + }, + { + "name": "x-content-type-options", + "value": "nosniff" + }, + { + "name": "x-frame-options", + "value": "DENY" + }, + { + "name": "content-length", + "value": "1401" + }, + { + "name": "x-forgerock-transactionid", + "value": "frodo-6518cc95-2640-431f-a489-133f507f2c2d" + }, + { + "name": "strict-transport-security", + "value": "max-age=31536000; includeSubDomains; preload;" + }, + { + "name": "x-robots-tag", + "value": "none" + }, + { + "name": "via", + "value": "1.1 google" + }, + { + "name": "alt-svc", + "value": "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" + } + ], + "headersSize": 683, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2026-05-19T20:39:23.891Z", + "time": 187, + "timings": { + "blocked": -1, + "connect": -1, + "dns": -1, + "receive": 0, + "send": 0, + "ssl": -1, + "wait": 187 + } + }, + { + "_id": "9cb8561357870863838a9948da32d1e8", + "_order": 1, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "name": "accept", + "value": "application/json, text/plain, */*" + }, + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "user-agent", + "value": "@rockcarver/frodo-lib/4.0.0-39" + }, + { + "name": "x-forgerock-transactionid", + "value": "frodo-6518cc95-2640-431f-a489-133f507f2c2d" + }, + { + "name": "authorization", + "value": "Bearer " + }, + { + "name": "accept-encoding", + "value": "gzip, compress, deflate, br" + }, + { + "name": "host", + "value": "openam-frodo-dev.forgeblocks.com" + } + ], + "headersSize": 1938, + "httpVersion": "HTTP/1.1", + "method": "GET", + "queryString": [ + { + "name": "_fields", + "value": "*" + } + ], + "url": "https://openam-trivir-fairfax.forgeblocks.com/openidm/managed/svcacct/10d76629-78da-4265-868b-9a0cb68ebdb4?_fields=%2A" + }, + "response": { + "bodySize": 1401, + "content": { + "mimeType": "application/json;charset=utf-8", + "size": 1401, + "text": "{\"_id\":\"10d76629-78da-4265-868b-9a0cb68ebdb4\",\"_rev\":\"4b025e5d-c082-45f8-a3e9-0ac1db308dff-21339\",\"accountStatus\":\"active\",\"name\":\"Frodo-SA-1777919406717\",\"description\":\"dsevy@trivir.com's Frodo Service Account\",\"scopes\":[\"fr:am:*\",\"fr:idc:analytics:*\",\"fr:autoaccess:*\",\"fr:idc:certificate:*\",\"fr:idc:content-security-policy:*\",\"fr:idc:cookie-domain:*\",\"fr:idc:custom-domain:*\",\"fr:idc:dataset:*\",\"fr:idc:esv:*\",\"fr:idm:*\",\"fr:iga:*\",\"fr:idc:promotion:*\",\"fr:idc:release:*\",\"fr:idc:sso-cookie:*\"],\"jwks\":\"{\\\"keys\\\":[{\\\"kty\\\":\\\"RSA\\\",\\\"kid\\\":\\\"hshlr1hlp8bXdLNDrh3rESiHNsMS68c4XtbZX9i_Seg\\\",\\\"alg\\\":\\\"RS256\\\",\\\"e\\\":\\\"AQAB\\\",\\\"n\\\":\\\"owg6VJta_1o9VqyQk4Xs2kA_BDcyWEN1WMERqaJIFCbtecz_IMBp2G5m76dawbB9QvUsFvMqfJ2OGbaCcfC2o5lkxEu4nxdKLKYZ4-JTGsbPN6j-f9yr0LCjFMPd1BRxKQ98euSu5UZ0_gy9QN-eS4zB5zJsb8E7Y7FXsxG6vgd8dCqCSPjJeSmZhnQEeqJeysGlA5jMzQUP9Lvgm2aZp5wz7DXzF9lvsqRjm49H9wlERjy4KDmjlp5Rr3lz8ZXGgsaIdp18hUrPFKJP5qxkICfnbxdyK858A5puUypj1OAqrOtAnwjk5lMPOYzBWjWV72RPnOY3-6KAHo8uFXK3EH8AN8ErHxhpo-soV0e7-Z7gEnmt0rliY3j_-2AHA0Q5G1k52cGQ-dARGzgAQacpdnQv_pT0k83DGZPrpR6PqBRkyiJBD_PTvySZohxFgjpJfJmkYec7Pg40xri_LN1ozkLRBdQwL2zaQFYtq_VZC20a8Y7NpqpoLcvFIB9W2NS03qTokvId7gdSgdcVmpOo4n7OZZCouD6cyWyJ6Nj9uaxz-mw4Mdzhpd8cclSV_gXeWMBBoW3dZ7zzkEFMWHBT2x9S8JAZor_aaGJ2MXOoNoHRg-q9shNhQ3h7U14MXfL7I9R4ixClZMOpxILa0VT0Vzm-h685xkXwa28WLSw21QU\\\"}]}\",\"maxCachingTime\":\"15\",\"maxIdleTime\":\"15\",\"maxSessionTime\":\"15\",\"quotaLimit\":\"5\"}" + }, + "cookies": [], + "headers": [ + { + "name": "date", + "value": "Tue, 19 May 2026 20:39:24 GMT" + }, + { + "name": "vary", + "value": "Origin" + }, + { + "name": "cache-control", + "value": "no-store" + }, + { + "name": "content-security-policy", + "value": "default-src 'none';frame-ancestors 'none';sandbox" + }, + { + "name": "content-type", + "value": "application/json;charset=utf-8" + }, + { + "name": "cross-origin-opener-policy", + "value": "same-origin" + }, + { + "name": "cross-origin-resource-policy", + "value": "same-origin" + }, + { + "name": "etag", + "value": "\"4b025e5d-c082-45f8-a3e9-0ac1db308dff-21339\"" + }, + { + "name": "expires", + "value": "0" + }, + { + "name": "pragma", + "value": "no-cache" + }, + { + "name": "x-content-type-options", + "value": "nosniff" + }, + { + "name": "x-frame-options", + "value": "DENY" + }, + { + "name": "content-length", + "value": "1401" + }, + { + "name": "x-forgerock-transactionid", + "value": "frodo-6518cc95-2640-431f-a489-133f507f2c2d" + }, + { + "name": "strict-transport-security", + "value": "max-age=31536000; includeSubDomains; preload;" + }, + { + "name": "x-robots-tag", + "value": "none" + }, + { + "name": "via", + "value": "1.1 google" + }, + { + "name": "alt-svc", + "value": "h3=\":443\"; ma=2592000" + } + ], + "headersSize": 658, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2026-05-19T20:39:24.093Z", + "time": 101, + "timings": { + "blocked": -1, + "connect": -1, + "dns": -1, + "receive": 0, + "send": 0, + "ssl": -1, + "wait": 101 + } + } + ], + "pages": [], + "version": "1.2" + } +} diff --git a/test/e2e/mocks/iga_2664973160/scope-list_1484915438/0_l_2828241652/am_1076162899/recording.har b/test/e2e/mocks/iga_2664973160/scope-list_1484915438/0_l_2828241652/am_1076162899/recording.har new file mode 100644 index 000000000..e2e43ca0c --- /dev/null +++ b/test/e2e/mocks/iga_2664973160/scope-list_1484915438/0_l_2828241652/am_1076162899/recording.har @@ -0,0 +1,312 @@ +{ + "log": { + "_recordingName": "iga/scope-list/0_l/am", + "creator": { + "comment": "persister:fs", + "name": "Polly.JS", + "version": "6.0.6" + }, + "entries": [ + { + "_id": "ccd7a5defd0fdeaa986a2b54642d911a", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "name": "accept", + "value": "application/json, text/plain, */*" + }, + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "user-agent", + "value": "@rockcarver/frodo-lib/4.0.0-39" + }, + { + "name": "x-forgerock-transactionid", + "value": "frodo-f70a284a-5165-452f-9d0f-78edfe0c97ec" + }, + { + "name": "accept-api-version", + "value": "resource=1.1" + }, + { + "name": "accept-encoding", + "value": "gzip, compress, deflate, br" + }, + { + "name": "host", + "value": "openam-frodo-dev.forgeblocks.com" + } + ], + "headersSize": 398, + "httpVersion": "HTTP/1.1", + "method": "GET", + "queryString": [], + "url": "https://openam-trivir-fairfax.forgeblocks.com/am/json/serverinfo/*" + }, + "response": { + "bodySize": 614, + "content": { + "mimeType": "application/json;charset=UTF-8", + "size": 614, + "text": "{\"_id\":\"*\",\"_rev\":\"959929574\",\"domains\":[],\"protectedUserAttributes\":[\"telephoneNumber\",\"mail\"],\"cookieName\":\"311468432e97f1f\",\"secureCookie\":true,\"forgotPassword\":\"false\",\"forgotUsername\":\"false\",\"kbaEnabled\":\"false\",\"selfRegistration\":\"false\",\"lang\":\"en-US\",\"successfulUserRegistrationDestination\":\"default\",\"socialImplementations\":[],\"referralsEnabled\":\"false\",\"zeroPageLogin\":{\"enabled\":false,\"refererWhitelist\":[],\"allowedWithoutReferer\":true},\"realm\":\"/\",\"xuiUserSessionValidationEnabled\":true,\"fileBasedConfiguration\":true,\"userIdAttributes\":[],\"cloudOnlyFeaturesEnabled\":true,\"oauth2AIAgentsEnabled\":false}" + }, + "cookies": [], + "headers": [ + { + "name": "x-frame-options", + "value": "SAMEORIGIN" + }, + { + "name": "content-security-policy-report-only", + "value": "frame-ancestors 'self'; script-src 'self' 'unsafe-eval' 'unsafe-inline'" + }, + { + "name": "x-content-type-options", + "value": "nosniff" + }, + { + "name": "cache-control", + "value": "no-store" + }, + { + "name": "content-api-version", + "value": "resource=1.1" + }, + { + "name": "content-security-policy", + "value": "default-src 'none';frame-ancestors 'none';sandbox" + }, + { + "name": "cross-origin-opener-policy", + "value": "same-origin" + }, + { + "name": "cross-origin-resource-policy", + "value": "same-origin" + }, + { + "name": "etag", + "value": "\"959929574\"" + }, + { + "name": "expires", + "value": "0" + }, + { + "name": "pragma", + "value": "no-cache" + }, + { + "name": "content-type", + "value": "application/json;charset=UTF-8" + }, + { + "name": "content-length", + "value": "614" + }, + { + "name": "date", + "value": "Tue, 19 May 2026 20:39:58 GMT" + }, + { + "name": "x-forgerock-transactionid", + "value": "frodo-f70a284a-5165-452f-9d0f-78edfe0c97ec" + }, + { + "name": "strict-transport-security", + "value": "max-age=31536000; includeSubDomains; preload;" + }, + { + "name": "x-robots-tag", + "value": "none" + }, + { + "name": "via", + "value": "1.1 google" + }, + { + "name": "alt-svc", + "value": "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" + } + ], + "headersSize": 786, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2026-05-19T20:39:58.830Z", + "time": 181, + "timings": { + "blocked": -1, + "connect": -1, + "dns": -1, + "receive": 0, + "send": 0, + "ssl": -1, + "wait": 181 + } + }, + { + "_id": "6125d0328ad0dcaee55f73fd8b22ca14", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "name": "accept", + "value": "application/json, text/plain, */*" + }, + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "user-agent", + "value": "@rockcarver/frodo-lib/4.0.0-39" + }, + { + "name": "x-forgerock-transactionid", + "value": "frodo-f70a284a-5165-452f-9d0f-78edfe0c97ec" + }, + { + "name": "accept-api-version", + "value": "resource=1.0" + }, + { + "name": "authorization", + "value": "Bearer " + }, + { + "name": "accept-encoding", + "value": "gzip, compress, deflate, br" + }, + { + "name": "host", + "value": "openam-frodo-dev.forgeblocks.com" + } + ], + "headersSize": 1926, + "httpVersion": "HTTP/1.1", + "method": "GET", + "queryString": [], + "url": "https://openam-trivir-fairfax.forgeblocks.com/am/json/serverinfo/version" + }, + "response": { + "bodySize": 274, + "content": { + "mimeType": "application/json;charset=UTF-8", + "size": 274, + "text": "{\"_id\":\"version\",\"_rev\":\"194838800\",\"version\":\"9.0.0-SNAPSHOT\",\"fullVersion\":\"ForgeRock Access Management 9.0.0-SNAPSHOT Build 500b736d5354dc1171d65a84ec4230d63a5a084e (2026-April-21 11:20)\",\"revision\":\"500b736d5354dc1171d65a84ec4230d63a5a084e\",\"date\":\"2026-April-21 11:20\"}" + }, + "cookies": [], + "headers": [ + { + "name": "x-frame-options", + "value": "SAMEORIGIN" + }, + { + "name": "content-security-policy-report-only", + "value": "frame-ancestors 'self'; script-src 'self' 'unsafe-eval' 'unsafe-inline'" + }, + { + "name": "x-content-type-options", + "value": "nosniff" + }, + { + "name": "cache-control", + "value": "no-store" + }, + { + "name": "content-api-version", + "value": "resource=1.0" + }, + { + "name": "content-security-policy", + "value": "default-src 'none';frame-ancestors 'none';sandbox" + }, + { + "name": "cross-origin-opener-policy", + "value": "same-origin" + }, + { + "name": "cross-origin-resource-policy", + "value": "same-origin" + }, + { + "name": "etag", + "value": "\"194838800\"" + }, + { + "name": "expires", + "value": "0" + }, + { + "name": "pragma", + "value": "no-cache" + }, + { + "name": "content-type", + "value": "application/json;charset=UTF-8" + }, + { + "name": "content-length", + "value": "274" + }, + { + "name": "date", + "value": "Tue, 19 May 2026 20:39:59 GMT" + }, + { + "name": "x-forgerock-transactionid", + "value": "frodo-f70a284a-5165-452f-9d0f-78edfe0c97ec" + }, + { + "name": "strict-transport-security", + "value": "max-age=31536000; includeSubDomains; preload;" + }, + { + "name": "x-robots-tag", + "value": "none" + }, + { + "name": "via", + "value": "1.1 google" + }, + { + "name": "alt-svc", + "value": "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" + } + ], + "headersSize": 786, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2026-05-19T20:39:59.181Z", + "time": 108, + "timings": { + "blocked": -1, + "connect": -1, + "dns": -1, + "receive": 0, + "send": 0, + "ssl": -1, + "wait": 108 + } + } + ], + "pages": [], + "version": "1.2" + } +} diff --git a/test/e2e/mocks/iga_2664973160/scope-list_1484915438/0_l_2828241652/environment_1072573434/recording.har b/test/e2e/mocks/iga_2664973160/scope-list_1484915438/0_l_2828241652/environment_1072573434/recording.har new file mode 100644 index 000000000..c3e34bca9 --- /dev/null +++ b/test/e2e/mocks/iga_2664973160/scope-list_1484915438/0_l_2828241652/environment_1072573434/recording.har @@ -0,0 +1,125 @@ +{ + "log": { + "_recordingName": "iga/scope-list/0_l/environment", + "creator": { + "comment": "persister:fs", + "name": "Polly.JS", + "version": "6.0.6" + }, + "entries": [ + { + "_id": "ccc7ec61c2094114d7917814bb19b83b", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "name": "accept", + "value": "application/json, text/plain, */*" + }, + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "user-agent", + "value": "@rockcarver/frodo-lib/4.0.0-39" + }, + { + "name": "accept-api-version", + "value": "protocol=1.0,resource=1.0" + }, + { + "name": "authorization", + "value": "Bearer " + }, + { + "name": "accept-encoding", + "value": "gzip, compress, deflate, br" + }, + { + "name": "host", + "value": "openam-frodo-dev.forgeblocks.com" + } + ], + "headersSize": 1877, + "httpVersion": "HTTP/1.1", + "method": "GET", + "queryString": [], + "url": "https://openam-trivir-fairfax.forgeblocks.com/environment/scopes/service-accounts" + }, + "response": { + "bodySize": 1975, + "content": { + "mimeType": "application/json; charset=utf-8", + "size": 1975, + "text": "[{\"scope\":\"fr:am:*\",\"description\":\"All Access Management APIs\"},{\"scope\":\"fr:autoaccess:*\",\"description\":\"All Auto Access APIs\"},{\"scope\":\"fr:idc:analytics:*\",\"description\":\"All Analytics APIs\"},{\"scope\":\"fr:idc:certificate:*\",\"description\":\"All TLS certificate APIs\",\"childScopes\":[{\"scope\":\"fr:idc:certificate:read\",\"description\":\"Read TLS certificates\"}]},{\"scope\":\"fr:idc:content-security-policy:*\",\"description\":\"All content security policy APIs\",\"childScopes\":[{\"scope\":\"fr:idc:content-security-policy:read\",\"description\":\"Read content security policy\"}]},{\"scope\":\"fr:idc:cookie-domain:*\",\"description\":\"All cookie domain APIs\",\"childScopes\":[{\"scope\":\"fr:idc:cookie-domain:read\",\"description\":\"Read cookie domains\"}]},{\"scope\":\"fr:idc:custom-domain:*\",\"description\":\"All custom domain APIs\",\"childScopes\":[{\"scope\":\"fr:idc:custom-domain:read\",\"description\":\"Read custom domains\"}]},{\"scope\":\"fr:idc:dataset:*\",\"description\":\"All dataset deletion APIs\",\"childScopes\":[{\"scope\":\"fr:idc:dataset:read\",\"description\":\"Read dataset deletions\"}]},{\"scope\":\"fr:idc:esv:*\",\"description\":\"All ESV APIs\",\"childScopes\":[{\"scope\":\"fr:idc:esv:read\",\"description\":\"Read ESVs, excluding values of secrets\"},{\"scope\":\"fr:idc:esv:update\",\"description\":\"Create, modify, and delete ESVs\"},{\"scope\":\"fr:idc:esv:restart\",\"description\":\"Restart workloads that consume ESVs\"}]},{\"scope\":\"fr:idc:promotion:*\",\"description\":\"All configuration promotion APIs\",\"childScopes\":[{\"scope\":\"fr:idc:promotion:read\",\"description\":\"Read configuration promotion\"}]},{\"scope\":\"fr:idc:release:*\",\"description\":\"All product release APIs\",\"childScopes\":[{\"scope\":\"fr:idc:release:read\",\"description\":\"Read product release\"}]},{\"scope\":\"fr:idc:sso-cookie:*\",\"description\":\"All SSO cookie APIs\",\"childScopes\":[{\"scope\":\"fr:idc:sso-cookie:read\",\"description\":\"Read SSO cookie\"}]},{\"scope\":\"fr:idm:*\",\"description\":\"All Identity Management APIs\"},{\"scope\":\"fr:iga:*\",\"description\":\"All Identity Governance APIs\"}]" + }, + "cookies": [], + "headers": [ + { + "name": "x-frame-options", + "value": "SAMEORIGIN" + }, + { + "name": "content-type", + "value": "application/json; charset=utf-8" + }, + { + "name": "content-length", + "value": "1975" + }, + { + "name": "etag", + "value": "W/\"7b7-tIBWy/EinSCKaoNz4aU2iqiTmFc\"" + }, + { + "name": "date", + "value": "Tue, 19 May 2026 20:39:59 GMT" + }, + { + "name": "x-forgerock-transactionid", + "value": "6fa7629c-2716-4ae0-bfc9-8dcf444ca3e2" + }, + { + "name": "strict-transport-security", + "value": "max-age=31536000; includeSubDomains; preload;" + }, + { + "name": "x-robots-tag", + "value": "none" + }, + { + "name": "via", + "value": "1.1 google" + }, + { + "name": "alt-svc", + "value": "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" + } + ], + "headersSize": 413, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2026-05-19T20:39:59.295Z", + "time": 108, + "timings": { + "blocked": -1, + "connect": -1, + "dns": -1, + "receive": 0, + "send": 0, + "ssl": -1, + "wait": 108 + } + } + ], + "pages": [], + "version": "1.2" + } +} diff --git a/test/e2e/mocks/iga_2664973160/scope-list_1484915438/0_l_2828241652/iga_2664973160/recording.har b/test/e2e/mocks/iga_2664973160/scope-list_1484915438/0_l_2828241652/iga_2664973160/recording.har new file mode 100644 index 000000000..4b94218c4 --- /dev/null +++ b/test/e2e/mocks/iga_2664973160/scope-list_1484915438/0_l_2828241652/iga_2664973160/recording.har @@ -0,0 +1,147 @@ +{ + "log": { + "_recordingName": "iga/scope-list/0_l/iga", + "creator": { + "comment": "persister:fs", + "name": "Polly.JS", + "version": "6.0.6" + }, + "entries": [ + { + "_id": "af55958a3898b129bc68978def6db818", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "name": "accept", + "value": "application/json, text/plain, */*" + }, + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "user-agent", + "value": "@rockcarver/frodo-lib/4.0.0-39" + }, + { + "name": "authorization", + "value": "Bearer " + }, + { + "name": "accept-encoding", + "value": "gzip, compress, deflate, br" + }, + { + "name": "host", + "value": "openam-frodo-dev.forgeblocks.com" + } + ], + "headersSize": 1871, + "httpVersion": "HTTP/1.1", + "method": "GET", + "queryString": [ + { + "name": "_queryFilter", + "value": "true" + }, + { + "name": "_pageSize", + "value": "10000" + }, + { + "name": "_pagedResultsOffset", + "value": "0" + } + ], + "url": "https://openam-trivir-fairfax.forgeblocks.com/iga/governance/scope?_queryFilter=true&_pageSize=10000&_pagedResultsOffset=0" + }, + "response": { + "bodySize": 2027, + "content": { + "encoding": "base64", + "mimeType": "application/json; charset=utf-8", + "size": 2027, + "text": "[\"G0YbAORaavX6qvp1Qa0iRP0upOhC0Iy58yAv4PFOufTzc633Cx08tW1/uDeieJz8vf2PuSbTxkXwknWXMItnKeyuNTIhkgsme90H9Y35pYSVwZV2l3nAYbLmgvWvB6QN5Rt7HWWvsMKgPqYe9ytNeW9TGf/CuNcRSp1yuQxqMENJsIIIhmcnJIbAJSquAnorFIbkNXnGVEoWZqjhmWCFtFPHug+Mex2hVBzUB8zQ91uL9NFeUxllr7A+4NapwfqAXC6DGqwP2Busfz2g7uMU9zpCqR3WB5R66qOV+gQro2CJZbzCDPu6418v84BjJD3wAiv8MsIZjuP455hh/3dHhRVeBBzHDH2EceuwQoijvBDMMEI7AlZJCQ99zHBq9AIrn+GZRkhhBFgfIKFL+zgMghUEEwaZRu5/FmwVfOVyUV4bJpjVf8IMm3pXxXKT2nvn3Z9wHLO8kCTMQmYjhWIJBRMWlckRN0eE3lilN5JWBkdcw0tUKbnD+ijPBD6po4zLQSlkh3W0G80VK+z1xXVeCt0/a6GOHp2tk/8v4pMlIHu2g0QXindzL4Xuv3RqH8RIPT1PftwvJLtJNp4vi8hmIbnVwDFrWPdDTfD2f+4jDPq+7S+lRtK1fLD+jrzIeOWtNwMJSUV0/9ZCKuIptFLAboOvgWrqp3sZZ1gf0G85l7cWltbhmOGweVGzoZWqAn6qNcT2yBuVZplenOVCO+UUIZauWy5sMAu92exNZmg3k1BFltFZJnEzgTHJiEXH6feT3tzCpaNtIc1hmolRliTKQzk4d412tukI5gMr1ZwxjHDZnxZm/0XIyoX0xqDnK9AceUcDy19qyEGLdtbf27Kj4JL/tkR4i1fXCv3afqHFOMgGkrrQoqeS8qHgNR4YWzlfpGJWOS8M8SyDS+OZDhV9MIGmhVFNfbqXcUZLK1pNfJNa4MZkP/0cHLdgNSqbknQuOx8FrUA1dbyXcUY4RhInqfPThvkPO5UEByoyAcwuXGnnBHPiHEvnnHkf1hjn0qfSpzDBS7b9zTBqp5Ri6GQKqKza0Csr0QWdbFBSeoVUZ3wLNe3P/zAEkesUWguvOo85DJdhfJe/a09g9YzIqpzJbmjtRqiSCei1USizTy4qyRQxOJqCqJO9Zz+Fy5i+Dv/T9FEZr3bmVJGKog5TUE6Ny4Urr4w=\",\"ZZo4ls41VzJIJ/TyTgdKHnW9+Y6oRvtsQiprFi4JLaS0mJnkqLxh6L0IKJO10jCenM40Yt/Sffrpk+2JdCZycOLk5aBVLhYrPTOCuwfi6JwZbfyDpInNwIWUNEPGOaHSQWIQxqHXTnubhBYxENqRF+ePwSjPaSM0tp58r+HSa6PsuX1RE73tbgN4oxNK0/AvDCBkRKe2SIY/YCYzwttrR6Y3/SbUWvLiIVglRaSw7hYKHmmWQJo2j+1w0BJQKBh+pFIaPLwENIaOtBWKbyj4puVmi+POeyceHEMzjGMDOWbhXbRSR0KTU0QVjEDHWEZjtJfOkVI8ksZ/6dSmrz/6ZvrZL5F0CiShul1ugkiMmMfgQ0TFY8CQhUIXMtMiKseywCpdvHVqUzg7Xc9nvIZGdeDenhBBUUQt+MrrRD+0zBftmPeca/7BsgzuvLWq48JNYSCAifv2j13l92aGIRqGKluBIbmAlJ3dNuec38YsUEIljUOwRY7Dr+y0HPSbnuQIi+Ud535VZhV2EVwrax23hGHptlFMhpTSp7p/Rv9dP8xBZ0NaMxQ+b6gcJXQ2c0xSRxc9MzYmCihD4zSGxInif8ccA9cqc4vgQgqhpX1wHE3h3nvPsT64XPZ7n86/II2oT+/gEmO/qIOeqPGJ3kzs3Wns00uh+3SCBTyTaNq3/yiObknmYIRnJnm0yVhUmnvcOPfIJZN824R23tDVr+czJrrQUxiE21oiiMRBo2P4yihLs3hMkFUudYjZkUpGQW80rBbBtVZWcKeKWOKV56MEQf/MDTIFH+RB7St6hfUvYdf5Z4bLTrPGR/utDlg5n2ec8U/6HQ==\"]" + }, + "cookies": [], + "headers": [ + { + "name": "x-powered-by", + "value": "Express" + }, + { + "name": "cache-control", + "value": "no-store" + }, + { + "name": "content-type", + "value": "application/json; charset=utf-8" + }, + { + "name": "etag", + "value": "W/\"1b47-XNnXc9MPNP1B8DNWFc5xVB0RlVc\"" + }, + { + "name": "vary", + "value": "Accept-Encoding" + }, + { + "name": "content-encoding", + "value": "br" + }, + { + "name": "date", + "value": "Tue, 19 May 2026 20:39:59 GMT" + }, + { + "name": "x-forgerock-transactionid", + "value": "f64fd656-6365-43d8-aef7-7a3a1df8c84c" + }, + { + "name": "strict-transport-security", + "value": "max-age=31536000; includeSubDomains; preload;" + }, + { + "name": "x-robots-tag", + "value": "none" + }, + { + "name": "via", + "value": "1.1 google" + }, + { + "name": "alt-svc", + "value": "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" + }, + { + "name": "transfer-encoding", + "value": "chunked" + } + ], + "headersSize": 484, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2026-05-19T20:39:59.511Z", + "time": 160, + "timings": { + "blocked": -1, + "connect": -1, + "dns": -1, + "receive": 0, + "send": 0, + "ssl": -1, + "wait": 160 + } + } + ], + "pages": [], + "version": "1.2" + } +} diff --git a/test/e2e/mocks/iga_2664973160/scope-list_1484915438/0_l_2828241652/oauth2_393036114/recording.har b/test/e2e/mocks/iga_2664973160/scope-list_1484915438/0_l_2828241652/oauth2_393036114/recording.har new file mode 100644 index 000000000..4b1c7857c --- /dev/null +++ b/test/e2e/mocks/iga_2664973160/scope-list_1484915438/0_l_2828241652/oauth2_393036114/recording.har @@ -0,0 +1,146 @@ +{ + "log": { + "_recordingName": "iga/scope-list/0_l/oauth2", + "creator": { + "comment": "persister:fs", + "name": "Polly.JS", + "version": "6.0.6" + }, + "entries": [ + { + "_id": "ff75519a93ccab829f8ee8cf5e92b49f", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 1328, + "cookies": [], + "headers": [ + { + "name": "accept", + "value": "application/json, text/plain, */*" + }, + { + "name": "content-type", + "value": "application/x-www-form-urlencoded" + }, + { + "name": "user-agent", + "value": "@rockcarver/frodo-lib/4.0.0-39" + }, + { + "name": "x-forgerock-transactionid", + "value": "frodo-f70a284a-5165-452f-9d0f-78edfe0c97ec" + }, + { + "name": "accept-api-version", + "value": "protocol=2.1,resource=1.0" + }, + { + "name": "content-length", + "value": "1328" + }, + { + "name": "accept-encoding", + "value": "gzip, compress, deflate, br" + }, + { + "name": "host", + "value": "openam-frodo-dev.forgeblocks.com" + } + ], + "headersSize": 453, + "httpVersion": "HTTP/1.1", + "method": "POST", + "postData": { + "mimeType": "application/x-www-form-urlencoded", + "params": [], + "text": "assertion=&client_id=service-account&grant_type=urn:ietf:params:oauth:grant-type:jwt-bearer&scope=fr:idc:custom-domain:* fr:idc:release:* fr:idc:sso-cookie:* fr:am:* fr:idc:esv:* fr:idc:content-security-policy:* fr:iga:* fr:idc:certificate:* fr:idm:* fr:idc:analytics:* fr:idc:cookie-domain:* fr:idc:promotion:*" + }, + "queryString": [], + "url": "https://openam-trivir-fairfax.forgeblocks.com/am/oauth2/access_token" + }, + "response": { + "bodySize": 1780, + "content": { + "mimeType": "application/json;charset=UTF-8", + "size": 1780, + "text": "{\"access_token\":\"\",\"scope\":\"fr:idc:custom-domain:* fr:idc:release:* fr:idc:sso-cookie:* fr:am:* fr:idc:esv:* fr:idc:content-security-policy:* fr:iga:* fr:idc:certificate:* fr:idm:* fr:idc:analytics:* fr:idc:cookie-domain:* fr:idc:promotion:*\",\"token_type\":\"Bearer\",\"expires_in\":899}" + }, + "cookies": [], + "headers": [ + { + "name": "x-frame-options", + "value": "SAMEORIGIN" + }, + { + "name": "content-security-policy-report-only", + "value": "frame-ancestors 'self'; script-src 'self' 'unsafe-eval' 'unsafe-inline'" + }, + { + "name": "x-content-type-options", + "value": "nosniff" + }, + { + "name": "cache-control", + "value": "no-store" + }, + { + "name": "pragma", + "value": "no-cache" + }, + { + "name": "content-type", + "value": "application/json;charset=UTF-8" + }, + { + "name": "content-length", + "value": "1780" + }, + { + "name": "date", + "value": "Tue, 19 May 2026 20:39:59 GMT" + }, + { + "name": "x-forgerock-transactionid", + "value": "frodo-f70a284a-5165-452f-9d0f-78edfe0c97ec" + }, + { + "name": "strict-transport-security", + "value": "max-age=31536000; includeSubDomains; preload;" + }, + { + "name": "x-robots-tag", + "value": "none" + }, + { + "name": "via", + "value": "1.1 google" + }, + { + "name": "alt-svc", + "value": "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" + } + ], + "headersSize": 561, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2026-05-19T20:39:59.033Z", + "time": 141, + "timings": { + "blocked": -1, + "connect": -1, + "dns": -1, + "receive": 0, + "send": 0, + "ssl": -1, + "wait": 141 + } + } + ], + "pages": [], + "version": "1.2" + } +} diff --git a/test/e2e/mocks/iga_2664973160/scope-list_1484915438/0_l_2828241652/openidm_3290118515/recording.har b/test/e2e/mocks/iga_2664973160/scope-list_1484915438/0_l_2828241652/openidm_3290118515/recording.har new file mode 100644 index 000000000..2e2511d7c --- /dev/null +++ b/test/e2e/mocks/iga_2664973160/scope-list_1484915438/0_l_2828241652/openidm_3290118515/recording.har @@ -0,0 +1,310 @@ +{ + "log": { + "_recordingName": "iga/scope-list/0_l/openidm", + "creator": { + "comment": "persister:fs", + "name": "Polly.JS", + "version": "6.0.6" + }, + "entries": [ + { + "_id": "9cb8561357870863838a9948da32d1e8", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "name": "accept", + "value": "application/json, text/plain, */*" + }, + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "user-agent", + "value": "@rockcarver/frodo-lib/4.0.0-39" + }, + { + "name": "x-forgerock-transactionid", + "value": "frodo-f70a284a-5165-452f-9d0f-78edfe0c97ec" + }, + { + "name": "authorization", + "value": "Bearer " + }, + { + "name": "accept-encoding", + "value": "gzip, compress, deflate, br" + }, + { + "name": "host", + "value": "openam-frodo-dev.forgeblocks.com" + } + ], + "headersSize": 1938, + "httpVersion": "HTTP/1.1", + "method": "GET", + "queryString": [ + { + "name": "_fields", + "value": "*" + } + ], + "url": "https://openam-trivir-fairfax.forgeblocks.com/openidm/managed/svcacct/10d76629-78da-4265-868b-9a0cb68ebdb4?_fields=%2A" + }, + "response": { + "bodySize": 1401, + "content": { + "mimeType": "application/json;charset=utf-8", + "size": 1401, + "text": "{\"_id\":\"10d76629-78da-4265-868b-9a0cb68ebdb4\",\"_rev\":\"4b025e5d-c082-45f8-a3e9-0ac1db308dff-21339\",\"accountStatus\":\"active\",\"name\":\"Frodo-SA-1777919406717\",\"description\":\"dsevy@trivir.com's Frodo Service Account\",\"scopes\":[\"fr:am:*\",\"fr:idc:analytics:*\",\"fr:autoaccess:*\",\"fr:idc:certificate:*\",\"fr:idc:content-security-policy:*\",\"fr:idc:cookie-domain:*\",\"fr:idc:custom-domain:*\",\"fr:idc:dataset:*\",\"fr:idc:esv:*\",\"fr:idm:*\",\"fr:iga:*\",\"fr:idc:promotion:*\",\"fr:idc:release:*\",\"fr:idc:sso-cookie:*\"],\"jwks\":\"{\\\"keys\\\":[{\\\"kty\\\":\\\"RSA\\\",\\\"kid\\\":\\\"hshlr1hlp8bXdLNDrh3rESiHNsMS68c4XtbZX9i_Seg\\\",\\\"alg\\\":\\\"RS256\\\",\\\"e\\\":\\\"AQAB\\\",\\\"n\\\":\\\"owg6VJta_1o9VqyQk4Xs2kA_BDcyWEN1WMERqaJIFCbtecz_IMBp2G5m76dawbB9QvUsFvMqfJ2OGbaCcfC2o5lkxEu4nxdKLKYZ4-JTGsbPN6j-f9yr0LCjFMPd1BRxKQ98euSu5UZ0_gy9QN-eS4zB5zJsb8E7Y7FXsxG6vgd8dCqCSPjJeSmZhnQEeqJeysGlA5jMzQUP9Lvgm2aZp5wz7DXzF9lvsqRjm49H9wlERjy4KDmjlp5Rr3lz8ZXGgsaIdp18hUrPFKJP5qxkICfnbxdyK858A5puUypj1OAqrOtAnwjk5lMPOYzBWjWV72RPnOY3-6KAHo8uFXK3EH8AN8ErHxhpo-soV0e7-Z7gEnmt0rliY3j_-2AHA0Q5G1k52cGQ-dARGzgAQacpdnQv_pT0k83DGZPrpR6PqBRkyiJBD_PTvySZohxFgjpJfJmkYec7Pg40xri_LN1ozkLRBdQwL2zaQFYtq_VZC20a8Y7NpqpoLcvFIB9W2NS03qTokvId7gdSgdcVmpOo4n7OZZCouD6cyWyJ6Nj9uaxz-mw4Mdzhpd8cclSV_gXeWMBBoW3dZ7zzkEFMWHBT2x9S8JAZor_aaGJ2MXOoNoHRg-q9shNhQ3h7U14MXfL7I9R4ixClZMOpxILa0VT0Vzm-h685xkXwa28WLSw21QU\\\"}]}\",\"maxCachingTime\":\"15\",\"maxIdleTime\":\"15\",\"maxSessionTime\":\"15\",\"quotaLimit\":\"5\"}" + }, + "cookies": [], + "headers": [ + { + "name": "date", + "value": "Tue, 19 May 2026 20:39:59 GMT" + }, + { + "name": "vary", + "value": "Origin" + }, + { + "name": "cache-control", + "value": "no-store" + }, + { + "name": "content-security-policy", + "value": "default-src 'none';frame-ancestors 'none';sandbox" + }, + { + "name": "content-type", + "value": "application/json;charset=utf-8" + }, + { + "name": "cross-origin-opener-policy", + "value": "same-origin" + }, + { + "name": "cross-origin-resource-policy", + "value": "same-origin" + }, + { + "name": "etag", + "value": "\"4b025e5d-c082-45f8-a3e9-0ac1db308dff-21339\"" + }, + { + "name": "expires", + "value": "0" + }, + { + "name": "pragma", + "value": "no-cache" + }, + { + "name": "x-content-type-options", + "value": "nosniff" + }, + { + "name": "x-frame-options", + "value": "DENY" + }, + { + "name": "content-length", + "value": "1401" + }, + { + "name": "x-forgerock-transactionid", + "value": "frodo-f70a284a-5165-452f-9d0f-78edfe0c97ec" + }, + { + "name": "strict-transport-security", + "value": "max-age=31536000; includeSubDomains; preload;" + }, + { + "name": "x-robots-tag", + "value": "none" + }, + { + "name": "via", + "value": "1.1 google" + }, + { + "name": "alt-svc", + "value": "h3=\":443\"; ma=2592000" + } + ], + "headersSize": 658, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2026-05-19T20:39:59.230Z", + "time": 203, + "timings": { + "blocked": -1, + "connect": -1, + "dns": -1, + "receive": 0, + "send": 0, + "ssl": -1, + "wait": 203 + } + }, + { + "_id": "9cb8561357870863838a9948da32d1e8", + "_order": 1, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "name": "accept", + "value": "application/json, text/plain, */*" + }, + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "user-agent", + "value": "@rockcarver/frodo-lib/4.0.0-39" + }, + { + "name": "x-forgerock-transactionid", + "value": "frodo-f70a284a-5165-452f-9d0f-78edfe0c97ec" + }, + { + "name": "authorization", + "value": "Bearer " + }, + { + "name": "accept-encoding", + "value": "gzip, compress, deflate, br" + }, + { + "name": "host", + "value": "openam-frodo-dev.forgeblocks.com" + } + ], + "headersSize": 1938, + "httpVersion": "HTTP/1.1", + "method": "GET", + "queryString": [ + { + "name": "_fields", + "value": "*" + } + ], + "url": "https://openam-trivir-fairfax.forgeblocks.com/openidm/managed/svcacct/10d76629-78da-4265-868b-9a0cb68ebdb4?_fields=%2A" + }, + "response": { + "bodySize": 1401, + "content": { + "mimeType": "application/json;charset=utf-8", + "size": 1401, + "text": "{\"_id\":\"10d76629-78da-4265-868b-9a0cb68ebdb4\",\"_rev\":\"4b025e5d-c082-45f8-a3e9-0ac1db308dff-21339\",\"accountStatus\":\"active\",\"name\":\"Frodo-SA-1777919406717\",\"description\":\"dsevy@trivir.com's Frodo Service Account\",\"scopes\":[\"fr:am:*\",\"fr:idc:analytics:*\",\"fr:autoaccess:*\",\"fr:idc:certificate:*\",\"fr:idc:content-security-policy:*\",\"fr:idc:cookie-domain:*\",\"fr:idc:custom-domain:*\",\"fr:idc:dataset:*\",\"fr:idc:esv:*\",\"fr:idm:*\",\"fr:iga:*\",\"fr:idc:promotion:*\",\"fr:idc:release:*\",\"fr:idc:sso-cookie:*\"],\"jwks\":\"{\\\"keys\\\":[{\\\"kty\\\":\\\"RSA\\\",\\\"kid\\\":\\\"hshlr1hlp8bXdLNDrh3rESiHNsMS68c4XtbZX9i_Seg\\\",\\\"alg\\\":\\\"RS256\\\",\\\"e\\\":\\\"AQAB\\\",\\\"n\\\":\\\"owg6VJta_1o9VqyQk4Xs2kA_BDcyWEN1WMERqaJIFCbtecz_IMBp2G5m76dawbB9QvUsFvMqfJ2OGbaCcfC2o5lkxEu4nxdKLKYZ4-JTGsbPN6j-f9yr0LCjFMPd1BRxKQ98euSu5UZ0_gy9QN-eS4zB5zJsb8E7Y7FXsxG6vgd8dCqCSPjJeSmZhnQEeqJeysGlA5jMzQUP9Lvgm2aZp5wz7DXzF9lvsqRjm49H9wlERjy4KDmjlp5Rr3lz8ZXGgsaIdp18hUrPFKJP5qxkICfnbxdyK858A5puUypj1OAqrOtAnwjk5lMPOYzBWjWV72RPnOY3-6KAHo8uFXK3EH8AN8ErHxhpo-soV0e7-Z7gEnmt0rliY3j_-2AHA0Q5G1k52cGQ-dARGzgAQacpdnQv_pT0k83DGZPrpR6PqBRkyiJBD_PTvySZohxFgjpJfJmkYec7Pg40xri_LN1ozkLRBdQwL2zaQFYtq_VZC20a8Y7NpqpoLcvFIB9W2NS03qTokvId7gdSgdcVmpOo4n7OZZCouD6cyWyJ6Nj9uaxz-mw4Mdzhpd8cclSV_gXeWMBBoW3dZ7zzkEFMWHBT2x9S8JAZor_aaGJ2MXOoNoHRg-q9shNhQ3h7U14MXfL7I9R4ixClZMOpxILa0VT0Vzm-h685xkXwa28WLSw21QU\\\"}]}\",\"maxCachingTime\":\"15\",\"maxIdleTime\":\"15\",\"maxSessionTime\":\"15\",\"quotaLimit\":\"5\"}" + }, + "cookies": [], + "headers": [ + { + "name": "date", + "value": "Tue, 19 May 2026 20:39:59 GMT" + }, + { + "name": "vary", + "value": "Origin" + }, + { + "name": "cache-control", + "value": "no-store" + }, + { + "name": "content-security-policy", + "value": "default-src 'none';frame-ancestors 'none';sandbox" + }, + { + "name": "content-type", + "value": "application/json;charset=utf-8" + }, + { + "name": "cross-origin-opener-policy", + "value": "same-origin" + }, + { + "name": "cross-origin-resource-policy", + "value": "same-origin" + }, + { + "name": "etag", + "value": "\"4b025e5d-c082-45f8-a3e9-0ac1db308dff-21339\"" + }, + { + "name": "expires", + "value": "0" + }, + { + "name": "pragma", + "value": "no-cache" + }, + { + "name": "x-content-type-options", + "value": "nosniff" + }, + { + "name": "x-frame-options", + "value": "DENY" + }, + { + "name": "content-length", + "value": "1401" + }, + { + "name": "x-forgerock-transactionid", + "value": "frodo-f70a284a-5165-452f-9d0f-78edfe0c97ec" + }, + { + "name": "strict-transport-security", + "value": "max-age=31536000; includeSubDomains; preload;" + }, + { + "name": "x-robots-tag", + "value": "none" + }, + { + "name": "via", + "value": "1.1 google" + }, + { + "name": "alt-svc", + "value": "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" + } + ], + "headersSize": 683, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2026-05-19T20:39:59.411Z", + "time": 94, + "timings": { + "blocked": -1, + "connect": -1, + "dns": -1, + "receive": 0, + "send": 0, + "ssl": -1, + "wait": 94 + } + } + ], + "pages": [], + "version": "1.2" + } +} diff --git a/test/e2e/mocks/iga_2664973160/scope-list_1484915438/0_long_276218670/am_1076162899/recording.har b/test/e2e/mocks/iga_2664973160/scope-list_1484915438/0_long_276218670/am_1076162899/recording.har new file mode 100644 index 000000000..b46a18e53 --- /dev/null +++ b/test/e2e/mocks/iga_2664973160/scope-list_1484915438/0_long_276218670/am_1076162899/recording.har @@ -0,0 +1,312 @@ +{ + "log": { + "_recordingName": "iga/scope-list/0_long/am", + "creator": { + "comment": "persister:fs", + "name": "Polly.JS", + "version": "6.0.6" + }, + "entries": [ + { + "_id": "ccd7a5defd0fdeaa986a2b54642d911a", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "name": "accept", + "value": "application/json, text/plain, */*" + }, + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "user-agent", + "value": "@rockcarver/frodo-lib/4.0.0-39" + }, + { + "name": "x-forgerock-transactionid", + "value": "frodo-ccf745ac-714b-466d-b014-653fdeed1fbb" + }, + { + "name": "accept-api-version", + "value": "resource=1.1" + }, + { + "name": "accept-encoding", + "value": "gzip, compress, deflate, br" + }, + { + "name": "host", + "value": "openam-frodo-dev.forgeblocks.com" + } + ], + "headersSize": 398, + "httpVersion": "HTTP/1.1", + "method": "GET", + "queryString": [], + "url": "https://openam-trivir-fairfax.forgeblocks.com/am/json/serverinfo/*" + }, + "response": { + "bodySize": 614, + "content": { + "mimeType": "application/json;charset=UTF-8", + "size": 614, + "text": "{\"_id\":\"*\",\"_rev\":\"959929574\",\"domains\":[],\"protectedUserAttributes\":[\"telephoneNumber\",\"mail\"],\"cookieName\":\"311468432e97f1f\",\"secureCookie\":true,\"forgotPassword\":\"false\",\"forgotUsername\":\"false\",\"kbaEnabled\":\"false\",\"selfRegistration\":\"false\",\"lang\":\"en-US\",\"successfulUserRegistrationDestination\":\"default\",\"socialImplementations\":[],\"referralsEnabled\":\"false\",\"zeroPageLogin\":{\"enabled\":false,\"refererWhitelist\":[],\"allowedWithoutReferer\":true},\"realm\":\"/\",\"xuiUserSessionValidationEnabled\":true,\"fileBasedConfiguration\":true,\"userIdAttributes\":[],\"cloudOnlyFeaturesEnabled\":true,\"oauth2AIAgentsEnabled\":false}" + }, + "cookies": [], + "headers": [ + { + "name": "x-frame-options", + "value": "SAMEORIGIN" + }, + { + "name": "content-security-policy-report-only", + "value": "frame-ancestors 'self'; script-src 'self' 'unsafe-eval' 'unsafe-inline'" + }, + { + "name": "x-content-type-options", + "value": "nosniff" + }, + { + "name": "cache-control", + "value": "no-store" + }, + { + "name": "content-api-version", + "value": "resource=1.1" + }, + { + "name": "content-security-policy", + "value": "default-src 'none';frame-ancestors 'none';sandbox" + }, + { + "name": "cross-origin-opener-policy", + "value": "same-origin" + }, + { + "name": "cross-origin-resource-policy", + "value": "same-origin" + }, + { + "name": "etag", + "value": "\"959929574\"" + }, + { + "name": "expires", + "value": "0" + }, + { + "name": "pragma", + "value": "no-cache" + }, + { + "name": "content-type", + "value": "application/json;charset=UTF-8" + }, + { + "name": "content-length", + "value": "614" + }, + { + "name": "date", + "value": "Tue, 19 May 2026 20:40:19 GMT" + }, + { + "name": "x-forgerock-transactionid", + "value": "frodo-ccf745ac-714b-466d-b014-653fdeed1fbb" + }, + { + "name": "strict-transport-security", + "value": "max-age=31536000; includeSubDomains; preload;" + }, + { + "name": "x-robots-tag", + "value": "none" + }, + { + "name": "via", + "value": "1.1 google" + }, + { + "name": "alt-svc", + "value": "h3=\":443\"; ma=2592000" + } + ], + "headersSize": 761, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2026-05-19T20:40:19.705Z", + "time": 165, + "timings": { + "blocked": -1, + "connect": -1, + "dns": -1, + "receive": 0, + "send": 0, + "ssl": -1, + "wait": 165 + } + }, + { + "_id": "6125d0328ad0dcaee55f73fd8b22ca14", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "name": "accept", + "value": "application/json, text/plain, */*" + }, + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "user-agent", + "value": "@rockcarver/frodo-lib/4.0.0-39" + }, + { + "name": "x-forgerock-transactionid", + "value": "frodo-ccf745ac-714b-466d-b014-653fdeed1fbb" + }, + { + "name": "accept-api-version", + "value": "resource=1.0" + }, + { + "name": "authorization", + "value": "Bearer " + }, + { + "name": "accept-encoding", + "value": "gzip, compress, deflate, br" + }, + { + "name": "host", + "value": "openam-frodo-dev.forgeblocks.com" + } + ], + "headersSize": 1926, + "httpVersion": "HTTP/1.1", + "method": "GET", + "queryString": [], + "url": "https://openam-trivir-fairfax.forgeblocks.com/am/json/serverinfo/version" + }, + "response": { + "bodySize": 274, + "content": { + "mimeType": "application/json;charset=UTF-8", + "size": 274, + "text": "{\"_id\":\"version\",\"_rev\":\"194838800\",\"version\":\"9.0.0-SNAPSHOT\",\"fullVersion\":\"ForgeRock Access Management 9.0.0-SNAPSHOT Build 500b736d5354dc1171d65a84ec4230d63a5a084e (2026-April-21 11:20)\",\"revision\":\"500b736d5354dc1171d65a84ec4230d63a5a084e\",\"date\":\"2026-April-21 11:20\"}" + }, + "cookies": [], + "headers": [ + { + "name": "x-frame-options", + "value": "SAMEORIGIN" + }, + { + "name": "content-security-policy-report-only", + "value": "frame-ancestors 'self'; script-src 'self' 'unsafe-eval' 'unsafe-inline'" + }, + { + "name": "x-content-type-options", + "value": "nosniff" + }, + { + "name": "cache-control", + "value": "no-store" + }, + { + "name": "content-api-version", + "value": "resource=1.0" + }, + { + "name": "content-security-policy", + "value": "default-src 'none';frame-ancestors 'none';sandbox" + }, + { + "name": "cross-origin-opener-policy", + "value": "same-origin" + }, + { + "name": "cross-origin-resource-policy", + "value": "same-origin" + }, + { + "name": "etag", + "value": "\"194838800\"" + }, + { + "name": "expires", + "value": "0" + }, + { + "name": "pragma", + "value": "no-cache" + }, + { + "name": "content-type", + "value": "application/json;charset=UTF-8" + }, + { + "name": "content-length", + "value": "274" + }, + { + "name": "date", + "value": "Tue, 19 May 2026 20:40:20 GMT" + }, + { + "name": "x-forgerock-transactionid", + "value": "frodo-ccf745ac-714b-466d-b014-653fdeed1fbb" + }, + { + "name": "strict-transport-security", + "value": "max-age=31536000; includeSubDomains; preload;" + }, + { + "name": "x-robots-tag", + "value": "none" + }, + { + "name": "via", + "value": "1.1 google" + }, + { + "name": "alt-svc", + "value": "h3=\":443\"; ma=2592000" + } + ], + "headersSize": 761, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2026-05-19T20:40:20.020Z", + "time": 114, + "timings": { + "blocked": -1, + "connect": -1, + "dns": -1, + "receive": 0, + "send": 0, + "ssl": -1, + "wait": 114 + } + } + ], + "pages": [], + "version": "1.2" + } +} diff --git a/test/e2e/mocks/iga_2664973160/scope-list_1484915438/0_long_276218670/environment_1072573434/recording.har b/test/e2e/mocks/iga_2664973160/scope-list_1484915438/0_long_276218670/environment_1072573434/recording.har new file mode 100644 index 000000000..182e2c72f --- /dev/null +++ b/test/e2e/mocks/iga_2664973160/scope-list_1484915438/0_long_276218670/environment_1072573434/recording.har @@ -0,0 +1,125 @@ +{ + "log": { + "_recordingName": "iga/scope-list/0_long/environment", + "creator": { + "comment": "persister:fs", + "name": "Polly.JS", + "version": "6.0.6" + }, + "entries": [ + { + "_id": "ccc7ec61c2094114d7917814bb19b83b", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "name": "accept", + "value": "application/json, text/plain, */*" + }, + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "user-agent", + "value": "@rockcarver/frodo-lib/4.0.0-39" + }, + { + "name": "accept-api-version", + "value": "protocol=1.0,resource=1.0" + }, + { + "name": "authorization", + "value": "Bearer " + }, + { + "name": "accept-encoding", + "value": "gzip, compress, deflate, br" + }, + { + "name": "host", + "value": "openam-frodo-dev.forgeblocks.com" + } + ], + "headersSize": 1877, + "httpVersion": "HTTP/1.1", + "method": "GET", + "queryString": [], + "url": "https://openam-trivir-fairfax.forgeblocks.com/environment/scopes/service-accounts" + }, + "response": { + "bodySize": 1975, + "content": { + "mimeType": "application/json; charset=utf-8", + "size": 1975, + "text": "[{\"scope\":\"fr:am:*\",\"description\":\"All Access Management APIs\"},{\"scope\":\"fr:autoaccess:*\",\"description\":\"All Auto Access APIs\"},{\"scope\":\"fr:idc:analytics:*\",\"description\":\"All Analytics APIs\"},{\"scope\":\"fr:idc:certificate:*\",\"description\":\"All TLS certificate APIs\",\"childScopes\":[{\"scope\":\"fr:idc:certificate:read\",\"description\":\"Read TLS certificates\"}]},{\"scope\":\"fr:idc:content-security-policy:*\",\"description\":\"All content security policy APIs\",\"childScopes\":[{\"scope\":\"fr:idc:content-security-policy:read\",\"description\":\"Read content security policy\"}]},{\"scope\":\"fr:idc:cookie-domain:*\",\"description\":\"All cookie domain APIs\",\"childScopes\":[{\"scope\":\"fr:idc:cookie-domain:read\",\"description\":\"Read cookie domains\"}]},{\"scope\":\"fr:idc:custom-domain:*\",\"description\":\"All custom domain APIs\",\"childScopes\":[{\"scope\":\"fr:idc:custom-domain:read\",\"description\":\"Read custom domains\"}]},{\"scope\":\"fr:idc:dataset:*\",\"description\":\"All dataset deletion APIs\",\"childScopes\":[{\"scope\":\"fr:idc:dataset:read\",\"description\":\"Read dataset deletions\"}]},{\"scope\":\"fr:idc:esv:*\",\"description\":\"All ESV APIs\",\"childScopes\":[{\"scope\":\"fr:idc:esv:read\",\"description\":\"Read ESVs, excluding values of secrets\"},{\"scope\":\"fr:idc:esv:update\",\"description\":\"Create, modify, and delete ESVs\"},{\"scope\":\"fr:idc:esv:restart\",\"description\":\"Restart workloads that consume ESVs\"}]},{\"scope\":\"fr:idc:promotion:*\",\"description\":\"All configuration promotion APIs\",\"childScopes\":[{\"scope\":\"fr:idc:promotion:read\",\"description\":\"Read configuration promotion\"}]},{\"scope\":\"fr:idc:release:*\",\"description\":\"All product release APIs\",\"childScopes\":[{\"scope\":\"fr:idc:release:read\",\"description\":\"Read product release\"}]},{\"scope\":\"fr:idc:sso-cookie:*\",\"description\":\"All SSO cookie APIs\",\"childScopes\":[{\"scope\":\"fr:idc:sso-cookie:read\",\"description\":\"Read SSO cookie\"}]},{\"scope\":\"fr:idm:*\",\"description\":\"All Identity Management APIs\"},{\"scope\":\"fr:iga:*\",\"description\":\"All Identity Governance APIs\"}]" + }, + "cookies": [], + "headers": [ + { + "name": "x-frame-options", + "value": "SAMEORIGIN" + }, + { + "name": "content-type", + "value": "application/json; charset=utf-8" + }, + { + "name": "content-length", + "value": "1975" + }, + { + "name": "etag", + "value": "W/\"7b7-tIBWy/EinSCKaoNz4aU2iqiTmFc\"" + }, + { + "name": "date", + "value": "Tue, 19 May 2026 20:40:20 GMT" + }, + { + "name": "x-forgerock-transactionid", + "value": "15c71d1d-8c10-4b10-af94-1fe354ffa2ee" + }, + { + "name": "strict-transport-security", + "value": "max-age=31536000; includeSubDomains; preload;" + }, + { + "name": "x-robots-tag", + "value": "none" + }, + { + "name": "via", + "value": "1.1 google" + }, + { + "name": "alt-svc", + "value": "h3=\":443\"; ma=2592000" + } + ], + "headersSize": 388, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2026-05-19T20:40:20.140Z", + "time": 103, + "timings": { + "blocked": -1, + "connect": -1, + "dns": -1, + "receive": 0, + "send": 0, + "ssl": -1, + "wait": 103 + } + } + ], + "pages": [], + "version": "1.2" + } +} diff --git a/test/e2e/mocks/iga_2664973160/scope-list_1484915438/0_long_276218670/iga_2664973160/recording.har b/test/e2e/mocks/iga_2664973160/scope-list_1484915438/0_long_276218670/iga_2664973160/recording.har new file mode 100644 index 000000000..0596355dc --- /dev/null +++ b/test/e2e/mocks/iga_2664973160/scope-list_1484915438/0_long_276218670/iga_2664973160/recording.har @@ -0,0 +1,147 @@ +{ + "log": { + "_recordingName": "iga/scope-list/0_long/iga", + "creator": { + "comment": "persister:fs", + "name": "Polly.JS", + "version": "6.0.6" + }, + "entries": [ + { + "_id": "af55958a3898b129bc68978def6db818", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "name": "accept", + "value": "application/json, text/plain, */*" + }, + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "user-agent", + "value": "@rockcarver/frodo-lib/4.0.0-39" + }, + { + "name": "authorization", + "value": "Bearer " + }, + { + "name": "accept-encoding", + "value": "gzip, compress, deflate, br" + }, + { + "name": "host", + "value": "openam-frodo-dev.forgeblocks.com" + } + ], + "headersSize": 1871, + "httpVersion": "HTTP/1.1", + "method": "GET", + "queryString": [ + { + "name": "_queryFilter", + "value": "true" + }, + { + "name": "_pageSize", + "value": "10000" + }, + { + "name": "_pagedResultsOffset", + "value": "0" + } + ], + "url": "https://openam-trivir-fairfax.forgeblocks.com/iga/governance/scope?_queryFilter=true&_pageSize=10000&_pagedResultsOffset=0" + }, + "response": { + "bodySize": 2023, + "content": { + "encoding": "base64", + "mimeType": "application/json; charset=utf-8", + "size": 2023, + "text": "[\"G0YbAORaavX6qvp1Qa0iRP0upOhC0Iy58yAv4PFOufTzc633Cx08tW1/uDeieJz8vf2PuSbTxkXwknWXMItnKeyuNTIhkgsme90H9Y35pYSVwZV2l3nAYbLmgvWvB6QN5Rt7HWWvsMKgPqYe9ytNeW9TGf/CuNcRSp1yuQxqMENJsIIIhmcnJIbAJSquAnorFIbkNXnGVEoWZqjhmWCFtFPHug+Mex2hVBzUB8zQ91uL9NFeUxllr7A+4NapwfqAXC6DGqwP2Busfz2g7uMU9zpCqR3WB5R66qOV+gQro2CJZbzCDPu6418v84BjJD3wAiv8MsIZjuP455hh/3dHhRVeBBzHDH2EceuwQoijvBDMMEI7AlZJCQ99zHBq9AIrn+GZRkhhBFgfIKFL+zgMghUEEwaZRu5/FmwVfOVyUV4bJpjVf8IMm3pXxXKT2nvn3Z9wHLO8kCTMQmYjhWIJBRMWlckRN0eE3lilN5JWBkdcw0tUKbnD+ijPBD6po4zLQSlkh3W0G80VK+z1xXVeCt0/a6GOHp2tk/8v4pMlIHu2g0QXindzL4Xuv3RqH8RIPT1PftwvJLtJNp4vi8hmIbnVwDFrWPdDTfD2f+4jDPq+7S+lRtK1fLD+jrzIeOWtNwMJSUV0/9ZCKuIptFLAboOvgWrqp3sZZ1gf0G85l7cWltbhmOGweVGzoZWqAn6qNcT2yBuVZplenOVCO+UUIZauWy5sMAu92exNZmg3k1BFltFZJnEzgTHJiEXH6feT3tzCpaNtIc1hmolRliTKQzk4d412tukI5gMr1ZwxjHDZnxZm/0XIyoX0xqDnK9AceUcDy19qyEGLdtbf27Kj4JL/tkR4i1fXCv3afqHFOMgGkrrQoqeS8qHgNR4YWzlfpGJWOS8M8SyDS+OZDhV9MIGmhVFNfbqXcUZLK1pNfJNa4MZkP/0cHLdgNSqbknQuOx8FrUA1dbyXcUY4RhInqfPThvkPO5UEByoyAcwuXGnnBHPiHEvnnHkf1hjn0qfSpzDBS7b9zTBqp5Ri6GQKqKza0Csr0QWdbFBSeoVUZ3wLNe3P/zAEkesUWguvOo85DJdhfJe/a09g9YzIqpzJbmjtRqiSCei1USizTy4qyRQxOJqCqJO9Zz+Fy5i+Dv/T9FEZr3bmVJGKog5TUE6Ny4Urr4xlmjiWzjVXMkgn9PJOB0oedb35jqhG+2xC\",\"KmsWLgktpLSYmeSovGHovQgok7XSMJ6czjRi39J9+umT7Yl0JnJw4uTloFUuFis9M4K7B+LonBlt/IOkic3AhZQ0Q8Y5odJBYhDGoddOe5uEFjEQ2pEX54/BKM9pIzS2nnyv4dJro+y5fVETve1uA3ijE0rT8C8MIGREp7ZIhj9gJjPC22tHpjf9JtRa8uIhWCVFpLDuFgoeaZZAmjaP7XDQElAoGH6kUho8vAQ0ho60FYpvKPim5WaL4857Jx4cQzOMYwM5ZuFdtFJHQpNTRBWMQMdYRmO0l86RUjySxn/p1KavP/pm+tkvkXQKJKG6XW6CSIyYx+BDRMVjwJCFQhcy0yIqx7LAKl28dWpTODtdz2e8hkZ14N6eEEFRRC34yutEP7TMF+2Y95xr/sGyDO68tarjwk1hIICJ+/aPXeX3ZoYhGoYqW4EhuYCUnd0255zfxixQQiWNQ7BFjsOv7LQc9Jue5AiL5R3nflVmFXYRXCtrHbeEYem2UUyGlNKnun9G/10/zEFnQ1ozFD5vqBwldDZzTFJHFz0zNiYKKEPjNIbEieJ/xxwD1ypzi+BCCqGlfXAcTeHee8+xPrhc9nufzr8gjahP7+ASY7+og56o8YneTOzdaezTS6H7dIIFPJNo2rf/KI5uSeZghGcmebTJWFSae9w498glk3zbhHbe0NWv5zMmutBTGITbWiKIxEGjY/jKKEuzeEyQVS51iNmRSkZBbzSsFsG1VlZwp4pY4pXnowRB/8wNMgUf5EHtK3qF9S9h1/lnhstOs8ZH+60OWDmfZ5zxT/od\"]" + }, + "cookies": [], + "headers": [ + { + "name": "x-powered-by", + "value": "Express" + }, + { + "name": "cache-control", + "value": "no-store" + }, + { + "name": "content-type", + "value": "application/json; charset=utf-8" + }, + { + "name": "etag", + "value": "W/\"1b47-XNnXc9MPNP1B8DNWFc5xVB0RlVc\"" + }, + { + "name": "vary", + "value": "Accept-Encoding" + }, + { + "name": "content-encoding", + "value": "br" + }, + { + "name": "date", + "value": "Tue, 19 May 2026 20:40:20 GMT" + }, + { + "name": "x-forgerock-transactionid", + "value": "60cb0f46-3cd7-41a9-ac40-965a903736b3" + }, + { + "name": "strict-transport-security", + "value": "max-age=31536000; includeSubDomains; preload;" + }, + { + "name": "x-robots-tag", + "value": "none" + }, + { + "name": "via", + "value": "1.1 google" + }, + { + "name": "alt-svc", + "value": "h3=\":443\"; ma=2592000" + }, + { + "name": "transfer-encoding", + "value": "chunked" + } + ], + "headersSize": 459, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2026-05-19T20:40:20.354Z", + "time": 272, + "timings": { + "blocked": -1, + "connect": -1, + "dns": -1, + "receive": 0, + "send": 0, + "ssl": -1, + "wait": 272 + } + } + ], + "pages": [], + "version": "1.2" + } +} diff --git a/test/e2e/mocks/iga_2664973160/scope-list_1484915438/0_long_276218670/oauth2_393036114/recording.har b/test/e2e/mocks/iga_2664973160/scope-list_1484915438/0_long_276218670/oauth2_393036114/recording.har new file mode 100644 index 000000000..d5ce05179 --- /dev/null +++ b/test/e2e/mocks/iga_2664973160/scope-list_1484915438/0_long_276218670/oauth2_393036114/recording.har @@ -0,0 +1,146 @@ +{ + "log": { + "_recordingName": "iga/scope-list/0_long/oauth2", + "creator": { + "comment": "persister:fs", + "name": "Polly.JS", + "version": "6.0.6" + }, + "entries": [ + { + "_id": "ff75519a93ccab829f8ee8cf5e92b49f", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 1328, + "cookies": [], + "headers": [ + { + "name": "accept", + "value": "application/json, text/plain, */*" + }, + { + "name": "content-type", + "value": "application/x-www-form-urlencoded" + }, + { + "name": "user-agent", + "value": "@rockcarver/frodo-lib/4.0.0-39" + }, + { + "name": "x-forgerock-transactionid", + "value": "frodo-ccf745ac-714b-466d-b014-653fdeed1fbb" + }, + { + "name": "accept-api-version", + "value": "protocol=2.1,resource=1.0" + }, + { + "name": "content-length", + "value": "1328" + }, + { + "name": "accept-encoding", + "value": "gzip, compress, deflate, br" + }, + { + "name": "host", + "value": "openam-frodo-dev.forgeblocks.com" + } + ], + "headersSize": 453, + "httpVersion": "HTTP/1.1", + "method": "POST", + "postData": { + "mimeType": "application/x-www-form-urlencoded", + "params": [], + "text": "assertion=&client_id=service-account&grant_type=urn:ietf:params:oauth:grant-type:jwt-bearer&scope=fr:idc:custom-domain:* fr:idc:release:* fr:idc:sso-cookie:* fr:am:* fr:idc:esv:* fr:idc:content-security-policy:* fr:iga:* fr:idc:certificate:* fr:idm:* fr:idc:analytics:* fr:idc:cookie-domain:* fr:idc:promotion:*" + }, + "queryString": [], + "url": "https://openam-trivir-fairfax.forgeblocks.com/am/oauth2/access_token" + }, + "response": { + "bodySize": 1780, + "content": { + "mimeType": "application/json;charset=UTF-8", + "size": 1780, + "text": "{\"access_token\":\"\",\"scope\":\"fr:idc:custom-domain:* fr:idc:release:* fr:idc:sso-cookie:* fr:am:* fr:idc:esv:* fr:idc:content-security-policy:* fr:iga:* fr:idc:certificate:* fr:idm:* fr:idc:analytics:* fr:idc:cookie-domain:* fr:idc:promotion:*\",\"token_type\":\"Bearer\",\"expires_in\":899}" + }, + "cookies": [], + "headers": [ + { + "name": "x-frame-options", + "value": "SAMEORIGIN" + }, + { + "name": "content-security-policy-report-only", + "value": "frame-ancestors 'self'; script-src 'self' 'unsafe-eval' 'unsafe-inline'" + }, + { + "name": "x-content-type-options", + "value": "nosniff" + }, + { + "name": "cache-control", + "value": "no-store" + }, + { + "name": "pragma", + "value": "no-cache" + }, + { + "name": "content-type", + "value": "application/json;charset=UTF-8" + }, + { + "name": "content-length", + "value": "1780" + }, + { + "name": "date", + "value": "Tue, 19 May 2026 20:40:19 GMT" + }, + { + "name": "x-forgerock-transactionid", + "value": "frodo-ccf745ac-714b-466d-b014-653fdeed1fbb" + }, + { + "name": "strict-transport-security", + "value": "max-age=31536000; includeSubDomains; preload;" + }, + { + "name": "x-robots-tag", + "value": "none" + }, + { + "name": "via", + "value": "1.1 google" + }, + { + "name": "alt-svc", + "value": "h3=\":443\"; ma=2592000" + } + ], + "headersSize": 536, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2026-05-19T20:40:19.884Z", + "time": 130, + "timings": { + "blocked": -1, + "connect": -1, + "dns": -1, + "receive": 0, + "send": 0, + "ssl": -1, + "wait": 130 + } + } + ], + "pages": [], + "version": "1.2" + } +} diff --git a/test/e2e/mocks/iga_2664973160/scope-list_1484915438/0_long_276218670/openidm_3290118515/recording.har b/test/e2e/mocks/iga_2664973160/scope-list_1484915438/0_long_276218670/openidm_3290118515/recording.har new file mode 100644 index 000000000..7e18bf9a4 --- /dev/null +++ b/test/e2e/mocks/iga_2664973160/scope-list_1484915438/0_long_276218670/openidm_3290118515/recording.har @@ -0,0 +1,310 @@ +{ + "log": { + "_recordingName": "iga/scope-list/0_long/openidm", + "creator": { + "comment": "persister:fs", + "name": "Polly.JS", + "version": "6.0.6" + }, + "entries": [ + { + "_id": "9cb8561357870863838a9948da32d1e8", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "name": "accept", + "value": "application/json, text/plain, */*" + }, + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "user-agent", + "value": "@rockcarver/frodo-lib/4.0.0-39" + }, + { + "name": "x-forgerock-transactionid", + "value": "frodo-ccf745ac-714b-466d-b014-653fdeed1fbb" + }, + { + "name": "authorization", + "value": "Bearer " + }, + { + "name": "accept-encoding", + "value": "gzip, compress, deflate, br" + }, + { + "name": "host", + "value": "openam-frodo-dev.forgeblocks.com" + } + ], + "headersSize": 1938, + "httpVersion": "HTTP/1.1", + "method": "GET", + "queryString": [ + { + "name": "_fields", + "value": "*" + } + ], + "url": "https://openam-trivir-fairfax.forgeblocks.com/openidm/managed/svcacct/10d76629-78da-4265-868b-9a0cb68ebdb4?_fields=%2A" + }, + "response": { + "bodySize": 1401, + "content": { + "mimeType": "application/json;charset=utf-8", + "size": 1401, + "text": "{\"_id\":\"10d76629-78da-4265-868b-9a0cb68ebdb4\",\"_rev\":\"4b025e5d-c082-45f8-a3e9-0ac1db308dff-21339\",\"accountStatus\":\"active\",\"name\":\"Frodo-SA-1777919406717\",\"description\":\"dsevy@trivir.com's Frodo Service Account\",\"scopes\":[\"fr:am:*\",\"fr:idc:analytics:*\",\"fr:autoaccess:*\",\"fr:idc:certificate:*\",\"fr:idc:content-security-policy:*\",\"fr:idc:cookie-domain:*\",\"fr:idc:custom-domain:*\",\"fr:idc:dataset:*\",\"fr:idc:esv:*\",\"fr:idm:*\",\"fr:iga:*\",\"fr:idc:promotion:*\",\"fr:idc:release:*\",\"fr:idc:sso-cookie:*\"],\"jwks\":\"{\\\"keys\\\":[{\\\"kty\\\":\\\"RSA\\\",\\\"kid\\\":\\\"hshlr1hlp8bXdLNDrh3rESiHNsMS68c4XtbZX9i_Seg\\\",\\\"alg\\\":\\\"RS256\\\",\\\"e\\\":\\\"AQAB\\\",\\\"n\\\":\\\"owg6VJta_1o9VqyQk4Xs2kA_BDcyWEN1WMERqaJIFCbtecz_IMBp2G5m76dawbB9QvUsFvMqfJ2OGbaCcfC2o5lkxEu4nxdKLKYZ4-JTGsbPN6j-f9yr0LCjFMPd1BRxKQ98euSu5UZ0_gy9QN-eS4zB5zJsb8E7Y7FXsxG6vgd8dCqCSPjJeSmZhnQEeqJeysGlA5jMzQUP9Lvgm2aZp5wz7DXzF9lvsqRjm49H9wlERjy4KDmjlp5Rr3lz8ZXGgsaIdp18hUrPFKJP5qxkICfnbxdyK858A5puUypj1OAqrOtAnwjk5lMPOYzBWjWV72RPnOY3-6KAHo8uFXK3EH8AN8ErHxhpo-soV0e7-Z7gEnmt0rliY3j_-2AHA0Q5G1k52cGQ-dARGzgAQacpdnQv_pT0k83DGZPrpR6PqBRkyiJBD_PTvySZohxFgjpJfJmkYec7Pg40xri_LN1ozkLRBdQwL2zaQFYtq_VZC20a8Y7NpqpoLcvFIB9W2NS03qTokvId7gdSgdcVmpOo4n7OZZCouD6cyWyJ6Nj9uaxz-mw4Mdzhpd8cclSV_gXeWMBBoW3dZ7zzkEFMWHBT2x9S8JAZor_aaGJ2MXOoNoHRg-q9shNhQ3h7U14MXfL7I9R4ixClZMOpxILa0VT0Vzm-h685xkXwa28WLSw21QU\\\"}]}\",\"maxCachingTime\":\"15\",\"maxIdleTime\":\"15\",\"maxSessionTime\":\"15\",\"quotaLimit\":\"5\"}" + }, + "cookies": [], + "headers": [ + { + "name": "date", + "value": "Tue, 19 May 2026 20:40:20 GMT" + }, + { + "name": "vary", + "value": "Origin" + }, + { + "name": "cache-control", + "value": "no-store" + }, + { + "name": "content-security-policy", + "value": "default-src 'none';frame-ancestors 'none';sandbox" + }, + { + "name": "content-type", + "value": "application/json;charset=utf-8" + }, + { + "name": "cross-origin-opener-policy", + "value": "same-origin" + }, + { + "name": "cross-origin-resource-policy", + "value": "same-origin" + }, + { + "name": "etag", + "value": "\"4b025e5d-c082-45f8-a3e9-0ac1db308dff-21339\"" + }, + { + "name": "expires", + "value": "0" + }, + { + "name": "pragma", + "value": "no-cache" + }, + { + "name": "x-content-type-options", + "value": "nosniff" + }, + { + "name": "x-frame-options", + "value": "DENY" + }, + { + "name": "content-length", + "value": "1401" + }, + { + "name": "x-forgerock-transactionid", + "value": "frodo-ccf745ac-714b-466d-b014-653fdeed1fbb" + }, + { + "name": "strict-transport-security", + "value": "max-age=31536000; includeSubDomains; preload;" + }, + { + "name": "x-robots-tag", + "value": "none" + }, + { + "name": "via", + "value": "1.1 google" + }, + { + "name": "alt-svc", + "value": "h3=\":443\"; ma=2592000" + } + ], + "headersSize": 658, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2026-05-19T20:40:20.056Z", + "time": 194, + "timings": { + "blocked": -1, + "connect": -1, + "dns": -1, + "receive": 0, + "send": 0, + "ssl": -1, + "wait": 194 + } + }, + { + "_id": "9cb8561357870863838a9948da32d1e8", + "_order": 1, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "name": "accept", + "value": "application/json, text/plain, */*" + }, + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "user-agent", + "value": "@rockcarver/frodo-lib/4.0.0-39" + }, + { + "name": "x-forgerock-transactionid", + "value": "frodo-ccf745ac-714b-466d-b014-653fdeed1fbb" + }, + { + "name": "authorization", + "value": "Bearer " + }, + { + "name": "accept-encoding", + "value": "gzip, compress, deflate, br" + }, + { + "name": "host", + "value": "openam-frodo-dev.forgeblocks.com" + } + ], + "headersSize": 1938, + "httpVersion": "HTTP/1.1", + "method": "GET", + "queryString": [ + { + "name": "_fields", + "value": "*" + } + ], + "url": "https://openam-trivir-fairfax.forgeblocks.com/openidm/managed/svcacct/10d76629-78da-4265-868b-9a0cb68ebdb4?_fields=%2A" + }, + "response": { + "bodySize": 1401, + "content": { + "mimeType": "application/json;charset=utf-8", + "size": 1401, + "text": "{\"_id\":\"10d76629-78da-4265-868b-9a0cb68ebdb4\",\"_rev\":\"4b025e5d-c082-45f8-a3e9-0ac1db308dff-21339\",\"accountStatus\":\"active\",\"name\":\"Frodo-SA-1777919406717\",\"description\":\"dsevy@trivir.com's Frodo Service Account\",\"scopes\":[\"fr:am:*\",\"fr:idc:analytics:*\",\"fr:autoaccess:*\",\"fr:idc:certificate:*\",\"fr:idc:content-security-policy:*\",\"fr:idc:cookie-domain:*\",\"fr:idc:custom-domain:*\",\"fr:idc:dataset:*\",\"fr:idc:esv:*\",\"fr:idm:*\",\"fr:iga:*\",\"fr:idc:promotion:*\",\"fr:idc:release:*\",\"fr:idc:sso-cookie:*\"],\"jwks\":\"{\\\"keys\\\":[{\\\"kty\\\":\\\"RSA\\\",\\\"kid\\\":\\\"hshlr1hlp8bXdLNDrh3rESiHNsMS68c4XtbZX9i_Seg\\\",\\\"alg\\\":\\\"RS256\\\",\\\"e\\\":\\\"AQAB\\\",\\\"n\\\":\\\"owg6VJta_1o9VqyQk4Xs2kA_BDcyWEN1WMERqaJIFCbtecz_IMBp2G5m76dawbB9QvUsFvMqfJ2OGbaCcfC2o5lkxEu4nxdKLKYZ4-JTGsbPN6j-f9yr0LCjFMPd1BRxKQ98euSu5UZ0_gy9QN-eS4zB5zJsb8E7Y7FXsxG6vgd8dCqCSPjJeSmZhnQEeqJeysGlA5jMzQUP9Lvgm2aZp5wz7DXzF9lvsqRjm49H9wlERjy4KDmjlp5Rr3lz8ZXGgsaIdp18hUrPFKJP5qxkICfnbxdyK858A5puUypj1OAqrOtAnwjk5lMPOYzBWjWV72RPnOY3-6KAHo8uFXK3EH8AN8ErHxhpo-soV0e7-Z7gEnmt0rliY3j_-2AHA0Q5G1k52cGQ-dARGzgAQacpdnQv_pT0k83DGZPrpR6PqBRkyiJBD_PTvySZohxFgjpJfJmkYec7Pg40xri_LN1ozkLRBdQwL2zaQFYtq_VZC20a8Y7NpqpoLcvFIB9W2NS03qTokvId7gdSgdcVmpOo4n7OZZCouD6cyWyJ6Nj9uaxz-mw4Mdzhpd8cclSV_gXeWMBBoW3dZ7zzkEFMWHBT2x9S8JAZor_aaGJ2MXOoNoHRg-q9shNhQ3h7U14MXfL7I9R4ixClZMOpxILa0VT0Vzm-h685xkXwa28WLSw21QU\\\"}]}\",\"maxCachingTime\":\"15\",\"maxIdleTime\":\"15\",\"maxSessionTime\":\"15\",\"quotaLimit\":\"5\"}" + }, + "cookies": [], + "headers": [ + { + "name": "date", + "value": "Tue, 19 May 2026 20:40:20 GMT" + }, + { + "name": "vary", + "value": "Origin" + }, + { + "name": "cache-control", + "value": "no-store" + }, + { + "name": "content-security-policy", + "value": "default-src 'none';frame-ancestors 'none';sandbox" + }, + { + "name": "content-type", + "value": "application/json;charset=utf-8" + }, + { + "name": "cross-origin-opener-policy", + "value": "same-origin" + }, + { + "name": "cross-origin-resource-policy", + "value": "same-origin" + }, + { + "name": "etag", + "value": "\"4b025e5d-c082-45f8-a3e9-0ac1db308dff-21339\"" + }, + { + "name": "expires", + "value": "0" + }, + { + "name": "pragma", + "value": "no-cache" + }, + { + "name": "x-content-type-options", + "value": "nosniff" + }, + { + "name": "x-frame-options", + "value": "DENY" + }, + { + "name": "content-length", + "value": "1401" + }, + { + "name": "x-forgerock-transactionid", + "value": "frodo-ccf745ac-714b-466d-b014-653fdeed1fbb" + }, + { + "name": "strict-transport-security", + "value": "max-age=31536000; includeSubDomains; preload;" + }, + { + "name": "x-robots-tag", + "value": "none" + }, + { + "name": "via", + "value": "1.1 google" + }, + { + "name": "alt-svc", + "value": "h3=\":443\"; ma=2592000" + } + ], + "headersSize": 658, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2026-05-19T20:40:20.252Z", + "time": 97, + "timings": { + "blocked": -1, + "connect": -1, + "dns": -1, + "receive": 0, + "send": 0, + "ssl": -1, + "wait": 97 + } + } + ], + "pages": [], + "version": "1.2" + } +}