@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,79 +0,0 @@
|
|
|
1
|
-
###############################################################################
|
|
2
|
-
# shield-sign Flow - Shield Signing Workflow
|
|
3
|
-
#
|
|
4
|
-
# Sertifika ile veri imzalama workflow'u.
|
|
5
|
-
#
|
|
6
|
-
# Akış:
|
|
7
|
-
# 1. Start → find-cert (get-cert-by-filter-task: key + currentState=active, status ne Faulted; privateKeyPem)
|
|
8
|
-
# 2. Cert bulunduysa → sign-data (idm-utils POST api/Shield/sign — privateKeyPem + data)
|
|
9
|
-
# 3. Cert bulunamadıysa → cert-not-found-end
|
|
10
|
-
# 4. İmzalama başarılıysa → signed-end
|
|
11
|
-
# 5. İmzalama başarısızsa → sign-failed-end
|
|
12
|
-
#
|
|
13
|
-
# Gereksinimler:
|
|
14
|
-
# - vNext Runtime: http://localhost:4251
|
|
15
|
-
# - idm-utils: UtilBaseAddress (ShieldController POST api/Shield/sign)
|
|
16
|
-
# - Aktif bir cert instance'ı (cert flow'da)
|
|
17
|
-
###############################################################################
|
|
18
|
-
@workflow = shield-sign
|
|
19
|
-
@userName = admin-01
|
|
20
|
-
@deviceId = device-02
|
|
21
|
-
@installationId = install-12
|
|
22
|
-
|
|
23
|
-
###############################################################################
|
|
24
|
-
# SCENARIO 1: Sign with existing active certificate
|
|
25
|
-
###############################################################################
|
|
26
|
-
|
|
27
|
-
### Step 1: Start shield-sign (cert must exist in cert flow)
|
|
28
|
-
# @name startSign
|
|
29
|
-
POST {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/start?sync=true
|
|
30
|
-
Content-Type: application/json
|
|
31
|
-
|
|
32
|
-
{
|
|
33
|
-
"key": "sign-{{$timestamp}}",
|
|
34
|
-
"tags": ["shield", "sign", "test"],
|
|
35
|
-
"attributes": {
|
|
36
|
-
"data": "SGVsbG8gV29ybGQ=",
|
|
37
|
-
"userName": "{{userName}}",
|
|
38
|
-
"deviceId": "{{deviceId}}",
|
|
39
|
-
"installationId": "{{installationId}}"
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
###
|
|
44
|
-
@signInstanceId = {{startSign.response.body.id}}
|
|
45
|
-
|
|
46
|
-
### Step 2: Check State - Should be "signed-end" or "cert-not-found-end"
|
|
47
|
-
GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/{{signInstanceId}}/functions/state
|
|
48
|
-
|
|
49
|
-
### Step 3: Get Instance Data - Check signature data
|
|
50
|
-
GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/{{signInstanceId}}/functions/data
|
|
51
|
-
|
|
52
|
-
###############################################################################
|
|
53
|
-
# SCENARIO 2: Sign with non-existing certificate
|
|
54
|
-
###############################################################################
|
|
55
|
-
|
|
56
|
-
### Step 4: Start shield-sign with unknown user
|
|
57
|
-
# @name startSignNoUser
|
|
58
|
-
POST {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/start?sync=true
|
|
59
|
-
Content-Type: application/json
|
|
60
|
-
|
|
61
|
-
{
|
|
62
|
-
"key": "sign-noCert-{{$timestamp}}",
|
|
63
|
-
"tags": ["shield", "sign", "no-cert"],
|
|
64
|
-
"attributes": {
|
|
65
|
-
"data": "SGVsbG8gV29ybGQ=",
|
|
66
|
-
"userName": "unknown-user",
|
|
67
|
-
"deviceId": "unknown-device",
|
|
68
|
-
"installationId": "unknown-install"
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
###
|
|
73
|
-
@signNoCertId = {{startSignNoUser.response.body.id}}
|
|
74
|
-
|
|
75
|
-
### Step 5: Check State - Should be "cert-not-found-end"
|
|
76
|
-
GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/{{signNoCertId}}/functions/state
|
|
77
|
-
|
|
78
|
-
### Step 6: Get Instance Data
|
|
79
|
-
GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/{{signNoCertId}}/functions/data
|
package/morph-idm/Workflows/shield-verify-request-signature/execute/generate-request-signature.js
DELETED
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
/**
|
|
3
|
-
* Test fixture generator for shield-verify-request-signature.http and client-key-management.http.
|
|
4
|
-
*
|
|
5
|
-
* Usage: node generate-request-signature.js ['<json body>']
|
|
6
|
-
*
|
|
7
|
-
* Generates a throwaway P-256 key pair (or reuses the one it left in the OS temp directory) and prints:
|
|
8
|
-
* publicKey Base64 SubjectPublicKeyInfo -> client-key-management start body / login deviceCertificatePublicKey
|
|
9
|
-
* canonical canonical text of the body (amorphie-shield CanonicalJsonSerializer rules)
|
|
10
|
-
* dataHash lowercase hex SHA-256 of the canonical text
|
|
11
|
-
* signature Base64( Base64( DER ECDSA-SHA256 signature of the hex text ) ) -> x-jws-signature header
|
|
12
|
-
*
|
|
13
|
-
* Canonical rules: keys sorted by code unit, "key:value" without quotes or escaping, arrays "[a,b]",
|
|
14
|
-
* integers as-is, other numbers shortest form (1.10 -> 1.1), true / false / null.
|
|
15
|
-
* NOTE: JS number formatting only matches the server for plain integers and short decimals - keep exotic
|
|
16
|
-
* numbers (exponents, > 2^53) out of fixture bodies.
|
|
17
|
-
*/
|
|
18
|
-
const crypto = require('crypto');
|
|
19
|
-
const fs = require('fs');
|
|
20
|
-
const path = require('path');
|
|
21
|
-
|
|
22
|
-
const body = JSON.parse(process.argv[2] || '{"to":{"name":"Ali","iban":"TR00"},"currency":"TRY","amount":100.50}');
|
|
23
|
-
|
|
24
|
-
function canonical(value) {
|
|
25
|
-
if (value === null || value === undefined) return 'null';
|
|
26
|
-
if (Array.isArray(value)) return '[' + value.map(canonical).join(',') + ']';
|
|
27
|
-
if (typeof value === 'object') {
|
|
28
|
-
const keys = Object.keys(value).sort((a, b) => (a < b ? -1 : a > b ? 1 : 0));
|
|
29
|
-
return '{' + keys.map((k) => k + ':' + canonical(value[k])).join(',') + '}';
|
|
30
|
-
}
|
|
31
|
-
return String(value);
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
// Kept in the OS temp directory on purpose: anything under morph-idm/ is copied into the build package.
|
|
35
|
-
const keyFile = path.join(require('os').tmpdir(), 'morph-idm-request-signature-key.pem');
|
|
36
|
-
let privateKey;
|
|
37
|
-
if (fs.existsSync(keyFile)) {
|
|
38
|
-
privateKey = crypto.createPrivateKey(fs.readFileSync(keyFile, 'utf8'));
|
|
39
|
-
} else {
|
|
40
|
-
privateKey = crypto.generateKeyPairSync('ec', { namedCurve: 'prime256v1' }).privateKey;
|
|
41
|
-
fs.writeFileSync(keyFile, privateKey.export({ type: 'pkcs8', format: 'pem' }), { mode: 0o600 });
|
|
42
|
-
}
|
|
43
|
-
const publicKey = crypto.createPublicKey(privateKey).export({ type: 'spki', format: 'der' }).toString('base64');
|
|
44
|
-
|
|
45
|
-
const canonicalText = canonical(body);
|
|
46
|
-
const dataHash = crypto.createHash('sha256').update(canonicalText, 'utf8').digest('hex');
|
|
47
|
-
const der = crypto.sign('sha256', Buffer.from(dataHash, 'utf8'), { key: privateKey, dsaEncoding: 'der' });
|
|
48
|
-
const signature = Buffer.from(der.toString('base64'), 'utf8').toString('base64');
|
|
49
|
-
|
|
50
|
-
console.log('keyFile = ' + keyFile);
|
|
51
|
-
console.log('publicKey = ' + publicKey);
|
|
52
|
-
console.log('canonical = ' + canonicalText);
|
|
53
|
-
console.log('dataHash = ' + dataHash);
|
|
54
|
-
console.log('signature = ' + signature);
|
|
@@ -1,135 +0,0 @@
|
|
|
1
|
-
###############################################################################
|
|
2
|
-
# shield-verify-request-signature Flow - istek imzası doğrulama (TEST ORTAMI)
|
|
3
|
-
#
|
|
4
|
-
# amorphie-shield POST /jws/verify paritesi; kripto mapping içinde (EcdsaSignatureHelper), idm-utils çağrısı YOK.
|
|
5
|
-
# - Gövde: iş isteğinin gövdesi, OLDUĞU GİBİ (zarf yok). Instance'a yazılmaz; yalnız hash'i tutulur.
|
|
6
|
-
# - Kimlikler yalnız header'dan: x-device-id | x_device_id, x-installation-id | x_installation_id,
|
|
7
|
-
# act_sub (+ kurumsalda sub -> "{act_sub}-{sub}").
|
|
8
|
-
# - İmza: x-jws-signature | x_jws_signature = Base64( Base64( DER ECDSA-SHA256 ) ),
|
|
9
|
-
# imzalanan = gövdenin kanonik metninin küçük harf SHA-256 hex'i.
|
|
10
|
-
#
|
|
11
|
-
# Akış: start (TrxStartSignatureContextMapping) → find-cert → verified-end | key-not-found-end | verify-failed-end
|
|
12
|
-
# Anahtar: çağıranın AKTİF sertifikasındaki clientPublicKey (cert akışı, set-client-key transition'ı).
|
|
13
|
-
# key-not-found-end = aktif sertifika yok YA DA sertifikaya client anahtarı hiç gönderilmemiş.
|
|
14
|
-
#
|
|
15
|
-
# Fixture:
|
|
16
|
-
# 1) node generate-request-signature.js '<gövde>' -> publicKey, signature
|
|
17
|
-
# 2) Workflows/cert/execute/cert.http: Step 1 ile bu dosyadaki actSub/deviceId/installationId için sertifika üret,
|
|
18
|
-
# ardından "set-client-key" adımını publicKey ile koş
|
|
19
|
-
# 3) aşağıdaki @signature'ı doldur. Gövde script'e verilenle birebir aynı olmalı.
|
|
20
|
-
# baseUrl / apiVersion / domain -> .vscode/settings.json rest-client $shared
|
|
21
|
-
###############################################################################
|
|
22
|
-
|
|
23
|
-
@workflow = shield-verify-request-signature
|
|
24
|
-
@actSub = svrs-test-user
|
|
25
|
-
@deviceId = svrs-dev-01
|
|
26
|
-
@installationId = svrs-ins-01
|
|
27
|
-
@signature = <generate-request-signature.js signature>
|
|
28
|
-
|
|
29
|
-
### V1) Ham gövde + tireli header'lar, geçerli imza -> verified-end, isValid=true
|
|
30
|
-
# @name v1
|
|
31
|
-
POST {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/start?sync=true
|
|
32
|
-
Content-Type: application/json
|
|
33
|
-
x-device-id: {{deviceId}}
|
|
34
|
-
x-installation-id: {{installationId}}
|
|
35
|
-
act_sub: {{actSub}}
|
|
36
|
-
x-jws-signature: {{signature}}
|
|
37
|
-
x-request-id: {{$guid}}
|
|
38
|
-
|
|
39
|
-
{"to":{"name":"Ali","iban":"TR00"},"currency":"TRY","amount":100.50}
|
|
40
|
-
|
|
41
|
-
### V1 state - verified-end
|
|
42
|
-
GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/{{v1.response.body.id}}/functions/state
|
|
43
|
-
|
|
44
|
-
### V1 data - yalnız dataHash, userName, deviceId, installationId, keyLookupStatus, verifyStatus, isValid
|
|
45
|
-
# (iş gövdesi, imza ve açık anahtar OLMAMALI)
|
|
46
|
-
# dataHash = 4fb64580f104c928916155fbc0f1e96d7b85afb629148bbbfe54265e52d58b1c
|
|
47
|
-
GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/{{v1.response.body.id}}/functions/data
|
|
48
|
-
|
|
49
|
-
### V2) Alt çizgili header yazımları -> V1 ile aynı
|
|
50
|
-
# @name v2
|
|
51
|
-
POST {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/start?sync=true
|
|
52
|
-
Content-Type: application/json
|
|
53
|
-
x_device_id: {{deviceId}}
|
|
54
|
-
x_installation_id: {{installationId}}
|
|
55
|
-
act_sub: {{actSub}}
|
|
56
|
-
x_jws_signature: {{signature}}
|
|
57
|
-
|
|
58
|
-
{"to":{"name":"Ali","iban":"TR00"},"currency":"TRY","amount":100.50}
|
|
59
|
-
|
|
60
|
-
### V2 state - verified-end
|
|
61
|
-
GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/{{v2.response.body.id}}/functions/state
|
|
62
|
-
|
|
63
|
-
### V3) Kurumsal: act_sub + sub -> userName "{act_sub}-{sub}" (sertifika bu bileşik userName ile üretilmiş olmalı)
|
|
64
|
-
# @name v3
|
|
65
|
-
POST {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/start?sync=true
|
|
66
|
-
Content-Type: application/json
|
|
67
|
-
x-device-id: {{deviceId}}
|
|
68
|
-
x-installation-id: {{installationId}}
|
|
69
|
-
act_sub: {{actSub}}
|
|
70
|
-
sub: 9001
|
|
71
|
-
x-jws-signature: {{signature}}
|
|
72
|
-
|
|
73
|
-
{"to":{"name":"Ali","iban":"TR00"},"currency":"TRY","amount":100.50}
|
|
74
|
-
|
|
75
|
-
### V3 data - userName = svrs-test-user-9001
|
|
76
|
-
GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/{{v3.response.body.id}}/functions/data
|
|
77
|
-
|
|
78
|
-
### V4) Fidelity gövdesi - kanonik metin runtime'ın ayrıştırdığı gövdede de aynı mı?
|
|
79
|
-
# İmza bu gövdeye ait olmadığı için sonuç verify-failed-end olur - yalnız dataHash'e bak.
|
|
80
|
-
# Beklenen kanonik metin:
|
|
81
|
-
# {Upper:1,a:[1,2.5,x,true,false,null,{B:1,k:v}],big:9007199254740993,date:2026-11-12T10:00:00Z,dec:1.1,emptyS:,lower:2,neg:-5,nested:{a:{},b:{c:[[]],d:1}},one:1,tr:İşçi ğüşöç,z:null}
|
|
82
|
-
# Beklenen dataHash (Shield CanonicalJsonSerializer ile lokalde hesaplandı): 2bdfc32787f787ffa1194fc489b4bd8fac9aa6e1aec019c694b6a793b7b53cca
|
|
83
|
-
# @name v4
|
|
84
|
-
POST {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/start?sync=true
|
|
85
|
-
Content-Type: application/json
|
|
86
|
-
x-device-id: {{deviceId}}
|
|
87
|
-
x-installation-id: {{installationId}}
|
|
88
|
-
act_sub: {{actSub}}
|
|
89
|
-
x-jws-signature: {{signature}}
|
|
90
|
-
|
|
91
|
-
{"z":null,"a":[1,2.50,"x",true,false,null,{"k":"v","B":1}],"big":9007199254740993,"dec":1.10,"neg":-5,"date":"2026-11-12T10:00:00Z","tr":"İşçi ğüşöç","Upper":1,"lower":2,"nested":{"b":{"d":1,"c":[[]]},"a":{}},"one":1.0,"emptyS":""}
|
|
92
|
-
|
|
93
|
-
### V4 data - dataHash'i beklenenle karşılaştır
|
|
94
|
-
GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/{{v4.response.body.id}}/functions/data
|
|
95
|
-
|
|
96
|
-
### V5) Bilinmeyen üçlü -> key-not-found-end
|
|
97
|
-
# @name v5
|
|
98
|
-
POST {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/start?sync=true
|
|
99
|
-
Content-Type: application/json
|
|
100
|
-
x-device-id: unknown-device
|
|
101
|
-
x-installation-id: unknown-install
|
|
102
|
-
act_sub: unknown-user
|
|
103
|
-
x-jws-signature: {{signature}}
|
|
104
|
-
|
|
105
|
-
{"to":{"name":"Ali","iban":"TR00"},"currency":"TRY","amount":100.50}
|
|
106
|
-
|
|
107
|
-
### V5 state - key-not-found-end
|
|
108
|
-
GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/{{v5.response.body.id}}/functions/state
|
|
109
|
-
|
|
110
|
-
### V6) Gövdede tek değer değişik (100.50 -> 100.51) -> verify-failed-end, verifyStatus=failed
|
|
111
|
-
# @name v6
|
|
112
|
-
POST {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/start?sync=true
|
|
113
|
-
Content-Type: application/json
|
|
114
|
-
x-device-id: {{deviceId}}
|
|
115
|
-
x-installation-id: {{installationId}}
|
|
116
|
-
act_sub: {{actSub}}
|
|
117
|
-
x-jws-signature: {{signature}}
|
|
118
|
-
|
|
119
|
-
{"to":{"name":"Ali","iban":"TR00"},"currency":"TRY","amount":100.51}
|
|
120
|
-
|
|
121
|
-
### V6 state - verify-failed-end
|
|
122
|
-
GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/{{v6.response.body.id}}/functions/state
|
|
123
|
-
|
|
124
|
-
### V7) İmza header'ı yok -> verify-failed-end, verifyStatus=error
|
|
125
|
-
# @name v7
|
|
126
|
-
POST {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/start?sync=true
|
|
127
|
-
Content-Type: application/json
|
|
128
|
-
x-device-id: {{deviceId}}
|
|
129
|
-
x-installation-id: {{installationId}}
|
|
130
|
-
act_sub: {{actSub}}
|
|
131
|
-
|
|
132
|
-
{"to":{"name":"Ali","iban":"TR00"},"currency":"TRY","amount":100.50}
|
|
133
|
-
|
|
134
|
-
### V7 data
|
|
135
|
-
GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/{{v7.response.body.id}}/functions/data
|
|
@@ -1,108 +0,0 @@
|
|
|
1
|
-
###############################################################################
|
|
2
|
-
# shield-verify-signature Flow
|
|
3
|
-
#
|
|
4
|
-
# Aktif sertifikadan public key ile imza doğrulama (SHA256withRSA).
|
|
5
|
-
#
|
|
6
|
-
# Akış:
|
|
7
|
-
# 1. find-cert (get-cert-by-filter-task) → publicKeyPem
|
|
8
|
-
# 2. verify-signature-data → POST {UtilBaseAddress}/api/Shield/verify-signature
|
|
9
|
-
# 3. verified-end | cert-not-found-end | verify-failed-end
|
|
10
|
-
#
|
|
11
|
-
# İmza (base64) body'de DEĞİL, x-jws-signature header'ında gelir (x_jws_signature da kabul
|
|
12
|
-
# edilir; FindCert başlangıç state'inde header'ı okuyup instance data'ya `signature` olarak yazar).
|
|
13
|
-
# Instance data: data (base64) — FindCert sonrası publicKeyPem + signature eklenir.
|
|
14
|
-
###############################################################################
|
|
15
|
-
|
|
16
|
-
@workflow = shield-verify-signature
|
|
17
|
-
@userName = admin-01
|
|
18
|
-
@deviceId = device-02
|
|
19
|
-
@installationId = install-12
|
|
20
|
-
@signature = ss97hDCJT1UjpDottlFwhLP+TnMwutHJuNyigmUCYfd6QJDfGqSGf1rmucCZID/5EoqqT+N5O9DQPoH9uWhVJYIHXNrB41Dv2iInxG938+YYrWIS0intgF7QIf6XAntF/Y+RTz+auzOCx+8J7/zhFxFdnu6aauqUZisvTzwkIsdJ4piH6MiKK2bDH3OgpR2qx/SGTH2cCj0Vljo4ey+h+/cQOi7+LATbPlxqOkBbkCmpaI+cI4fubRCUml2/SzCUvkj0vqOub8t0e3BU96zPlGaFVlErboQ8qFE2Yg+H/1LU5/9E0p6hSpQZW6bI/WLpNz4V5zA4shA6ujn5IofI6A==
|
|
21
|
-
|
|
22
|
-
###############################################################################
|
|
23
|
-
# SCENARIO 1: Verify with existing active certificate
|
|
24
|
-
###############################################################################
|
|
25
|
-
|
|
26
|
-
### Step 1: Start shield-verify-signature
|
|
27
|
-
# @name startVerify
|
|
28
|
-
POST {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/start?sync=true
|
|
29
|
-
Content-Type: application/json
|
|
30
|
-
x-jws-signature: {{signature}}
|
|
31
|
-
|
|
32
|
-
{
|
|
33
|
-
"key": "verify-{{$timestamp}}",
|
|
34
|
-
"tags": ["shield", "verify", "test"],
|
|
35
|
-
"attributes": {
|
|
36
|
-
"data": "SGVsbG8gV29ybGQ=",
|
|
37
|
-
"userName": "{{userName}}",
|
|
38
|
-
"deviceId": "{{deviceId}}",
|
|
39
|
-
"installationId": "{{installationId}}"
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
###
|
|
44
|
-
@verifyInstanceId = {{startVerify.response.body.id}}
|
|
45
|
-
|
|
46
|
-
### Step 2: Check State — e.g. verified-end, cert-not-found-end, verify-failed-end
|
|
47
|
-
GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/{{verifyInstanceId}}/functions/state
|
|
48
|
-
|
|
49
|
-
### Step 3: Get Instance Data — isValid, verifyStatus, …
|
|
50
|
-
GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/{{verifyInstanceId}}/functions/data
|
|
51
|
-
|
|
52
|
-
###############################################################################
|
|
53
|
-
# SCENARIO 2: Verify with non-existing certificate
|
|
54
|
-
###############################################################################
|
|
55
|
-
|
|
56
|
-
### Step 4: Start with unknown user/device
|
|
57
|
-
# @name startVerifyNoCert
|
|
58
|
-
POST {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/start?sync=true
|
|
59
|
-
Content-Type: application/json
|
|
60
|
-
x_jws_signature: AAAA
|
|
61
|
-
|
|
62
|
-
{
|
|
63
|
-
"key": "verify-noCert-{{$timestamp}}",
|
|
64
|
-
"tags": ["shield", "verify", "no-cert"],
|
|
65
|
-
"attributes": {
|
|
66
|
-
"data": "SGVsbG8gV29ybGQ=",
|
|
67
|
-
"userName": "unknown-user",
|
|
68
|
-
"deviceId": "unknown-device",
|
|
69
|
-
"installationId": "unknown-install"
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
###
|
|
74
|
-
@verifyNoCertId = {{startVerifyNoCert.response.body.id}}
|
|
75
|
-
|
|
76
|
-
### Step 5: Check State — Should be cert-not-found-end
|
|
77
|
-
GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/{{verifyNoCertId}}/functions/state
|
|
78
|
-
|
|
79
|
-
### Step 6: Get Instance Data
|
|
80
|
-
GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/{{verifyNoCertId}}/functions/data
|
|
81
|
-
|
|
82
|
-
###############################################################################
|
|
83
|
-
# SCENARIO 3: Active certificate but NO signature header
|
|
84
|
-
###############################################################################
|
|
85
|
-
|
|
86
|
-
### Step 7: Start without x-jws-signature / x_jws_signature
|
|
87
|
-
# Beklenen: cert bulunur ama FindCert signature="" yazar → verify-signature-data
|
|
88
|
-
# "Missing publicKeyPem, data or signature" ile verifyStatus=error → verify-failed-end.
|
|
89
|
-
# @name startVerifyNoHeader
|
|
90
|
-
POST {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/start?sync=true
|
|
91
|
-
Content-Type: application/json
|
|
92
|
-
|
|
93
|
-
{
|
|
94
|
-
"key": "verify-noHeader-{{$timestamp}}",
|
|
95
|
-
"tags": ["shield", "verify", "no-header"],
|
|
96
|
-
"attributes": {
|
|
97
|
-
"data": "SGVsbG8gV29ybGQ=",
|
|
98
|
-
"userName": "{{userName}}",
|
|
99
|
-
"deviceId": "{{deviceId}}",
|
|
100
|
-
"installationId": "{{installationId}}"
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
###
|
|
105
|
-
@verifyNoHeaderId = {{startVerifyNoHeader.response.body.id}}
|
|
106
|
-
|
|
107
|
-
### Step 8: Check State — Should be verify-failed-end
|
|
108
|
-
GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/{{verifyNoHeaderId}}/functions/state
|
package/morph-idm/Workflows/sim-block/sim-block-backoffice/execute/sim-block-backoffice.http
DELETED
|
@@ -1,183 +0,0 @@
|
|
|
1
|
-
### Önce user-status-change-backoffice.http içinden Person + User oluşturma (1–3) çalıştır; aynı userKey kullan.
|
|
2
|
-
### Variables (user-status-change-backoffice ile aynı; baseUrl/apiVersion/domain ortamdan gelir)
|
|
3
|
-
@workflow = sim-block-backoffice
|
|
4
|
-
@userKey = user-t-2
|
|
5
|
-
@personKey = person-t-2
|
|
6
|
-
@testPhone = +905391111111
|
|
7
|
-
@checkerKey = checker-tckn
|
|
8
|
-
|
|
9
|
-
###############################################################################
|
|
10
|
-
# Sim Block Backoffice – Basit test
|
|
11
|
-
###############################################################################
|
|
12
|
-
|
|
13
|
-
### 0. User var mı? (user workflow instance data – yoksa önce user-status-change-backoffice ile person+user oluştur)
|
|
14
|
-
GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/user/instances/{{userKey}}/functions/data
|
|
15
|
-
Accept-Language: tr-TR
|
|
16
|
-
X-Request-Id: {{$guid}}
|
|
17
|
-
user_reference: {{personKey}}
|
|
18
|
-
|
|
19
|
-
###
|
|
20
|
-
# 200 + data gelirse user var; 404/boş ise önce person+user oluştur.
|
|
21
|
-
|
|
22
|
-
### 1. Start Sim Unblock (instance key = userKey; phoneNumber user’daki cep ile eşleşmeli)
|
|
23
|
-
# @name startSimBlock
|
|
24
|
-
POST {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/start?sync=true
|
|
25
|
-
Accept-Language: tr-TR
|
|
26
|
-
X-Request-Id: {{$guid}}
|
|
27
|
-
user_reference: {{personKey}}
|
|
28
|
-
Content-Type: application/json
|
|
29
|
-
|
|
30
|
-
{
|
|
31
|
-
"key": "{{userKey}}",
|
|
32
|
-
"tags": ["test", "sim-block"],
|
|
33
|
-
"attributes": {
|
|
34
|
-
"phoneNumber": "{{testPhone}}",
|
|
35
|
-
"reason": "Test SIM unblock",
|
|
36
|
-
"blockageDate": "2025-01-15T10:00:00Z"
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
###
|
|
41
|
-
# Beklenen: state fetching-user → validating-phone → pending-approval (user + telefon eşleşirse)
|
|
42
|
-
|
|
43
|
-
### 2. State (pending-approval / user-not-found / phone-number-not-match vb.)
|
|
44
|
-
GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/{{userKey}}/functions/state
|
|
45
|
-
Accept-Language: tr-TR
|
|
46
|
-
X-Request-Id: {{$guid}}
|
|
47
|
-
user_reference: {{personKey}}
|
|
48
|
-
|
|
49
|
-
### 3. Instance data (debug)
|
|
50
|
-
GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/{{userKey}}/functions/data
|
|
51
|
-
Accept-Language: tr-TR
|
|
52
|
-
X-Request-Id: {{$guid}}
|
|
53
|
-
user_reference: {{personKey}}
|
|
54
|
-
|
|
55
|
-
### 4. Approve (state pending-approval ise)
|
|
56
|
-
PATCH {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/{{userKey}}/transitions/approve?sync=true
|
|
57
|
-
Accept-Language: tr-TR
|
|
58
|
-
X-Request-Id: {{$guid}}
|
|
59
|
-
X-Actor: ,{{checkerKey}},,,
|
|
60
|
-
user_reference: {{personKey}}
|
|
61
|
-
Content-Type: application/json
|
|
62
|
-
|
|
63
|
-
{
|
|
64
|
-
"attributes": {
|
|
65
|
-
"reason": "Talep incelendi, uygun bulundu. Approved özlem"
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
### 5. State sonrası (resolved / sms-failed / resolve-failed)
|
|
70
|
-
GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/{{userKey}}/functions/state
|
|
71
|
-
Accept-Language: tr-TR
|
|
72
|
-
X-Request-Id: {{$guid}}
|
|
73
|
-
user_reference: {{personKey}}
|
|
74
|
-
|
|
75
|
-
### 6. Reject (state pending-approval ise)
|
|
76
|
-
PATCH {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/{{userKey}}/transitions/reject?sync=true
|
|
77
|
-
Accept-Language: tr-TR
|
|
78
|
-
X-Request-Id: {{$guid}}
|
|
79
|
-
X-Actor: ,{{checkerKey}},,,
|
|
80
|
-
user_reference: {{personKey}}
|
|
81
|
-
Content-Type: application/json
|
|
82
|
-
|
|
83
|
-
{
|
|
84
|
-
"attributes": {
|
|
85
|
-
"reason": "Talep eksik bilgi nedeniyle reddedildi"
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
###############################################################################
|
|
90
|
-
# Migration Test Requests
|
|
91
|
-
# Provider_Bff DB kayıtlarını morph-idm'e aktarmak için
|
|
92
|
-
|
|
93
|
-
###############################################################################
|
|
94
|
-
|
|
95
|
-
### M1. Migration – WaitingApproval (pending-approval state'e yönlenir)
|
|
96
|
-
POST {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/start?sync=true
|
|
97
|
-
Accept-Language: tr-TR
|
|
98
|
-
X-Request-Id: {{$guid}}
|
|
99
|
-
user_reference: {{personKey}}
|
|
100
|
-
Content-Type: application/json
|
|
101
|
-
|
|
102
|
-
{
|
|
103
|
-
"key": "{{userKey}}",
|
|
104
|
-
"tags": ["migration", "sim-block"],
|
|
105
|
-
"attributes": {
|
|
106
|
-
"phoneNumber": "905397446714",
|
|
107
|
-
"reason": "SIM blok kaldırma talebi",
|
|
108
|
-
"blockageDate": "2024-06-01T08:00:00Z",
|
|
109
|
-
"isMigration": true,
|
|
110
|
-
"migratedStatus": "waiting-approval",
|
|
111
|
-
"createdAt": "2024-06-01T08:00:00Z",
|
|
112
|
-
"createdByUserName": "branch-user-1"
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
###
|
|
117
|
-
# Beklenen: start-router → migration-import → pending-approval (beklemede kalır)
|
|
118
|
-
|
|
119
|
-
### M2. Migration – Approved (resolved state'e yönlenir; checkedAt DB'den gelir)
|
|
120
|
-
POST {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/start?sync=true
|
|
121
|
-
Accept-Language: tr-TR
|
|
122
|
-
X-Request-Id: {{$guid}}
|
|
123
|
-
user_reference: {{personKey}}
|
|
124
|
-
Content-Type: application/json
|
|
125
|
-
|
|
126
|
-
{
|
|
127
|
-
"key": "{{userKey}}",
|
|
128
|
-
"tags": ["migration", "sim-block"],
|
|
129
|
-
"attributes": {
|
|
130
|
-
"phoneNumber": "905397446714",
|
|
131
|
-
"reason": "SIM blok kaldırma talebi",
|
|
132
|
-
"blockageDate": "2024-05-15T10:00:00Z",
|
|
133
|
-
"isMigration": true,
|
|
134
|
-
"migratedStatus": "approved",
|
|
135
|
-
"checkedBy": "manager-user-1",
|
|
136
|
-
"checkedAt": "2024-05-16T09:30:00Z",
|
|
137
|
-
"checkedReason": "Talep incelendi, onaylandı",
|
|
138
|
-
"createdAt": "2024-05-15T10:00:00Z",
|
|
139
|
-
"createdByUserName": "branch-user-ozlem"
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
###
|
|
144
|
-
# Beklenen: start-router → migration-import → resolved (final)
|
|
145
|
-
|
|
146
|
-
### M3. Migration – Rejected (rejected state'e yönlenir; checkedAt DB'den gelir)
|
|
147
|
-
POST {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/start?sync=true
|
|
148
|
-
Accept-Language: tr-TR
|
|
149
|
-
X-Request-Id: {{$guid}}
|
|
150
|
-
user_reference: {{personKey}}
|
|
151
|
-
Content-Type: application/json
|
|
152
|
-
|
|
153
|
-
{
|
|
154
|
-
"key": "{{userKey}}",
|
|
155
|
-
"tags": ["migration", "sim-block"],
|
|
156
|
-
"attributes": {
|
|
157
|
-
"phoneNumber": "905397446714",
|
|
158
|
-
"reason": "SIM blok kaldırma talebi",
|
|
159
|
-
"blockageDate": "2024-04-10T14:00:00Z",
|
|
160
|
-
"isMigration": true,
|
|
161
|
-
"migratedStatus": "rejected",
|
|
162
|
-
"checkedBy": "manager-user-2",
|
|
163
|
-
"checkedAt": "2024-04-11T11:00:00Z",
|
|
164
|
-
"checkedReason": "Talep eksik bilgi nedeniyle reddedildi",
|
|
165
|
-
"createdAt": "2024-04-10T14:00:00Z",
|
|
166
|
-
"createdByUserName": "branch-user-3"
|
|
167
|
-
}
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
###
|
|
171
|
-
# Beklenen: start-router → migration-import → rejected (final)
|
|
172
|
-
|
|
173
|
-
### M4. Migration sonrası state/data kontrolü
|
|
174
|
-
GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/{{userKey}}/functions/state
|
|
175
|
-
Accept-Language: tr-TR
|
|
176
|
-
X-Request-Id: {{$guid}}
|
|
177
|
-
user_reference: {{personKey}}
|
|
178
|
-
|
|
179
|
-
###
|
|
180
|
-
GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/{{userKey}}/functions/data
|
|
181
|
-
Accept-Language: tr-TR
|
|
182
|
-
X-Request-Id: {{$guid}}
|
|
183
|
-
user_reference: {{personKey}}
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
@baseUrl = http://localhost:4251
|
|
2
|
-
@apiVersion = 1
|
|
3
|
-
@domain = morph-idm
|
|
4
|
-
@workflow = simple-subflow
|
|
5
|
-
@instanceKey = simple-sf-{{$timestamp}}
|
|
6
|
-
|
|
7
|
-
### Step 1: Start Simple Subflow Instance
|
|
8
|
-
# init → (auto) → done
|
|
9
|
-
# Tek adımda tamamlanır.
|
|
10
|
-
# @name startSimpleSubflow
|
|
11
|
-
POST {{baseUrl}}/api/v{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/start?sync=true
|
|
12
|
-
Content-Type: application/json
|
|
13
|
-
|
|
14
|
-
{
|
|
15
|
-
"key": "{{instanceKey}}",
|
|
16
|
-
"tags": ["test", "simple-subflow"],
|
|
17
|
-
"attributes": {
|
|
18
|
-
"userName": "{{userKey}}",
|
|
19
|
-
"clientId": "IbWeb",
|
|
20
|
-
"scope": "{{scopeKey}}",
|
|
21
|
-
"scopeSnapshot": {
|
|
22
|
-
"group": {
|
|
23
|
-
"key": "retail-customers",
|
|
24
|
-
"domain": "morph-idm",
|
|
25
|
-
"workflow": "scope-group"
|
|
26
|
-
},
|
|
27
|
-
"subject": "{{userKey}}",
|
|
28
|
-
"metadata": {
|
|
29
|
-
"tokenLifeTime": "",
|
|
30
|
-
"tokenMaxLifeTime": "",
|
|
31
|
-
"tokenMinLifeTime": ""
|
|
32
|
-
},
|
|
33
|
-
"inviterRoles": [],
|
|
34
|
-
"organization": {
|
|
35
|
-
"key": "",
|
|
36
|
-
"domain": "morph-idm",
|
|
37
|
-
"workflow": ""
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
###
|
|
44
|
-
@instanceId = {{startSimpleSubflow.response.body.id}}
|
|
45
|
-
### Step 2: Get Final State
|
|
46
|
-
# "done" state'inde olmalı.
|
|
47
|
-
GET {{baseUrl}}/api/v{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/{{instanceId}}/functions/state
|
|
48
|
-
|
|
49
|
-
### Step 3: Get Instance Data
|
|
50
|
-
GET {{baseUrl}}/api/v{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/{{instanceId}}/functions/data
|