@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,872 +0,0 @@
|
|
|
1
|
-
###############################################################################
|
|
2
|
-
# CORPORATE USER-LOGIN — UÇTAN UCA (E2E) SENARYO
|
|
3
|
-
#
|
|
4
|
-
# user-login-e2e.http'nin KURUMSAL (corporate) karşılığı. Tek, kendi kendine
|
|
5
|
-
# yeten dosya: önce corporate login için gereken TÜM instance'ları oluşturur,
|
|
6
|
-
# en sonda da login senaryosunu (user-validation → login-approvement
|
|
7
|
-
# → security-check → login-success) sürer.
|
|
8
|
-
#
|
|
9
|
-
# Çalıştırma: VS Code REST Client (veya httpyac) ile YUKARIDAN AŞAĞIYA sırayla.
|
|
10
|
-
# Runtime: http://localhost:4251 (şifre doğrulaması için morph-idm-api da ayakta olmalı)
|
|
11
|
-
#
|
|
12
|
-
# ÖN KOŞUL (login-approvement): push/OTP gönderimi messaging-service MOCK'una gider
|
|
13
|
-
# (MorphIdm:MessagingServiceMock:BaseUrl, ~port 3030). Bu mock ayakta DEĞİLSE push-send
|
|
14
|
-
# başarısız olur → otp-send → notification-failed-end ve login-success'e ULAŞILMAZ.
|
|
15
|
-
# Akış: check-device → push-send → push-waiting → (approve-push) → push-verification
|
|
16
|
-
# → push-complete → ... → login-success. approve-push YALNIZCA 'push-waiting'te geçerli.
|
|
17
|
-
# Cihaz bulunmazsa OTP yoluna düşer: otp-send → otp-waiting → (verify-otp).
|
|
18
|
-
#
|
|
19
|
-
# CORPORATE FARKLARI (retail dosyasına göre):
|
|
20
|
-
# • scopeGroup = "corporate-customers"; scope FİRMAYI temsil eder (retail'de scope = userKey idi).
|
|
21
|
-
# • Corporate user instance key'i COMPOSITE'tir: {userName}-{scopeKey}
|
|
22
|
-
# (UserGetMapping: scopeGroup=corporate-customers ise userName = userName + "-" + scope).
|
|
23
|
-
# • Composite key YALNIZCA user-validation içinde kullanılır (user fetch + şifre):
|
|
24
|
-
# → user-password kaydı COMPOSITE key ile kurulmalı (S3).
|
|
25
|
-
# Consent / device / security-check / token ise DÜZ userName ile çalışır:
|
|
26
|
-
# → consent user.key = düz userName (S5), device user = düz userName (S6).
|
|
27
|
-
# • Login transition'da 'scope' alanı ZORUNLUDUR; boş gönderilirse
|
|
28
|
-
# client-validation'dan scope-invalid-end'e düşer (CorporateScopeMissingRule).
|
|
29
|
-
# • 'corporate-customers' scope-group instance'ı ortamda hazır DEĞİLSE
|
|
30
|
-
# scope-group-fetch-failed-end'e düşülür → S3e bu instance'ı kurar.
|
|
31
|
-
#
|
|
32
|
-
# Yeni model notları:
|
|
33
|
-
# • Şifre user instance'ında DEĞİL, user-password flow'unda (user-password-set ile kurulur).
|
|
34
|
-
# • Güvenlik sorusu/resmi user'da DEĞİL; security-question-user / anti-phishing-image-user
|
|
35
|
-
# flow'larında. Bu dosya bunları ÖNCEDEN kurmaz — login içindeki security-check subflow'u
|
|
36
|
-
# durur ve set-security-question + set-security-image transition'larıyla INLINE kurulur
|
|
37
|
-
# (sadece DEFINITION'lar önceden seed edilir).
|
|
38
|
-
#
|
|
39
|
-
# Anahtar çözümleme: corporate userKey = {userName}-{scopeKey} = 5678-acme-corp
|
|
40
|
-
# (consent, instance key ile DEĞİL user+client+scope attribute'larıyla bulunur)
|
|
41
|
-
###############################################################################
|
|
42
|
-
|
|
43
|
-
@apiVersion = v1
|
|
44
|
-
@domain = morph-idm
|
|
45
|
-
|
|
46
|
-
@userName = 41809307440
|
|
47
|
-
@scopeKey = def-inc
|
|
48
|
-
@corpUserKey = {{userName}}-{{scopeKey}}
|
|
49
|
-
@clientKey = IbWeb
|
|
50
|
-
@scopeGroup = corporate-customers
|
|
51
|
-
@organizationKey = corporate-banking-org
|
|
52
|
-
@deviceId = sm2
|
|
53
|
-
@installationId = sm2
|
|
54
|
-
|
|
55
|
-
# security-check DEFINITION anahtarları (SecurityCheckSeeder ile aynı — retail dosyasıyla ortak,
|
|
56
|
-
# instance'lar zaten varsa S7/S8 start'ları hata verir; bu durumda o adımları ATLA)
|
|
57
|
-
@questionDefId = 11111111-2222-3333-4444-555555555554
|
|
58
|
-
@imageDefId = 11111111-2222-3333-4444-555555555556
|
|
59
|
-
|
|
60
|
-
# Şifre: düz "123456" + eşleşen hash (PasswordSeeder.PasswordHash). Login düz şifre gönderir.
|
|
61
|
-
@plainPassword = 123456
|
|
62
|
-
@passwordHash = AQAAAAEAACcQAAAAEOBwk1rYGrRTchrgqNcty8pn5z97kz3uXdYtghWY/uBSMtBWP6ZbsOT/6knH3UP+Hw==
|
|
63
|
-
@passwordSalt = 79e756ec-cdb1-4ad4-8e40-5c0260ab16b7
|
|
64
|
-
|
|
65
|
-
# PKCE (token redeem için gerekirse)
|
|
66
|
-
@codeVerifier = dBjftJeZ4CVP-mB92K27uhbUJU1p1r_wW1gFWFOEjXk
|
|
67
|
-
@codeChallenge = E9Melhoa2OwvFrEMTJguCHaoeK1t8URWbuGJSstw-cM
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
###############################################################################
|
|
71
|
-
# ░░ SETUP ░░ Corporate login için gereken instance'lar (sırayla)
|
|
72
|
-
###############################################################################
|
|
73
|
-
|
|
74
|
-
### S1. Person oluştur (draft)
|
|
75
|
-
# @name startPerson
|
|
76
|
-
POST {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/person/instances/start?sync=true
|
|
77
|
-
Accept-Language: tr-TR
|
|
78
|
-
X-Request-Id: {{$guid}}
|
|
79
|
-
X-Device-Id: admin-portal
|
|
80
|
-
X-Token-Id: {{$guid}}
|
|
81
|
-
X-Device-Info: Test Suite/1.0
|
|
82
|
-
X-Forwarded-For: 192.168.1.100
|
|
83
|
-
user_reference: test-admin
|
|
84
|
-
Content-Type: application/json
|
|
85
|
-
|
|
86
|
-
{
|
|
87
|
-
"key": "{{userName}}",
|
|
88
|
-
"tags": ["test", "e2e", "person", "corporate"],
|
|
89
|
-
"attributes": {
|
|
90
|
-
"personType": "retail-customers",
|
|
91
|
-
"name": { "first": "Corp", "last": "User" }
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
### S1b. Person publish (draft -> active) [person için ZORUNLU]
|
|
96
|
-
# @name publishPerson
|
|
97
|
-
PATCH {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/person/instances/{{userName}}/transitions/publish?sync=true
|
|
98
|
-
Accept-Language: tr-TR
|
|
99
|
-
X-Request-Id: {{$guid}}
|
|
100
|
-
X-Device-Id: admin-portal
|
|
101
|
-
X-Token-Id: {{$guid}}
|
|
102
|
-
user_reference: test-admin
|
|
103
|
-
Content-Type: application/json
|
|
104
|
-
|
|
105
|
-
{
|
|
106
|
-
"attributes": {
|
|
107
|
-
"publishedBy": "test-admin",
|
|
108
|
-
"publishedAt": "{{$datetime iso8601}}"
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
### S2. PARENT user oluştur (type=person, DÜZ userName key) [start -> active]
|
|
113
|
-
# Consent araması, device araması, security-check ve token DÜZ userName ile
|
|
114
|
-
# çalıştığı için parent user da gereklidir (composite user tek başına yetmez).
|
|
115
|
-
# @name createUser
|
|
116
|
-
POST {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/user/instances/start?sync=true
|
|
117
|
-
Accept-Language: tr-TR
|
|
118
|
-
X-Request-Id: {{$guid}}
|
|
119
|
-
X-Device-Id: admin-portal
|
|
120
|
-
X-Token-Id: {{$guid}}
|
|
121
|
-
X-Device-Info: Test Suite/1.0
|
|
122
|
-
X-Forwarded-For: 192.168.1.100
|
|
123
|
-
user_reference: test-admin
|
|
124
|
-
Content-Type: application/json
|
|
125
|
-
|
|
126
|
-
{
|
|
127
|
-
"key": "{{userName}}",
|
|
128
|
-
"tags": ["test", "e2e", "user", "corporate-parent"],
|
|
129
|
-
"attributes": {
|
|
130
|
-
"type": "person",
|
|
131
|
-
"status": {
|
|
132
|
-
"type": 20,
|
|
133
|
-
"state": 10,
|
|
134
|
-
"reason": 10,
|
|
135
|
-
"reasonDescription": "E2E corporate test seed (parent)",
|
|
136
|
-
"createdByUserName": "test-seeder",
|
|
137
|
-
"createdAt": "{{$datetime iso8601}}"
|
|
138
|
-
},
|
|
139
|
-
"person": {
|
|
140
|
-
"domain": "morph-idm",
|
|
141
|
-
"workflow": "person",
|
|
142
|
-
"key": "{{userName}}",
|
|
143
|
-
"version": "1.0.0"
|
|
144
|
-
},
|
|
145
|
-
"mobilePhonesNumbers": [
|
|
146
|
-
{ "countryCode": "90", "areaCode": "539", "number": "2222222", "useForOTP": true }
|
|
147
|
-
]
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
### S2b. Parent user state (active beklenir). 'draft' görünürse aşağıdaki publish'i çalıştır.
|
|
152
|
-
# @name getUserState
|
|
153
|
-
GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/user/instances/{{userName}}/functions/state
|
|
154
|
-
Accept-Language: tr-TR
|
|
155
|
-
X-Request-Id: {{$guid}}
|
|
156
|
-
user_reference: test-admin
|
|
157
|
-
|
|
158
|
-
### S2c. (FALLBACK) Parent user publish — yalnızca S2b 'draft' dönerse gerekir
|
|
159
|
-
# @name publishUser
|
|
160
|
-
PATCH {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/user/instances/{{userName}}/transitions/publish?sync=true
|
|
161
|
-
Accept-Language: tr-TR
|
|
162
|
-
X-Request-Id: {{$guid}}
|
|
163
|
-
user_reference: test-admin
|
|
164
|
-
Content-Type: application/json
|
|
165
|
-
|
|
166
|
-
{
|
|
167
|
-
"attributes": { "publishedBy": "test-admin", "publishedAt": "{{$datetime iso8601}}" }
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
### S2d. CORPORATE user oluştur — COMPOSITE key = {userName}-{scopeKey}
|
|
171
|
-
# user-validation içindeki UserGetMapping login'de kullanıcıyı BU key ile arar.
|
|
172
|
-
# Body, user-corporate-management'taki CorporateUserCreateMapping'in ürettiğiyle
|
|
173
|
-
# uyumludur: parent snapshot alanları + origin=userFlow + type=corporate + parentUser.
|
|
174
|
-
# @name createCorpUser
|
|
175
|
-
POST {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/user/instances/start?sync=true
|
|
176
|
-
Accept-Language: tr-TR
|
|
177
|
-
X-Request-Id: {{$guid}}
|
|
178
|
-
X-Device-Id: admin-portal
|
|
179
|
-
X-Token-Id: {{$guid}}
|
|
180
|
-
X-Device-Info: Test Suite/1.0
|
|
181
|
-
X-Forwarded-For: 192.168.1.100
|
|
182
|
-
user_reference: test-admin
|
|
183
|
-
Content-Type: application/json
|
|
184
|
-
|
|
185
|
-
{
|
|
186
|
-
"key": "{{corpUserKey}}",
|
|
187
|
-
"tags": ["test", "e2e", "user", "corporate"],
|
|
188
|
-
"attributes": {
|
|
189
|
-
"type": "corporate",
|
|
190
|
-
"origin": "userFlow",
|
|
191
|
-
"parentUser": { "key": "{{userName}}" },
|
|
192
|
-
"status": {
|
|
193
|
-
"type": 20,
|
|
194
|
-
"state": 10,
|
|
195
|
-
"reason": 10,
|
|
196
|
-
"reasonDescription": "E2E corporate test seed",
|
|
197
|
-
"createdByUserName": "test-seeder",
|
|
198
|
-
"createdAt": "{{$datetime iso8601}}"
|
|
199
|
-
},
|
|
200
|
-
"person": {
|
|
201
|
-
"domain": "morph-idm",
|
|
202
|
-
"workflow": "person",
|
|
203
|
-
"key": "{{userName}}",
|
|
204
|
-
"version": "1.0.0"
|
|
205
|
-
},
|
|
206
|
-
"mobilePhonesNumbers": [
|
|
207
|
-
{ "countryCode": "90", "areaCode": "539", "number": "2222222", "useForOTP": true }
|
|
208
|
-
]
|
|
209
|
-
}
|
|
210
|
-
}
|
|
211
|
-
|
|
212
|
-
### S2e. Corporate user state (active beklenir). 'draft' görünürse aşağıdaki publish'i çalıştır.
|
|
213
|
-
# @name getCorpUserState
|
|
214
|
-
GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/user/instances/{{corpUserKey}}/functions/state
|
|
215
|
-
Accept-Language: tr-TR
|
|
216
|
-
X-Request-Id: {{$guid}}
|
|
217
|
-
user_reference: test-admin
|
|
218
|
-
|
|
219
|
-
### S2f. (FALLBACK) Corporate user publish — yalnızca S2e 'draft' dönerse gerekir
|
|
220
|
-
# @name publishCorpUser
|
|
221
|
-
PATCH {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/user/instances/{{corpUserKey}}/transitions/publish?sync=true
|
|
222
|
-
Accept-Language: tr-TR
|
|
223
|
-
X-Request-Id: {{$guid}}
|
|
224
|
-
user_reference: test-admin
|
|
225
|
-
Content-Type: application/json
|
|
226
|
-
|
|
227
|
-
{
|
|
228
|
-
"attributes": { "publishedBy": "test-admin", "publishedAt": "{{$datetime iso8601}}" }
|
|
229
|
-
}
|
|
230
|
-
|
|
231
|
-
### S3. Şifre kur — user-password-set orkestratörü, KEY = HOLDER KEY {{corpUserKey}}-{{corpUserInstanceId}}
|
|
232
|
-
# DİKKAT: user-validation şifreyi {userName}-{userInstanceId} holder key'i üzerinden arar
|
|
233
|
-
# (FetchCurrentPasswordMapping / PasswordVerifyMapping; userName = {tckn}-{scope}, userInstanceId = user instance GUID "N").
|
|
234
|
-
# corpUserInstanceId: GET user/instances?filter=key eq corpUserKey and status eq A → items[0].id (tireleri kaldır).
|
|
235
|
-
@corpUserInstanceId = 00000000000000000000000000000000
|
|
236
|
-
@corpUserHolderKey = {{corpUserKey}}-{{corpUserInstanceId}}
|
|
237
|
-
# @name setPassword
|
|
238
|
-
POST {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/user-password-set/instances/start?sync=false
|
|
239
|
-
Accept-Language: tr-TR
|
|
240
|
-
X-Request-Id: {{$guid}}
|
|
241
|
-
X-Device-Id: admin-portal
|
|
242
|
-
X-Token-Id: {{$guid}}
|
|
243
|
-
user_reference: test-admin
|
|
244
|
-
Content-Type: application/json
|
|
245
|
-
|
|
246
|
-
{
|
|
247
|
-
"key": "{{corpUserHolderKey}}",
|
|
248
|
-
"tags": ["test", "e2e", "password", "corporate"],
|
|
249
|
-
"attributes": {
|
|
250
|
-
"source": "initial",
|
|
251
|
-
"passwordEntry": {
|
|
252
|
-
"type": "Password",
|
|
253
|
-
"salt": "{{passwordSalt}}",
|
|
254
|
-
"mustResetPassword": true,
|
|
255
|
-
"failCount": 0,
|
|
256
|
-
"source": {
|
|
257
|
-
"password": "{{passwordHash}}",
|
|
258
|
-
"algorithm": "pbkdf2-hmacsha256",
|
|
259
|
-
"lastUpdatedDate": "{{$datetime iso8601}}"
|
|
260
|
-
}
|
|
261
|
-
}
|
|
262
|
-
}
|
|
263
|
-
}
|
|
264
|
-
|
|
265
|
-
### S3b. user-password-set state (completed beklenir)
|
|
266
|
-
# NOT: uzun süre 'find-active'te kalıyorsa runtime'ın async transition işleyicisi
|
|
267
|
-
# (Dapr/scheduler) çalışmıyor demektir — login user-validation'da
|
|
268
|
-
# "Passwords data not found" ile user-invalid-end'e düşer (parent pre-login'e döner).
|
|
269
|
-
# @name getPasswordSetState
|
|
270
|
-
GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/user-password-set/instances/{{corpUserKey}}/functions/state
|
|
271
|
-
Accept-Language: tr-TR
|
|
272
|
-
X-Request-Id: {{$guid}}
|
|
273
|
-
user_reference: test-admin
|
|
274
|
-
|
|
275
|
-
### S3c. user-password (aktif kayıt, composite key) — passwordEntry beklenir
|
|
276
|
-
# @name getUserPasswordData
|
|
277
|
-
GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/user-password/instances/{{corpUserKey}}/functions/data
|
|
278
|
-
Accept-Language: tr-TR
|
|
279
|
-
X-Request-Id: {{$guid}}
|
|
280
|
-
user_reference: test-admin
|
|
281
|
-
|
|
282
|
-
### S3d. Organization oluştur (corporate-banking-org) — login organization-fetch'in bulacağı instance
|
|
283
|
-
# organization-fetch önce scopeSnapshot.organization.key'e bakar (S4'te scope bu org'u
|
|
284
|
-
# referanslar), yoksa scopeGroupSnapshot.organization.key'e düşer (S3e aynı org'u referanslar).
|
|
285
|
-
# FullAuthorized pozisyonu idm.full-authorized verir → S5'teki consent rolü ile uyumlu.
|
|
286
|
-
# @name createOrganization
|
|
287
|
-
POST {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/organization/instances/start?sync=true
|
|
288
|
-
Accept-Language: tr-TR
|
|
289
|
-
X-Request-Id: {{$guid}}
|
|
290
|
-
X-Device-Id: admin-portal
|
|
291
|
-
X-Token-Id: {{$guid}}
|
|
292
|
-
user_reference: test-admin
|
|
293
|
-
Content-Type: application/json
|
|
294
|
-
|
|
295
|
-
{
|
|
296
|
-
"key": "{{organizationKey}}",
|
|
297
|
-
"tags": ["test", "e2e", "organization", "corporate"],
|
|
298
|
-
"attributes": {
|
|
299
|
-
"reference": { "domain": "morph-idm", "workflow": "scope-group", "key": "{{scopeGroup}}", "version": "1.0.0" },
|
|
300
|
-
"positionLevels": ["clerk", "officer", "manager", "director", "executive"],
|
|
301
|
-
"children": [
|
|
302
|
-
{
|
|
303
|
-
"nodeType": "location",
|
|
304
|
-
"key": "corporate-head-office",
|
|
305
|
-
"name": "Corporate Head Office",
|
|
306
|
-
"locationType": "headquarters",
|
|
307
|
-
"roles": [],
|
|
308
|
-
"children": [
|
|
309
|
-
{
|
|
310
|
-
"nodeType": "division",
|
|
311
|
-
"key": "corporate-operations-dept",
|
|
312
|
-
"name": "Corporate Operations",
|
|
313
|
-
"divisionType": "operational",
|
|
314
|
-
"roles": [],
|
|
315
|
-
"children": [
|
|
316
|
-
{
|
|
317
|
-
"nodeType": "position",
|
|
318
|
-
"key": "FullAuthorized",
|
|
319
|
-
"title": "Corporate Operations FullAuthorized",
|
|
320
|
-
"positionLevel": "fullAuthorized",
|
|
321
|
-
"maxAssignments": 1,
|
|
322
|
-
"roles": [ { "role": "idm.full-authorized", "grant": "allow" } ]
|
|
323
|
-
},
|
|
324
|
-
{
|
|
325
|
-
"nodeType": "position",
|
|
326
|
-
"key": "Viewer",
|
|
327
|
-
"title": "Corporate Operations Viewer",
|
|
328
|
-
"positionLevel": "fullAuthorized",
|
|
329
|
-
"maxAssignments": 1,
|
|
330
|
-
"roles": [ { "role": "idm.full-authorized", "grant": "allow" } ]
|
|
331
|
-
}
|
|
332
|
-
]
|
|
333
|
-
}
|
|
334
|
-
]
|
|
335
|
-
}
|
|
336
|
-
],
|
|
337
|
-
"metadata": { "createdAt": "{{$datetime iso8601}}", "version": "1.0" }
|
|
338
|
-
}
|
|
339
|
-
}
|
|
340
|
-
|
|
341
|
-
### S3d-b. Organization publish (active)
|
|
342
|
-
PATCH {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/organization/instances/{{organizationKey}}/transitions/publish?sync=true
|
|
343
|
-
Accept-Language: tr-TR
|
|
344
|
-
X-Request-Id: {{$guid}}
|
|
345
|
-
X-Device-Id: admin-portal
|
|
346
|
-
X-Token-Id: {{$guid}}
|
|
347
|
-
user_reference: test-admin
|
|
348
|
-
Content-Type: application/json
|
|
349
|
-
|
|
350
|
-
### S3d-c. Organization state (active beklenir)
|
|
351
|
-
# @name getOrganizationState
|
|
352
|
-
GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/organization/instances/{{organizationKey}}/functions/state
|
|
353
|
-
Accept-Language: tr-TR
|
|
354
|
-
X-Request-Id: {{$guid}}
|
|
355
|
-
user_reference: test-admin
|
|
356
|
-
|
|
357
|
-
### S3e. Scope-group oluştur (corporate-customers) — retail'den FARKLI olarak seed edilir
|
|
358
|
-
# Retail e2e 'retail-customers' grubunun ortamda hazır olduğunu varsayar; corporate-customers
|
|
359
|
-
# instance'ı için garanti yok. login scope-group-fetch bu key'i arar; instance yoksa
|
|
360
|
-
# scope-group-fetch-failed-end'e düşülür. NOT: instance ZATEN VARSA start mevcut instance'ı
|
|
361
|
-
# döner (hata vermez); publish ise "not available in current state 'active'" der — S3e-b'yi ATLA.
|
|
362
|
-
# @name createScopeGroup
|
|
363
|
-
POST {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/scope-group/instances/start?sync=true
|
|
364
|
-
Accept-Language: tr-TR
|
|
365
|
-
X-Request-Id: {{$guid}}
|
|
366
|
-
X-Device-Id: admin-portal
|
|
367
|
-
X-Token-Id: {{$guid}}
|
|
368
|
-
user_reference: test-admin
|
|
369
|
-
Content-Type: application/json
|
|
370
|
-
|
|
371
|
-
{
|
|
372
|
-
"key": "{{scopeGroup}}",
|
|
373
|
-
"tags": ["test", "e2e", "scope-group", "corporate"],
|
|
374
|
-
"attributes": {
|
|
375
|
-
"organization": { "domain": "morph-idm", "workflow": "organization", "key": "{{organizationKey}}", "version": "1.0.0" },
|
|
376
|
-
"inviterRoles": ["idm.admin", "idm.corporate-manager"],
|
|
377
|
-
"allowKeyCompareAutoConsent": false,
|
|
378
|
-
"consentLifetime": "P90D",
|
|
379
|
-
"maxMembersPerScope": 50
|
|
380
|
-
}
|
|
381
|
-
}
|
|
382
|
-
|
|
383
|
-
### S3e-b. Scope-group publish (draft -> active)
|
|
384
|
-
# @name publishScopeGroup
|
|
385
|
-
PATCH {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/scope-group/instances/{{scopeGroup}}/transitions/publish?sync=true
|
|
386
|
-
Accept-Language: tr-TR
|
|
387
|
-
X-Request-Id: {{$guid}}
|
|
388
|
-
user_reference: test-admin
|
|
389
|
-
Content-Type: application/json
|
|
390
|
-
|
|
391
|
-
### S4. Scope oluştur — FİRMA (acme-corp), corporate-customers grubuna bağlı
|
|
392
|
-
# Retail'den fark: scope key artık userKey DEĞİL, firmayı temsil eden ayrı bir key.
|
|
393
|
-
# Scope-level organization referansı verildi → organization-fetch önceliği bunu kullanır.
|
|
394
|
-
# @name createScope
|
|
395
|
-
POST {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/scope/instances/start?sync=true
|
|
396
|
-
Accept-Language: tr-TR
|
|
397
|
-
X-Request-Id: {{$guid}}
|
|
398
|
-
X-Device-Id: admin-portal
|
|
399
|
-
X-Token-Id: {{$guid}}
|
|
400
|
-
user_reference: test-admin
|
|
401
|
-
Content-Type: application/json
|
|
402
|
-
|
|
403
|
-
{
|
|
404
|
-
"key": "{{scopeKey}}",
|
|
405
|
-
"tags": ["test", "e2e", "scope", "corporate"],
|
|
406
|
-
"attributes": {
|
|
407
|
-
"group": { "domain": "morph-idm", "workflow": "scope-group", "key": "{{scopeGroup}}" },
|
|
408
|
-
"organization" : { "domain": "morph-idm", "workflow": "organization", "key": "{{organizationKey}}" }
|
|
409
|
-
}
|
|
410
|
-
}
|
|
411
|
-
|
|
412
|
-
### S4b. Scope publish (draft -> active)
|
|
413
|
-
# @name publishScope
|
|
414
|
-
PATCH {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/scope/instances/{{scopeKey}}/transitions/publish?sync=true
|
|
415
|
-
Accept-Language: tr-TR
|
|
416
|
-
X-Request-Id: {{$guid}}
|
|
417
|
-
user_reference: test-admin
|
|
418
|
-
Content-Type: application/json
|
|
419
|
-
|
|
420
|
-
{
|
|
421
|
-
"attributes": {
|
|
422
|
-
|
|
423
|
-
"group": { "domain": "morph-idm", "workflow": "scope-group", "key": "{{scopeGroup}}" },
|
|
424
|
-
"organization" : { "domain": "morph-idm", "workflow": "organization", "key": "{{organizationKey}}" }
|
|
425
|
-
}
|
|
426
|
-
}
|
|
427
|
-
|
|
428
|
-
### S5. Consent oluştur (tek consent → consent-selection otomatik seçer)
|
|
429
|
-
# DİKKAT: consent araması (ConsentFetchMapping) DÜZ userName + scope key ile yapılır →
|
|
430
|
-
# user.key = {{userName}} (composite DEĞİL), scope.key = {{scopeKey}} (firma).
|
|
431
|
-
# @name createConsent
|
|
432
|
-
POST {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/consent/instances/start?sync=true
|
|
433
|
-
Accept-Language: tr-TR
|
|
434
|
-
X-Request-Id: {{$guid}}
|
|
435
|
-
X-Device-Id: admin-portal
|
|
436
|
-
X-Token-Id: {{$guid}}
|
|
437
|
-
user_reference: test-admin
|
|
438
|
-
Content-Type: application/json
|
|
439
|
-
|
|
440
|
-
{
|
|
441
|
-
"key": "consent-{{$guid}}",
|
|
442
|
-
"tags": ["test", "e2e", "consent", "corporate"],
|
|
443
|
-
"attributes": {
|
|
444
|
-
"user": { "domain": "morph-idm", "workflow": "user", "key": "{{userName}}", "version": "1.0.0" },
|
|
445
|
-
"client": { "domain": "morph-idm", "workflow": "client", "key": "{{clientKey}}", "version": "1.0.0" },
|
|
446
|
-
"scope": { "domain": "morph-idm", "workflow": "scope", "key": "{{scopeKey}}", "version": "1.0.0" },
|
|
447
|
-
"roles": [ { "role": "idm.full-authorized", "grant": "allow" } ],
|
|
448
|
-
"grantedAt": "{{$datetime iso8601}}",
|
|
449
|
-
"expiresAt": "2027-01-01T00:00:00Z",
|
|
450
|
-
"isAutoConsent": true
|
|
451
|
-
}
|
|
452
|
-
}
|
|
453
|
-
|
|
454
|
-
### S5b. Consent state (active beklenir — isAutoConsent=true start'ta otomatik aktive eder)
|
|
455
|
-
# consent-selection consent'i instance KEY ile değil attributes ile arar
|
|
456
|
-
# (user.key + client.key + scope.key, currentState=active) → random key sorun değildir.
|
|
457
|
-
# 'draft' görünürse configure transition'ı ile aktive et (retail e2e'deki S5b gibi).
|
|
458
|
-
# @name getConsentState
|
|
459
|
-
GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/consent/instances/{{createConsent.response.body.id}}/functions/state
|
|
460
|
-
Accept-Language: tr-TR
|
|
461
|
-
X-Request-Id: {{$guid}}
|
|
462
|
-
user_reference: test-admin
|
|
463
|
-
|
|
464
|
-
### S6. Device oluştur (push'a hazır — login-approvement push onayı için)
|
|
465
|
-
# DİKKAT: device araması (DeviceSearchAsFilterableMapping) DÜZ userName ile yapılır →
|
|
466
|
-
# user = {{userName}} (composite DEĞİL).
|
|
467
|
-
# @name startDevice
|
|
468
|
-
POST {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/device/instances/start?sync=true
|
|
469
|
-
Accept-Language: tr-TR
|
|
470
|
-
X-Request-Id: {{$guid}}
|
|
471
|
-
X-Device-Id: {{deviceId}}
|
|
472
|
-
X-Token-Id: {{$guid}}
|
|
473
|
-
X-Device-Info: Corporate Banking Android/3.0
|
|
474
|
-
X-Forwarded-For: 192.168.1.101
|
|
475
|
-
user_reference: anonymous
|
|
476
|
-
Content-Type: application/json
|
|
477
|
-
|
|
478
|
-
{
|
|
479
|
-
"key": "device-{{deviceId}}",
|
|
480
|
-
"tags": ["test", "e2e", "device", "fcm", "corporate"],
|
|
481
|
-
"attributes": {
|
|
482
|
-
"deviceId": "{{deviceId}}",
|
|
483
|
-
"installationId": "{{installationId}}",
|
|
484
|
-
"user": "{{userName}}",
|
|
485
|
-
"deviceInfo": {
|
|
486
|
-
"osName": "Android",
|
|
487
|
-
"osVersion": "14",
|
|
488
|
-
"deviceModel": "Galaxy S23 Ultra",
|
|
489
|
-
"manufacturer": "Samsung",
|
|
490
|
-
"userAgent": "CorporateBanking/3.0 (Linux; Android 14; SM-S918B)",
|
|
491
|
-
"screenResolution": "3088x1440",
|
|
492
|
-
"language": "tr-TR",
|
|
493
|
-
"timezone": "Europe/Istanbul"
|
|
494
|
-
},
|
|
495
|
-
"deviceCertificatePublicKey": "-----BEGIN PUBLIC KEY-----\nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA2X4YZ5JJcds3xfn/ygWy\n-----END PUBLIC KEY-----",
|
|
496
|
-
"appVersion": "3.0.0",
|
|
497
|
-
"pushToken": {
|
|
498
|
-
"platform": "fcm",
|
|
499
|
-
"token": "dGhpc0lzQUZha2VGQ01Ub2tlbkZvclRlc3RpbmdQdXJwb3Nlc09ubHk6QVBBOTFiR3F4",
|
|
500
|
-
"projectId": "bank-mobile-app",
|
|
501
|
-
"packageName": "com.bank.corporatebanking",
|
|
502
|
-
"updatedAt": "{{$datetime iso8601}}"
|
|
503
|
-
}
|
|
504
|
-
}
|
|
505
|
-
}
|
|
506
|
-
|
|
507
|
-
### S6b. Device assign-user (saved -> registered)
|
|
508
|
-
# @name assignDevice
|
|
509
|
-
PATCH {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/device/instances/device-{{deviceId}}/transitions/assign-user?sync=true
|
|
510
|
-
Accept-Language: tr-TR
|
|
511
|
-
X-Request-Id: {{$guid}}
|
|
512
|
-
X-Device-Id: {{deviceId}}
|
|
513
|
-
X-Token-Id: {{$guid}}
|
|
514
|
-
user_reference: {{userName}}
|
|
515
|
-
Content-Type: application/json
|
|
516
|
-
|
|
517
|
-
{
|
|
518
|
-
"attributes": {
|
|
519
|
-
"user": { "domain": "morph-idm", "workflow": "user", "key": "{{userName}}", "version": "1.0.0" },
|
|
520
|
-
"certificates": [],
|
|
521
|
-
"lastSeenAt": "{{$datetime iso8601}}"
|
|
522
|
-
}
|
|
523
|
-
}
|
|
524
|
-
|
|
525
|
-
### S7. security-question-definition oluştur (start -> define -> publish)
|
|
526
|
-
# NOT: retail e2e ile AYNI definition key'leri kullanılır — retail dosyası bu ortamda
|
|
527
|
-
# çalıştırıldıysa instance zaten vardır ve start hata verir → S7/S7b/S7c'yi ATLA.
|
|
528
|
-
# @name startQuestionDef
|
|
529
|
-
POST {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/security-question-definition/instances/start?sync=true
|
|
530
|
-
Accept-Language: tr-TR
|
|
531
|
-
X-Request-Id: {{$guid}}
|
|
532
|
-
X-Device-Id: admin-portal
|
|
533
|
-
X-Token-Id: {{$guid}}
|
|
534
|
-
user_reference: test-admin
|
|
535
|
-
Content-Type: application/json
|
|
536
|
-
|
|
537
|
-
{
|
|
538
|
-
"key": "{{questionDefId}}",
|
|
539
|
-
"tags": ["test", "e2e", "sc-seed"],
|
|
540
|
-
"attributes": {}
|
|
541
|
-
}
|
|
542
|
-
|
|
543
|
-
### S7b. security-question-definition define
|
|
544
|
-
# @name defineQuestionDef
|
|
545
|
-
PATCH {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/security-question-definition/instances/{{questionDefId}}/transitions/define?sync=true
|
|
546
|
-
Accept-Language: tr-TR
|
|
547
|
-
X-Request-Id: {{$guid}}
|
|
548
|
-
user_reference: test-admin
|
|
549
|
-
Content-Type: application/json
|
|
550
|
-
|
|
551
|
-
{
|
|
552
|
-
"attributes": {
|
|
553
|
-
"key": "mother-maiden-name",
|
|
554
|
-
"groupKey": "family",
|
|
555
|
-
"descriptionTr": "Annenizin kızlık soyadı nedir?",
|
|
556
|
-
"descriptionEn": "What is your mother's maiden name?",
|
|
557
|
-
"priority": 1,
|
|
558
|
-
"valueTypeClr": "String"
|
|
559
|
-
}
|
|
560
|
-
}
|
|
561
|
-
|
|
562
|
-
### S7c. security-question-definition publish (-> active)
|
|
563
|
-
# @name publishQuestionDef
|
|
564
|
-
PATCH {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/security-question-definition/instances/{{questionDefId}}/transitions/publish?sync=true
|
|
565
|
-
Accept-Language: tr-TR
|
|
566
|
-
X-Request-Id: {{$guid}}
|
|
567
|
-
user_reference: test-admin
|
|
568
|
-
Content-Type: application/json
|
|
569
|
-
|
|
570
|
-
{
|
|
571
|
-
"attributes": { "publishedBy": "test-admin", "publishedAt": "{{$datetime iso8601}}" }
|
|
572
|
-
}
|
|
573
|
-
|
|
574
|
-
### S8. anti-phishing-image-definition oluştur (start -> define -> publish)
|
|
575
|
-
# NOT: instance zaten varsa S8/S8b/S8c'yi ATLA (bkz. S7 notu).
|
|
576
|
-
# @name startImageDef
|
|
577
|
-
POST {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/anti-phishing-image-definition/instances/start?sync=true
|
|
578
|
-
Accept-Language: tr-TR
|
|
579
|
-
X-Request-Id: {{$guid}}
|
|
580
|
-
X-Device-Id: admin-portal
|
|
581
|
-
X-Token-Id: {{$guid}}
|
|
582
|
-
user_reference: test-admin
|
|
583
|
-
Content-Type: application/json
|
|
584
|
-
|
|
585
|
-
{
|
|
586
|
-
"key": "{{imageDefId}}",
|
|
587
|
-
"tags": ["test", "e2e", "sc-seed"],
|
|
588
|
-
"attributes": {}
|
|
589
|
-
}
|
|
590
|
-
|
|
591
|
-
### S8b. anti-phishing-image-definition define
|
|
592
|
-
# @name defineImageDef
|
|
593
|
-
PATCH {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/anti-phishing-image-definition/instances/{{imageDefId}}/transitions/define?sync=true
|
|
594
|
-
Accept-Language: tr-TR
|
|
595
|
-
X-Request-Id: {{$guid}}
|
|
596
|
-
user_reference: test-admin
|
|
597
|
-
Content-Type: application/json
|
|
598
|
-
|
|
599
|
-
{
|
|
600
|
-
"attributes": {
|
|
601
|
-
"imagePath": "https://www.test.com.tr/uploads/2025/1/ibguvenlik_09.jpg",
|
|
602
|
-
"titleTr": "Fare",
|
|
603
|
-
"titleEn": "Mice"
|
|
604
|
-
}
|
|
605
|
-
}
|
|
606
|
-
|
|
607
|
-
### S8c. anti-phishing-image-definition publish (-> active)
|
|
608
|
-
# @name publishImageDef
|
|
609
|
-
PATCH {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/anti-phishing-image-definition/instances/{{imageDefId}}/transitions/publish?sync=true
|
|
610
|
-
Accept-Language: tr-TR
|
|
611
|
-
X-Request-Id: {{$guid}}
|
|
612
|
-
user_reference: test-admin
|
|
613
|
-
Content-Type: application/json
|
|
614
|
-
|
|
615
|
-
{
|
|
616
|
-
"attributes": { "publishedBy": "test-admin", "publishedAt": "{{$datetime iso8601}}" }
|
|
617
|
-
}
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
###############################################################################
|
|
621
|
-
# ░░ LOGIN ░░ Senaryo: user-validation → login-approvement → security-check → login-success
|
|
622
|
-
#
|
|
623
|
-
# Corporate fark: login transition'da userName DÜZ gönderilir, 'scope' alanına FİRMA
|
|
624
|
-
# key'i konur; composite lookup'ı ({userName}-{scope}) user-validation kendisi kurar.
|
|
625
|
-
###############################################################################
|
|
626
|
-
|
|
627
|
-
### L1. Login instance başlat (pre-login) — scopeGroup = corporate-customers
|
|
628
|
-
# sync=true: draft → pre-login auto transition'ı senkron sürülür (sync=false ile
|
|
629
|
-
# async işleyici yavaşsa/kapalıysa instance draft'ta kalır ve L2 login reddedilir).
|
|
630
|
-
# @name startLogin
|
|
631
|
-
POST {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/user-login/instances/start?sync=true
|
|
632
|
-
Accept-Language: tr-TR
|
|
633
|
-
X-Request-Id: {{$guid}}
|
|
634
|
-
X-Device-Id: {{deviceId}}
|
|
635
|
-
X-Token-Id: {{$guid}}
|
|
636
|
-
X-Device-Info: Corporate Banking Web/1.0
|
|
637
|
-
X-Forwarded-For: 192.168.1.100
|
|
638
|
-
user_reference: {{userName}}
|
|
639
|
-
Content-Type: application/json
|
|
640
|
-
|
|
641
|
-
{
|
|
642
|
-
"key": "corp-login-{{$timestamp}}-{{$randomInt 1000 9999}}",
|
|
643
|
-
"tags": ["test", "e2e", "login", "corporate"],
|
|
644
|
-
"attributes": {
|
|
645
|
-
"clientId": "{{clientKey}}",
|
|
646
|
-
"grantType": "authorization_code",
|
|
647
|
-
"scopes": ["IbCustomer"],
|
|
648
|
-
"scopeGroup": "{{scopeGroup}}",
|
|
649
|
-
"allowConsentSelection": false
|
|
650
|
-
}
|
|
651
|
-
}
|
|
652
|
-
|
|
653
|
-
### Login instance id'sini yakala
|
|
654
|
-
@instanceId = {{startLogin.response.body.id}}
|
|
655
|
-
|
|
656
|
-
### L2. login transition — kimlik bilgileri + FİRMA scope'u (user-validation'ı sürer)
|
|
657
|
-
# 'scope' BOŞ gönderilirse client-validation'dan scope-invalid-end'e düşer
|
|
658
|
-
# (CorporateScopeMissingRule) — negatif senaryo için scope'u silip deneyebilirsin.
|
|
659
|
-
# @name login
|
|
660
|
-
PATCH {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/user-login/instances/{{instanceId}}/transitions/login?sync=false
|
|
661
|
-
Accept-Language: tr-TR
|
|
662
|
-
X-Request-Id: {{$guid}}
|
|
663
|
-
X-Device-Id: {{deviceId}}
|
|
664
|
-
X-Installation-Id: {{$guid}}
|
|
665
|
-
X-Device-Info: Corporate Banking Web/1.0
|
|
666
|
-
X-Forwarded-For: 192.168.1.101
|
|
667
|
-
user_reference: {{userName}}
|
|
668
|
-
Content-Type: application/json
|
|
669
|
-
|
|
670
|
-
{
|
|
671
|
-
"attributes": {
|
|
672
|
-
"clientId": "{{clientKey}}",
|
|
673
|
-
"grantType": "authorization_code",
|
|
674
|
-
"scopes": ["IbCustomer"],
|
|
675
|
-
"scope": "{{scopeKey}}",
|
|
676
|
-
"codeChallenge": "{{codeChallenge}}",
|
|
677
|
-
"codeChallengeMethod": "S256",
|
|
678
|
-
"userName": "{{userName}}",
|
|
679
|
-
"password": "{{plainPassword}}",
|
|
680
|
-
"loginMethod": "password",
|
|
681
|
-
"userAgent": "Corporate Banking Web/1.0",
|
|
682
|
-
"loginTimestamp": "{{$datetime iso8601}}"
|
|
683
|
-
}
|
|
684
|
-
}
|
|
685
|
-
|
|
686
|
-
### L3. State — user-validation geçildi mi? (login-approvement beklenir).
|
|
687
|
-
# 'pre-login' + loginFailed=true görünürse: composite user ({{corpUserKey}}) veya composite key'li
|
|
688
|
-
# user-password kaydı eksik olabilir → S2d/S3'ü kontrol et; sonra L3b login (retry).
|
|
689
|
-
# @name stateAfterLogin
|
|
690
|
-
GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/user-login/instances/{{instanceId}}/functions/state
|
|
691
|
-
Accept-Language: tr-TR
|
|
692
|
-
X-Request-Id: {{$guid}}
|
|
693
|
-
user_reference: {{userName}}
|
|
694
|
-
##
|
|
695
|
-
|
|
696
|
-
###
|
|
697
|
-
# → user-validated-end (antiPhishingImage varsa önce mark-image-require-change)
|
|
698
|
-
# @name s5_change
|
|
699
|
-
PATCH {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/user-login/instances/{{instanceId}}/transitions/change?sync=true
|
|
700
|
-
Content-Type: application/json
|
|
701
|
-
X-Request-Id: {{$guid}}
|
|
702
|
-
|
|
703
|
-
{
|
|
704
|
-
"attributes": {
|
|
705
|
-
"newPassword": "223344",
|
|
706
|
-
"newPasswordConfirm": "223344"
|
|
707
|
-
}
|
|
708
|
-
}
|
|
709
|
-
##
|
|
710
|
-
|
|
711
|
-
### L3b. (KOŞULLU) login (retry) — yalnızca yanlış şifreyle pre-login'e dönülmüşse (loginFailed=true)
|
|
712
|
-
# pre-login'in kendi login transition'ı; doğru şifreyle yeni bir user-validation subflow'u başlar (scope tekrar gönderilir).
|
|
713
|
-
# @name retryLogin
|
|
714
|
-
PATCH {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/user-login/instances/{{instanceId}}/transitions/login?sync=true
|
|
715
|
-
Accept-Language: tr-TR
|
|
716
|
-
X-Request-Id: {{$guid}}
|
|
717
|
-
X-Device-Id: {{deviceId}}
|
|
718
|
-
X-Token-Id: {{$guid}}
|
|
719
|
-
user_reference: {{userName}}
|
|
720
|
-
Content-Type: application/json
|
|
721
|
-
|
|
722
|
-
{
|
|
723
|
-
"attributes": { "userName": "{{userName}}", "password": "{{plainPassword}}", "scope": "{{scopeKey}}" }
|
|
724
|
-
}
|
|
725
|
-
|
|
726
|
-
### L4. State — login-approvement alt-durumları: check-device → push-send → push-waiting.
|
|
727
|
-
# approve-push'u GÖNDERMEDEN ÖNCE state 'push-waiting' OLMALI (mesajlaşma mock'u ayaktaysa).
|
|
728
|
-
# Cihaz yoksa otp-send → otp-waiting'e düşer; o durumda L5b verify-otp kullan.
|
|
729
|
-
# @name stateBeforeApprove
|
|
730
|
-
GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/user-login/instances/{{instanceId}}/functions/state
|
|
731
|
-
Accept-Language: tr-TR
|
|
732
|
-
X-Request-Id: {{$guid}}
|
|
733
|
-
user_reference: {{userName}}
|
|
734
|
-
|
|
735
|
-
### L5. approve-push — push bildirimini onayla (yalnızca state=push-waiting iken geçerli)
|
|
736
|
-
# @name approvePush
|
|
737
|
-
PATCH {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/user-login/instances/{{instanceId}}/transitions/approve-push?sync=true
|
|
738
|
-
Accept-Language: tr-TR
|
|
739
|
-
X-Request-Id: {{$guid}}
|
|
740
|
-
X-Device-Id: {{deviceId}}
|
|
741
|
-
X-Token-Id: {{$guid}}
|
|
742
|
-
user_reference: {{userName}}
|
|
743
|
-
Content-Type: application/json
|
|
744
|
-
|
|
745
|
-
{
|
|
746
|
-
"attributes": { "pushReference": "push-ref-{{$guid}}" }
|
|
747
|
-
}
|
|
748
|
-
|
|
749
|
-
### L5b. (ALTERNATİF) verify-otp — cihaz bulunmaz/OTP yoluna düşülürse (state=otp-waiting)
|
|
750
|
-
# otpReference SAYIDIR. Push onayı yerine OTP doğrulaması bu adımla yapılır.
|
|
751
|
-
# @name verifyOtp
|
|
752
|
-
PATCH {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/user-login/instances/{{instanceId}}/transitions/verify-otp?sync=false
|
|
753
|
-
Accept-Language: tr-TR
|
|
754
|
-
X-Request-Id: {{$guid}}
|
|
755
|
-
X-Device-Id: {{deviceId}}
|
|
756
|
-
X-Token-Id: {{$guid}}
|
|
757
|
-
user_reference: {{userName}}
|
|
758
|
-
Content-Type: application/json
|
|
759
|
-
|
|
760
|
-
{
|
|
761
|
-
"attributes": { "otpCode":"123456" }
|
|
762
|
-
}
|
|
763
|
-
|
|
764
|
-
### L6. State — security-check beklenir (alt durum: security-question-change)
|
|
765
|
-
# scope-fetch ({{scopeKey}}) + scope-group-fetch (corporate-customers) +
|
|
766
|
-
# organization-fetch ({{organizationKey}}) + consent-selection (tek consent → auto)
|
|
767
|
-
# otomatik geçilir. 'scope-group-fetch-failed-end' görünürse S3e seed'ini kontrol et.
|
|
768
|
-
# @name stateBeforeSecurityQuestion
|
|
769
|
-
GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/user-login/instances/{{instanceId}}/functions/state
|
|
770
|
-
Accept-Language: tr-TR
|
|
771
|
-
X-Request-Id: {{$guid}}
|
|
772
|
-
user_reference: {{userName}}
|
|
773
|
-
|
|
774
|
-
### L7. set-security-question — güvenlik sorusunu INLINE kur (security-check)
|
|
775
|
-
# @name setSecurityQuestion
|
|
776
|
-
PATCH {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/user-login/instances/{{instanceId}}/transitions/set-security-question?sync=true
|
|
777
|
-
Accept-Language: tr-TR
|
|
778
|
-
X-Request-Id: {{$guid}}
|
|
779
|
-
X-Device-Id: {{deviceId}}
|
|
780
|
-
X-Token-Id: {{$guid}}
|
|
781
|
-
user_reference: {{userName}}
|
|
782
|
-
Content-Type: application/json
|
|
783
|
-
|
|
784
|
-
{
|
|
785
|
-
"attributes": {
|
|
786
|
-
"newQuestionDefinitionId": "{{questionDefId}}",
|
|
787
|
-
"newAnswer": "test-cevap-123"
|
|
788
|
-
}
|
|
789
|
-
}
|
|
790
|
-
|
|
791
|
-
### L8. State — security-image-change beklenir
|
|
792
|
-
# @name stateBeforeSecurityImage
|
|
793
|
-
GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/user-login/instances/{{instanceId}}/functions/state
|
|
794
|
-
Accept-Language: tr-TR
|
|
795
|
-
X-Request-Id: {{$guid}}
|
|
796
|
-
user_reference: {{userName}}
|
|
797
|
-
|
|
798
|
-
@instanceId = a473e374-623c-4676-81a4-a0014934d042
|
|
799
|
-
### L9. set-security-image — anti-phishing görselini INLINE kur (security-check)
|
|
800
|
-
# @name setSecurityImage
|
|
801
|
-
PATCH {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/user-login/instances/{{instanceId}}/transitions/set-security-image?sync=true
|
|
802
|
-
Accept-Language: tr-TR
|
|
803
|
-
X-Request-Id: {{$guid}}
|
|
804
|
-
X-Device-Id: {{deviceId}}
|
|
805
|
-
X-Token-Id: {{$guid}}
|
|
806
|
-
user_reference: {{userName}}
|
|
807
|
-
Content-Type: application/json
|
|
808
|
-
|
|
809
|
-
{
|
|
810
|
-
"attributes": { "imageDefinitionId": "{{imageDefId}}" }
|
|
811
|
-
}
|
|
812
|
-
|
|
813
|
-
### L10. Final state — login-success beklenir
|
|
814
|
-
# @name finalState
|
|
815
|
-
GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/user-login/instances/{{instanceId}}/functions/state
|
|
816
|
-
Accept-Language: tr-TR
|
|
817
|
-
X-Request-Id: {{$guid}}
|
|
818
|
-
user_reference: {{userName}}
|
|
819
|
-
|
|
820
|
-
### L11. Final data — token/snapshot bilgileri
|
|
821
|
-
# @name finalData
|
|
822
|
-
GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/user-login/instances/{{instanceId}}/functions/data
|
|
823
|
-
Accept-Language: tr-TR
|
|
824
|
-
X-Request-Id: {{$guid}}
|
|
825
|
-
user_reference: {{userName}}
|
|
826
|
-
|
|
827
|
-
###############################################################################
|
|
828
|
-
# ░░ TOKEN REDEEM ░░ token subflow'undan token al (POST /oauth/token eşleniği)
|
|
829
|
-
#
|
|
830
|
-
# login-success'e ulaşınca user-login state response'unda activeCorrelations DİZİSİ
|
|
831
|
-
# hem cert-management (parentState=ensure-certificate) hem de token (parentState=request-token)
|
|
832
|
-
# subflow'larını içerir — sabit index (örn. [0]) GÜVENİLMEZ, subFlowName='token' ile filtrelenir.
|
|
833
|
-
# O instance'a önce state isteği atılır, sonra codeVerifier ile redeem transition'ı çağrılarak
|
|
834
|
-
# token alınır. PKCE doğrulaması (codeChallenge ↔ codeVerifier) token flow'unda yapılır.
|
|
835
|
-
# NOT: token 'sub' claim'i DÜZ userName'dir (composite değil).
|
|
836
|
-
###############################################################################
|
|
837
|
-
|
|
838
|
-
### token subflow instance ID — L10 finalState response'undan subFlowName='token' filtresiyle alınır
|
|
839
|
-
@tokenInstanceId = {{finalState.response.body.activeCorrelations[?(@.subFlowName=='token')].subFlowInstanceId}}
|
|
840
|
-
|
|
841
|
-
### L12. token state — redeem öncesi durum (token henüz üretilmedi)
|
|
842
|
-
# @name tokenStateBeforeRedeem
|
|
843
|
-
GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/token/instances/{{tokenInstanceId}}/functions/state
|
|
844
|
-
Accept-Language: tr-TR
|
|
845
|
-
X-Request-Id: {{$guid}}
|
|
846
|
-
user_reference: {{userName}}
|
|
847
|
-
|
|
848
|
-
### L13. redeem — codeVerifier ile token al (PKCE doğrulaması token flow'unda yapılır)
|
|
849
|
-
# @name redeemToken
|
|
850
|
-
PATCH {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/token/instances/{{tokenInstanceId}}/transitions/redeem?sync=true
|
|
851
|
-
Accept-Language: tr-TR
|
|
852
|
-
X-Request-Id: {{$guid}}
|
|
853
|
-
X-Device-Id: {{deviceId}}
|
|
854
|
-
X-Token-Id: {{$guid}}
|
|
855
|
-
X-Device-Info: Corporate Banking Web/1.0
|
|
856
|
-
X-Forwarded-For: 192.168.1.100
|
|
857
|
-
user_reference: {{userName}}
|
|
858
|
-
Content-Type: application/json
|
|
859
|
-
|
|
860
|
-
{
|
|
861
|
-
"attributes": {
|
|
862
|
-
"codeVerifier": "{{codeVerifier}}"
|
|
863
|
-
}
|
|
864
|
-
}
|
|
865
|
-
|
|
866
|
-
### L14. token data — token bilgileri
|
|
867
|
-
# tokenResponse: accessToken, idToken, refreshToken, tokenType, expiresIn
|
|
868
|
-
# @name tokenData
|
|
869
|
-
GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/token/instances/{{tokenInstanceId}}/functions/data
|
|
870
|
-
Accept-Language: tr-TR
|
|
871
|
-
X-Request-Id: {{$guid}}
|
|
872
|
-
user_reference: {{userName}}
|