@burgan-tech/morph-idm-runtime 0.0.6 → 0.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/burgan-tech-morph-idm-runtime-0.0.7.tgz +0 -0
- package/morph-idm/Workflows/test-consent-selection/test-flow-with-sub.json +1 -1
- package/morph-idm/Workflows/test-consent-selection/test-flow-with-two-sub.json +2 -2
- package/morph-idm/Workflows/token-process/token/src/mappings/StateMintTokenCallSessionStartMapping.csx +8 -33
- package/morph-idm/Workflows/token-process/token/token.json +1 -1
- package/package.json +1 -1
- package/vnext.config.json +1 -1
- package/burgan-tech-morph-idm-runtime-0.0.6.tgz +0 -0
- package/morph-idm/Extensions/.gitkeep +0 -0
- package/morph-idm/Functions/.gitkeep +0 -0
- package/morph-idm/Functions/cert/check/execute/check.http +0 -106
- package/morph-idm/Functions/consent/check-consent-role/execute/check-consent-role.http +0 -89
- package/morph-idm/Functions/consent/get-consent-role-position/execute/get-consent-role-position.http +0 -55
- package/morph-idm/Functions/consent/get-position/execute/get-position.http +0 -38
- package/morph-idm/Functions/consent/get-roles/execute/get-roles.http +0 -163
- package/morph-idm/Functions/customer/execute/get-customer-by-filter.http +0 -126
- package/morph-idm/Functions/customer-management/get-firms-by-filter/execute/get-firms-by-filter.http +0 -91
- package/morph-idm/Functions/device-process/forget/execute/forget.http +0 -141
- package/morph-idm/Functions/device-process/get-device-list/execute/get-device-list.http +0 -138
- package/morph-idm/Functions/device-process/get-device-token-by-reference/execute/get-device-token-by-reference.http +0 -349
- package/morph-idm/Functions/device-process/remove/execute/remove.http +0 -150
- package/morph-idm/Functions/device-process/save/execute/save.http +0 -124
- package/morph-idm/Functions/feature-management/dynamic-config/.gitkeep +0 -0
- package/morph-idm/Functions/feature-management/dynamic-config/execute/dynamic-config-reads.http +0 -43
- package/morph-idm/Functions/feature-management/feature-flag/.gitkeep +0 -0
- package/morph-idm/Functions/feature-management/feature-management-ops/.gitkeep +0 -0
- package/morph-idm/Functions/organization/get-organizations/execute/get-organizations.http +0 -30
- package/morph-idm/Functions/organization/get-position-levels-by-scope/execute/get-position-levels-by-scope.http +0 -54
- package/morph-idm/Functions/session/logout/execute/logout.http +0 -91
- package/morph-idm/Functions/sso-flow/execute/session-transfer.http +0 -132
- package/morph-idm/Functions/sso-flow/token-direct/execute/token-direct-boarding.http +0 -222
- package/morph-idm/Functions/sso-flow/token-direct/execute/token-direct.http +0 -121
- package/morph-idm/Functions/transaction-limit/verify-limit-definition/execute/verify-limit-definition.http +0 -78
- package/morph-idm/Functions/user/execute/get-password-history-by-filter.http +0 -66
- package/morph-idm/Functions/user/execute/get-security-question-history-by-user.http +0 -85
- package/morph-idm/Functions/user/get-users-by-scope/execute/get-users-by-scope.http +0 -73
- package/morph-idm/Functions/user-login/get-last-successful-corporate-logon/execute/get-last-successful-corporate-logon.http +0 -49
- package/morph-idm/Functions/user-login/get-last-user-logins/execute/get-last-user-logins.http +0 -96
- package/morph-idm/Functions/user-login/get-user-logins/execute/get-user-logins.http +0 -78
- package/morph-idm/Functions/zeebe-approval/get-starter-instance-id/execute/get-starter-instance-id.http +0 -64
- package/morph-idm/Schemas/feature-management/database-variables/.gitkeep +0 -0
- package/morph-idm/Schemas/feature-management/dynamic-config/.gitkeep +0 -0
- package/morph-idm/Schemas/feature-management/feature-flag/.gitkeep +0 -0
- package/morph-idm/Tasks/.gitkeep +0 -0
- package/morph-idm/Tasks/feature-management/database-variables/.gitkeep +0 -0
- package/morph-idm/Tasks/feature-management/dynamic-config/.gitkeep +0 -0
- package/morph-idm/Tasks/feature-management/feature-flag/.gitkeep +0 -0
- package/morph-idm/Tasks/feature-management/feature-management-shared/.gitkeep +0 -0
- package/morph-idm/TestCases/corporate-user-login-e2e.http +0 -872
- package/morph-idm/TestCases/limit-approval/approval-matrix-limit-definition.http +0 -182
- package/morph-idm/TestCases/limit-approval/approval-non-amount-subflow.http +0 -132
- package/morph-idm/TestCases/limit-approval/transaction-limit-definition-approval.http +0 -95
- package/morph-idm/TestCases/limit-definition/README.md +0 -130
- package/morph-idm/TestCases/limit-definition/approve-transaction.http +0 -149
- package/morph-idm/TestCases/limit-definition/approve.http +0 -143
- package/morph-idm/TestCases/limit-definition/daily-limit-definition.http +0 -399
- package/morph-idm/TestCases/limit-definition/transaction-limit-definition.http +0 -240
- package/morph-idm/TestCases/session-transfer-e2e.http +0 -344
- package/morph-idm/TestCases/session-transfer-e2e.sh +0 -272
- package/morph-idm/TestCases/sort-migration-verification.http +0 -428
- package/morph-idm/TestCases/test-123/.httpyac.json +0 -15
- package/morph-idm/TestCases/test-123/01-person.http +0 -78
- package/morph-idm/TestCases/test-123/02-user.http +0 -73
- package/morph-idm/TestCases/test-123/03-scope.http +0 -65
- package/morph-idm/TestCases/test-123/04-consent.http +0 -66
- package/morph-idm/TestCases/test-123/05-device.http +0 -86
- package/morph-idm/TestCases/test-123/06-user-login.http +0 -206
- package/morph-idm/TestCases/test-123/README.md +0 -112
- package/morph-idm/TestCases/test-123/cleanup.js +0 -49
- package/morph-idm/TestCases/test-123/cleanup.sh +0 -20
- package/morph-idm/TestCases/test-123/cleanup.sql +0 -45
- package/morph-idm/TestCases/test-123/http-client.env.json +0 -13
- package/morph-idm/TestCases/test-123/run-setup.sh +0 -42
- package/morph-idm/TestCases/test-12345/.httpyac.json +0 -16
- package/morph-idm/TestCases/test-12345/01-person.http +0 -79
- package/morph-idm/TestCases/test-12345/02-01-device-android.http +0 -258
- package/morph-idm/TestCases/test-12345/02-user.http +0 -97
- package/morph-idm/TestCases/test-12345/03-scope-2.http +0 -65
- package/morph-idm/TestCases/test-12345/03-scope.http +0 -65
- package/morph-idm/TestCases/test-12345/04-consent-1.http +0 -86
- package/morph-idm/TestCases/test-12345/04-consent-2.http +0 -66
- package/morph-idm/TestCases/test-12345/05-device.http +0 -261
- package/morph-idm/TestCases/test-12345/06-user-login copy.http +0 -266
- package/morph-idm/TestCases/test-12345/06-user-login.http +0 -266
- package/morph-idm/TestCases/test-12345/07-corporate-login.http +0 -282
- package/morph-idm/TestCases/test-auto-consent/.httpyac.json +0 -14
- package/morph-idm/TestCases/test-auto-consent/01-person.http +0 -66
- package/morph-idm/TestCases/test-auto-consent/02-user.http +0 -115
- package/morph-idm/TestCases/test-auto-consent/03-scope.http +0 -66
- package/morph-idm/TestCases/test-auto-consent/04-device.http +0 -56
- package/morph-idm/TestCases/test-auto-consent/05-user-login.http +0 -133
- package/morph-idm/TestCases/test-auto-consent/README.md +0 -36
- package/morph-idm/TestCases/test-auto-consent/cleanup.js +0 -47
- package/morph-idm/TestCases/test-auto-consent/run-setup.sh +0 -50
- package/morph-idm/TestCases/test-flows/test-flow-with-two-sub.http +0 -107
- package/morph-idm/TestCases/test-get-user-info/.httpyac.json +0 -9
- package/morph-idm/TestCases/test-get-user-info/get-user-info-ibweb-manual.http +0 -127
- package/morph-idm/TestCases/test-get-user-info/get-user-info.http +0 -282
- package/morph-idm/TestCases/test-login/.httpyac.json +0 -17
- package/morph-idm/TestCases/test-login/01-person.http +0 -79
- package/morph-idm/TestCases/test-login/02-01-device-android.http +0 -261
- package/morph-idm/TestCases/test-login/02-user.http +0 -97
- package/morph-idm/TestCases/test-login/03-scope.http +0 -65
- package/morph-idm/TestCases/test-login/04-consent-1.http +0 -86
- package/morph-idm/TestCases/test-login/05-device.http +0 -261
- package/morph-idm/TestCases/test-login/06-user-login copy.http +0 -266
- package/morph-idm/TestCases/test-login/06-user-login.http +0 -266
- package/morph-idm/TestCases/test-login/07-corporate-login.http +0 -282
- package/morph-idm/TestCases/test-login/README.md +0 -37
- package/morph-idm/TestCases/test-login/cleanup.js +0 -46
- package/morph-idm/TestCases/test-login/cleanup.sh +0 -20
- package/morph-idm/TestCases/test-login/run-setup.sh +0 -53
- package/morph-idm/TestCases/test-onefa-corporate/device-key.pem +0 -27
- package/morph-idm/TestCases/test-onefa-corporate/onefa-corporate-cert-management.http +0 -156
- package/morph-idm/TestCases/test-onefa-corporate/onefa-corporate-login-cert-token.http +0 -371
- package/morph-idm/TestCases/test-onefa-retail/onefa-retail-login-cert-token.http +0 -499
- package/morph-idm/TestCases/test-third-factor/.httpyac.json +0 -36
- package/morph-idm/TestCases/test-third-factor/lib/httpyac.sh +0 -35
- package/morph-idm/TestCases/test-third-factor/scenarios/0-clean-test-instance.js +0 -42
- package/morph-idm/TestCases/test-third-factor/scenarios/0-clean-test-instance.sh +0 -20
- package/morph-idm/TestCases/test-third-factor/scenarios/1-self-completed.sh +0 -25
- package/morph-idm/TestCases/test-third-factor/scenarios/2-native-without-device.sh +0 -34
- package/morph-idm/TestCases/test-third-factor/scenarios/3-native-wrong-otp.sh +0 -34
- package/morph-idm/TestCases/test-third-factor/scenarios/4-native-success-otp-after-wrong-otp.sh +0 -46
- package/morph-idm/TestCases/test-third-factor/scenarios/5-retry-count-exceed.sh +0 -37
- package/morph-idm/TestCases/test-third-factor/scenarios/http/06-third-factor-native-with-device.http +0 -56
- package/morph-idm/TestCases/test-third-factor/scenarios/http/07-third-factor-native-without-device.http +0 -91
- package/morph-idm/TestCases/test-third-factor/scenarios/http/08-third-factor-web-with-device.http +0 -117
- package/morph-idm/TestCases/test-third-factor/scenarios/http/09-third-factor-web-without-device.http +0 -164
- package/morph-idm/TestCases/test-third-factor/scenarios/run-third-factor-native-without-device-success-otp-after-resend.sh +0 -50
- package/morph-idm/TestCases/test-third-factor/scenarios/run-third-factor-native-without-device-success-otp-resend-after-timeout-otp.sh +0 -50
- package/morph-idm/TestCases/test-third-factor/scenarios/run-third-factor-native-without-device-timeout-otp.sh +0 -48
- package/morph-idm/TestCases/test-third-factor/setup/01-person.http +0 -157
- package/morph-idm/TestCases/test-third-factor/setup/02-user.http +0 -105
- package/morph-idm/TestCases/test-third-factor/setup/03-device.http +0 -70
- package/morph-idm/TestCases/test-third-factor/setup/04-native-client.http +0 -126
- package/morph-idm/TestCases/test-third-factor/setup/05-web-client.http +0 -126
- package/morph-idm/TestCases/test-third-factor/setup/cleanup.js +0 -51
- package/morph-idm/TestCases/test-third-factor/setup/cleanup.sh +0 -20
- package/morph-idm/TestCases/test-third-factor/setup/run-setup.sh +0 -34
- package/morph-idm/TestCases/token-mint-parity/RESULT.md +0 -48
- package/morph-idm/TestCases/token-sync-race.sh +0 -72
- package/morph-idm/TestCases/user-login-apisix.postman_collection.json +0 -1114
- package/morph-idm/TestCases/user-login-boweb-e2e.http +0 -123
- package/morph-idm/TestCases/user-login-e2e.http +0 -730
- package/morph-idm/TestCases/user-login-e2e.sh +0 -122
- package/morph-idm/Views/.gitkeep +0 -0
- package/morph-idm/Workflows/.gitkeep +0 -0
- package/morph-idm/Workflows/anti-phishing-image/anti-phishing-image-change/execute/anti-phishing-image.http +0 -370
- package/morph-idm/Workflows/anti-phishing-image/anti-phishing-image-definition/execute/anti-phishing-image-definition.http +0 -200
- package/morph-idm/Workflows/anti-phishing-image/anti-phishing-image-definition/execute/get-security-images.http +0 -51
- package/morph-idm/Workflows/approval/execute/approval-corporate-customers-non-amount.http +0 -159
- package/morph-idm/Workflows/approval/execute/approval-corporate-customers-time-deposit.http +0 -147
- package/morph-idm/Workflows/approval/execute/approval-human-task-mobile.http +0 -149
- package/morph-idm/Workflows/approval/execute/approval-limit-management.http +0 -277
- package/morph-idm/Workflows/approval/execute/approval-new-reject.http +0 -67
- package/morph-idm/Workflows/approval/execute/approval-new.http +0 -999
- package/morph-idm/Workflows/approval/execute/approval-super-authority.http +0 -158
- package/morph-idm/Workflows/approval-matrix/execute/approval-matrix-corporate-customers-non-amount.http +0 -70
- package/morph-idm/Workflows/approval-matrix/execute/approval-matrix-corporate-customers-time-deposit.http +0 -74
- package/morph-idm/Workflows/approval-matrix/execute/approval-matrix-migrate-position-levels.http +0 -295
- package/morph-idm/Workflows/approval-matrix/execute/approval-matrix-new-run.http +0 -296
- package/morph-idm/Workflows/approval-matrix/execute/approval-matrix-upsert-super-authorization.http +0 -129
- package/morph-idm/Workflows/cert/execute/cert-cn-length.http +0 -90
- package/morph-idm/Workflows/cert/execute/cert.http +0 -162
- package/morph-idm/Workflows/cert-management/execute/cert-management.http +0 -90
- package/morph-idm/Workflows/channel-contract/execute/channel-contract-approval.http +0 -246
- package/morph-idm/Workflows/client/execute/client-AmorphieClient.http +0 -118
- package/morph-idm/Workflows/client/execute/client-IbWeb-session-transfer.http +0 -35
- package/morph-idm/Workflows/client/execute/client-OpenBanking.http +0 -411
- package/morph-idm/Workflows/client/execute/client-Trade.http +0 -112
- package/morph-idm/Workflows/client/execute/client-source-app.http +0 -88
- package/morph-idm/Workflows/client/execute/client-update.http +0 -795
- package/morph-idm/Workflows/client/execute/client.http +0 -766
- package/morph-idm/Workflows/client/execute/vnext-target.http +0 -416
- package/morph-idm/Workflows/client-credentials/execute/client-credentials.http +0 -117
- package/morph-idm/Workflows/consent/execute/README.md +0 -145
- package/morph-idm/Workflows/consent/execute/consent-manual-activation.http +0 -135
- package/morph-idm/Workflows/consent/execute/create-consent.http +0 -801
- package/morph-idm/Workflows/consent-management/consent-management.http +0 -267
- package/morph-idm/Workflows/consent-selection/execute/consent-selection.http +0 -200
- package/morph-idm/Workflows/deblock-sim-card/execute/MOBIL-ENTEGRASYON-GOREVLERI.md +0 -339
- package/morph-idm/Workflows/deblock-sim-card/execute/TEST-SENARYOLARI.md +0 -202
- package/morph-idm/Workflows/deblock-sim-card/execute/approve-contract-documents.sh +0 -63
- package/morph-idm/Workflows/deblock-sim-card/execute/contract-debug.sh +0 -101
- package/morph-idm/Workflows/deblock-sim-card/execute/deblock-sim-card-workflow.http +0 -290
- package/morph-idm/Workflows/device-process/device/execute/device-android.http +0 -262
- package/morph-idm/Workflows/device-process/device/execute/device-huawei.http +0 -219
- package/morph-idm/Workflows/device-process/device/execute/device-ios.http +0 -319
- package/morph-idm/Workflows/device-process/device/execute/device-migration.http +0 -105
- package/morph-idm/Workflows/device-process/device/execute/device-web.http +0 -284
- package/morph-idm/Workflows/device-process/device/execute/device.http +0 -269
- package/morph-idm/Workflows/device-process/device/execute/search.http +0 -39
- package/morph-idm/Workflows/device-process/device-assign/execute/device-assign.http +0 -478
- package/morph-idm/Workflows/device-process/device-manager/execute/device-manager.http +0 -214
- package/morph-idm/Workflows/device-process/device-register/execute/device-register.http +0 -566
- package/morph-idm/Workflows/device-process/device-unpair/execute/device-unpair.http +0 -207
- package/morph-idm/Workflows/feature-management/database-variables/.gitkeep +0 -0
- package/morph-idm/Workflows/feature-management/database-variables/execute/database-variables-lifecycle.http +0 -225
- package/morph-idm/Workflows/feature-management/dcs-eval/execute/dcs-eval.http +0 -28
- package/morph-idm/Workflows/feature-management/dynamic-config/.gitkeep +0 -0
- package/morph-idm/Workflows/feature-management/dynamic-config/execute/dynamic-config-evaluate.http +0 -186
- package/morph-idm/Workflows/feature-management/dynamic-config/execute/dynamic-config-lifecycle.http +0 -263
- package/morph-idm/Workflows/feature-management/feature-flag/.gitkeep +0 -0
- package/morph-idm/Workflows/feature-management/feature-flag/execute/feature-flag-evaluate.http +0 -245
- package/morph-idm/Workflows/feature-management/feature-flag/execute/feature-flag-lifecycle.http +0 -246
- package/morph-idm/Workflows/feature-management/feature-flag/execute/feature-flag-ops.http +0 -116
- package/morph-idm/Workflows/feature-management/feature-flag/execute/feature-flag-reads.http +0 -47
- package/morph-idm/Workflows/fraud/execute/fraud-push.http +0 -1016
- package/morph-idm/Workflows/get-roles/execute/get-roles.http +0 -367
- package/morph-idm/Workflows/introspection/execute/introspection.http +0 -69
- package/morph-idm/Workflows/ivr/execute/ivr-check-password.http +0 -55
- package/morph-idm/Workflows/ivr/execute/ivr-check-user.http +0 -56
- package/morph-idm/Workflows/ivr/execute/ivr-create-agent-consent.http +0 -59
- package/morph-idm/Workflows/ivr/execute/ivr-get-agent-company.http +0 -30
- package/morph-idm/Workflows/ivr/execute/ivr-revoke-agent-consent.http +0 -30
- package/morph-idm/Workflows/ivr/execute/ivr-set-password.http +0 -87
- package/morph-idm/Workflows/notification/push-notification/execute/push-notification.http +0 -261
- package/morph-idm/Workflows/organization/execute/create-organization-yedek.http +0 -415
- package/morph-idm/Workflows/organization/execute/create-organization.http +0 -346
- package/morph-idm/Workflows/organization/execute/retail-organization.http +0 -161
- package/morph-idm/Workflows/otp-auth-code/execute/otp-auth-code.http +0 -743
- package/morph-idm/Workflows/person/execute/person-123.http +0 -149
- package/morph-idm/Workflows/person/execute/person-migration.http +0 -143
- package/morph-idm/Workflows/person/execute/person.http +0 -149
- package/morph-idm/Workflows/person/firm-cdc-dispatch/execute/person-firm-cdc-dispatch.http +0 -266
- package/morph-idm/Workflows/remember-password/execute/remember-password.http +0 -203
- package/morph-idm/Workflows/role/execute/role.http +0 -142
- package/morph-idm/Workflows/scope/execute/scope-24-7-access.http +0 -131
- package/morph-idm/Workflows/scope/execute/scope-business-hours.http +0 -138
- package/morph-idm/Workflows/scope/execute/scope-corporate.http +0 -165
- package/morph-idm/Workflows/scope/execute/scope-individual-1234567890-1234567890.http +0 -132
- package/morph-idm/Workflows/scope/execute/scope-lifecycle-test.http +0 -133
- package/morph-idm/Workflows/scope/execute/scope-multi-systems.http +0 -159
- package/morph-idm/Workflows/scope/execute/scope-openbanking-account.http +0 -134
- package/morph-idm/Workflows/scope/execute/scope-openbanking-login.http +0 -135
- package/morph-idm/Workflows/scope/execute/scope-openbanking-payment.http +0 -134
- package/morph-idm/Workflows/scope/execute/scope-restricted.http +0 -143
- package/morph-idm/Workflows/scope-group/execute/create-scope-group.http +0 -224
- package/morph-idm/Workflows/security-check/execute/security-check-test.http +0 -88
- package/morph-idm/Workflows/security-check-test/execute/security-check-test.http +0 -51
- package/morph-idm/Workflows/security-question/security-question-change/execute/security-question-change.http +0 -324
- package/morph-idm/Workflows/security-question/security-question-definition/execute/security-question-definition.http +0 -372
- package/morph-idm/Workflows/security-question/security-question-reset/execute/security-question-reset.http +0 -97
- package/morph-idm/Workflows/shield-decrypt/execute/shield-decrypt.http +0 -77
- package/morph-idm/Workflows/shield-encrypt/execute/shield-encrypt.http +0 -80
- package/morph-idm/Workflows/shield-sign/execute/shield-sign.http +0 -79
- package/morph-idm/Workflows/shield-verify-request-signature/execute/generate-request-signature.js +0 -54
- package/morph-idm/Workflows/shield-verify-request-signature/execute/shield-verify-request-signature.http +0 -135
- package/morph-idm/Workflows/shield-verify-signature/execute/shield-verify-signature.http +0 -108
- package/morph-idm/Workflows/sim-block/sim-block-backoffice/execute/sim-block-backoffice.http +0 -183
- package/morph-idm/Workflows/simple-subflow/execute/simple-subflow.http +0 -50
- package/morph-idm/Workflows/sso/authorize/execute/authorize.http +0 -160
- package/morph-idm/Workflows/sso/authorize-route/execute/authorize-route.http +0 -169
- package/morph-idm/Workflows/sso/pre-login/execute/pre-login.http +0 -273
- package/morph-idm/Workflows/sso/token-direct/execute/token-direct.http +0 -272
- package/morph-idm/Workflows/sso/token-route/execute/token-route.http +0 -207
- package/morph-idm/Workflows/sso-flow/execute/sso-flow-auth-code.http +0 -89
- package/morph-idm/Workflows/sso-flow/execute/sso-flow-login.http +0 -163
- package/morph-idm/Workflows/sso-flow/execute/sso-flow-test-base.http +0 -178
- package/morph-idm/Workflows/test-consent-selection/execute/test-consent-selection.http +0 -68
- package/morph-idm/Workflows/test-consent-selection/execute/test-flow-with-sub.http +0 -50
- package/morph-idm/Workflows/test-consent-selection/execute/test-flow.http +0 -140
- package/morph-idm/Workflows/test-consent-selection/execute/test-sync-subprocess.http +0 -63
- package/morph-idm/Workflows/test-consent-selection/execute/test-user-validation.http +0 -126
- package/morph-idm/Workflows/third-factor/execute/third-factor.http +0 -183
- package/morph-idm/Workflows/third-factor-main/execute/execute/third-factor-main.http +0 -229
- package/morph-idm/Workflows/token-process/session/execute/session.http +0 -361
- package/morph-idm/Workflows/token-process/session-revoke-others/execute/session-revoke-others.http +0 -94
- package/morph-idm/Workflows/token-process/token/execute/README.md +0 -454
- package/morph-idm/Workflows/token-process/token/execute/device-key.pem +0 -27
- package/morph-idm/Workflows/token-process/token/execute/generate-onefa-assertion.js +0 -47
- package/morph-idm/Workflows/token-process/token/execute/onefa-token.http +0 -285
- package/morph-idm/Workflows/token-process/token/execute/setup-roles-for-token-claims.http +0 -425
- package/morph-idm/Workflows/token-process/token/execute/token-sync-race.http +0 -49
- package/morph-idm/Workflows/token-process/token/execute/token.http +0 -676
- package/morph-idm/Workflows/token-process/token-password-grant/execute/token-password-grant.http +0 -163
- package/morph-idm/Workflows/transaction-limit/cascade-approve-daily/execute/transaction-limit-cascade-approve-daily.http +0 -125
- package/morph-idm/Workflows/transaction-limit/cascade-approve-transaction/execute/transaction-limit-cascade-approve-transaction.http +0 -120
- package/morph-idm/Workflows/transaction-limit/cascade-daily/execute/transaction-limit-cascade-daily.http +0 -198
- package/morph-idm/Workflows/transaction-limit/cascade-transaction/execute/transaction-limit-cascade.http +0 -173
- package/morph-idm/Workflows/transaction-limit/definition/execute/transaction-limit-definition.http +0 -867
- package/morph-idm/Workflows/transaction-limit/definition-passivate/execute/transaction-limit-definition-passivate.http +0 -224
- package/morph-idm/Workflows/transaction-limit/definition-verify/execute/transaction-limit-definition-verify.http +0 -102
- package/morph-idm/Workflows/transaction-limit/execute/seed-corporate-customers-limits.sh +0 -178
- package/morph-idm/Workflows/transaction-limit/execute/transaction-limit-management.http +0 -984
- package/morph-idm/Workflows/transaction-limit/remaining/execute/transaction-limit-remaining.http +0 -103
- package/morph-idm/Workflows/transaction-limit/resolve/execute/transaction-limit-resolve.http +0 -96
- package/morph-idm/Workflows/transaction-limit/scope-bank-limit/execute/transaction-limit-scope-bank-limit.http +0 -84
- package/morph-idm/Workflows/transaction-limit/user-bank-limits/execute/transaction-limit-user-bank-limits.http +0 -87
- package/morph-idm/Workflows/transaction-limit/verify/execute/transaction-limit-verify.http +0 -212
- package/morph-idm/Workflows/user/create/execute/user-create-corporate.http +0 -51
- package/morph-idm/Workflows/user/create/execute/user-create.http +0 -135
- package/morph-idm/Workflows/user/get-users-by-scope/execute/get-users-by-scope.http +0 -210
- package/morph-idm/Workflows/user-corporate/firm-query/execute/firm-query.http +0 -87
- package/morph-idm/Workflows/user-corporate/onboard-dispatch/execute/user-corporate-onboard-dispatch.http +0 -105
- package/morph-idm/Workflows/user-corporate/provision/execute/user-corporate-provision.http +0 -631
- package/morph-idm/Workflows/user-corporate/provision/user-corporate-provision.flowchart.drawio +0 -88
- package/morph-idm/Workflows/user-corporate/remove/execute/user-corporate-remove.http +0 -152
- package/morph-idm/Workflows/user-corporate/rollback/execute/user-corporate-rollback.http +0 -97
- package/morph-idm/Workflows/user-corporate/update-provision/execute/user-corporate-update-provision.http +0 -449
- package/morph-idm/Workflows/user-corporate/user-corporate-create/execute/user-corporate-create.http +0 -173
- package/morph-idm/Workflows/user-corporate/user-corporate-update/execute/user-corporate-update.http +0 -117
- package/morph-idm/Workflows/user-login/execute/README-LOGIN.md +0 -535
- package/morph-idm/Workflows/user-login/execute/user-login-comprehensive-coverage.http +0 -1761
- package/morph-idm/Workflows/user-login/execute/user-login-device-assign.http +0 -497
- package/morph-idm/Workflows/user-login/execute/user-login.http +0 -910
- package/morph-idm/Workflows/user-login-approvement/execute/login-notification-otp.http +0 -86
- package/morph-idm/Workflows/user-login-approvement/execute/login-notification-push.http +0 -82
- package/morph-idm/Workflows/user-login-approvement/execute/login-notification-registered-device.http +0 -111
- package/morph-idm/Workflows/user-login-approvement/execute/user-login-approvement-comprehensive.http +0 -1267
- package/morph-idm/Workflows/user-management/execute/user-management.http +0 -284
- package/morph-idm/Workflows/user-note/execute/user-note-backoffice.http +0 -290
- package/morph-idm/Workflows/user-otp-setting/execute/user-otp-setting-backoffice.http +0 -128
- package/morph-idm/Workflows/user-password-process/user-change-password/execute/user-change-password.http +0 -576
- package/morph-idm/Workflows/user-password-process/user-password/execute/user-password.http +0 -58
- package/morph-idm/Workflows/user-password-process/user-password-force-change/execute/user-password-force-change.http +0 -31
- package/morph-idm/Workflows/user-password-process/user-password-reset/execute/user-password-reset.http +0 -213
- package/morph-idm/Workflows/user-status/user-status-change/execute/user-status-change.http +0 -124
- package/morph-idm/Workflows/user-status/user-status-change-backoffice/execute/user-status-change-backoffice.http +0 -197
- package/morph-idm/Workflows/user-validation/execute/user-validation-standalone.http +0 -331
- package/morph-idm/Workflows/user-validation/execute/user-validation.http +0 -696
- package/morph-idm/Workflows/zeebe-approval/execute/zeebe-approval-corporate-customers-non-amount.http +0 -195
- package/morph-idm/Workflows/zeebe-approval/execute/zeebe-approval-new.http +0 -275
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
#!/bin/bash
|
|
2
|
-
# Pending otp third factor
|
|
3
|
-
|
|
4
|
-
cd "$(dirname "$0")"
|
|
5
|
-
|
|
6
|
-
run_request() {
|
|
7
|
-
local file=$1
|
|
8
|
-
local name=$2
|
|
9
|
-
|
|
10
|
-
output=$(npx httpyac "$file" -n "$name" -e dev -o response 2>&1)
|
|
11
|
-
exit_code=$?
|
|
12
|
-
|
|
13
|
-
if [ $exit_code -ne 0 ]; then
|
|
14
|
-
echo "FAILED"
|
|
15
|
-
echo "$output"
|
|
16
|
-
exit 1
|
|
17
|
-
fi
|
|
18
|
-
|
|
19
|
-
if echo "$output" | grep -qE "HTTP/[0-9.]+ [45][0-9]{2}"; then
|
|
20
|
-
echo "HTTP ERROR"
|
|
21
|
-
echo "$output"
|
|
22
|
-
exit 1
|
|
23
|
-
fi
|
|
24
|
-
|
|
25
|
-
json="$(echo "$output" | sed -n '/^{/,/^}$/p' | jq -s '.[0]')"
|
|
26
|
-
|
|
27
|
-
STATUS=$(echo "$json" | jq -r '.status')
|
|
28
|
-
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
DELAY=$(jq -r '.environments.dev.ttl' .httpyac.json)
|
|
32
|
-
# Create instances
|
|
33
|
-
run_request "07-third-factor-native-without-device.http" "thirdFactor"
|
|
34
|
-
sleep "$DELAY"
|
|
35
|
-
run_request "07-third-factor-native-without-device.http" "getThirdFactorInstanceState"
|
|
36
|
-
|
|
37
|
-
STATE=$(echo "$json" | jq -r '.state')
|
|
38
|
-
|
|
39
|
-
if [ "$STATE" = "otp-timeout" ]; then
|
|
40
|
-
echo "✅ TEST OK"
|
|
41
|
-
else
|
|
42
|
-
echo "❌ TEST FAIL"
|
|
43
|
-
fi
|
|
44
|
-
|
|
45
|
-
echo "Tests completed successfully"
|
|
46
|
-
|
|
47
|
-
bash ./cleanup-third-factor-instance.sh
|
|
48
|
-
|
|
@@ -1,157 +0,0 @@
|
|
|
1
|
-
###############################################################################
|
|
2
|
-
# STEP 1: Person - Create person with security question (key: 12345)
|
|
3
|
-
###############################################################################
|
|
4
|
-
|
|
5
|
-
### Start Person
|
|
6
|
-
# @name startPerson1
|
|
7
|
-
POST {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/person/instances/start?sync=true
|
|
8
|
-
Accept-Language: tr-TR
|
|
9
|
-
X-Request-Id: {{$guid}}
|
|
10
|
-
X-Device-Id: admin-portal
|
|
11
|
-
X-Token-Id: {{$guid}}
|
|
12
|
-
X-Device-Info: Test Suite/1.0
|
|
13
|
-
X-Forwarded-For: 192.168.1.100
|
|
14
|
-
user_reference: test-admin
|
|
15
|
-
Content-Type: application/json
|
|
16
|
-
|
|
17
|
-
{
|
|
18
|
-
"key": "{{personKey1}}",
|
|
19
|
-
"tags": ["test", "person", "auto-consent-test"],
|
|
20
|
-
"attributes": {
|
|
21
|
-
"personType": "retail-customers",
|
|
22
|
-
"firstName": "Sercan",
|
|
23
|
-
"lastName": "Yüksel",
|
|
24
|
-
"email": "syuksel@burgantech.com",
|
|
25
|
-
"phone": "+905539495258",
|
|
26
|
-
"tckn": "{{personKey1}}",
|
|
27
|
-
"birthDate": "1993-06-02",
|
|
28
|
-
"securityQuestion": [
|
|
29
|
-
{
|
|
30
|
-
"question": "İlk evcil hayvanınızın adı?",
|
|
31
|
-
"answer": "Boncuk"
|
|
32
|
-
}
|
|
33
|
-
],
|
|
34
|
-
"antiPhishingImage": "secure-image-12345.png",
|
|
35
|
-
"mobilePhonesNumbers": [
|
|
36
|
-
{
|
|
37
|
-
"countryCode": "+90",
|
|
38
|
-
"areaCode": "553",
|
|
39
|
-
"number": "9495258",
|
|
40
|
-
"validations": [
|
|
41
|
-
{
|
|
42
|
-
"source": "otp",
|
|
43
|
-
"validatedAt": "{{$datetime iso8601}}",
|
|
44
|
-
"validatingProcess": "phone-verification-workflow",
|
|
45
|
-
"status": "valid"
|
|
46
|
-
}
|
|
47
|
-
],
|
|
48
|
-
"useForOTP": true
|
|
49
|
-
}
|
|
50
|
-
]
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
### Start Person
|
|
55
|
-
# @name startPerson2
|
|
56
|
-
POST {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/person/instances/start?sync=true
|
|
57
|
-
Accept-Language: tr-TR
|
|
58
|
-
X-Request-Id: {{$guid}}
|
|
59
|
-
X-Device-Id: admin-portal
|
|
60
|
-
X-Token-Id: {{$guid}}
|
|
61
|
-
X-Device-Info: Test Suite/1.0
|
|
62
|
-
X-Forwarded-For: 192.168.1.100
|
|
63
|
-
user_reference: test-admin
|
|
64
|
-
Content-Type: application/json
|
|
65
|
-
|
|
66
|
-
{
|
|
67
|
-
"key": "{{personKey2}}",
|
|
68
|
-
"tags": ["test", "person", "auto-consent-test"],
|
|
69
|
-
"attributes": {
|
|
70
|
-
"personType": "retail-customers",
|
|
71
|
-
"firstName": "Sercan",
|
|
72
|
-
"lastName": "Yüksel",
|
|
73
|
-
"email": "syuksel@burgantech.com",
|
|
74
|
-
"phone": "+905539495258",
|
|
75
|
-
"tckn": "{{personKey2}}",
|
|
76
|
-
"birthDate": "1993-06-02",
|
|
77
|
-
"securityQuestion": [
|
|
78
|
-
{
|
|
79
|
-
"question": "İlk evcil hayvanınızın adı?",
|
|
80
|
-
"answer": "Boncuk"
|
|
81
|
-
}
|
|
82
|
-
],
|
|
83
|
-
"antiPhishingImage": "secure-image-12345.png",
|
|
84
|
-
"mobilePhonesNumbers": [
|
|
85
|
-
{
|
|
86
|
-
"countryCode": "+90",
|
|
87
|
-
"areaCode": "553",
|
|
88
|
-
"number": "9495258",
|
|
89
|
-
"validations": [
|
|
90
|
-
{
|
|
91
|
-
"source": "otp",
|
|
92
|
-
"validatedAt": "{{$datetime iso8601}}",
|
|
93
|
-
"validatingProcess": "phone-verification-workflow",
|
|
94
|
-
"status": "valid"
|
|
95
|
-
}
|
|
96
|
-
],
|
|
97
|
-
"useForOTP": true
|
|
98
|
-
}
|
|
99
|
-
]
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
### Publish Person (draft -> active)
|
|
104
|
-
# @name publishPerson1
|
|
105
|
-
PATCH {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/person/instances/{{personKey1}}/transitions/publish?sync=true
|
|
106
|
-
Accept-Language: tr-TR
|
|
107
|
-
X-Request-Id: {{$guid}}
|
|
108
|
-
X-Device-Id: admin-portal
|
|
109
|
-
X-Token-Id: {{$guid}}
|
|
110
|
-
X-Device-Info: Test Suite/1.0
|
|
111
|
-
X-Forwarded-For: 192.168.1.100
|
|
112
|
-
user_reference: test-admin
|
|
113
|
-
Content-Type: application/json
|
|
114
|
-
|
|
115
|
-
{
|
|
116
|
-
"attributes": {
|
|
117
|
-
"publishedBy": "test-admin",
|
|
118
|
-
"publishedAt": "{{$datetime iso8601}}"
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
### Publish Person (draft -> active)
|
|
123
|
-
# @name publishPerson2
|
|
124
|
-
PATCH {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/person/instances/{{personKey2}}/transitions/publish?sync=true
|
|
125
|
-
Accept-Language: tr-TR
|
|
126
|
-
X-Request-Id: {{$guid}}
|
|
127
|
-
X-Device-Id: admin-portal
|
|
128
|
-
X-Token-Id: {{$guid}}
|
|
129
|
-
X-Device-Info: Test Suite/1.0
|
|
130
|
-
X-Forwarded-For: 192.168.1.100
|
|
131
|
-
user_reference: test-admin
|
|
132
|
-
Content-Type: application/json
|
|
133
|
-
|
|
134
|
-
{
|
|
135
|
-
"attributes": {
|
|
136
|
-
"publishedBy": "test-admin",
|
|
137
|
-
"publishedAt": "{{$datetime iso8601}}"
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
### Get Person Data
|
|
142
|
-
# @name getPersonData
|
|
143
|
-
GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/person/instances/{{personKey}}/functions/data
|
|
144
|
-
Accept-Language: tr-TR
|
|
145
|
-
X-Request-Id: {{$guid}}
|
|
146
|
-
X-Device-Id: admin-portal
|
|
147
|
-
X-Token-Id: {{$guid}}
|
|
148
|
-
user_reference: test-admin
|
|
149
|
-
|
|
150
|
-
### Get Person State
|
|
151
|
-
# @name getPersonState
|
|
152
|
-
GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/person/instances/{{personKey}}/functions/state
|
|
153
|
-
Accept-Language: tr-TR
|
|
154
|
-
X-Request-Id: {{$guid}}
|
|
155
|
-
X-Device-Id: admin-portal
|
|
156
|
-
X-Token-Id: {{$guid}}
|
|
157
|
-
user_reference: test-admin
|
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
###############################################################################
|
|
2
|
-
# STEP 2: User - Create user linked to person (key: 12345)
|
|
3
|
-
###############################################################################
|
|
4
|
-
|
|
5
|
-
### Create User
|
|
6
|
-
# @name createUser1
|
|
7
|
-
POST {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/user/instances/start?sync=true
|
|
8
|
-
Accept-Language: tr-TR
|
|
9
|
-
X-Request-Id: {{$guid}}
|
|
10
|
-
X-Device-Id: admin-portal
|
|
11
|
-
X-Token-Id: {{$guid}}
|
|
12
|
-
X-Device-Info: Test Suite/1.0
|
|
13
|
-
X-Forwarded-For: 192.168.1.100
|
|
14
|
-
user_reference: test-admin
|
|
15
|
-
Content-Type: application/json
|
|
16
|
-
|
|
17
|
-
{
|
|
18
|
-
"key": "{{userKey1}}",
|
|
19
|
-
"tags": ["test", "user", "multi-consent-test"],
|
|
20
|
-
"attributes": {
|
|
21
|
-
"person": {
|
|
22
|
-
"key": "{{personKey1}}"
|
|
23
|
-
},
|
|
24
|
-
"status": 10,
|
|
25
|
-
"username": "{{userKey1}}",
|
|
26
|
-
"loginAttempts": 0,
|
|
27
|
-
"maxLoginAttempts": 5,
|
|
28
|
-
"isLocked": false,
|
|
29
|
-
"mustChangePassword": false,
|
|
30
|
-
"permissions": [
|
|
31
|
-
"login",
|
|
32
|
-
"view-profile"
|
|
33
|
-
]
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
### Create User
|
|
38
|
-
# @name createUser2
|
|
39
|
-
POST {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/user/instances/start?sync=true
|
|
40
|
-
Accept-Language: tr-TR
|
|
41
|
-
X-Request-Id: {{$guid}}
|
|
42
|
-
X-Device-Id: admin-portal
|
|
43
|
-
X-Token-Id: {{$guid}}
|
|
44
|
-
X-Device-Info: Test Suite/1.0
|
|
45
|
-
X-Forwarded-For: 192.168.1.100
|
|
46
|
-
user_reference: test-admin
|
|
47
|
-
Content-Type: application/json
|
|
48
|
-
|
|
49
|
-
{
|
|
50
|
-
"key": "{{userKey2}}",
|
|
51
|
-
"tags": ["test", "user", "multi-consent-test"],
|
|
52
|
-
"attributes": {
|
|
53
|
-
"person": {
|
|
54
|
-
"key": "{{personKey2}}"
|
|
55
|
-
},
|
|
56
|
-
"status": 10,
|
|
57
|
-
"username": "{{userKey2}}",
|
|
58
|
-
"loginAttempts": 0,
|
|
59
|
-
"maxLoginAttempts": 5,
|
|
60
|
-
"isLocked": false,
|
|
61
|
-
"mustChangePassword": false,
|
|
62
|
-
"permissions": [
|
|
63
|
-
"login",
|
|
64
|
-
"view-profile"
|
|
65
|
-
]
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
### Publish User (draft -> active)
|
|
70
|
-
# @name publishUser1
|
|
71
|
-
PATCH {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/user/instances/{{userKey1}}/transitions/publish?sync=true
|
|
72
|
-
Accept-Language: tr-TR
|
|
73
|
-
X-Request-Id: {{$guid}}
|
|
74
|
-
X-Device-Id: admin-portal
|
|
75
|
-
X-Token-Id: {{$guid}}
|
|
76
|
-
X-Device-Info: Test Suite/1.0
|
|
77
|
-
X-Forwarded-For: 192.168.1.100
|
|
78
|
-
user_reference: test-admin
|
|
79
|
-
Content-Type: application/json
|
|
80
|
-
|
|
81
|
-
{
|
|
82
|
-
"attributes": {
|
|
83
|
-
"publishedBy": "test-admin",
|
|
84
|
-
"publishedAt": "{{$datetime iso8601}}"
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
### Publish User (draft -> active)
|
|
89
|
-
# @name publishUser2
|
|
90
|
-
PATCH {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/user/instances/{{userKey1}}/transitions/publish?sync=true
|
|
91
|
-
Accept-Language: tr-TR
|
|
92
|
-
X-Request-Id: {{$guid}}
|
|
93
|
-
X-Device-Id: admin-portal
|
|
94
|
-
X-Token-Id: {{$guid}}
|
|
95
|
-
X-Device-Info: Test Suite/1.0
|
|
96
|
-
X-Forwarded-For: 192.168.1.100
|
|
97
|
-
user_reference: test-admin
|
|
98
|
-
Content-Type: application/json
|
|
99
|
-
|
|
100
|
-
{
|
|
101
|
-
"attributes": {
|
|
102
|
-
"publishedBy": "test-admin",
|
|
103
|
-
"publishedAt": "{{$datetime iso8601}}"
|
|
104
|
-
}
|
|
105
|
-
}
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
###############################################################################
|
|
2
|
-
# STEP 3:
|
|
3
|
-
###############################################################################
|
|
4
|
-
|
|
5
|
-
### Create Device - Mobile
|
|
6
|
-
# @name createDevice
|
|
7
|
-
POST {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/device/instances/start?sync=true
|
|
8
|
-
Accept-Language: tr-TR
|
|
9
|
-
X-Request-Id: {{$guid}}
|
|
10
|
-
X-Device-Id: {{deviceId}}
|
|
11
|
-
X-Token-Id: {{$guid}}
|
|
12
|
-
X-Device-Info: Test Browser/1.0
|
|
13
|
-
X-Forwarded-For: 192.168.1.100
|
|
14
|
-
user_reference: anonymous
|
|
15
|
-
Content-Type: application/json
|
|
16
|
-
|
|
17
|
-
{
|
|
18
|
-
"key": "{{deviceId}}",
|
|
19
|
-
"tags": ["test", "mobile", "browser"],
|
|
20
|
-
"attributes": {
|
|
21
|
-
"deviceId": "{{deviceId}}",
|
|
22
|
-
"installationId": "{{$guid}}",
|
|
23
|
-
"deviceInfo": {
|
|
24
|
-
"osName": "Android",
|
|
25
|
-
"osVersion": "11",
|
|
26
|
-
"deviceModel": "Desktop",
|
|
27
|
-
"manufacturer": "Generic",
|
|
28
|
-
"userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) Chrome/120.0",
|
|
29
|
-
"screenResolution": "1920x1080",
|
|
30
|
-
"language": "tr-TR",
|
|
31
|
-
"timezone": "Europe/Istanbul"
|
|
32
|
-
},
|
|
33
|
-
"deviceCertificatePublicKey": "-----BEGIN PUBLIC KEY-----\nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA0Z3VS5JJcds3xfn/ygWy\nR7TZZXe1zE8bF9U3Q2m5yM7qKk0W5X3YZ8vN4V2rK1L8mM3C7H4aP2b6D5F1nE0i\nK9J2Y3L4N5M6O7P8Q9R0S1T2U3V4W5X6Y7Z8A9B0C1D2E3F4G5H6I7J8K9L0M1N2\n-----END PUBLIC KEY-----",
|
|
34
|
-
"appVersion": "3.0.0",
|
|
35
|
-
"pushToken": {
|
|
36
|
-
"platform": "apns",
|
|
37
|
-
"token": "a1b2c3d4e5f6789012345678901234567890abcdef1234567890abcdef123456",
|
|
38
|
-
"environment": "production",
|
|
39
|
-
"bundleId": "com.bank.mobilebanking",
|
|
40
|
-
"updatedAt": "{{$datetime iso8601}}"
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
### Assign User to Device (saved -> registered)
|
|
46
|
-
# @name assignUser
|
|
47
|
-
PATCH {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/device/instances/{{deviceId}}/transitions/assign-user?sync=true
|
|
48
|
-
Accept-Language: tr-TR
|
|
49
|
-
X-Request-Id: {{$guid}}
|
|
50
|
-
X-Device-Id: {{deviceId}}
|
|
51
|
-
X-Token-Id: {{$guid}}
|
|
52
|
-
X-Device-Info: Test Browser/1.0
|
|
53
|
-
X-Forwarded-For: 192.168.1.100
|
|
54
|
-
user_reference: {{userKey1}}
|
|
55
|
-
Content-Type: application/json
|
|
56
|
-
|
|
57
|
-
{
|
|
58
|
-
"attributes": {
|
|
59
|
-
"user": {
|
|
60
|
-
"domain": "morph-idm",
|
|
61
|
-
"workflow": "user",
|
|
62
|
-
"key": "{{userKey1}}",
|
|
63
|
-
"version": "1.0.0"
|
|
64
|
-
},
|
|
65
|
-
"certificates": [],
|
|
66
|
-
"lastSeenAt": "{{$datetime iso8601}}"
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
|
|
@@ -1,126 +0,0 @@
|
|
|
1
|
-
### Variables
|
|
2
|
-
@workflow = client
|
|
3
|
-
|
|
4
|
-
### 1. Start Client
|
|
5
|
-
# @name startClient
|
|
6
|
-
POST {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/client/instances/start?sync=true
|
|
7
|
-
Accept-Language: tr-TR
|
|
8
|
-
X-Request-Id: {{$guid}}
|
|
9
|
-
X-Device-Id: admin-portal
|
|
10
|
-
X-Token-Id: {{$guid}}
|
|
11
|
-
X-Device-Info: Admin Portal/1.0
|
|
12
|
-
X-Forwarded-For: 192.168.1.100
|
|
13
|
-
user_reference: admin-001
|
|
14
|
-
Content-Type: application/json
|
|
15
|
-
|
|
16
|
-
{
|
|
17
|
-
"key": "{{clientKeyNative}}",
|
|
18
|
-
"tags": [
|
|
19
|
-
"test",
|
|
20
|
-
"banking",
|
|
21
|
-
"client"
|
|
22
|
-
],
|
|
23
|
-
"attributes": {
|
|
24
|
-
"clientName": "AmorphPortal",
|
|
25
|
-
"clientType": "confidential",
|
|
26
|
-
"applicationType": "native",
|
|
27
|
-
"secret": "super_secret_key_12345",
|
|
28
|
-
"keySize": 2048,
|
|
29
|
-
"allowedGrants": [
|
|
30
|
-
"authorization_code",
|
|
31
|
-
"refresh_token",
|
|
32
|
-
"client_credentials",
|
|
33
|
-
"password"
|
|
34
|
-
],
|
|
35
|
-
"allowedFirstFactor": [
|
|
36
|
-
"password",
|
|
37
|
-
"sldap"
|
|
38
|
-
],
|
|
39
|
-
"redirectUris": {
|
|
40
|
-
"PortalCallback": "https://portal.amorph.com/callback",
|
|
41
|
-
"PortalAuth": "https://portal.amorph.com/auth/callback",
|
|
42
|
-
"LocalDev": "http://localhost:3000/callback"
|
|
43
|
-
},
|
|
44
|
-
"postLogoutRedirectUris": [
|
|
45
|
-
"https://portal.amorph.com/logout",
|
|
46
|
-
"https://portal.amorph.com/goodbye"
|
|
47
|
-
],
|
|
48
|
-
"allowedOrigins": [
|
|
49
|
-
"https://portal.amorph.com",
|
|
50
|
-
"http://localhost:3000"
|
|
51
|
-
],
|
|
52
|
-
"loginURI": "https://portal.amorph.com/login",
|
|
53
|
-
"returnURI": "https://portal.amorph.com/dashboard",
|
|
54
|
-
"logoutURI": "https://portal.amorph.com/logout-complete",
|
|
55
|
-
"clientUri": "https://portal.amorph.com",
|
|
56
|
-
"logoUri": "https://portal.amorph.com/assets/logo.png",
|
|
57
|
-
"policyUri": "https://portal.amorph.com/privacy",
|
|
58
|
-
"tosUri": "https://portal.amorph.com/terms",
|
|
59
|
-
"responseTypes": [
|
|
60
|
-
"code"
|
|
61
|
-
],
|
|
62
|
-
"tokenEndpointAuthMethod": "client_secret_post",
|
|
63
|
-
"accessTokenFormat": "jwt",
|
|
64
|
-
"authorizationCodeLifetime": "PT1M",
|
|
65
|
-
"tokens": [
|
|
66
|
-
{
|
|
67
|
-
"type": "identity",
|
|
68
|
-
"duration": "PT15M",
|
|
69
|
-
"claims": [{"name": "sub", "value": "{{user.id}}"}],
|
|
70
|
-
"privateClaims": [{"name": "internal_id", "value": "{{user.internalId}}"}],
|
|
71
|
-
"excludeClaims": []
|
|
72
|
-
},
|
|
73
|
-
{
|
|
74
|
-
"type": "access",
|
|
75
|
-
"duration": "PT1H",
|
|
76
|
-
"claims": [{"name": "sub", "value": "{{user.id}}"}, {"name": "scope", "value": "{{user.scopes}}"}],
|
|
77
|
-
"privateClaims": [],
|
|
78
|
-
"excludeClaims": ["internal_id"]
|
|
79
|
-
},
|
|
80
|
-
{
|
|
81
|
-
"type": "refresh",
|
|
82
|
-
"duration": "P30D",
|
|
83
|
-
"claims": [{"name": "sub", "value": "{{user.id}}"}]
|
|
84
|
-
}
|
|
85
|
-
],
|
|
86
|
-
"refreshTokenPolicy": {
|
|
87
|
-
"rotation": "rotate",
|
|
88
|
-
"absoluteLifetime": "P90D",
|
|
89
|
-
"reuseInterval": "PT5M"
|
|
90
|
-
},
|
|
91
|
-
"pkce": {
|
|
92
|
-
"mode": "optional",
|
|
93
|
-
"codeChallengeMethods": [
|
|
94
|
-
"S256",
|
|
95
|
-
"plain"
|
|
96
|
-
],
|
|
97
|
-
"defaultMethod": "S256"
|
|
98
|
-
},
|
|
99
|
-
"allowedScopeGroups": [
|
|
100
|
-
"reference",
|
|
101
|
-
"retail",
|
|
102
|
-
"retail-customers"
|
|
103
|
-
]
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
### 4. Publish Client (Draft -> Active)
|
|
108
|
-
# Current state should be 'draft'
|
|
109
|
-
# @name publishClient
|
|
110
|
-
PATCH {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/client/instances/{{clientKeyNative}}/transitions/publish?sync=true
|
|
111
|
-
Accept-Language: tr-TR
|
|
112
|
-
X-Request-Id: {{$guid}}
|
|
113
|
-
X-Device-Id: admin-portal
|
|
114
|
-
X-Token-Id: {{$guid}}
|
|
115
|
-
X-Device-Info: Admin Portal/1.0
|
|
116
|
-
X-Forwarded-For: 192.168.1.100
|
|
117
|
-
user_reference: admin-001
|
|
118
|
-
Content-Type: application/json
|
|
119
|
-
|
|
120
|
-
{
|
|
121
|
-
"attributes": {
|
|
122
|
-
"publishedBy": "admin-001",
|
|
123
|
-
"publishedAt": "{{$datetime iso8601}}"
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
|
|
@@ -1,126 +0,0 @@
|
|
|
1
|
-
### Variables
|
|
2
|
-
@workflow = client
|
|
3
|
-
|
|
4
|
-
### 1. Start Client
|
|
5
|
-
# @name startClient
|
|
6
|
-
POST {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/client/instances/start?sync=true
|
|
7
|
-
Accept-Language: tr-TR
|
|
8
|
-
X-Request-Id: {{$guid}}
|
|
9
|
-
X-Device-Id: admin-portal
|
|
10
|
-
X-Token-Id: {{$guid}}
|
|
11
|
-
X-Device-Info: Admin Portal/1.0
|
|
12
|
-
X-Forwarded-For: 192.168.1.100
|
|
13
|
-
user_reference: admin-001
|
|
14
|
-
Content-Type: application/json
|
|
15
|
-
|
|
16
|
-
{
|
|
17
|
-
"key": "{{clientKeyWeb}}",
|
|
18
|
-
"tags": [
|
|
19
|
-
"test",
|
|
20
|
-
"banking",
|
|
21
|
-
"client"
|
|
22
|
-
],
|
|
23
|
-
"attributes": {
|
|
24
|
-
"clientName": "AmorphPortal",
|
|
25
|
-
"clientType": "confidential",
|
|
26
|
-
"applicationType": "web",
|
|
27
|
-
"secret": "super_secret_key_12345",
|
|
28
|
-
"keySize": 2048,
|
|
29
|
-
"allowedGrants": [
|
|
30
|
-
"authorization_code",
|
|
31
|
-
"refresh_token",
|
|
32
|
-
"client_credentials",
|
|
33
|
-
"password"
|
|
34
|
-
],
|
|
35
|
-
"allowedFirstFactor": [
|
|
36
|
-
"password",
|
|
37
|
-
"sldap"
|
|
38
|
-
],
|
|
39
|
-
"redirectUris": {
|
|
40
|
-
"PortalCallback": "https://portal.amorph.com/callback",
|
|
41
|
-
"PortalAuth": "https://portal.amorph.com/auth/callback",
|
|
42
|
-
"LocalDev": "http://localhost:3000/callback"
|
|
43
|
-
},
|
|
44
|
-
"postLogoutRedirectUris": [
|
|
45
|
-
"https://portal.amorph.com/logout",
|
|
46
|
-
"https://portal.amorph.com/goodbye"
|
|
47
|
-
],
|
|
48
|
-
"allowedOrigins": [
|
|
49
|
-
"https://portal.amorph.com",
|
|
50
|
-
"http://localhost:3000"
|
|
51
|
-
],
|
|
52
|
-
"loginURI": "https://portal.amorph.com/login",
|
|
53
|
-
"returnURI": "https://portal.amorph.com/dashboard",
|
|
54
|
-
"logoutURI": "https://portal.amorph.com/logout-complete",
|
|
55
|
-
"clientUri": "https://portal.amorph.com",
|
|
56
|
-
"logoUri": "https://portal.amorph.com/assets/logo.png",
|
|
57
|
-
"policyUri": "https://portal.amorph.com/privacy",
|
|
58
|
-
"tosUri": "https://portal.amorph.com/terms",
|
|
59
|
-
"responseTypes": [
|
|
60
|
-
"code"
|
|
61
|
-
],
|
|
62
|
-
"tokenEndpointAuthMethod": "client_secret_post",
|
|
63
|
-
"accessTokenFormat": "jwt",
|
|
64
|
-
"authorizationCodeLifetime": "PT1M",
|
|
65
|
-
"tokens": [
|
|
66
|
-
{
|
|
67
|
-
"type": "identity",
|
|
68
|
-
"duration": "PT15M",
|
|
69
|
-
"claims": [{"name": "sub", "value": "{{user.id}}"}],
|
|
70
|
-
"privateClaims": [{"name": "internal_id", "value": "{{user.internalId}}"}],
|
|
71
|
-
"excludeClaims": []
|
|
72
|
-
},
|
|
73
|
-
{
|
|
74
|
-
"type": "access",
|
|
75
|
-
"duration": "PT1H",
|
|
76
|
-
"claims": [{"name": "sub", "value": "{{user.id}}"}, {"name": "scope", "value": "{{user.scopes}}"}],
|
|
77
|
-
"privateClaims": [],
|
|
78
|
-
"excludeClaims": ["internal_id"]
|
|
79
|
-
},
|
|
80
|
-
{
|
|
81
|
-
"type": "refresh",
|
|
82
|
-
"duration": "P30D",
|
|
83
|
-
"claims": [{"name": "sub", "value": "{{user.id}}"}]
|
|
84
|
-
}
|
|
85
|
-
],
|
|
86
|
-
"refreshTokenPolicy": {
|
|
87
|
-
"rotation": "rotate",
|
|
88
|
-
"absoluteLifetime": "P90D",
|
|
89
|
-
"reuseInterval": "PT5M"
|
|
90
|
-
},
|
|
91
|
-
"pkce": {
|
|
92
|
-
"mode": "optional",
|
|
93
|
-
"codeChallengeMethods": [
|
|
94
|
-
"S256",
|
|
95
|
-
"plain"
|
|
96
|
-
],
|
|
97
|
-
"defaultMethod": "S256"
|
|
98
|
-
},
|
|
99
|
-
"allowedScopeGroups": [
|
|
100
|
-
"reference",
|
|
101
|
-
"retail",
|
|
102
|
-
"retail-customers"
|
|
103
|
-
]
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
### 4. Publish Client (Draft -> Active)
|
|
108
|
-
# Current state should be 'draft'
|
|
109
|
-
# @name publishClient
|
|
110
|
-
PATCH {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/client/instances/{{clientKeyWeb}}/transitions/publish?sync=true
|
|
111
|
-
Accept-Language: tr-TR
|
|
112
|
-
X-Request-Id: {{$guid}}
|
|
113
|
-
X-Device-Id: admin-portal
|
|
114
|
-
X-Token-Id: {{$guid}}
|
|
115
|
-
X-Device-Info: Admin Portal/1.0
|
|
116
|
-
X-Forwarded-For: 192.168.1.100
|
|
117
|
-
user_reference: admin-001
|
|
118
|
-
Content-Type: application/json
|
|
119
|
-
|
|
120
|
-
{
|
|
121
|
-
"attributes": {
|
|
122
|
-
"publishedBy": "admin-001",
|
|
123
|
-
"publishedAt": "{{$datetime iso8601}}"
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
const { Client } = require('pg');
|
|
2
|
-
|
|
3
|
-
const config = {
|
|
4
|
-
user: process.env.DB_USER || 'postgres',
|
|
5
|
-
host: process.env.DB_HOST || 'localhost',
|
|
6
|
-
database: process.env.DB_NAME || 'vNext_Morph_idm',
|
|
7
|
-
password: process.env.DB_PASSWORD || 'postgres',
|
|
8
|
-
port: process.env.DB_PORT || 5432,
|
|
9
|
-
};
|
|
10
|
-
|
|
11
|
-
const httpyac = require('../.httpyac.json');
|
|
12
|
-
const params = httpyac.environments.dev;
|
|
13
|
-
|
|
14
|
-
const queries = [
|
|
15
|
-
{ name: 'clientNative', sql: `DELETE FROM client."Instances" WHERE "Key" = '${params.clientKeyNative}'` },
|
|
16
|
-
{ name: 'clientWeb', sql: `DELETE FROM client."Instances" WHERE "Key" = '${params.clientKeyWeb}'` },
|
|
17
|
-
{ name: 'person1', sql: `DELETE FROM person."Instances" WHERE "Key" = '${params.personKey1}'` },
|
|
18
|
-
{ name: 'person2', sql: `DELETE FROM person."Instances" WHERE "Key" = '${params.personKey2}'` },
|
|
19
|
-
{ name: 'user1', sql: `DELETE FROM "user"."Instances" WHERE "Key" = '${params.userKey1}'` },
|
|
20
|
-
{ name: 'user2', sql: `DELETE FROM "user"."Instances" WHERE "Key" = '${params.userKey2}'` },
|
|
21
|
-
{ name: 'device', sql: `DELETE FROM device."Instances" WHERE "Key" = '${params.deviceId}'` },
|
|
22
|
-
];
|
|
23
|
-
|
|
24
|
-
async function cleanup() {
|
|
25
|
-
const client = new Client(config);
|
|
26
|
-
|
|
27
|
-
try {
|
|
28
|
-
await client.connect();
|
|
29
|
-
console.log('Connected to database');
|
|
30
|
-
|
|
31
|
-
let totalDeleted = 0;
|
|
32
|
-
for (const query of queries) {
|
|
33
|
-
const result = await client.query(query.sql);
|
|
34
|
-
if (result.rowCount > 0) {
|
|
35
|
-
console.log(`${query.name}: ${result.rowCount} deleted`);
|
|
36
|
-
totalDeleted += result.rowCount;
|
|
37
|
-
} else {
|
|
38
|
-
console.log(`${query.name}: nothing to delete`);
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
console.log(`\nTotal: ${totalDeleted} rows deleted`);
|
|
42
|
-
|
|
43
|
-
} catch (err) {
|
|
44
|
-
console.error('Database cleanup failed:', err.message);
|
|
45
|
-
process.exit(1);
|
|
46
|
-
} finally {
|
|
47
|
-
await client.end();
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
cleanup();
|