@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,122 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env bash
|
|
2
|
-
###############################################################################
|
|
3
|
-
# user-login-e2e.sh
|
|
4
|
-
#
|
|
5
|
-
# user-login-e2e.http akışını uçtan uca curl ile sürer:
|
|
6
|
-
# SETUP (person, user, user-password, scope, consent, device, definitions)
|
|
7
|
-
# → LOGIN (login → user-validation → login-approvement → security-check → login-success)
|
|
8
|
-
#
|
|
9
|
-
# Kullanım:
|
|
10
|
-
# ./user-login-e2e.sh # taze (benzersiz) numerik kullanıcı anahtarı üretir
|
|
11
|
-
# ./user-login-e2e.sh 12345 # belirli bir kullanıcı anahtarıyla çalışır
|
|
12
|
-
# BASE_URL=http://host:4251 OTP=123456 ./user-login-e2e.sh
|
|
13
|
-
#
|
|
14
|
-
# Notlar:
|
|
15
|
-
# • login-approvement push/OTP için messaging-service mock'una (:3030) gider.
|
|
16
|
-
# Mock ayakta değilse push-send başarısız → otp-send → onay/doğrulama yapılamaz
|
|
17
|
-
# ve login-success'e ULAŞILMAZ (script bunu açıkça raporlar).
|
|
18
|
-
# • Şifre doğrulaması için morph-idm-api ayakta olmalı.
|
|
19
|
-
###############################################################################
|
|
20
|
-
set -uo pipefail
|
|
21
|
-
|
|
22
|
-
BASE="${BASE_URL:-http://localhost:4251}"
|
|
23
|
-
API="v1"; DOMAIN="morph-idm"
|
|
24
|
-
WF="$BASE/api/$API/$DOMAIN/workflows"
|
|
25
|
-
|
|
26
|
-
U="${1:-$(date +%s | tail -c 8)}" # kullanıcı = person = login userName
|
|
27
|
-
SK="$U-$U" # scope key = {scope}-{userKey}
|
|
28
|
-
CK="$U-IbWeb-$SK" # consent key = {userKey}-{client}-{scopeKey}
|
|
29
|
-
DID="d$U" # deviceId / installationId (alfanümerik, kullanıcıya özel)
|
|
30
|
-
DKEY="device-$DID" # device instance key
|
|
31
|
-
QDEF="11111111-2222-3333-4444-555555555554" # security-question-definition
|
|
32
|
-
IDEF="11111111-2222-3333-4444-555555555556" # anti-phishing-image-definition
|
|
33
|
-
PWHASH="AQAAAAEAACcQAAAAEOBwk1rYGrRTchrgqNcty8pn5z97kz3uXdYtghWY/uBSMtBWP6ZbsOT/6knH3UP+Hw=="
|
|
34
|
-
PWSALT="79e756ec-cdb1-4ad4-8e40-5c0260ab16b7"
|
|
35
|
-
PLAIN="123456" # düz şifre (hash ile eşleşir)
|
|
36
|
-
OTP="${OTP:-745952}" # otp-waiting'te denenecek OTP (mock varsa geçerli olmalı)
|
|
37
|
-
CC="E9Melhoa2OwvFrEMTJguCHaoeK1t8URWbuGJSstw-cM"
|
|
38
|
-
|
|
39
|
-
H=(-H "Accept-Language: tr-TR" -H "Content-Type: application/json" -H "user_reference: test-admin")
|
|
40
|
-
g(){ uuidgen; }
|
|
41
|
-
now(){ date -u +%Y-%m-%dT%H:%M:%SZ; }
|
|
42
|
-
field(){ python3 -c "import sys,json
|
|
43
|
-
try: print(json.load(sys.stdin).get('$1',''))
|
|
44
|
-
except Exception: print('')"; }
|
|
45
|
-
|
|
46
|
-
# POST start → "<httpcode>|<state>|<id>" (pipe ile ayrılır: state boşsa id kaymaz)
|
|
47
|
-
post(){ local r c b
|
|
48
|
-
r=$(curl -s -w $'\n%{http_code}' "${H[@]}" -H "X-Request-Id: $(g)" -H "X-Token-Id: $(g)" "$WF/$1/instances/start?sync=true" -d "$2")
|
|
49
|
-
c=$(printf '%s' "$r" | tail -1); b=$(printf '%s' "$r" | sed '$d')
|
|
50
|
-
echo "$c|$(printf '%s' "$b" | field state)|$(printf '%s' "$b" | field id)"; }
|
|
51
|
-
# PATCH transition → httpcode
|
|
52
|
-
tr_(){ curl -s -o /dev/null -w "%{http_code}" -X PATCH "${H[@]}" -H "X-Request-Id: $(g)" -H "X-Token-Id: $(g)" \
|
|
53
|
-
-H "user_reference: $U" "$WF/$1/instances/$2/transitions/$3?sync=true" -d "$4"; }
|
|
54
|
-
st(){ curl -s "${H[@]}" "$WF/$1/instances/$2/functions/state" | field state; }
|
|
55
|
-
|
|
56
|
-
echo "=================================================================="
|
|
57
|
-
echo " user-login E2E user=$U scope=$SK consent=$CK device=$DKEY"
|
|
58
|
-
echo " runtime=$BASE"
|
|
59
|
-
nc -z localhost 3030 2>/dev/null && echo " messaging-mock :3030 = UP" \
|
|
60
|
-
|| echo " messaging-mock :3030 = DOWN → push/OTP onayı tamamlanamaz (login-success'e ulaşılamaz)"
|
|
61
|
-
echo "=================================================================="
|
|
62
|
-
|
|
63
|
-
echo "── SETUP ──────────────────────────────────────────────────────"
|
|
64
|
-
r=$(post person "{\"key\":\"$U\",\"tags\":[\"e2e\"],\"attributes\":{\"name\":{\"first\":\"Test\",\"last\":\"User\"}}}")
|
|
65
|
-
echo "S1 person start : $r"
|
|
66
|
-
echo "S1b person publish : $(tr_ person "$U" publish "{\"attributes\":{\"publishedBy\":\"e2e\",\"publishedAt\":\"$(now)\"}}") → $(st person "$U")"
|
|
67
|
-
r=$(post user "{\"key\":\"$U\",\"tags\":[\"e2e\"],\"attributes\":{\"type\":\"person\",\"status\":{\"type\":20,\"state\":10,\"reason\":10,\"reasonDescription\":\"e2e\",\"createdByUserName\":\"e2e\",\"createdAt\":\"$(now)\"},\"person\":{\"domain\":\"morph-idm\",\"workflow\":\"person\",\"key\":\"$U\",\"version\":\"1.0.0\"},\"mobilePhonesNumbers\":[{\"countryCode\":\"90\",\"areaCode\":\"539\",\"number\":\"1111111\",\"useForOTP\":true}]}}")
|
|
68
|
-
echo "S2 user start : $r → state=$(st user "$U")"
|
|
69
|
-
# user start->active beklenir; 'draft' ise publish dene
|
|
70
|
-
[ "$(st user "$U")" = "draft" ] && echo "S2c user publish : $(tr_ user "$U" publish "{\"attributes\":{\"publishedBy\":\"e2e\",\"publishedAt\":\"$(now)\"}}") → $(st user "$U")"
|
|
71
|
-
r=$(post user-password-set "{\"key\":\"$U\",\"tags\":[\"e2e\"],\"attributes\":{\"source\":\"initial\",\"passwordEntry\":{\"type\":\"Password\",\"salt\":\"$PWSALT\",\"mustResetPassword\":false,\"failCount\":0,\"source\":{\"password\":\"$PWHASH\",\"algorithm\":\"pbkdf2-hmacsha256\",\"lastUpdatedDate\":\"$(now)\"}}}}")
|
|
72
|
-
echo "S3 user-password-set : $r"
|
|
73
|
-
for i in $(seq 1 10); do [ "$(st user-password-set "$U")" = "completed" ] && break; sleep 1; done
|
|
74
|
-
for i in $(seq 1 10); do [ "$(st user-password "$U")" = "active" ] && break; sleep 1; done
|
|
75
|
-
echo "S3b pwset state=$(st user-password-set "$U") user-password=$(st user-password "$U")"
|
|
76
|
-
r=$(post scope "{\"key\":\"$SK\",\"tags\":[\"e2e\"],\"attributes\":{\"group\":{\"domain\":\"morph-idm\",\"workflow\":\"scope-group\",\"key\":\"retail-customers\"}}}")
|
|
77
|
-
echo "S4 scope start : $r publish=$(tr_ scope "$SK" publish "{\"attributes\":{\"publishedBy\":\"e2e\",\"publishedAt\":\"$(now)\"}}") → $(st scope "$SK")"
|
|
78
|
-
r=$(post consent "{\"key\":\"$CK\",\"tags\":[\"e2e\"],\"attributes\":{\"user\":{\"domain\":\"morph-idm\",\"workflow\":\"user\",\"key\":\"$U\",\"version\":\"1.0.0\"},\"client\":{\"domain\":\"morph-idm\",\"workflow\":\"client\",\"key\":\"IbWeb\",\"version\":\"1.0.0\"},\"scope\":{\"domain\":\"morph-idm\",\"workflow\":\"scope\",\"key\":\"$SK\",\"version\":\"1.0.0\"},\"roles\":[{\"role\":\"idm.full-authorized\",\"grant\":\"allow\"}],\"grantedAt\":\"$(now)\",\"expiresAt\":\"2027-01-01T00:00:00Z\",\"isAutoConsent\":true}}")
|
|
79
|
-
echo "S5 consent start : $r configure=$(tr_ consent "$CK" configure "{\"attributes\":{\"publishedBy\":\"e2e\",\"publishedAt\":\"$(now)\"}}") → $(st consent "$CK")"
|
|
80
|
-
r=$(post device "{\"key\":\"$DKEY\",\"tags\":[\"e2e\"],\"attributes\":{\"deviceId\":\"$DID\",\"installationId\":\"$DID\",\"user\":\"$U\",\"deviceInfo\":{\"osName\":\"Android\",\"osVersion\":\"14\",\"deviceModel\":\"Galaxy S23\",\"manufacturer\":\"Samsung\",\"userAgent\":\"MobileBanking/3.0 (Android 14)\",\"screenResolution\":\"3088x1440\",\"language\":\"tr-TR\",\"timezone\":\"Europe/Istanbul\"},\"deviceCertificatePublicKey\":\"-----BEGIN PUBLIC KEY-----\\nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8A\\n-----END PUBLIC KEY-----\",\"appVersion\":\"3.0.0\",\"pushToken\":{\"platform\":\"fcm\",\"token\":\"dGVzdA==\",\"projectId\":\"bank\",\"packageName\":\"com.bank\",\"updatedAt\":\"$(now)\"}}}")
|
|
81
|
-
echo "S6 device start : $r assign=$(tr_ device "$DKEY" assign-user "{\"attributes\":{\"user\":{\"domain\":\"morph-idm\",\"workflow\":\"user\",\"key\":\"$U\",\"version\":\"1.0.0\"},\"certificates\":[],\"lastSeenAt\":\"$(now)\"}}") → $(st device "$DKEY")"
|
|
82
|
-
post security-question-definition "{\"key\":\"$QDEF\",\"tags\":[\"e2e\"],\"attributes\":{}}" >/dev/null
|
|
83
|
-
tr_ security-question-definition "$QDEF" define "{\"attributes\":{\"key\":\"mother-maiden-name\",\"groupKey\":\"family\",\"descriptionTr\":\"Annenizin kızlık soyadı?\",\"descriptionEn\":\"Mother maiden name?\",\"priority\":1,\"valueTypeClr\":\"String\"}}" >/dev/null
|
|
84
|
-
tr_ security-question-definition "$QDEF" publish "{\"attributes\":{\"publishedBy\":\"e2e\",\"publishedAt\":\"$(now)\"}}" >/dev/null
|
|
85
|
-
post anti-phishing-image-definition "{\"key\":\"$IDEF\",\"tags\":[\"e2e\"],\"attributes\":{}}" >/dev/null
|
|
86
|
-
tr_ anti-phishing-image-definition "$IDEF" define "{\"attributes\":{\"imagePath\":\"https://www.test.com.tr/x.jpg\",\"titleTr\":\"Fare\",\"titleEn\":\"Mice\"}}" >/dev/null
|
|
87
|
-
tr_ anti-phishing-image-definition "$IDEF" publish "{\"attributes\":{\"publishedBy\":\"e2e\",\"publishedAt\":\"$(now)\"}}" >/dev/null
|
|
88
|
-
echo "S7/S8 definitions : qdef=$(st security-question-definition "$QDEF") idef=$(st anti-phishing-image-definition "$IDEF")"
|
|
89
|
-
|
|
90
|
-
echo "── LOGIN ──────────────────────────────────────────────────────"
|
|
91
|
-
r=$(post user-login "{\"key\":\"login-$U-$(date +%s)\",\"tags\":[\"e2e\"],\"attributes\":{\"clientId\":\"IbWeb\",\"grantType\":\"authorization_code\",\"scopes\":[\"IbCustomer\"],\"scopeGroup\":\"retail-customers\",\"allowConsentSelection\":false}}")
|
|
92
|
-
IID=$(echo "$r" | cut -d'|' -f3)
|
|
93
|
-
echo "L1 start login : $r"
|
|
94
|
-
echo "L2 login transition : $(tr_ user-login "$IID" login "{\"attributes\":{\"clientId\":\"IbWeb\",\"grantType\":\"authorization_code\",\"scopes\":[\"IbCustomer\"],\"scope\":\"$U\",\"codeChallenge\":\"$CC\",\"codeChallengeMethod\":\"S256\",\"userName\":\"$U\",\"password\":\"$PLAIN\",\"deviceId\":\"$DID\",\"installationId\":\"$DID\",\"loginMethod\":\"password\",\"ipAddress\":\"1.1.1.1\",\"userAgent\":\"ua\",\"loginTimestamp\":\"$(now)\"}}")"
|
|
95
|
-
|
|
96
|
-
# ── durum makinesini sür: bilinen bekleme durumlarında ilgili transition'ı bir kez tetikle
|
|
97
|
-
# NOT: retry-login OTOMATİK tetiklenmez — doğru şifre user-validation'ı kendiliğinden geçer;
|
|
98
|
-
# işlenirken retry-login göndermek instance'ı FAULTED yapar. retry-login yalnızca yanlış
|
|
99
|
-
# şifre senaryosu içindir (bu mutlu yol senaryosunda kullanılmaz).
|
|
100
|
-
approve_done=0; otp_done=0; consent_done=0; secq_done=0; secimg_done=0
|
|
101
|
-
last=""
|
|
102
|
-
echo " akış izi:"
|
|
103
|
-
for i in $(seq 1 60); do
|
|
104
|
-
s=$(st user-login "$IID")
|
|
105
|
-
[ "$s" != "$last" ] && { echo " → $s"; last="$s"; }
|
|
106
|
-
case "$s" in
|
|
107
|
-
login-success) echo "✅ SONUÇ: login-success"; exit 0 ;;
|
|
108
|
-
*-end|user-status-fail|locked-end)
|
|
109
|
-
echo "⛔ SONUÇ: terminal '$s'."
|
|
110
|
-
[ "$s" = "notification-failed-end" ] && echo " (push/OTP gönderimi başarısız — messaging-mock :3030 muhtemelen kapalı)"
|
|
111
|
-
exit 1 ;;
|
|
112
|
-
push-waiting) [ $approve_done = 0 ] && { echo " ⇒ approve-push"; tr_ user-login "$IID" approve-push "{\"attributes\":{\"pushReference\":\"push-$(g)\"}}" >/dev/null; approve_done=1; } ;;
|
|
113
|
-
otp-waiting) [ $otp_done = 0 ] && { echo " ⇒ verify-otp ($OTP)"; tr_ user-login "$IID" verify-otp "{\"attributes\":{\"otpReference\":$OTP}}" >/dev/null; otp_done=1; } ;;
|
|
114
|
-
consent-selection) [ $consent_done = 0 ] && { echo " ⇒ select-consent"; tr_ user-login "$IID" select-consent "{\"attributes\":{\"selectedConsentKey\":\"$CK\"}}" >/dev/null; consent_done=1; } ;;
|
|
115
|
-
*security-question*) [ $secq_done = 0 ] && { echo " ⇒ set-security-question"; tr_ user-login "$IID" set-security-question "{\"attributes\":{\"newQuestionDefinitionId\":\"$QDEF\",\"newAnswer\":\"test-cevap-123\",\"changeReason\":\"force-on-login\"}}" >/dev/null; secq_done=1; } ;;
|
|
116
|
-
*security-image*) [ $secimg_done = 0 ] && { echo " ⇒ set-security-image"; tr_ user-login "$IID" set-security-image "{\"attributes\":{\"imageDefinitionId\":\"$IDEF\"}}" >/dev/null; secimg_done=1; } ;;
|
|
117
|
-
esac
|
|
118
|
-
sleep 2
|
|
119
|
-
done
|
|
120
|
-
echo "⌛ SONUÇ: zaman aşımı — son durum '$(st user-login "$IID")' (id=$IID)"
|
|
121
|
-
echo " Veri: curl -s '$WF/user-login/instances/$IID/functions/data'"
|
|
122
|
-
exit 2
|
package/morph-idm/Views/.gitkeep
DELETED
|
File without changes
|
|
File without changes
|
|
@@ -1,370 +0,0 @@
|
|
|
1
|
-
###############################################################################
|
|
2
|
-
# anti-phishing-image-change — güvenlik resmi değiştirme
|
|
3
|
-
#
|
|
4
|
-
# KİMLİK: body'deki "key" DEĞİL, start isteğinin token-claim header'larından çözülür
|
|
5
|
-
# (src/ResolveUserKeyMapping.csx):
|
|
6
|
-
# bireysel : act_sub == sub -> userKey = act_sub
|
|
7
|
-
# kurumsal : act_sub != sub -> userKey = act_sub-sub
|
|
8
|
-
# 3F: client_id header'ı CONFIRM isteğinde ŞART — ThirdFactorSubFlowMapping third-factor
|
|
9
|
-
# state'ine girerken (confirm'in sonucu) o isteğin header'ından okur; start'taki header taşınmaz.
|
|
10
|
-
# Yoksa 3F "client-not-found" döner → third-factor-failed → error-popup.
|
|
11
|
-
# Kural: her mapping yalnız KENDİ tetikleyen isteğin header'larını görür. (Lokalde doğrulandı 2026-11-11)
|
|
12
|
-
#
|
|
13
|
-
# STATE ZİNCİRİ:
|
|
14
|
-
# start(act_sub,sub,client_id) -> draft --auto--> select-image
|
|
15
|
-
# --select-image{imageDefinitionId}--> validating-definition --auto--> update-security-image-confirm
|
|
16
|
-
# --confirm-------------> third-factor (SubFlow third-factor-vnext)
|
|
17
|
-
# --> third-factor-result --(Success)--> processing --(ok)--> completed
|
|
18
|
-
# --(Failed)---> error-popup --retry--> select-image
|
|
19
|
-
# --confirmation-cancel--> select-image ("Emin misiniz?" → Vazgeç → seçim ekranı)
|
|
20
|
-
# her state'ten: cancel (workflow-level) -> cancelled-end (ekranı tamamen terk)
|
|
21
|
-
# genel timeout: PT1H (workflow-level, reset: workflow-start) -> timeout-end
|
|
22
|
-
#
|
|
23
|
-
# 3F yöntemi client'ın applicationType'ına göre (third-factor-vnext/SetFlowMapping):
|
|
24
|
-
# native → "self" (OTP/push YOK, otomatik tamamlanır) ← bu dosya bunu kullanır
|
|
25
|
-
# web → cihaz varsa push, yoksa OTP (kullanıcı girdisi bekler; .http ile tamamlanamaz)
|
|
26
|
-
#
|
|
27
|
-
# HOLDER KEY: anti-phishing-image-user / -set instance key'i = {userKey}-{userInstanceId}
|
|
28
|
-
# (user instance GUID'i, tireli küçük harf). Düz userKey → HOLDER_KEY_NOT_COMPOSITE.
|
|
29
|
-
#
|
|
30
|
-
# KOŞMA SIRASI: SETUP S1–S7 (bir kez), sonra senaryolar. Tekrar koşarken @userKey'i değiştir.
|
|
31
|
-
###############################################################################
|
|
32
|
-
|
|
33
|
-
### ---- Ortam ----
|
|
34
|
-
# {{baseUrl}} = lokal (http://localhost:4251) | {{baseUrl1}} = TEST (.vscode/settings.json)
|
|
35
|
-
@b = {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows
|
|
36
|
-
|
|
37
|
-
### ---- Test verisi ----
|
|
38
|
-
@workflow = anti-phishing-image-change
|
|
39
|
-
@userKey = 99900100403
|
|
40
|
-
@personKey = {{userKey}}
|
|
41
|
-
@actSub = {{userKey}}
|
|
42
|
-
@sub = {{userKey}}
|
|
43
|
-
# Kurumsal denemek için: @sub = 20183007 → userKey = {{actSub}}-20183007
|
|
44
|
-
|
|
45
|
-
# native client → 3F "self" yoluyla otomatik tamamlanır
|
|
46
|
-
@clientId = IbAndroidApp-test
|
|
47
|
-
|
|
48
|
-
# iki resim tanımı: biri mevcut, diğeri hedef
|
|
49
|
-
@imageDefinitionId = aa110000-0000-4000-8000-000000000001
|
|
50
|
-
@imageDefinitionId2 = aa110000-0000-4000-8000-000000000002
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
###############################################################################
|
|
54
|
-
# SETUP
|
|
55
|
-
###############################################################################
|
|
56
|
-
|
|
57
|
-
### S1. Native client oluştur (3F "self" için applicationType=native)
|
|
58
|
-
POST {{b}}/client/instances/start?sync=true
|
|
59
|
-
Content-Type: application/json
|
|
60
|
-
X-Request-Id: {{$guid}}
|
|
61
|
-
|
|
62
|
-
{
|
|
63
|
-
"key": "{{clientId}}",
|
|
64
|
-
"tags": ["test", "seed", "client"],
|
|
65
|
-
"attributes": {
|
|
66
|
-
"clientName": "{{clientId}}",
|
|
67
|
-
"clientType": "confidential",
|
|
68
|
-
"applicationType": "native",
|
|
69
|
-
"allowedGrants": ["authorization_code", "refresh_token"],
|
|
70
|
-
"rsaCreation": {
|
|
71
|
-
"success": true,
|
|
72
|
-
"privateKey": "integration-test-rsa-private-placeholder",
|
|
73
|
-
"publicKey": "integration-test-rsa-public-placeholder",
|
|
74
|
-
"password": "integration-test-rsa-protect-password-not-the-secret"
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
### S1b. Client state → active (client akışı start'ta doğrudan active'e düşer, publish gerekmez)
|
|
80
|
-
GET {{b}}/client/instances/{{clientId}}/functions/state
|
|
81
|
-
X-Request-Id: {{$guid}}
|
|
82
|
-
|
|
83
|
-
### S2. Resim tanımı 1 — oluştur (draft'a düşer; S2b define + S2c publish ile active olur)
|
|
84
|
-
POST {{b}}/anti-phishing-image-definition/instances/start?sync=true
|
|
85
|
-
Content-Type: application/json
|
|
86
|
-
X-Request-Id: {{$guid}}
|
|
87
|
-
|
|
88
|
-
{ "key": "{{imageDefinitionId}}", "tags": ["test", "seed", "definition"], "attributes": {} }
|
|
89
|
-
|
|
90
|
-
### S2b. tanımla
|
|
91
|
-
PATCH {{b}}/anti-phishing-image-definition/instances/{{imageDefinitionId}}/transitions/define?sync=true
|
|
92
|
-
Content-Type: application/json
|
|
93
|
-
X-Request-Id: {{$guid}}
|
|
94
|
-
|
|
95
|
-
{ "attributes": { "imagePath": "https://example.com/img/seed-1.jpg", "titleTr": "Deniz", "titleEn": "Sea" } }
|
|
96
|
-
|
|
97
|
-
### S2c. yayınla (→ active)
|
|
98
|
-
PATCH {{b}}/anti-phishing-image-definition/instances/{{imageDefinitionId}}/transitions/publish?sync=true
|
|
99
|
-
Content-Type: application/json
|
|
100
|
-
X-Request-Id: {{$guid}}
|
|
101
|
-
|
|
102
|
-
{}
|
|
103
|
-
|
|
104
|
-
### S3. Resim tanımı 2 — oluştur
|
|
105
|
-
POST {{b}}/anti-phishing-image-definition/instances/start?sync=true
|
|
106
|
-
Content-Type: application/json
|
|
107
|
-
X-Request-Id: {{$guid}}
|
|
108
|
-
|
|
109
|
-
{ "key": "{{imageDefinitionId2}}", "tags": ["test", "seed", "definition"], "attributes": {} }
|
|
110
|
-
|
|
111
|
-
### S3b. tanımla
|
|
112
|
-
PATCH {{b}}/anti-phishing-image-definition/instances/{{imageDefinitionId2}}/transitions/define?sync=true
|
|
113
|
-
Content-Type: application/json
|
|
114
|
-
X-Request-Id: {{$guid}}
|
|
115
|
-
|
|
116
|
-
{ "attributes": { "imagePath": "https://example.com/img/seed-2.jpg", "titleTr": "Dağ", "titleEn": "Mountain" } }
|
|
117
|
-
|
|
118
|
-
### S3c. yayınla
|
|
119
|
-
PATCH {{b}}/anti-phishing-image-definition/instances/{{imageDefinitionId2}}/transitions/publish?sync=true
|
|
120
|
-
Content-Type: application/json
|
|
121
|
-
X-Request-Id: {{$guid}}
|
|
122
|
-
|
|
123
|
-
{}
|
|
124
|
-
|
|
125
|
-
### S4. Person
|
|
126
|
-
POST {{b}}/person/instances/start?sync=true
|
|
127
|
-
Content-Type: application/json
|
|
128
|
-
X-Request-Id: {{$guid}}
|
|
129
|
-
|
|
130
|
-
{
|
|
131
|
-
"key": "{{personKey}}",
|
|
132
|
-
"tags": ["test", "anti-phishing-image"],
|
|
133
|
-
"attributes": { "personType": "retail-customers", "name": { "first": "Resim", "last": "Test" } }
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
### S5. User — dönen id holder key için gerekli
|
|
137
|
-
# @name createUser
|
|
138
|
-
POST {{b}}/user/instances/start?sync=true
|
|
139
|
-
Content-Type: application/json
|
|
140
|
-
X-Request-Id: {{$guid}}
|
|
141
|
-
|
|
142
|
-
{
|
|
143
|
-
"key": "{{userKey}}",
|
|
144
|
-
"tags": ["test", "anti-phishing-image"],
|
|
145
|
-
"attributes": {
|
|
146
|
-
"type": "person",
|
|
147
|
-
"person": { "domain": "morph-idm", "workflow": "person", "key": "{{personKey}}", "version": "1.0.0" },
|
|
148
|
-
"scope": { "domain": "morph-idm", "workflow": "scope", "key": "{{userKey}}", "version": "1.0.0" },
|
|
149
|
-
"mobilePhonesNumbers": [ { "countryCode": "90", "areaCode": "539", "number": "1111111", "useForOTP": true } ],
|
|
150
|
-
"status": { "state": 10, "reason": 10, "reasonDescription": "http test seed", "createdByUserName": "http-test", "createdAt": "{{$datetime iso8601}}" }
|
|
151
|
-
}
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
###
|
|
155
|
-
@userInstanceId = {{createUser.response.body.id}}
|
|
156
|
-
@holderKey = {{userKey}}-{{userInstanceId}}
|
|
157
|
-
|
|
158
|
-
### S6. Kullanıcının MEVCUT resmini kur (tanım 1) — anti-phishing-image-set, key = holderKey
|
|
159
|
-
POST {{b}}/anti-phishing-image-set/instances/start?sync=true
|
|
160
|
-
Content-Type: application/json
|
|
161
|
-
X-Request-Id: {{$guid}}
|
|
162
|
-
|
|
163
|
-
{
|
|
164
|
-
"key": "{{holderKey}}",
|
|
165
|
-
"tags": ["test", "anti-phishing-image", "seed"],
|
|
166
|
-
"attributes": { "source": "initial", "imageEntry": { "imageDefinitionId": "{{imageDefinitionId}}", "requireChange": false } }
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
### S7. SETUP doğrulaması — aktif resim tanım 1 olmalı
|
|
170
|
-
# Decoded filter: {"and":[{"key":{"eq":"{{holderKey}}"}},{"currentState":{"eq":"active"}}]}
|
|
171
|
-
GET {{b}}/anti-phishing-image-user/instances?pageSize=1&filter=%7B%22and%22%3A%5B%7B%22key%22%3A%7B%22eq%22%3A%22{{holderKey}}%22%7D%7D%2C%7B%22currentState%22%3A%7B%22eq%22%3A%22active%22%7D%7D%5D%7D
|
|
172
|
-
X-Request-Id: {{$guid}}
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
###############################################################################
|
|
176
|
-
# SENARYO 1 — "Emin misiniz?" ekranında VAZGEÇ → seçim ekranına döner
|
|
177
|
-
# (prod davranışı: resmi seç → onay popup → cancel → resim seçimi)
|
|
178
|
-
###############################################################################
|
|
179
|
-
|
|
180
|
-
### 1.1 Start — header'lar: act_sub, sub, client_id
|
|
181
|
-
# @name s1
|
|
182
|
-
POST {{b}}/{{workflow}}/instances/start?sync=true
|
|
183
|
-
Content-Type: application/json
|
|
184
|
-
Accept-Language: tr-TR
|
|
185
|
-
X-Request-Id: {{$guid}}
|
|
186
|
-
act_sub: {{actSub}}
|
|
187
|
-
sub: {{sub}}
|
|
188
|
-
client_id: {{clientId}}
|
|
189
|
-
|
|
190
|
-
{ "key": "img-cancel-{{$timestamp}}", "tags": ["test", "anti-phishing-image", "change"], "attributes": {} }
|
|
191
|
-
|
|
192
|
-
### 1.2 State → select-image (draft otomatik geçer; data.currentImage = tanım 1)
|
|
193
|
-
GET {{b}}/{{workflow}}/instances/{{s1.response.body.id}}/functions/state
|
|
194
|
-
X-Request-Id: {{$guid}}
|
|
195
|
-
|
|
196
|
-
### 1.3 Resmi seç (tanım 2) → validating-definition → update-security-image-confirm
|
|
197
|
-
PATCH {{b}}/{{workflow}}/instances/{{s1.response.body.id}}/transitions/select-image?sync=true
|
|
198
|
-
Content-Type: application/json
|
|
199
|
-
X-Request-Id: {{$guid}}
|
|
200
|
-
|
|
201
|
-
{ "attributes": { "imageDefinitionId": "{{imageDefinitionId2}}" } }
|
|
202
|
-
|
|
203
|
-
### 1.4 State → update-security-image-confirm ("Değiştirmek istediğinizden emin misiniz?")
|
|
204
|
-
GET {{b}}/{{workflow}}/instances/{{s1.response.body.id}}/functions/state
|
|
205
|
-
X-Request-Id: {{$guid}}
|
|
206
|
-
|
|
207
|
-
### 1.5 VAZGEÇ → select-image (akış bitmez, yeniden seçim bekler)
|
|
208
|
-
PATCH {{b}}/{{workflow}}/instances/{{s1.response.body.id}}/transitions/confirmation-cancel?sync=true
|
|
209
|
-
Content-Type: application/json
|
|
210
|
-
X-Request-Id: {{$guid}}
|
|
211
|
-
|
|
212
|
-
{}
|
|
213
|
-
|
|
214
|
-
### 1.6 State → select-image
|
|
215
|
-
GET {{b}}/{{workflow}}/instances/{{s1.response.body.id}}/functions/state
|
|
216
|
-
X-Request-Id: {{$guid}}
|
|
217
|
-
|
|
218
|
-
### 1.7 Aktif resim DEĞİŞMEMİŞ olmalı (hâlâ tanım 1)
|
|
219
|
-
GET {{b}}/anti-phishing-image-user/instances?pageSize=1&filter=%7B%22and%22%3A%5B%7B%22key%22%3A%7B%22eq%22%3A%22{{holderKey}}%22%7D%7D%2C%7B%22currentState%22%3A%7B%22eq%22%3A%22active%22%7D%7D%5D%7D
|
|
220
|
-
X-Request-Id: {{$guid}}
|
|
221
|
-
|
|
222
|
-
### 1.8 (devam) Aynı instance'ta yeniden seç → onay → bu kez ONAYLA → 3F(self) → completed
|
|
223
|
-
PATCH {{b}}/{{workflow}}/instances/{{s1.response.body.id}}/transitions/select-image?sync=true
|
|
224
|
-
Content-Type: application/json
|
|
225
|
-
X-Request-Id: {{$guid}}
|
|
226
|
-
|
|
227
|
-
{ "attributes": { "imageDefinitionId": "{{imageDefinitionId2}}" } }
|
|
228
|
-
|
|
229
|
-
### 1.9 ONAYLA (202 normal; 3F self → processing → completed birkaç sn sürer)
|
|
230
|
-
# DİKKAT: 3F mapping client_id'yi BU isteğin header'ından okur (start'tan taşınmaz).
|
|
231
|
-
# Gateway prod'da her isteğe claim ekler; .http'de confirm'e de header koymak gerekir.
|
|
232
|
-
PATCH {{b}}/{{workflow}}/instances/{{s1.response.body.id}}/transitions/confirm
|
|
233
|
-
Content-Type: application/json
|
|
234
|
-
X-Request-Id: {{$guid}}
|
|
235
|
-
act_sub: {{actSub}}
|
|
236
|
-
sub: {{sub}}
|
|
237
|
-
client_id: {{clientId}}
|
|
238
|
-
|
|
239
|
-
{}
|
|
240
|
-
|
|
241
|
-
### 1.10 State → completed (error-popup görürsen data.thirdFactorResult'a bak)
|
|
242
|
-
GET {{b}}/{{workflow}}/instances/{{s1.response.body.id}}/functions/state
|
|
243
|
-
X-Request-Id: {{$guid}}
|
|
244
|
-
|
|
245
|
-
### 1.11 Data → thirdFactorResult.status="Success", success=true
|
|
246
|
-
GET {{b}}/{{workflow}}/instances/{{s1.response.body.id}}/functions/data
|
|
247
|
-
X-Request-Id: {{$guid}}
|
|
248
|
-
|
|
249
|
-
### 1.12 Aktif resim artık tanım 2 olmalı
|
|
250
|
-
GET {{b}}/anti-phishing-image-user/instances?pageSize=1&filter=%7B%22and%22%3A%5B%7B%22key%22%3A%7B%22eq%22%3A%22{{holderKey}}%22%7D%7D%2C%7B%22currentState%22%3A%7B%22eq%22%3A%22active%22%7D%7D%5D%7D
|
|
251
|
-
X-Request-Id: {{$guid}}
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
###############################################################################
|
|
255
|
-
# SENARYO 2 — Ekranı TAMAMEN terk et (workflow-level cancel) → cancelled-end
|
|
256
|
-
###############################################################################
|
|
257
|
-
|
|
258
|
-
### 2.1 Start
|
|
259
|
-
# @name s2
|
|
260
|
-
POST {{b}}/{{workflow}}/instances/start?sync=true
|
|
261
|
-
Content-Type: application/json
|
|
262
|
-
Accept-Language: tr-TR
|
|
263
|
-
X-Request-Id: {{$guid}}
|
|
264
|
-
act_sub: {{actSub}}
|
|
265
|
-
sub: {{sub}}
|
|
266
|
-
client_id: {{clientId}}
|
|
267
|
-
|
|
268
|
-
{ "key": "img-exit-{{$timestamp}}", "tags": ["test", "anti-phishing-image", "cancel"], "attributes": {} }
|
|
269
|
-
|
|
270
|
-
### 2.2 cancel — her state'ten çağrılabilir (attributes.cancel)
|
|
271
|
-
PATCH {{b}}/{{workflow}}/instances/{{s2.response.body.id}}/transitions/cancel?sync=true
|
|
272
|
-
Content-Type: application/json
|
|
273
|
-
X-Request-Id: {{$guid}}
|
|
274
|
-
|
|
275
|
-
{}
|
|
276
|
-
|
|
277
|
-
### 2.3 State → cancelled-end
|
|
278
|
-
GET {{b}}/{{workflow}}/instances/{{s2.response.body.id}}/functions/state
|
|
279
|
-
X-Request-Id: {{$guid}}
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
###############################################################################
|
|
283
|
-
# SENARYO 3 — 3F BAŞARISIZ (client_id YOK) → error-popup → retry → select-image
|
|
284
|
-
###############################################################################
|
|
285
|
-
|
|
286
|
-
### 3.1 Start — client_id header'ı bilerek verilmedi
|
|
287
|
-
# @name s3
|
|
288
|
-
POST {{b}}/{{workflow}}/instances/start?sync=true
|
|
289
|
-
Content-Type: application/json
|
|
290
|
-
Accept-Language: tr-TR
|
|
291
|
-
X-Request-Id: {{$guid}}
|
|
292
|
-
act_sub: {{actSub}}
|
|
293
|
-
sub: {{sub}}
|
|
294
|
-
|
|
295
|
-
{ "key": "img-3ffail-{{$timestamp}}", "tags": ["test", "anti-phishing-image", "3f-fail"], "attributes": {} }
|
|
296
|
-
|
|
297
|
-
### 3.2 Seç
|
|
298
|
-
PATCH {{b}}/{{workflow}}/instances/{{s3.response.body.id}}/transitions/select-image?sync=true
|
|
299
|
-
Content-Type: application/json
|
|
300
|
-
X-Request-Id: {{$guid}}
|
|
301
|
-
|
|
302
|
-
{ "attributes": { "imageDefinitionId": "{{imageDefinitionId}}" } }
|
|
303
|
-
|
|
304
|
-
### 3.3 Onayla (client_id YOK) → 3F client-not-found → third-factor-failed → error-popup
|
|
305
|
-
PATCH {{b}}/{{workflow}}/instances/{{s3.response.body.id}}/transitions/confirm
|
|
306
|
-
Content-Type: application/json
|
|
307
|
-
X-Request-Id: {{$guid}}
|
|
308
|
-
act_sub: {{actSub}}
|
|
309
|
-
sub: {{sub}}
|
|
310
|
-
|
|
311
|
-
{}
|
|
312
|
-
|
|
313
|
-
### 3.4 State → error-popup ; Data → thirdFactorResult.status="Error", errorCode="InvalidClient"
|
|
314
|
-
GET {{b}}/{{workflow}}/instances/{{s3.response.body.id}}/functions/data
|
|
315
|
-
X-Request-Id: {{$guid}}
|
|
316
|
-
|
|
317
|
-
### 3.5 retry → select-image (resim DEĞİŞMEDİ)
|
|
318
|
-
PATCH {{b}}/{{workflow}}/instances/{{s3.response.body.id}}/transitions/retry?sync=true
|
|
319
|
-
Content-Type: application/json
|
|
320
|
-
X-Request-Id: {{$guid}}
|
|
321
|
-
|
|
322
|
-
{}
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
###############################################################################
|
|
326
|
-
# SENARYO 4 — Olmayan kimlik → user-fetch-failed
|
|
327
|
-
###############################################################################
|
|
328
|
-
|
|
329
|
-
### 4.1 Start — kayıtlı olmayan TCKN
|
|
330
|
-
# @name s4
|
|
331
|
-
POST {{b}}/{{workflow}}/instances/start?sync=true
|
|
332
|
-
Content-Type: application/json
|
|
333
|
-
Accept-Language: tr-TR
|
|
334
|
-
X-Request-Id: {{$guid}}
|
|
335
|
-
act_sub: 99988877766
|
|
336
|
-
sub: 99988877766
|
|
337
|
-
client_id: {{clientId}}
|
|
338
|
-
|
|
339
|
-
{ "key": "img-nouser-{{$timestamp}}", "tags": ["test", "anti-phishing-image"], "attributes": {} }
|
|
340
|
-
|
|
341
|
-
### 4.2 State → user-fetch-failed
|
|
342
|
-
GET {{b}}/{{workflow}}/instances/{{s4.response.body.id}}/functions/state
|
|
343
|
-
X-Request-Id: {{$guid}}
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
###############################################################################
|
|
347
|
-
# DOĞRUDAN SET (orkestratör testi) — change akışı olmadan resim yazmak
|
|
348
|
-
# anti-phishing-image-set: find-active → (end-active) → store-new → completed | failed-end
|
|
349
|
-
# requireChange: TRUE = kullanıcı sonraki login'de değiştirmek ZORUNDA; FALSE = güncel.
|
|
350
|
-
###############################################################################
|
|
351
|
-
|
|
352
|
-
### D1. İkinci resmi doğrudan set et (source=user-change) → eski kayıt kapanır, yeni aktif olur
|
|
353
|
-
# @name setChange
|
|
354
|
-
POST {{b}}/anti-phishing-image-set/instances/start?sync=true
|
|
355
|
-
Content-Type: application/json
|
|
356
|
-
X-Request-Id: {{$guid}}
|
|
357
|
-
|
|
358
|
-
{
|
|
359
|
-
"key": "{{holderKey}}",
|
|
360
|
-
"tags": ["test", "anti-phishing-image", "set"],
|
|
361
|
-
"attributes": { "source": "user-change", "imageEntry": { "imageDefinitionId": "{{imageDefinitionId}}", "requireChange": false } }
|
|
362
|
-
}
|
|
363
|
-
|
|
364
|
-
### D2. Set state → completed ; data → storeSuccess=true, isSuccess=true
|
|
365
|
-
GET {{b}}/anti-phishing-image-set/instances/{{setChange.response.body.id}}/functions/data
|
|
366
|
-
X-Request-Id: {{$guid}}
|
|
367
|
-
|
|
368
|
-
### D3. Aktif kayıt (history-mirror: by-key GET eski kaydı dönebilir, FİLTRE kullan)
|
|
369
|
-
GET {{b}}/anti-phishing-image-user/instances?pageSize=1&filter=%7B%22and%22%3A%5B%7B%22key%22%3A%7B%22eq%22%3A%22{{holderKey}}%22%7D%7D%2C%7B%22currentState%22%3A%7B%22eq%22%3A%22active%22%7D%7D%5D%7D
|
|
370
|
-
X-Request-Id: {{$guid}}
|