@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,499 +0,0 @@
|
|
|
1
|
-
###############################################################################
|
|
2
|
-
# BİREYSEL KULLANICI — LOGIN → CİHAZ SERTİFİKASI → onefa (1FA) TOKEN (TEST ORTAMI)
|
|
3
|
-
#
|
|
4
|
-
# Amaç: Bireysel kullanıcı ile user-login akışını koşup ensure-certificate adımında
|
|
5
|
-
# üretilen cihaz sertifikasını almak, private key ile client assertion imzalayıp
|
|
6
|
-
# token workflow'undan onefa grant ile access token almak.
|
|
7
|
-
#
|
|
8
|
-
# Kurumsal eşleniği: ../test-onefa-corporate/onefa-corporate-login-cert-token.http
|
|
9
|
-
# Bu dosya o akışın bireysel varyantıdır; workflow tarafında bireysele özel kod YOKTUR.
|
|
10
|
-
# Tek fark kullanıcı anahtarı: bireyselde user instance key = çıplak TCKN, firma eki yok.
|
|
11
|
-
#
|
|
12
|
-
# Ortam: test-vnext-morph-idm (nonprod). Runtime idm-utils'i ve Vault PKI'ı kendi
|
|
13
|
-
# içinde çağırır; bu dosya yalnızca runtime API'si ile konuşur.
|
|
14
|
-
#
|
|
15
|
-
# Test kimliği (bireysel):
|
|
16
|
-
# TCKN = 10014063656
|
|
17
|
-
# Şifre = 112233
|
|
18
|
-
# Client = IbIosApp (mobil client; onefa grant'i kurumsal testte 0d ile eklendi)
|
|
19
|
-
#
|
|
20
|
-
# ÖNEMLİ — bireysel kullanıcı anahtarı:
|
|
21
|
-
# Bireyselde user-login userName'i DEĞİŞTİRMEZ (TrxLoginDeviceInfoMapping yalnızca
|
|
22
|
-
# scopeGroup=corporate-customers'ta "{tckn}-{scope}" bileşik anahtar kurar).
|
|
23
|
-
# user-validation'da scope gönderilmezse TCKN'e default'lanır (UserGetMapping).
|
|
24
|
-
# Bu yüzden:
|
|
25
|
-
# user instance key = {tckn}
|
|
26
|
-
# cert instance key = {tckn}-{deviceId}-{installationId}
|
|
27
|
-
# assertion "sub" = {tckn} (firma eki YOK)
|
|
28
|
-
# TCKN'e firma/scope eki eklenirse shield-verify-signature sertifikayı bulamaz (473)
|
|
29
|
-
# ya da onefa-context-check user'ı bulamaz (404).
|
|
30
|
-
#
|
|
31
|
-
# Beklenen token claim farkı (kurumsala göre):
|
|
32
|
-
# kurumsal: sub = firma no, act_sub = TCKN
|
|
33
|
-
# bireysel: sub = act_sub = TCKN (StateOnefaContextCheckQueryUserInstanceMapping,
|
|
34
|
-
# attributes.type != "corporate" → actor = scopeUser = user key)
|
|
35
|
-
# her ikisinde: role = 1FA, amr = onefa_assertion, acr = default (onefa'da scope-group snapshot yok),
|
|
36
|
-
# profil claim'leri (ad/e-posta/telefon) YOK.
|
|
37
|
-
#
|
|
38
|
-
# Akış:
|
|
39
|
-
# A) user-login start → login (şifre) → [2. faktör: push veya OTP] → consent → security-check
|
|
40
|
-
# → channel-contract-check → ensure-certificate (cert-management → cert flow → idm-utils/Vault)
|
|
41
|
-
# → request-token → login-success
|
|
42
|
-
# B) cert instance data'dan certificate.privateKeyPem al
|
|
43
|
-
# C) TERMİNAL: node generate-onefa-assertion.js ile assertion imzala (exp = 5 dk!)
|
|
44
|
-
# D) token start grantType=onefa → cevap doğrudan token
|
|
45
|
-
#
|
|
46
|
-
# Çalıştırma: VS Code REST Client / httpyac ile YUKARIDAN AŞAĞIYA.
|
|
47
|
-
###############################################################################
|
|
48
|
-
|
|
49
|
-
@baseUrl = https://test-vnext-morph-idm.apps.nonprod.ebt.bank
|
|
50
|
-
@apiVersion = v1
|
|
51
|
-
@domain = morph-idm
|
|
52
|
-
|
|
53
|
-
@tckn = 10014063656
|
|
54
|
-
@password = 112233
|
|
55
|
-
@clientId = IbIosApp
|
|
56
|
-
|
|
57
|
-
# Cihaz kimliği — her yeni cihaz için değiştir. Aynı ikili tekrar kullanılırsa
|
|
58
|
-
# cert-management mevcut aktif sertifikayı bulur ve yeniden üretmez (cert-found-end).
|
|
59
|
-
@deviceId = onefa-ret-dev-01
|
|
60
|
-
@installationId = onefa-ret-inst-01
|
|
61
|
-
|
|
62
|
-
# Bireysel kullanıcı anahtarı = çıplak TCKN (bkz. yukarıdaki not)
|
|
63
|
-
@userKey = {{tckn}}
|
|
64
|
-
@certKey = {{userKey}}-{{deviceId}}-{{installationId}}
|
|
65
|
-
|
|
66
|
-
# PKCE çifti (RFC 7636) — login transition'ı authorization_code için ister
|
|
67
|
-
@codeVerifier = dBjftJeZ4CVP-mB92K27uhbUJU1p1r_wW1gFWFOEjXk
|
|
68
|
-
@codeChallenge = E9Melhoa2OwvFrEMTJguCHaoeK1t8URWbuGJSstw-cM
|
|
69
|
-
|
|
70
|
-
###############################################################################
|
|
71
|
-
# 0) ÖN KONTROLLER
|
|
72
|
-
###############################################################################
|
|
73
|
-
|
|
74
|
-
### 0a: Bireysel user instance aktif mi? (beklenen: active; data.type "person" olmalı, "corporate" DEĞİL)
|
|
75
|
-
GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/user/instances/{{userKey}}/functions/state
|
|
76
|
-
Accept-Language: tr-TR
|
|
77
|
-
X-Request-Id: {{$guid}}
|
|
78
|
-
|
|
79
|
-
### 0a2: User data — attributes.type kontrolü ("corporate" ise bu dosya değil, kurumsal dosya kullanılmalı)
|
|
80
|
-
GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/user/instances/{{userKey}}/functions/data
|
|
81
|
-
Accept-Language: tr-TR
|
|
82
|
-
X-Request-Id: {{$guid}}
|
|
83
|
-
|
|
84
|
-
### 0b: Client var mı ve onefa grant'i izinli mi? (allowedGrants "onefa" YA DA legacy URN
|
|
85
|
-
# urn:ietf:params:oauth:grant-type:burgan-certificate-assertion içermeli, yoksa token 471 verir.
|
|
86
|
-
# Kurumsal test sırasında IbIosApp'e eklendi; yine de doğrula. Eksikse kurumsal dosyadaki 0d'yi koş.)
|
|
87
|
-
GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/client/instances/{{clientId}}/functions/data
|
|
88
|
-
Accept-Language: tr-TR
|
|
89
|
-
X-Request-Id: {{$guid}}
|
|
90
|
-
|
|
91
|
-
### 0c: Aktif consent var mı? (opsiyonel — onefa consent bulamazsa DURMAZ, token position claim'siz üretilir)
|
|
92
|
-
# Bireysel auto-consent key'i "{tckn}-{clientId}-{tckn}" olur; migrasyonla gelen consent'ler farklı
|
|
93
|
-
# key taşıyabileceğinden key yerine user.key filtresiyle listele.
|
|
94
|
-
# 2026-11-10 test ortamı: 10014063656 için 1 aktif consent var, key "retail-customers-10014063656-10014063656",
|
|
95
|
-
# scope.key = TCKN, client = null (client'sız consent → onefa araması eşleşir), position = null → position claim'i ÇIKMAZ.
|
|
96
|
-
# filter = {"attributes":{"user":{"key":{"eq":"{{userKey}}"}}}}
|
|
97
|
-
GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/consent/instances?filter=%7B%22attributes%22%3A%7B%22user%22%3A%7B%22key%22%3A%7B%22eq%22%3A%22{{userKey}}%22%7D%7D%7D%7D&pageSize=20
|
|
98
|
-
Accept-Language: tr-TR
|
|
99
|
-
X-Request-Id: {{$guid}}
|
|
100
|
-
|
|
101
|
-
###############################################################################
|
|
102
|
-
# S) ŞİFRE HOLDER-KEY SEED — yalnızca A2 "Passwords data not found" verirse
|
|
103
|
-
#
|
|
104
|
-
# 2026-11-10 bulgusu: 10014063656'nın user-password kaydı test ortamında ESKİ düz TCKN
|
|
105
|
-
# anahtarıyla duruyor (key = 10014063656, 2026-07-09 migrasyonu). user-validation ise şifreyi
|
|
106
|
-
# HOLDER KEY {tckn}-{userInstanceId} ile arar (FetchCurrentPasswordMapping / PasswordVerifyMapping,
|
|
107
|
-
# HolderKeyHelper.Build → tireli GUID). Kurumsal test kullanıcısında bu kayıt holder key ile
|
|
108
|
-
# seed edilmişti (corporate-user-login-e2e.http S3), bireyselde yok → login user-invalid-end,
|
|
109
|
-
# validationError "Passwords data not found".
|
|
110
|
-
#
|
|
111
|
-
# Çözüm: mevcut kaydın salt + hash'ini AYNEN kopyalayıp user-password-set'i holder key ile başlat.
|
|
112
|
-
# Şifre değişmez (112233 kalır); eski kayda dokunulmaz, ek kayıt açılır.
|
|
113
|
-
###############################################################################
|
|
114
|
-
|
|
115
|
-
# user instance GUID'i (0a cevabındaki data.href içindeki id; tireli, "D" formatı)
|
|
116
|
-
@userInstanceId = b28f1f06-1ae8-4907-a697-6d1c0f4f1b18
|
|
117
|
-
@holderKey = {{userKey}}-{{userInstanceId}}
|
|
118
|
-
|
|
119
|
-
### S0: Holder key'li kayıt var mı? (404 ise S1-S2'yi koş; active ise seed GEREKMEZ)
|
|
120
|
-
GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/user-password/instances/{{holderKey}}/functions/state
|
|
121
|
-
Accept-Language: tr-TR
|
|
122
|
-
X-Request-Id: {{$guid}}
|
|
123
|
-
|
|
124
|
-
### S1: Mevcut düz-anahtarlı kayıt — passwordEntry.salt ve passwordEntry.source.password değerlerini kopyala
|
|
125
|
-
# @name plainPassword
|
|
126
|
-
GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/user-password/instances/{{userKey}}/functions/data
|
|
127
|
-
Accept-Language: tr-TR
|
|
128
|
-
X-Request-Id: {{$guid}}
|
|
129
|
-
|
|
130
|
-
###
|
|
131
|
-
@passwordSalt = {{plainPassword.response.body.data.passwordEntry.salt}}
|
|
132
|
-
@passwordHash = {{plainPassword.response.body.data.passwordEntry.source.password}}
|
|
133
|
-
|
|
134
|
-
### S2: user-password-set start — KEY = holder key (FindActiveUserPasswordMapping composite key ister,
|
|
135
|
-
# düz TCKN gönderilirse HOLDER_KEY_NOT_COMPOSITE ile patlar). Beklenen: no-active → store-new → completed.
|
|
136
|
-
# @name seedPassword
|
|
137
|
-
POST {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/user-password-set/instances/start?sync=true
|
|
138
|
-
Accept-Language: tr-TR
|
|
139
|
-
X-Request-Id: {{$guid}}
|
|
140
|
-
X-Device-Id: admin-portal
|
|
141
|
-
X-Token-Id: {{$guid}}
|
|
142
|
-
user_reference: test-admin
|
|
143
|
-
Content-Type: application/json
|
|
144
|
-
|
|
145
|
-
{
|
|
146
|
-
"key": "{{holderKey}}",
|
|
147
|
-
"tags": ["test", "onefa", "retail", "password-seed"],
|
|
148
|
-
"attributes": {
|
|
149
|
-
"source": "initial",
|
|
150
|
-
"passwordEntry": {
|
|
151
|
-
"type": "Password",
|
|
152
|
-
"salt": "{{passwordSalt}}",
|
|
153
|
-
"mustResetPassword": false,
|
|
154
|
-
"failCount": 0,
|
|
155
|
-
"source": {
|
|
156
|
-
"password": "{{passwordHash}}",
|
|
157
|
-
"algorithm": "pbkdf2-hmacsha256",
|
|
158
|
-
"lastUpdatedDate": "{{$datetime iso8601}}"
|
|
159
|
-
}
|
|
160
|
-
}
|
|
161
|
-
}
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
### S3: user-password-set state — completed beklenir (find-active'te takılırsa async işleyici çalışmıyordur)
|
|
165
|
-
GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/user-password-set/instances/{{holderKey}}/functions/state
|
|
166
|
-
Accept-Language: tr-TR
|
|
167
|
-
X-Request-Id: {{$guid}}
|
|
168
|
-
|
|
169
|
-
### S4: Holder key'li user-password kaydı — active beklenir; sonra A1'den devam et
|
|
170
|
-
GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/user-password/instances/{{holderKey}}/functions/state
|
|
171
|
-
Accept-Language: tr-TR
|
|
172
|
-
X-Request-Id: {{$guid}}
|
|
173
|
-
|
|
174
|
-
###############################################################################
|
|
175
|
-
# A) USER-LOGIN — bireysel
|
|
176
|
-
###############################################################################
|
|
177
|
-
|
|
178
|
-
### A1: Login instance başlat (scopeGroup=retail-customers)
|
|
179
|
-
# user-login-start şeması clientId, grantType ve scopes[] (minItems 1) ister; scopes eksikse
|
|
180
|
-
# start 400 "Required properties [scopes] are not present" ile reddedilir.
|
|
181
|
-
# ⚠ deviceId/installationId YALNIZCA BURADA (start) okunur: StateDraftResolveDeviceIdentityMapping
|
|
182
|
-
# start body'ye, yoksa X-Device-Id / X-Installation-Id header'ına bakar. A2 login body'sindeki
|
|
183
|
-
# installationId pass-through listesinde DEĞİL (TrxLoginDeviceInfoMapping) → düşer; header yoksa
|
|
184
|
-
# ensure-certificate cert-management'a installationId=null gönderir → certManagementStatus=error
|
|
185
|
-
# "JSON schema validation failed" ve sertifika ÜRETİLMEZ (2026-11-10 ilk koşuda yaşandı).
|
|
186
|
-
# @name startLogin
|
|
187
|
-
POST {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/user-login/instances/start?sync=true
|
|
188
|
-
Accept-Language: tr-TR
|
|
189
|
-
X-Request-Id: {{$guid}}
|
|
190
|
-
X-Device-Id: {{deviceId}}
|
|
191
|
-
X-Installation-Id: {{installationId}}
|
|
192
|
-
X-Token-Id: {{$guid}}
|
|
193
|
-
X-Device-Info: Mobile Banking App iOS/2.0
|
|
194
|
-
X-Forwarded-For: 10.0.0.50
|
|
195
|
-
user_reference: {{tckn}}
|
|
196
|
-
Content-Type: application/json
|
|
197
|
-
|
|
198
|
-
{
|
|
199
|
-
"key": "onefa-ret-login-{{$timestamp}}",
|
|
200
|
-
"tags": ["test", "login", "retail", "onefa"],
|
|
201
|
-
"attributes": {
|
|
202
|
-
"clientId": "{{clientId}}",
|
|
203
|
-
"grantType": "authorization_code",
|
|
204
|
-
"scopes": ["openid"],
|
|
205
|
-
"allowConsentSelection": false,
|
|
206
|
-
"scopeGroup": "retail-customers"
|
|
207
|
-
}
|
|
208
|
-
}
|
|
209
|
-
|
|
210
|
-
###
|
|
211
|
-
@loginId = {{startLogin.response.body.id}}
|
|
212
|
-
|
|
213
|
-
### A2: login transition — şifre + cihaz kimliği
|
|
214
|
-
# scope: bireyselde kullanıcının kendi referansı (TCKN). Gönderilmezse user-validation zaten
|
|
215
|
-
# TCKN'e default'lar; retail e2e ile aynı olsun diye açıkça gönderiliyor. FİRMA NO GÖNDERME.
|
|
216
|
-
# deviceId/installationId burada yalnızca bilgi amaçlı; cert key'i A1'deki header'lardan kurulur
|
|
217
|
-
# (bkz. A1 notu). Eksikse certManagementStatus=error yazılır, login yine login-success'e gider.
|
|
218
|
-
# @name login
|
|
219
|
-
PATCH {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/user-login/instances/{{loginId}}/transitions/login?sync=true
|
|
220
|
-
Accept-Language: tr-TR
|
|
221
|
-
X-Request-Id: {{$guid}}
|
|
222
|
-
X-Device-Id: {{deviceId}}
|
|
223
|
-
X-Token-Id: {{$guid}}
|
|
224
|
-
X-Device-Info: Mobile Banking App iOS/2.0
|
|
225
|
-
X-Forwarded-For: 10.0.0.50
|
|
226
|
-
user_reference: {{tckn}}
|
|
227
|
-
Content-Type: application/json
|
|
228
|
-
|
|
229
|
-
{
|
|
230
|
-
"attributes": {
|
|
231
|
-
"clientId": "{{clientId}}",
|
|
232
|
-
"grantType": "authorization_code",
|
|
233
|
-
"codeChallenge": "{{codeChallenge}}",
|
|
234
|
-
"codeChallengeMethod": "S256",
|
|
235
|
-
"userName": "{{tckn}}",
|
|
236
|
-
"password": "{{password}}",
|
|
237
|
-
"scope": "{{tckn}}",
|
|
238
|
-
"deviceId": "{{deviceId}}",
|
|
239
|
-
"installationId": "{{installationId}}",
|
|
240
|
-
"loginMethod": "password",
|
|
241
|
-
"ipAddress": "10.0.0.50",
|
|
242
|
-
"userAgent": "Mobile Banking App iOS/2.0",
|
|
243
|
-
"loginTimestamp": "{{$datetime iso8601}}"
|
|
244
|
-
}
|
|
245
|
-
}
|
|
246
|
-
|
|
247
|
-
### A3: State — nerede kaldı?
|
|
248
|
-
# login-approvement / otp-waiting → A4b (verify-otp) [yeni cihaz → OTP; kod SMS ile gelir]
|
|
249
|
-
# push-waiting → A4a (approve-push) [IbWeb'de push; IbIosApp'te kayıtlı cihaz varsa 2. faktör yok]
|
|
250
|
-
# security-check / security-question-change veya security-image-change
|
|
251
|
-
# → kullanıcının güvenlik sorusu/resmi eksik; önce onları set etmek gerekir
|
|
252
|
-
# channel-contract → kanal sözleşmesi onayı bekliyor (mobilden onaylanır, CLI'dan yapılamaz)
|
|
253
|
-
# ensure-certificate → request-token → login-success → sertifika üretildi, B adımına geç
|
|
254
|
-
# user-validation-failed-end / pre-login (loginFailed=true)
|
|
255
|
-
# → şifre/kullanıcı hatası (data.validationError);
|
|
256
|
-
# "Passwords data not found" ise S bölümünü koş
|
|
257
|
-
# scope-invalid-end / consent-invalid-end → scope/consent eşleşmedi (0a-0c'yi kontrol et)
|
|
258
|
-
GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/user-login/instances/{{loginId}}/functions/state
|
|
259
|
-
Accept-Language: tr-TR
|
|
260
|
-
X-Request-Id: {{$guid}}
|
|
261
|
-
user_reference: {{tckn}}
|
|
262
|
-
|
|
263
|
-
### A4a: 2. faktör — PUSH onayı (state push-waiting ise)
|
|
264
|
-
PATCH {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/user-login/instances/{{loginId}}/transitions/approve-push?sync=true
|
|
265
|
-
Accept-Language: tr-TR
|
|
266
|
-
X-Request-Id: {{$guid}}
|
|
267
|
-
X-Device-Id: {{deviceId}}
|
|
268
|
-
X-Token-Id: {{$guid}}
|
|
269
|
-
user_reference: {{tckn}}
|
|
270
|
-
Content-Type: application/json
|
|
271
|
-
|
|
272
|
-
{
|
|
273
|
-
"attributes": {
|
|
274
|
-
"pushReference": "test-reference"
|
|
275
|
-
}
|
|
276
|
-
}
|
|
277
|
-
|
|
278
|
-
### A4b: 2. faktör — OTP doğrulama (state otp-waiting ise; SMS'teki 6 haneli kodu yaz)
|
|
279
|
-
# Kod 180 sn içinde girilmeli; süre dolarsa otp-resend state'inden resend-otp ile yeni kod istenir.
|
|
280
|
-
PATCH {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/user-login/instances/{{loginId}}/transitions/verify-otp?sync=true
|
|
281
|
-
Accept-Language: tr-TR
|
|
282
|
-
X-Request-Id: {{$guid}}
|
|
283
|
-
X-Device-Id: {{deviceId}}
|
|
284
|
-
X-Token-Id: {{$guid}}
|
|
285
|
-
user_reference: {{tckn}}
|
|
286
|
-
Content-Type: application/json
|
|
287
|
-
|
|
288
|
-
{
|
|
289
|
-
"attributes": {
|
|
290
|
-
"inputtedOtpCode": "123456"
|
|
291
|
-
}
|
|
292
|
-
}
|
|
293
|
-
|
|
294
|
-
### A4c: (yalnız timeout sonrası) yeni OTP iste
|
|
295
|
-
PATCH {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/user-login/instances/{{loginId}}/transitions/resend-otp?sync=true
|
|
296
|
-
Accept-Language: tr-TR
|
|
297
|
-
X-Request-Id: {{$guid}}
|
|
298
|
-
user_reference: {{tckn}}
|
|
299
|
-
Content-Type: application/json
|
|
300
|
-
|
|
301
|
-
{
|
|
302
|
-
"attributes": {}
|
|
303
|
-
}
|
|
304
|
-
|
|
305
|
-
### A5: State — beklenen: login-success (ensure-certificate otomatik geçildi)
|
|
306
|
-
# @name finalState
|
|
307
|
-
GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/user-login/instances/{{loginId}}/functions/state
|
|
308
|
-
Accept-Language: tr-TR
|
|
309
|
-
X-Request-Id: {{$guid}}
|
|
310
|
-
user_reference: {{tckn}}
|
|
311
|
-
|
|
312
|
-
### A6: Login data — kontrol: userName == "{{userKey}}" (çıplak TCKN), certManagementStatus == "success"
|
|
313
|
-
# certManagementStatus=error ise message alanı sebebi söyler (idm-utils / Vault PKI / eksik deviceId).
|
|
314
|
-
GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/user-login/instances/{{loginId}}/functions/data
|
|
315
|
-
Accept-Language: tr-TR
|
|
316
|
-
X-Request-Id: {{$guid}}
|
|
317
|
-
user_reference: {{tckn}}
|
|
318
|
-
|
|
319
|
-
###############################################################################
|
|
320
|
-
# B) SERTİFİKAYI AL
|
|
321
|
-
###############################################################################
|
|
322
|
-
|
|
323
|
-
### B1: Cert instance state — beklenen: active (key = {{certKey}})
|
|
324
|
-
GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/cert/instances/{{certKey}}/functions/state
|
|
325
|
-
Accept-Language: tr-TR
|
|
326
|
-
X-Request-Id: {{$guid}}
|
|
327
|
-
|
|
328
|
-
### B2: Cert instance data — data.certificate.privateKeyPem / publicKeyPem / certificatePem / serialNumber / notAfter
|
|
329
|
-
# @name certData
|
|
330
|
-
GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/cert/instances/{{certKey}}/functions/data
|
|
331
|
-
Accept-Language: tr-TR
|
|
332
|
-
X-Request-Id: {{$guid}}
|
|
333
|
-
|
|
334
|
-
###############################################################################
|
|
335
|
-
# C) TERMİNAL — private key'i kaydet, assertion'ı imzala
|
|
336
|
-
#
|
|
337
|
-
# Bu klasörde (deviceId/installationId'yi değiştirdiysen aşağıdaki değerleri de eşle):
|
|
338
|
-
#
|
|
339
|
-
# curl -s "https://test-vnext-morph-idm.apps.nonprod.ebt.bank/api/v1/morph-idm/workflows/cert/instances/10014063656-onefa-ret-dev-01-onefa-ret-inst-01/functions/data" \
|
|
340
|
-
# | jq -r '(.data.certificate // .certificate).privateKeyPem' > device-key.pem
|
|
341
|
-
#
|
|
342
|
-
# node ../../Workflows/token-process/token/execute/generate-onefa-assertion.js \
|
|
343
|
-
# device-key.pem 10014063656 onefa-ret-dev-01 onefa-ret-inst-01 IbIosApp
|
|
344
|
-
#
|
|
345
|
-
# sub = ÇIPLAK TCKN (kurumsaldaki "{tckn}-{firma}" biçimi burada KULLANILMAZ).
|
|
346
|
-
# Çıktı JWS'i aşağıdaki @clientAssertion'a yapıştır. exp = iat + 300 sn: 5 dakika içinde D1'i çalıştır,
|
|
347
|
-
# geçerse yeniden üret. Script sub / device_id / installation_id / iss (clientId) claim'lerini yazar;
|
|
348
|
-
# üçlü cert key ile birebir aynı olmalı.
|
|
349
|
-
###############################################################################
|
|
350
|
-
|
|
351
|
-
@clientAssertion = eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJqdGkiOiIxYjdhNDg2Ny0xNWU2LTQ1NjQtYWY0MS1kZGY3YTBlYjNhMDkiLCJzdWIiOiIxMDAxNDA2MzY1NiIsImRldmljZV9pZCI6Im9uZWZhLXJldC1kZXYtMDEiLCJpbnN0YWxsYXRpb25faWQiOiJvbmVmYS1yZXQtaW5zdC0wMSIsImlzcyI6IkliSW9zQXBwIiwiaWF0IjoxNzk0Mzk2NDE3LCJleHAiOjE3OTQzOTY3MTd9.LL_aTCx8vcgnpiBM1cIm1vI-Zr-9zwUFGgUpx-Y3MckT2BXpYcXiEFp7LF6HxAKh1UMrk8g-4KKipwU0hV21R-LUsTmEKKRvbQMqW44GpMWTh3k8Ww8kiGwPW0IVMTbiN97XZqmTlERqeht8nHpP8XbQxChr_JwH2qfNGfOyqKz2-glbpYfS9dr4FqUABnKX6kWKAN_Y647hl7YC6x837dc2A05s3jiLMzNaQnxEuetlEad2WUUoV-C0eUjeaR8uxrPC29Os7lp3k6v5wC-DgBXjjrjhE_9QHaca1eKZrVaaoMbtlirdgdJsxMTD9H_UgnhKYQMlfblMBsabQ5daxg
|
|
352
|
-
|
|
353
|
-
###############################################################################
|
|
354
|
-
# D) onefa TOKEN
|
|
355
|
-
###############################################################################
|
|
356
|
-
|
|
357
|
-
# Her denemede değiştir; onefa'da session key = assertion jti (replay koruması), token key serbest.
|
|
358
|
-
@tokenKey = token-onefa-ret-{{$timestamp}}
|
|
359
|
-
|
|
360
|
-
### D1: token start (grantType=onefa) — BAŞARIDA CEVAP DOĞRUDAN TOKEN'DIR
|
|
361
|
-
# (access_token / refresh_token / expires_in). scope onefa yolunda doğrulanmaz, OAuth scope claim'i olarak geçer.
|
|
362
|
-
# Beklenen claim'ler: amr=onefa_assertion, sub={{tckn}}, act_sub={{tckn}} (bireyselde ikisi de user key),
|
|
363
|
-
# role=1FA, acr=default, jti=assertion jti, position=<consent.position> (user {{tckn}} + scope {{tckn}}
|
|
364
|
-
# + client için aktif consent; consent yoksa claim yok). Profil claim'leri (given_name/email/phone) YOK.
|
|
365
|
-
# ✔ 2026-11-10 test ortamında koşuldu: state issued, cevap doğrudan token (expires_in 600).
|
|
366
|
-
# Claim'ler: sub=act_sub=10014063656, acr=default, amr=onefa_assertion, role=1FA, grant_type=onefa,
|
|
367
|
-
# client_id=aud=IbIosApp, scope=retail-customer, jti=assertion jti, user.id=user instance GUID;
|
|
368
|
-
# position YOK (consent bulundu ama position=null), profil claim'i YOK. Instance data:
|
|
369
|
-
# onefaIsCorporate=false, scopeUser=onefaActorUserName=TCKN, shieldVerified=true, jtiCheckStatus=success.
|
|
370
|
-
# @name onefaStart
|
|
371
|
-
POST {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/token/instances/start?sync=true
|
|
372
|
-
Accept-Language: tr-TR
|
|
373
|
-
X-Request-Id: {{$guid}}
|
|
374
|
-
X-Device-Id: {{deviceId}}
|
|
375
|
-
Content-Type: application/json
|
|
376
|
-
|
|
377
|
-
{
|
|
378
|
-
"key": "{{tokenKey}}",
|
|
379
|
-
"tags": ["test", "oauth2", "onefa", "retail"],
|
|
380
|
-
"attributes": {
|
|
381
|
-
"grantType": "onefa",
|
|
382
|
-
"clientAssertion": "{{clientAssertion}}",
|
|
383
|
-
"scope": "retail-customer"
|
|
384
|
-
}
|
|
385
|
-
}
|
|
386
|
-
|
|
387
|
-
### D1b: Aynı istek legacy URN grant adıyla — workflow iki adı da kabul eder; grant_type claim'i URN çıkar.
|
|
388
|
-
# (D1 yerine çalıştır; aynı assertion iki kez KULLANILAMAZ, jti tüketilir → yeni assertion üret.)
|
|
389
|
-
# @name onefaStartUrn
|
|
390
|
-
POST {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/token/instances/start?sync=true
|
|
391
|
-
Accept-Language: tr-TR
|
|
392
|
-
X-Request-Id: {{$guid}}
|
|
393
|
-
X-Device-Id: {{deviceId}}
|
|
394
|
-
Content-Type: application/json
|
|
395
|
-
|
|
396
|
-
{
|
|
397
|
-
"key": "{{tokenKey}}-urn",
|
|
398
|
-
"tags": ["test", "oauth2", "onefa", "retail", "legacy-urn"],
|
|
399
|
-
"attributes": {
|
|
400
|
-
"grantType": "urn:ietf:params:oauth:grant-type:burgan-certificate-assertion",
|
|
401
|
-
"clientAssertion": "{{clientAssertion}}",
|
|
402
|
-
"scope": "retail-customer"
|
|
403
|
-
}
|
|
404
|
-
}
|
|
405
|
-
|
|
406
|
-
### D2: State — beklenen: issued (hata: onefa-invalid)
|
|
407
|
-
GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/token/instances/{{tokenKey}}/functions/state
|
|
408
|
-
Accept-Language: tr-TR
|
|
409
|
-
X-Request-Id: {{$guid}}
|
|
410
|
-
|
|
411
|
-
### D3: Data — tokenCreation + tokenInstanceId; hata durumunda onefaError / onefaErrorCode
|
|
412
|
-
# 473 assertion boş ya da "jws cannot be verified by shield." → sub/device/installation üçlüsü cert key ile uyuşmuyor
|
|
413
|
-
# (bireyselde sub'a firma eki eklenmişse buraya düşer) veya assertion başka bir private key ile
|
|
414
|
-
# imzalanmış / süresi geçmiş
|
|
415
|
-
# 471 jti boş ya da client onefa grant'ine izinli değil ya da jti daha önce kullanılmış (replay)
|
|
416
|
-
# 460 zorunlu claim eksik ya da client yok
|
|
417
|
-
# 404 sub ile aktif user bulunamadı (bireyselde sub = çıplak TCKN olmalı)
|
|
418
|
-
# 470 user pasif
|
|
419
|
-
# Kontrol: data.onefaIsCorporate == false, data.scopeUser == data.onefaActorUserName == "{{tckn}}"
|
|
420
|
-
# @name onefaData
|
|
421
|
-
GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/token/instances/{{tokenKey}}/functions/data
|
|
422
|
-
Accept-Language: tr-TR
|
|
423
|
-
X-Request-Id: {{$guid}}
|
|
424
|
-
|
|
425
|
-
###
|
|
426
|
-
@sessionInstanceId = {{onefaData.response.body.data.tokenInstanceId}}
|
|
427
|
-
|
|
428
|
-
### D4: Session data — tokenCreation.access_token / refresh_token (D1 cevabı yetmezse)
|
|
429
|
-
# Kontrol: data.sub == data.actSub == "{{tckn}}", data.acr == "default", data.isOnefaSession == true
|
|
430
|
-
GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/session/instances/{{sessionInstanceId}}/functions/data
|
|
431
|
-
Accept-Language: tr-TR
|
|
432
|
-
X-Request-Id: {{$guid}}
|
|
433
|
-
|
|
434
|
-
###############################################################################
|
|
435
|
-
# F) USER-LOGIN TOKEN'I (authorization_code) — onefa'dan bağımsız, A bölümünden sonra koşulur
|
|
436
|
-
#
|
|
437
|
-
# user-login, login-success'e varırken request-token state'inde bir token instance'ı başlatır;
|
|
438
|
-
# bu instance waiting-redeem'de park eder. PKCE codeVerifier ile redeem edilince cevap doğrudan
|
|
439
|
-
# token'dır (POST /oauth/token authorization_code eşleniği).
|
|
440
|
-
#
|
|
441
|
-
# ⚠ A5 cevabındaki activeCorrelations içinde İKİ token kaydı vardır:
|
|
442
|
-
# parentState = pre-login-token → şifre sonrası / 2. faktör öncesi pre-login token'ı (bunu KULLANMA)
|
|
443
|
-
# parentState = request-token → asıl login token'ı (redeem edilecek olan)
|
|
444
|
-
# Bu yüzden yalnızca subFlowName=='token' ile filtrelemek yetmez; parentState ile seç.
|
|
445
|
-
#
|
|
446
|
-
# ✔ 2026-11-11 test ortamında koşuldu (IbIosApp, kayıtlı cihaz → 2. faktör istenmedi):
|
|
447
|
-
# waiting-redeem → redeem → issued; expires_in 600, refresh_token_expires_in 900, id_token null.
|
|
448
|
-
# Claim'ler: grant_type=authorization_code, amr=mfa, acr=r, sub=act_sub=customer_no={{tckn}},
|
|
449
|
-
# act_uid=userId=user instance GUID, scope={{tckn}}, client_id=aud=IbIosApp, profil claim'leri
|
|
450
|
-
# (given_name/family_name/email/phone_number) VAR, role claim'i YOK.
|
|
451
|
-
# onefa farkı: grant_type/amr, role=1FA, acr=default, profil claim'i yok.
|
|
452
|
-
###############################################################################
|
|
453
|
-
|
|
454
|
-
### login token instance ID — A5 (finalState) cevabından, parentState == request-token olan kayıt
|
|
455
|
-
@loginTokenInstanceId = {{finalState.response.body.$.activeCorrelations[?(@.parentState=='request-token')].subFlowInstanceId}}
|
|
456
|
-
|
|
457
|
-
### F1: token state — beklenen: waiting-redeem (transition: redeem)
|
|
458
|
-
GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/token/instances/{{loginTokenInstanceId}}/functions/state
|
|
459
|
-
Accept-Language: tr-TR
|
|
460
|
-
X-Request-Id: {{$guid}}
|
|
461
|
-
user_reference: {{tckn}}
|
|
462
|
-
|
|
463
|
-
### F2: redeem — A2'de gönderilen codeChallenge'ın codeVerifier'ı ile. BAŞARIDA CEVAP DOĞRUDAN TOKEN'DIR
|
|
464
|
-
# (access_token / refresh_token / expires_in). Kod tek kullanımlıktır; ikinci redeem reddedilir.
|
|
465
|
-
# @name redeemLoginToken
|
|
466
|
-
PATCH {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/token/instances/{{loginTokenInstanceId}}/transitions/redeem?sync=true
|
|
467
|
-
Accept-Language: tr-TR
|
|
468
|
-
X-Request-Id: {{$guid}}
|
|
469
|
-
X-Device-Id: {{deviceId}}
|
|
470
|
-
X-Token-Id: {{$guid}}
|
|
471
|
-
user_reference: {{tckn}}
|
|
472
|
-
Content-Type: application/json
|
|
473
|
-
|
|
474
|
-
{
|
|
475
|
-
"attributes": {
|
|
476
|
-
"codeVerifier": "{{codeVerifier}}"
|
|
477
|
-
}
|
|
478
|
-
}
|
|
479
|
-
|
|
480
|
-
### F3: token state — beklenen: issued
|
|
481
|
-
GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/token/instances/{{loginTokenInstanceId}}/functions/state
|
|
482
|
-
Accept-Language: tr-TR
|
|
483
|
-
X-Request-Id: {{$guid}}
|
|
484
|
-
user_reference: {{tckn}}
|
|
485
|
-
|
|
486
|
-
###############################################################################
|
|
487
|
-
# E) TEMİZLİK (opsiyonel) — aynı cihazla yeniden sertifika üretimini görmek için
|
|
488
|
-
# cert instance'ını revoke et; aksi halde cert-management cert-found-end döner.
|
|
489
|
-
###############################################################################
|
|
490
|
-
|
|
491
|
-
### E1: Cert revoke
|
|
492
|
-
PATCH {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/cert/instances/{{certKey}}/transitions/revoke?sync=true
|
|
493
|
-
Accept-Language: tr-TR
|
|
494
|
-
X-Request-Id: {{$guid}}
|
|
495
|
-
Content-Type: application/json
|
|
496
|
-
|
|
497
|
-
{
|
|
498
|
-
"attributes": {}
|
|
499
|
-
}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"environments": {
|
|
3
|
-
"dev": {
|
|
4
|
-
"baseUrl": "http://localhost:4211",
|
|
5
|
-
"apiVersion": "v1",
|
|
6
|
-
"domain": "morph-idm",
|
|
7
|
-
"clientKeyNative": "IbAndroidAppTF",
|
|
8
|
-
"clientKeyWeb": "IbWebTF",
|
|
9
|
-
"deviceId": "third-factor-device",
|
|
10
|
-
"ttl": 12,
|
|
11
|
-
"maxOtpTryCount": 5,
|
|
12
|
-
"personKey1": "00000000001",
|
|
13
|
-
"userKey1": "00000000001",
|
|
14
|
-
"personKey2": "00000000002",
|
|
15
|
-
"userKey2": "00000000002",
|
|
16
|
-
"workflow": "third-factor",
|
|
17
|
-
"thirdFactorInstanceKey": "Instance-1"
|
|
18
|
-
},
|
|
19
|
-
"test": {
|
|
20
|
-
"baseUrl": "https://test-vnext-morph-idm.apps.nonprod.ebt.bank",
|
|
21
|
-
"apiVersion": "v1",
|
|
22
|
-
"domain": "morph-idm",
|
|
23
|
-
"clientKeyNative": "IbAndroidAppTF",
|
|
24
|
-
"clientKeyWeb": "IbWebTF",
|
|
25
|
-
"deviceId": "third-factor-device",
|
|
26
|
-
"ttl": 12,
|
|
27
|
-
"maxOtpTryCount": 5,
|
|
28
|
-
"personKey1": "00000000001",
|
|
29
|
-
"userKey1": "00000000001",
|
|
30
|
-
"personKey2": "00000000002",
|
|
31
|
-
"userKey2": "00000000002",
|
|
32
|
-
"workflow": "third-factor",
|
|
33
|
-
"thirdFactorInstanceKey": "Instance-1"
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
run_request() {
|
|
2
|
-
local file="$1"
|
|
3
|
-
local name="$2"
|
|
4
|
-
local env="${3:-dev}" # 3. parametre yoksa dev
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
echo -n "$file ($name): "
|
|
9
|
-
|
|
10
|
-
if [ -z "$file" ] || [ -z "$name" ]; then
|
|
11
|
-
echo "Usage: run_request <file> <name> [env] [out_dir]" >&2
|
|
12
|
-
return 2
|
|
13
|
-
fi
|
|
14
|
-
|
|
15
|
-
local output exit_code
|
|
16
|
-
output="$(NODE_TLS_REJECT_UNAUTHORIZED=0 npx httpyac "$file" -n "$name" -e "$env" -o response 2>&1 )"
|
|
17
|
-
exit_code=$?
|
|
18
|
-
|
|
19
|
-
if [ $exit_code -ne 0 ]; then
|
|
20
|
-
echo "FAILED" >&2
|
|
21
|
-
echo "$output" >&2
|
|
22
|
-
return 1
|
|
23
|
-
fi
|
|
24
|
-
|
|
25
|
-
if echo "$output" | grep -qE "HTTP/[0-9.]+ [45][0-9]{2}"; then
|
|
26
|
-
echo "HTTP ERROR" >&2
|
|
27
|
-
echo "$output" >&2
|
|
28
|
-
return 1
|
|
29
|
-
fi
|
|
30
|
-
|
|
31
|
-
# JSON extract (ilk JSON objesini toparlamaya çalışır)
|
|
32
|
-
json="$(echo "$output" | sed -n '/^{/,/^}$/p' | jq -s '.[0]')"
|
|
33
|
-
echo "OK"
|
|
34
|
-
export json
|
|
35
|
-
}
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
const { Client } = require('pg');
|
|
2
|
-
|
|
3
|
-
const config = {
|
|
4
|
-
user: process.env.DB_USER || 'postgres',
|
|
5
|
-
host: process.env.DB_HOST || 'localhost',
|
|
6
|
-
database: process.env.DB_NAME || 'vNext_Morph_idm',
|
|
7
|
-
password: process.env.DB_PASSWORD || 'postgres',
|
|
8
|
-
port: process.env.DB_PORT || 5432,
|
|
9
|
-
};
|
|
10
|
-
|
|
11
|
-
const queries = [
|
|
12
|
-
{ name: 'third-factor', sql: `DELETE FROM third_factor."Instances" WHERE "Key" = 'Instance-1'` },
|
|
13
|
-
];
|
|
14
|
-
|
|
15
|
-
async function cleanup() {
|
|
16
|
-
const client = new Client(config);
|
|
17
|
-
|
|
18
|
-
try {
|
|
19
|
-
await client.connect();
|
|
20
|
-
console.log('Connected to database');
|
|
21
|
-
|
|
22
|
-
let totalDeleted = 0;
|
|
23
|
-
for (const query of queries) {
|
|
24
|
-
const result = await client.query(query.sql);
|
|
25
|
-
if (result.rowCount > 0) {
|
|
26
|
-
console.log(`${query.name}: ${result.rowCount} deleted`);
|
|
27
|
-
totalDeleted += result.rowCount;
|
|
28
|
-
} else {
|
|
29
|
-
console.log(`${query.name}: nothing to delete`);
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
console.log(`\nTotal: ${totalDeleted} rows deleted`);
|
|
33
|
-
|
|
34
|
-
} catch (err) {
|
|
35
|
-
console.error('Database cleanup failed:', err.message);
|
|
36
|
-
process.exit(1);
|
|
37
|
-
} finally {
|
|
38
|
-
await client.end();
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
cleanup();
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
#!/bin/bash
|
|
2
|
-
# Test 123 - Database Cleanup (Node.js version)
|
|
3
|
-
|
|
4
|
-
cd "$(dirname "$0")"
|
|
5
|
-
|
|
6
|
-
# Database settings (edit here or use environment variables)
|
|
7
|
-
export DB_HOST="${DB_HOST:-localhost}"
|
|
8
|
-
export DB_PORT="${DB_PORT:-5432}"
|
|
9
|
-
export DB_NAME="${DB_NAME:-vNext_WorkflowDb}"
|
|
10
|
-
export DB_USER="${DB_USER:-postgres}"
|
|
11
|
-
export DB_PASSWORD="${DB_PASSWORD:-postgres}"
|
|
12
|
-
|
|
13
|
-
# Check if pg is installed
|
|
14
|
-
if ! node -e "require('pg')" 2>/dev/null; then
|
|
15
|
-
echo "Installing pg package..."
|
|
16
|
-
npm install pg --no-save --silent
|
|
17
|
-
fi
|
|
18
|
-
|
|
19
|
-
# Run cleanup
|
|
20
|
-
node 0-clean-test-instance.js
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
#!/bin/bash
|
|
2
|
-
# Self Completed Third Factor
|
|
3
|
-
|
|
4
|
-
cd "$(dirname "$0")"
|
|
5
|
-
|
|
6
|
-
source "../lib/httpyac.sh"
|
|
7
|
-
# Create instances
|
|
8
|
-
run_request "http/06-third-factor-native-with-device.http" "thirdFactor" "dev"
|
|
9
|
-
run_request "http/06-third-factor-native-with-device.http" "getState" "dev"
|
|
10
|
-
|
|
11
|
-
STATE=$(echo "$json" | jq -r '.state')
|
|
12
|
-
|
|
13
|
-
bash ./0-clean-test-instance.sh
|
|
14
|
-
|
|
15
|
-
if [ "$STATE" = "self-completed" ]; then
|
|
16
|
-
echo "✅ TEST OK"
|
|
17
|
-
exit 0
|
|
18
|
-
else
|
|
19
|
-
echo "❌ TEST FAIL"
|
|
20
|
-
exit 1
|
|
21
|
-
fi
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|