@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,53 +0,0 @@
|
|
|
1
|
-
#!/bin/bash
|
|
2
|
-
# Test 1234 - Run setup requests
|
|
3
|
-
|
|
4
|
-
cd "$(dirname "$0")"
|
|
5
|
-
|
|
6
|
-
run_request() {
|
|
7
|
-
local file=$1
|
|
8
|
-
local name=$2
|
|
9
|
-
|
|
10
|
-
echo -n "$file ($name): "
|
|
11
|
-
|
|
12
|
-
output=$(npx httpyac "$file" -n "$name" -e dev -o short 2>&1)
|
|
13
|
-
exit_code=$?
|
|
14
|
-
|
|
15
|
-
if [ $exit_code -ne 0 ]; then
|
|
16
|
-
echo "FAILED"
|
|
17
|
-
echo "$output"
|
|
18
|
-
exit 1
|
|
19
|
-
fi
|
|
20
|
-
|
|
21
|
-
if echo "$output" | grep -qE "HTTP/[0-9.]+ [45][0-9]{2}"; then
|
|
22
|
-
echo "HTTP ERROR"
|
|
23
|
-
echo "$output"
|
|
24
|
-
exit 1
|
|
25
|
-
fi
|
|
26
|
-
|
|
27
|
-
echo "OK"
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
echo "Running Test 1234 Setup..."
|
|
31
|
-
echo ""
|
|
32
|
-
|
|
33
|
-
# Create instances
|
|
34
|
-
run_request "01-person.http" "startPerson"
|
|
35
|
-
run_request "02-user.http" "createUser"
|
|
36
|
-
run_request "03-scope.http" "createScope"
|
|
37
|
-
run_request "03-scope-2.http" "createScope2"
|
|
38
|
-
run_request "04-consent-1.http" "createConsent1"
|
|
39
|
-
run_request "04-consent-2.http" "createConsent2"
|
|
40
|
-
run_request "05-device.http" "createDevice"
|
|
41
|
-
|
|
42
|
-
echo ""
|
|
43
|
-
echo "Publishing..."
|
|
44
|
-
echo ""
|
|
45
|
-
|
|
46
|
-
# Publish instances
|
|
47
|
-
run_request "01-person.http" "publishPerson"
|
|
48
|
-
run_request "02-user.http" "publishUser"
|
|
49
|
-
run_request "03-scope.http" "publishScope"
|
|
50
|
-
run_request "03-scope-2.http" "publishScope2"
|
|
51
|
-
|
|
52
|
-
echo ""
|
|
53
|
-
echo "Setup complete. Run 06-user-login.http manually."
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
-----BEGIN RSA PRIVATE KEY-----
|
|
2
|
-
MIIEowIBAAKCAQEA7CJOYeZwSszR+1Nr7GM+rWZ61Pd1iftMNAD4PS2wPyfFSgS4
|
|
3
|
-
b0sgWMe+GlFg2JrGrK2fpSHSU9ai4mxQEhd8v7U+d9bjC/fziT9JkR1vSLarfcob
|
|
4
|
-
frZsOcgTv13aiu2vZLjbl+N9UNJwJdUkX1JJPvhb9bpZ/wQiO6ttOQdqWdoodsBM
|
|
5
|
-
LVUDtuMOX76rqR0eH53s7aCblTwA0D3cNdqnG6e3kA6DdqnFgkb3b3HFuFTndBXj
|
|
6
|
-
/ScFKysFH/N8TkrimDWsqZ/Sno8M/bxQAIrmC0Yr3DlxfoDlCxmFi5jfldbV9JAk
|
|
7
|
-
3dVHU5uJy1FqUMuUZjxSCRqStU7vj0EhM3W7RwIDAQABAoIBAAYenmAUeziG0lz6
|
|
8
|
-
oENlniipm3eMlOWuU5DNdL3xJkqctz+KuDh6KUkcnsG8vUg8PGlvc8/xUgD/HXZw
|
|
9
|
-
TtWXayAC/j0CnqrYEmxY0Rd9A5NOLfXPfDEnYLHDGsU+o26ghIdcYjK9vIyQx5ia
|
|
10
|
-
hGME6rCXwWF3zVW56l2mZ3dZyLx5HtRgP7X7e2Mc3elT39UmxcxIfPN1bRJxJyxl
|
|
11
|
-
U4vTa3o3EnCY82Nb9sI3tHvPWZjyjyQKOGp/Reb3mf/PWx23IBFJSbZezW5gbXy3
|
|
12
|
-
Ivcy3+RneKIdZ6w3wsu4AKcXcrWSb8mNZtIPVo7JqSGHnJ1ElMa9+XqTJohrXOLa
|
|
13
|
-
vW9IbiECgYEA97rTe/dPj3dUdU5ue9mDFTz4g30Z/eFxF4foGGsvd8nRJbhzSNhO
|
|
14
|
-
3/gTLnAbUnOsdlY5nGCp8qSl8nGvbSR4d8k7y26pa7/zf4QMnsbT41r0qpduoWlW
|
|
15
|
-
hVyW+sAsg/ITTjqRSGQBcAGTSDczBUpxFCvtyNQQue4QTAlyrcP8Ga8CgYEA9ARh
|
|
16
|
-
Bt99/v6BagMCgVEAQFxjxvb71Z/2nOHVOIxKOOMfUmto7A9uK/w/tDyf5JpY6YG8
|
|
17
|
-
ywDaIJ+/xwmz/jAD/RW2rEJ8+t9VERrNYhgLFdKLoR4Zn9cVsFCavIDZUBBy5455
|
|
18
|
-
ZUhMZVo9MKbdQlv0CK/LIu6az/ePTFYzKM5JFekCgYEAnfwskRtYRtNALot1VFCU
|
|
19
|
-
E0BN8HUg1VMnr20B7Ei2/frcAeVOyD8Cljz75pqiIgQZEWLN3NecqlysZCByUvV2
|
|
20
|
-
SlYwZv1M2KWSoVjSP5PnX1ALRpvKdu/ZuLUiqAlUmlUQUMxzCKqWbBrlFaH2TMJ7
|
|
21
|
-
uPSG8ZOkkx6qkANaekzJgosCgYBTW7uZkXeFSIQFJwoQCw++7NDZAz58d6zTYwJn
|
|
22
|
-
0uT4Ef59NVweaBcGx6ErfRpSCbgd7MgFwUDCrE/jOplWWCjEqEpDBmOTf/+bXECV
|
|
23
|
-
JgmDZu10GMhAJkWueZqikpGqHDRkjfNCejQ+21jT6ezj4m23GfaW9FPGf5dgSIIp
|
|
24
|
-
im7FIQKBgF8HuHf+ZS/tV4CvA2rj7ZQsqH6rqRUH5nkH0X6NPg8bUV6cthLL3cmy
|
|
25
|
-
1uxx1Tgbtd9Cyld2RRL3Q19Z1jDiIu4R/UgTaD/yunbCo7IAZAt3NMbFsi2uO1H1
|
|
26
|
-
NlfFbE+tJg2AcpxJ09n83LMZwHw/ZElxkWb+5z39H8UjGCSLODOu
|
|
27
|
-
-----END RSA PRIVATE KEY-----
|
|
@@ -1,156 +0,0 @@
|
|
|
1
|
-
###############################################################################
|
|
2
|
-
# cert-management — user-login "ensure-certificate" adımı simülasyonu
|
|
3
|
-
# (onefa corporate test kullanıcısı / cihazı)
|
|
4
|
-
#
|
|
5
|
-
# user-login'in ensure-certificate state'i cert-management'ı SubProcess (sync) olarak
|
|
6
|
-
# key = {userName}-{deviceId}-{installationId}
|
|
7
|
-
# attributes = { userName, deviceId, installationId }
|
|
8
|
-
# ile başlatır (StateEnsureCertificateCallCertManagementFlowMapping). Bu dosya aynı
|
|
9
|
-
# çağrıyı login'i (şifre/OTP/sözleşme) koşmadan doğrudan yapar.
|
|
10
|
-
#
|
|
11
|
-
# Beklenen akış:
|
|
12
|
-
# check-existing-cert ─ aktif cert VARSA ──────────────────────► cert-found-end (revoke ÇALIŞMAZ)
|
|
13
|
-
# ─ yoksa ► create-new-cert ► find-old-certs
|
|
14
|
-
# ─ eski aktif cert yoksa ─────► cert-created-end (revokeStatus=skipped)
|
|
15
|
-
# ─ varsa ► check-old-certs ⇄ revoke-old-cert ► old-certs-revoked-end
|
|
16
|
-
# (revokeStatus=completed | partial)
|
|
17
|
-
#
|
|
18
|
-
# Revoke döngüsünü görmek için ön koşul:
|
|
19
|
-
# 1) {{certKey}} ile ACTIVE/PASSIVE (status A) bir cert OLMAMALI. Passive cert check-existing-cert'e
|
|
20
|
-
# görünmez ama key'i tutar → cert child start 409 → cert-failed-end
|
|
21
|
-
# ("An active instance already exists with key …", 07.10 10:10 ve 10:16 run'ları). Key'i yalnızca
|
|
22
|
-
# final state (revoked-end / expired-end) serbest bırakır → 0b ile REVOKE et.
|
|
23
|
-
# 2) Kullanıcının başka currentState=active cert'leri OLMALI (find-old-certs yalnızca active arar,
|
|
24
|
-
# sayfa 15 kayıt; passive cert'ler iptal EDİLMEZ). Yeni üretilen cert newCert.id ile dışlanır,
|
|
25
|
-
# kalan aktiflerin HEPSİ revoke edilir — gerçek telefonun cert'i de dahil!
|
|
26
|
-
#
|
|
27
|
-
# DB kontrolü: cert instance'ları → eskiler current_state=revoked-end, yeni cert active;
|
|
28
|
-
# cert-management instance'ı → old-certs-revoked-end, data.revokeStatus=completed.
|
|
29
|
-
###############################################################################
|
|
30
|
-
|
|
31
|
-
@baseUrl = https://test-vnext-morph-idm.apps.nonprod.ebt.bank
|
|
32
|
-
@apiVersion = v1
|
|
33
|
-
@domain = morph-idm
|
|
34
|
-
|
|
35
|
-
@tckn = 57781544056
|
|
36
|
-
@firmNo = 425
|
|
37
|
-
@userKey = {{tckn}}-{{firmNo}}
|
|
38
|
-
|
|
39
|
-
# onefa-corporate-login-cert-token.http ile aynı cihaz kimliği
|
|
40
|
-
@deviceId = onefa-dev-01
|
|
41
|
-
@installationId = onefa-inst-01
|
|
42
|
-
@certKey = {{userKey}}-{{deviceId}}-{{installationId}}
|
|
43
|
-
|
|
44
|
-
# Login'in kullandığı cert-management key'i (composite). Önceki bir run Active/Busy kaldıysa
|
|
45
|
-
# start 409 "Active instance already exists" verir; o zaman alttaki benzersiz satırı aç.
|
|
46
|
-
@certMgmtKey = {{certKey}}
|
|
47
|
-
# @certMgmtKey = cert-mgmt-{{$timestamp}}
|
|
48
|
-
|
|
49
|
-
###############################################################################
|
|
50
|
-
# 0) ÖN KONTROL
|
|
51
|
-
###############################################################################
|
|
52
|
-
|
|
53
|
-
### 0a: Kullanıcının cert envanteri — active olanlar revoke adayıdır
|
|
54
|
-
# filter = {"attributes":{"userName":{"eq":"{{userKey}}"}}}
|
|
55
|
-
GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/cert/instances?filter=%7B%22attributes%22%3A%7B%22userName%22%3A%7B%22eq%22%3A%22{{userKey}}%22%7D%7D%7D&pageSize=50
|
|
56
|
-
Accept-Language: tr-TR
|
|
57
|
-
X-Request-Id: {{$guid}}
|
|
58
|
-
|
|
59
|
-
### 0b: {{certKey}} cert'inin durumu — active/passive ise 0c ile revoke et, revoked-end ise bir şey yapma
|
|
60
|
-
# (key ile sorgu aynı key'li birden çok kayıttan rastgele birini döndürebilir; şüphede 0a listesine bak)
|
|
61
|
-
GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/cert/instances/{{certKey}}/functions/state
|
|
62
|
-
Accept-Language: tr-TR
|
|
63
|
-
X-Request-Id: {{$guid}}
|
|
64
|
-
|
|
65
|
-
### 0c: (gerekirse) {{certKey}} cert'ini REVOKE et → key serbest kalır, akış yeni cert üretir
|
|
66
|
-
# DİKKAT: deactivate (passive) key'i serbest BIRAKMAZ, cert-failed-end'e yol açar.
|
|
67
|
-
# revoke transition'ı hem active hem passive state'te tanımlı.
|
|
68
|
-
PATCH {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/cert/instances/{{certKey}}/transitions/revoke?sync=true
|
|
69
|
-
Accept-Language: tr-TR
|
|
70
|
-
X-Request-Id: {{$guid}}
|
|
71
|
-
Content-Type: application/json
|
|
72
|
-
|
|
73
|
-
{
|
|
74
|
-
"attributes": {}
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
###############################################################################
|
|
78
|
-
# 1) ENSURE-CERTIFICATE SİMÜLASYONU
|
|
79
|
-
###############################################################################
|
|
80
|
-
|
|
81
|
-
### 1: cert-management'ı login'in gönderdiği veriyle başlat (sync → zincir bitince döner)
|
|
82
|
-
# @name certMgmt
|
|
83
|
-
POST {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/cert-management/instances/start?sync=true
|
|
84
|
-
Accept-Language: tr-TR
|
|
85
|
-
X-Request-Id: {{$guid}}
|
|
86
|
-
X-Device-Id: {{deviceId}}
|
|
87
|
-
X-Token-Id: {{$guid}}
|
|
88
|
-
Content-Type: application/json
|
|
89
|
-
|
|
90
|
-
{
|
|
91
|
-
"key": "{{certMgmtKey}}",
|
|
92
|
-
"tags": ["test", "cert-management", "onefa", "ensure-certificate"],
|
|
93
|
-
"attributes": {
|
|
94
|
-
"userName": "{{userKey}}",
|
|
95
|
-
"deviceId": "{{deviceId}}",
|
|
96
|
-
"installationId": "{{installationId}}"
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
###
|
|
101
|
-
@certMgmtId = {{certMgmt.response.body.id}}
|
|
102
|
-
@newCertId = {{certMgmt.response.body.attributes.newCert.id}}
|
|
103
|
-
|
|
104
|
-
### 2: State — beklenen: old-certs-revoked-end | cert-created-end | cert-found-end
|
|
105
|
-
GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/cert-management/instances/{{certMgmtId}}/functions/state
|
|
106
|
-
Accept-Language: tr-TR
|
|
107
|
-
X-Request-Id: {{$guid}}
|
|
108
|
-
|
|
109
|
-
### 3: Data — oldCertInstances[] { instanceId, instanceKey, isRevoked, isProcessed },
|
|
110
|
-
# revokeStatus (pending | completed | partial | skipped), revokeAttempts, newCert { id, key, certStatus }
|
|
111
|
-
GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/cert-management/instances/{{certMgmtId}}/functions/data
|
|
112
|
-
Accept-Language: tr-TR
|
|
113
|
-
X-Request-Id: {{$guid}}
|
|
114
|
-
|
|
115
|
-
### 4: Incident geçmişi (state revoke-old-cert'te kaldıysa / status F ise)
|
|
116
|
-
GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/cert-management/instances/{{certMgmtId}}/incidents
|
|
117
|
-
Accept-Language: tr-TR
|
|
118
|
-
X-Request-Id: {{$guid}}
|
|
119
|
-
|
|
120
|
-
### 5: Transition geçmişi — check-old-certs ⇄ revoke-old-cert kaç kez döndü (girdi başına 2 hop)
|
|
121
|
-
GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/cert-management/instances/{{certMgmtId}}/transitions
|
|
122
|
-
Accept-Language: tr-TR
|
|
123
|
-
X-Request-Id: {{$guid}}
|
|
124
|
-
|
|
125
|
-
###############################################################################
|
|
126
|
-
# 2) SONUÇ DOĞRULAMA
|
|
127
|
-
###############################################################################
|
|
128
|
-
|
|
129
|
-
### 6: Yeni cert (id ile; key ile sorgulama suffix'li eski kayıtlara düşebilir) — beklenen: active
|
|
130
|
-
GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/cert/instances/{{newCertId}}/functions/state
|
|
131
|
-
Accept-Language: tr-TR
|
|
132
|
-
X-Request-Id: {{$guid}}
|
|
133
|
-
|
|
134
|
-
### 7: Envanteri tekrar çek — 0a'daki active cert'ler revoked-end olmalı (DB ile karşılaştır)
|
|
135
|
-
GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/cert/instances?filter=%7B%22attributes%22%3A%7B%22userName%22%3A%7B%22eq%22%3A%22{{userKey}}%22%7D%7D%7D&pageSize=50
|
|
136
|
-
Accept-Language: tr-TR
|
|
137
|
-
X-Request-Id: {{$guid}}
|
|
138
|
-
|
|
139
|
-
###############################################################################
|
|
140
|
-
# 3) TEKRAR TEST İÇİN HAZIRLIK
|
|
141
|
-
###############################################################################
|
|
142
|
-
# Revoke edilen cert'ler final state'tedir (revoked-end), bir sonraki run'da aday kalmaz.
|
|
143
|
-
# Yeni adaylar üretmek için adım 1'i FARKLI cihaz kimlikleriyle koş (ör. @deviceId = onefa-dev-02,
|
|
144
|
-
# @installationId = onefa-inst-02): her biri active cert üretir ve o anki eski cert'leri iptal eder.
|
|
145
|
-
# Son olarak asıl cihazın cert'ini 8 ile REVOKE edip adım 1'i asıl cihazla koş → diğerleri revoke edilir.
|
|
146
|
-
# (Alternatif: eski cert'leri passive'den activate ile geri açmak da aday yapar; passive olanlar aday değildir.)
|
|
147
|
-
|
|
148
|
-
### 8: Yeni cert'i revoke et (key serbest kalsın, bir sonraki run yine yeni cert üretsin)
|
|
149
|
-
PATCH {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/cert/instances/{{newCertId}}/transitions/revoke?sync=true
|
|
150
|
-
Accept-Language: tr-TR
|
|
151
|
-
X-Request-Id: {{$guid}}
|
|
152
|
-
Content-Type: application/json
|
|
153
|
-
|
|
154
|
-
{
|
|
155
|
-
"attributes": {}
|
|
156
|
-
}
|
|
@@ -1,371 +0,0 @@
|
|
|
1
|
-
###############################################################################
|
|
2
|
-
# KURUMSAL KULLANICI — LOGIN → CİHAZ SERTİFİKASI → onefa (1FA) TOKEN (TEST ORTAMI)
|
|
3
|
-
#
|
|
4
|
-
# Amaç: Kurumsal 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
|
-
# Ortam: test-vnext-morph-idm (nonprod). Runtime idm-utils'i ve Vault PKI'ı kendi
|
|
9
|
-
# içinde çağırır; bu dosya yalnızca runtime API'si ile konuşur.
|
|
10
|
-
#
|
|
11
|
-
# Test kimliği (kurumsal):
|
|
12
|
-
# TCKN = 57781544056
|
|
13
|
-
# Firma (scope) = 425
|
|
14
|
-
# Şifre = 112233
|
|
15
|
-
# Client = IbIosApp (mobil client; onefa grant'i 0d ile eklenir)
|
|
16
|
-
#
|
|
17
|
-
# ÖNEMLİ — kurumsal kullanıcı anahtarı:
|
|
18
|
-
# user-validation subflow'u (UserGetMapping) kurumsal bağlamda userName'i
|
|
19
|
-
# "{tckn}-{scope}" bileşik anahtara çevirir ve login instance'ına geri yazar.
|
|
20
|
-
# Bu yüzden:
|
|
21
|
-
# cert instance key = {tckn}-{scope}-{deviceId}-{installationId}
|
|
22
|
-
# assertion "sub" = {tckn}-{scope} (aktif kurumsal user instance key'i)
|
|
23
|
-
# Bileşik anahtar yerine çıplak TCKN kullanılırsa shield-verify-signature sertifikayı
|
|
24
|
-
# bulamaz (473) ya da onefa-context-check user'ı bulamaz (404).
|
|
25
|
-
#
|
|
26
|
-
# Akış:
|
|
27
|
-
# A) user-login start → login (şifre) → [2. faktör: push veya OTP] → consent → security-check
|
|
28
|
-
# → ensure-certificate (cert-management → cert flow → idm-utils/Vault) → request-token → login-success
|
|
29
|
-
# B) cert instance data'dan certificate.privateKeyPem al
|
|
30
|
-
# C) TERMİNAL: node generate-onefa-assertion.js ile assertion imzala (exp = 5 dk!)
|
|
31
|
-
# D) token start grantType=onefa → cevap doğrudan token
|
|
32
|
-
# M) MOBİL: aynı akışın DMZ (APISIX) üzerinden hali — mobil ekibe verilecek kontrat
|
|
33
|
-
# (uygulama token'ı → login → sertifikayı oku → assertion imzala → /digitalbanking/token → get-user-info)
|
|
34
|
-
#
|
|
35
|
-
# Çalıştırma: VS Code REST Client / httpyac ile YUKARIDAN AŞAĞIYA. A–D runtime'a doğrudan gider,
|
|
36
|
-
# M bölümü yalnızca DMZ'yi kullanır (mobilin gördüğü tek yüzey).
|
|
37
|
-
###############################################################################
|
|
38
|
-
|
|
39
|
-
@baseUrl = https://test-vnext-morph-idm.apps.nonprod.ebt.bank
|
|
40
|
-
@apiVersion = v1
|
|
41
|
-
@domain = morph-idm
|
|
42
|
-
|
|
43
|
-
@tckn = 57781544056
|
|
44
|
-
@firmNo = 425
|
|
45
|
-
@password = 112233
|
|
46
|
-
@clientId = IbIosApp
|
|
47
|
-
|
|
48
|
-
# Cihaz kimliği — her yeni cihaz için değiştir. Aynı ikili tekrar kullanılırsa
|
|
49
|
-
# cert-management mevcut aktif sertifikayı bulur ve yeniden üretmez (cert-found-end).
|
|
50
|
-
@deviceId = onefa-dev-01
|
|
51
|
-
@installationId = onefa-inst-01
|
|
52
|
-
|
|
53
|
-
# Kurumsal bileşik kullanıcı anahtarı (bkz. yukarıdaki not)
|
|
54
|
-
@userKey = {{tckn}}-{{firmNo}}
|
|
55
|
-
@certKey = {{userKey}}-{{deviceId}}-{{installationId}}
|
|
56
|
-
|
|
57
|
-
# PKCE çifti (RFC 7636) — login transition'ı authorization_code için ister
|
|
58
|
-
@codeVerifier = dBjftJeZ4CVP-mB92K27uhbUJU1p1r_wW1gFWFOEjXk
|
|
59
|
-
@codeChallenge = E9Melhoa2OwvFrEMTJguCHaoeK1t8URWbuGJSstw-cM
|
|
60
|
-
|
|
61
|
-
###############################################################################
|
|
62
|
-
# 0) ÖN KONTROLLER
|
|
63
|
-
###############################################################################
|
|
64
|
-
|
|
65
|
-
### 0a: Kurumsal user instance aktif mi? (beklenen: active)
|
|
66
|
-
GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/user/instances/{{userKey}}/functions/state
|
|
67
|
-
Accept-Language: tr-TR
|
|
68
|
-
X-Request-Id: {{$guid}}
|
|
69
|
-
|
|
70
|
-
### 0b: Client var mı ve onefa grant'i izinli mi? (allowedGrants "onefa" YA DA legacy URN
|
|
71
|
-
# urn:ietf:params:oauth:grant-type:burgan-certificate-assertion içermeli, yoksa token 471 verir.
|
|
72
|
-
# Migrasyonla gelen IbIosApp/IbWeb kayıtlarında URN zaten var → 0d çoğu zaman gereksizdir.)
|
|
73
|
-
GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/client/instances/{{clientId}}/functions/data
|
|
74
|
-
Accept-Language: tr-TR
|
|
75
|
-
X-Request-Id: {{$guid}}
|
|
76
|
-
|
|
77
|
-
### 0c: Aktif consent var mı? (kurumsal consent key'i genelde {{userKey}}; yoksa consent-selection consent-invalid-end'e düşer)
|
|
78
|
-
GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/consent/instances/{{userKey}}/functions/state
|
|
79
|
-
Accept-Language: tr-TR
|
|
80
|
-
X-Request-Id: {{$guid}}
|
|
81
|
-
|
|
82
|
-
### 0d: (0b'de NE "onefa" NE URN varsa) IbIosApp'e onefa grant'ini ekle
|
|
83
|
-
# update transition'ı active client'ta açıktır ve allowedGrants'ı OLDUĞU GİBİ DEĞİŞTİRİR (merge etmez):
|
|
84
|
-
# mevcut listenin tamamı + "onefa" gönderilmeli. Aşağıdaki liste test ortamındaki IbIosApp'in
|
|
85
|
-
# 2026-09-18 tarihli mevcut grant'leridir; 0b çıktısıyla karşılaştırıp gerekirse güncelle.
|
|
86
|
-
# Şemada enum kısıtı yok (items: string), "onefa" değeri doğrudan kabul edilir.
|
|
87
|
-
PATCH {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/client/instances/{{clientId}}/transitions/update?sync=true
|
|
88
|
-
Accept-Language: tr-TR
|
|
89
|
-
X-Request-Id: {{$guid}}
|
|
90
|
-
X-Device-Id: admin-portal
|
|
91
|
-
X-Token-Id: {{$guid}}
|
|
92
|
-
X-Device-Info: Admin Portal/1.0
|
|
93
|
-
user_reference: admin-001
|
|
94
|
-
Content-Type: application/json
|
|
95
|
-
|
|
96
|
-
{
|
|
97
|
-
"attributes": {
|
|
98
|
-
"allowedGrants": [
|
|
99
|
-
"urn:ietf:params:oauth:grant-type:burgan-credential",
|
|
100
|
-
"urn:ietf:params:oauth:grant-type:burgan-certificate-assertion",
|
|
101
|
-
"urn:ietf:params:oauth:grant-type:burgan-workflow-credential",
|
|
102
|
-
"refresh_token",
|
|
103
|
-
"password",
|
|
104
|
-
"device",
|
|
105
|
-
"client_credentials",
|
|
106
|
-
"authorization_code",
|
|
107
|
-
"onefa"
|
|
108
|
-
]
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
### 0e: Doğrula — allowedGrants içinde "onefa" görünmeli
|
|
113
|
-
GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/client/instances/{{clientId}}/functions/data
|
|
114
|
-
Accept-Language: tr-TR
|
|
115
|
-
X-Request-Id: {{$guid}}
|
|
116
|
-
|
|
117
|
-
###############################################################################
|
|
118
|
-
# A) USER-LOGIN — kurumsal
|
|
119
|
-
###############################################################################
|
|
120
|
-
|
|
121
|
-
### A1: Login instance başlat (scopeGroup=corporate-customers, tek consent → otomatik seçim)
|
|
122
|
-
# user-login-start şeması clientId, grantType ve scopes[] (minItems 1) ister; scopes eksikse
|
|
123
|
-
# start 400 "Required properties [scopes] are not present" ile reddedilir. Akış scopes'u yalnızca
|
|
124
|
-
# instance data'ya kopyalar, karar için kullanmaz; firma seçimi login transition'ındaki tekil "scope"
|
|
125
|
-
# alanıyla yapılır. Burada firma no gönderiliyor.
|
|
126
|
-
# ⚠ deviceId/installationId YALNIZCA start'ta okunur (StateDraftResolveDeviceIdentityMapping: start body,
|
|
127
|
-
# yoksa X-Device-Id / X-Installation-Id header'ı). A2 body'sindeki installationId pass-through listesinde
|
|
128
|
-
# değil → header gönderilmezse ensure-certificate "JSON schema validation failed" ile sertifika üretmez
|
|
129
|
-
# (bireysel koşuda 2026-11-10'da görüldü; bkz. ../test-onefa-retail).
|
|
130
|
-
# @name startLogin
|
|
131
|
-
POST {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/user-login/instances/start?sync=true
|
|
132
|
-
Accept-Language: tr-TR
|
|
133
|
-
X-Request-Id: {{$guid}}
|
|
134
|
-
X-Device-Id: {{deviceId}}
|
|
135
|
-
X-Installation-Id: {{installationId}}
|
|
136
|
-
X-Token-Id: {{$guid}}
|
|
137
|
-
X-Device-Info: Mobile Banking App iOS/2.0
|
|
138
|
-
X-Forwarded-For: 10.0.0.50
|
|
139
|
-
user_reference: {{tckn}}
|
|
140
|
-
Content-Type: application/json
|
|
141
|
-
|
|
142
|
-
{
|
|
143
|
-
"key": "onefa-corp-login-{{$timestamp}}",
|
|
144
|
-
"tags": ["test", "login", "corporate", "onefa"],
|
|
145
|
-
"attributes": {
|
|
146
|
-
"clientId": "{{clientId}}",
|
|
147
|
-
"grantType": "authorization_code",
|
|
148
|
-
"scopes": ["openid"],
|
|
149
|
-
"allowConsentSelection": false,
|
|
150
|
-
"scopeGroup": "corporate-customers"
|
|
151
|
-
}
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
###
|
|
155
|
-
@loginId = {{startLogin.response.body.id}}
|
|
156
|
-
|
|
157
|
-
### A2: login transition — şifre + firma (scope) + cihaz kimliği
|
|
158
|
-
# deviceId/installationId ZORUNLU: ensure-certificate cert key'ini bunlardan kurar,
|
|
159
|
-
# eksikse certManagementStatus=error yazar ve sertifika ÜRETİLMEZ (login yine devam eder).
|
|
160
|
-
# @name login
|
|
161
|
-
PATCH {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/user-login/instances/{{loginId}}/transitions/login?sync=true
|
|
162
|
-
Accept-Language: tr-TR
|
|
163
|
-
X-Request-Id: {{$guid}}
|
|
164
|
-
X-Device-Id: {{deviceId}}
|
|
165
|
-
X-Token-Id: {{$guid}}
|
|
166
|
-
X-Device-Info: Mobile Banking App iOS/2.0
|
|
167
|
-
X-Forwarded-For: 10.0.0.50
|
|
168
|
-
user_reference: {{tckn}}
|
|
169
|
-
Content-Type: application/json
|
|
170
|
-
|
|
171
|
-
{
|
|
172
|
-
"attributes": {
|
|
173
|
-
"clientId": "{{clientId}}",
|
|
174
|
-
"grantType": "authorization_code",
|
|
175
|
-
"codeChallenge": "{{codeChallenge}}",
|
|
176
|
-
"codeChallengeMethod": "S256",
|
|
177
|
-
"userName": "{{tckn}}",
|
|
178
|
-
"password": "{{password}}",
|
|
179
|
-
"scope": "{{firmNo}}",
|
|
180
|
-
"deviceId": "{{deviceId}}",
|
|
181
|
-
"installationId": "{{installationId}}",
|
|
182
|
-
"loginMethod": "password",
|
|
183
|
-
"ipAddress": "10.0.0.50",
|
|
184
|
-
"userAgent": "Mobile Banking App iOS/2.0",
|
|
185
|
-
"loginTimestamp": "{{$datetime iso8601}}"
|
|
186
|
-
}
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
### A3: State — nerede kaldı?
|
|
190
|
-
# login-approvement / otp-waiting → A4b (verify-otp) [yeni cihaz → OTP; kod SMS ile gelir]
|
|
191
|
-
# (IbIosApp gibi IbWeb dışı client'ta KAYITLI cihaz bulunursa 2. faktör yoktur, akış doğrudan devam eder;
|
|
192
|
-
# push yalnızca IbWeb'de devreye girer → A4a)
|
|
193
|
-
# security-check / security-question-change veya security-image-change
|
|
194
|
-
# → kullanıcının güvenlik sorusu/resmi eksik; önce onları set etmek gerekir
|
|
195
|
-
# ensure-certificate → request-token → login-success → sertifika üretildi, B adımına geç
|
|
196
|
-
# user-validation-failed-end → şifre/kullanıcı hatası (data.validationError)
|
|
197
|
-
# scope-invalid-end / consent-invalid-end → firma/consent eşleşmedi (0a-0c'yi kontrol et)
|
|
198
|
-
GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/user-login/instances/{{loginId}}/functions/state
|
|
199
|
-
Accept-Language: tr-TR
|
|
200
|
-
X-Request-Id: {{$guid}}
|
|
201
|
-
user_reference: {{tckn}}
|
|
202
|
-
|
|
203
|
-
### A4a: 2. faktör — PUSH onayı (state push-waiting ise)
|
|
204
|
-
PATCH {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/user-login/instances/{{loginId}}/transitions/approve-push?sync=true
|
|
205
|
-
Accept-Language: tr-TR
|
|
206
|
-
X-Request-Id: {{$guid}}
|
|
207
|
-
X-Device-Id: {{deviceId}}
|
|
208
|
-
X-Token-Id: {{$guid}}
|
|
209
|
-
user_reference: {{tckn}}
|
|
210
|
-
Content-Type: application/json
|
|
211
|
-
|
|
212
|
-
{
|
|
213
|
-
"attributes": {
|
|
214
|
-
"pushReference": "test-reference"
|
|
215
|
-
}
|
|
216
|
-
}
|
|
217
|
-
|
|
218
|
-
### A4b: 2. faktör — OTP doğrulama (state otp-waiting ise; SMS'teki 6 haneli kodu yaz)
|
|
219
|
-
# Kod 180 sn içinde girilmeli; süre dolarsa otp-resend state'inden resend-otp ile yeni kod istenir.
|
|
220
|
-
PATCH {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/user-login/instances/{{loginId}}/transitions/verify-otp?sync=true
|
|
221
|
-
Accept-Language: tr-TR
|
|
222
|
-
X-Request-Id: {{$guid}}
|
|
223
|
-
X-Device-Id: {{deviceId}}
|
|
224
|
-
X-Token-Id: {{$guid}}
|
|
225
|
-
user_reference: {{tckn}}
|
|
226
|
-
Content-Type: application/json
|
|
227
|
-
|
|
228
|
-
{
|
|
229
|
-
"attributes": {
|
|
230
|
-
"inputtedOtpCode": "123456"
|
|
231
|
-
}
|
|
232
|
-
}
|
|
233
|
-
|
|
234
|
-
### A4c: (yalnız timeout sonrası) yeni OTP iste
|
|
235
|
-
PATCH {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/user-login/instances/{{loginId}}/transitions/resend-otp?sync=true
|
|
236
|
-
Accept-Language: tr-TR
|
|
237
|
-
X-Request-Id: {{$guid}}
|
|
238
|
-
user_reference: {{tckn}}
|
|
239
|
-
Content-Type: application/json
|
|
240
|
-
|
|
241
|
-
{
|
|
242
|
-
"attributes": {}
|
|
243
|
-
}
|
|
244
|
-
|
|
245
|
-
### A5: State — beklenen: login-success (ensure-certificate otomatik geçildi)
|
|
246
|
-
GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/user-login/instances/{{loginId}}/functions/state
|
|
247
|
-
Accept-Language: tr-TR
|
|
248
|
-
X-Request-Id: {{$guid}}
|
|
249
|
-
user_reference: {{tckn}}
|
|
250
|
-
|
|
251
|
-
### A6: Login data — kontrol: userName == "{{userKey}}", certManagementStatus == "success"
|
|
252
|
-
# certManagementStatus=error ise message alanı sebebi söyler (idm-utils / Vault PKI / eksik deviceId).
|
|
253
|
-
GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/user-login/instances/{{loginId}}/functions/data
|
|
254
|
-
Accept-Language: tr-TR
|
|
255
|
-
X-Request-Id: {{$guid}}
|
|
256
|
-
user_reference: {{tckn}}
|
|
257
|
-
|
|
258
|
-
###############################################################################
|
|
259
|
-
# B) SERTİFİKAYI AL
|
|
260
|
-
###############################################################################
|
|
261
|
-
|
|
262
|
-
### B1: Cert instance state — beklenen: active (key = {{certKey}})
|
|
263
|
-
GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/cert/instances/{{certKey}}/functions/state
|
|
264
|
-
Accept-Language: tr-TR
|
|
265
|
-
X-Request-Id: {{$guid}}
|
|
266
|
-
|
|
267
|
-
### B2: Cert instance data — data.certificate.privateKeyPem / publicKeyPem / certificatePem / serialNumber / notAfter
|
|
268
|
-
# (Mobil bu ucu DEĞİL, M5'teki cert-management data ucunu kullanır; cert instance'ı iç detaydır.)
|
|
269
|
-
# @name certData
|
|
270
|
-
GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/cert/instances/{{certKey}}/functions/data
|
|
271
|
-
Accept-Language: tr-TR
|
|
272
|
-
X-Request-Id: {{$guid}}
|
|
273
|
-
|
|
274
|
-
###############################################################################
|
|
275
|
-
# C) TERMİNAL — private key'i kaydet, assertion'ı imzala
|
|
276
|
-
#
|
|
277
|
-
# Bu klasörde:
|
|
278
|
-
#
|
|
279
|
-
# curl -s "https://test-vnext-morph-idm.apps.nonprod.ebt.bank/api/v1/morph-idm/workflows/cert/instances/57781544056-425-onefa-dev-01-onefa-inst-01/functions/data" \
|
|
280
|
-
# | jq -r '(.data.certificate // .certificate).privateKeyPem' > device-key.pem
|
|
281
|
-
#
|
|
282
|
-
# node ../../Workflows/token-process/token/execute/generate-onefa-assertion.js \
|
|
283
|
-
# device-key.pem 57781544056-425 onefa-dev-01 onefa-inst-01 IbIosApp
|
|
284
|
-
#
|
|
285
|
-
# deviceId/installationId'yi değiştirdiysen yukarıdaki değerleri de eşle.
|
|
286
|
-
# Çıktı JWS'i aşağıdaki @clientAssertion'a yapıştır. exp = iat + 300 sn: 5 dakika içinde D1'i çalıştır,
|
|
287
|
-
# geçerse yeniden üret. Script sub / device_id / installation_id / iss (clientId) claim'lerini yazar;
|
|
288
|
-
# üçlü cert key ile birebir aynı olmalı.
|
|
289
|
-
###############################################################################
|
|
290
|
-
|
|
291
|
-
@clientAssertion = eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJqdGkiOiIzNDE4YmEwZC1mNWVlLTQ1ZjktOWY5Yi00Y2ExZjQwNjMxN2IiLCJzdWIiOiI1Nzc4MTU0NDA1Ni00MjUiLCJkZXZpY2VfaWQiOiJvbmVmYS1kZXYtMDEiLCJpbnN0YWxsYXRpb25faWQiOiJvbmVmYS1pbnN0LTAxIiwiaXNzIjoiSWJJb3NBcHAiLCJpYXQiOjE3OTIwNTY4NTEsImV4cCI6MTc5MjA1NzE1MX0.LPQ0m0rYhhV-js4MKzGB8EyHKrHQfly0pu36YDYlN6fO85zKf6rYH6MCucV31s7Af6Gq8Cf7LAfrJL8Aff69xH_S6QygrxYxHfKY_cK9xasZpKlg_RFJtg8SfRqLYEFjk74ODKNR3XF1Vb0v69bd9EgYivsGmZQxYAMtq1XaGYft62_fQSzZztJLX0RGvX4pPE3vwXDnzWhCDFwzuN1F7I0nGij2Uo01SljyoJcqAIL0BpNp5vVOpgU6Uwrb7OVrnfsT6RvfIuahrGrHDXSacn2aygGeU_-vDmcJYR_e0nhoyVajAHIrluuR56BuBHVV8Nvq_KTmNgINB4FXOJfL-A
|
|
292
|
-
|
|
293
|
-
###############################################################################
|
|
294
|
-
# D) onefa TOKEN
|
|
295
|
-
###############################################################################
|
|
296
|
-
|
|
297
|
-
# Her denemede değiştir; onefa'da session key = assertion jti (replay koruması), token key serbest.
|
|
298
|
-
@tokenKey = token-onefa-corp-{{$timestamp}}
|
|
299
|
-
|
|
300
|
-
### D1: token start (grantType=onefa) — BAŞARIDA CEVAP DOĞRUDAN TOKEN'DIR
|
|
301
|
-
# (access_token / refresh_token / expires_in). scope onefa yolunda doğrulanmaz, OAuth scope claim'i olarak geçer.
|
|
302
|
-
# Beklenen claim'ler: amr=onefa_assertion, sub={{firmNo}} (scope/firma referansı), act_sub={{tckn}},
|
|
303
|
-
# role=1FA, jti=assertion jti, position=<consent.position> (user "{{tckn}}-{{firmNo}}" + scope {{firmNo}}
|
|
304
|
-
# + client için aktif consent; authorization_code ile aynı kaynak, consent yoksa claim yok).
|
|
305
|
-
# (Kurumsal ayrım: token flow onefa-context-check + idm-utils 1FA dalı; bireysel kullanıcıda sub=act_sub=TCKN.)
|
|
306
|
-
# @name onefaStart
|
|
307
|
-
POST {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/token/instances/start?sync=true
|
|
308
|
-
Accept-Language: tr-TR
|
|
309
|
-
X-Request-Id: {{$guid}}
|
|
310
|
-
X-Device-Id: {{deviceId}}
|
|
311
|
-
Content-Type: application/json
|
|
312
|
-
|
|
313
|
-
{
|
|
314
|
-
"key": "{{tokenKey}}",
|
|
315
|
-
"tags": ["test", "oauth2", "onefa", "corporate"],
|
|
316
|
-
"attributes": {
|
|
317
|
-
"grantType": "onefa",
|
|
318
|
-
"clientAssertion": "{{clientAssertion}}",
|
|
319
|
-
"scope": "corporate-customer"
|
|
320
|
-
}
|
|
321
|
-
}
|
|
322
|
-
|
|
323
|
-
### D1b: Aynı istek legacy URN grant adıyla — workflow iki adı da kabul eder; grant_type claim'i URN çıkar.
|
|
324
|
-
# (D1 yerine çalıştır; aynı assertion iki kez KULLANILAMAZ, jti tüketilir → yeni assertion üret.)
|
|
325
|
-
# @name onefaStartUrn
|
|
326
|
-
POST {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/token/instances/start?sync=true
|
|
327
|
-
Accept-Language: tr-TR
|
|
328
|
-
X-Request-Id: {{$guid}}
|
|
329
|
-
X-Device-Id: {{deviceId}}
|
|
330
|
-
Content-Type: application/json
|
|
331
|
-
|
|
332
|
-
{
|
|
333
|
-
"key": "{{tokenKey}}-urn",
|
|
334
|
-
"tags": ["test", "oauth2", "onefa", "corporate", "legacy-urn"],
|
|
335
|
-
"attributes": {
|
|
336
|
-
"grantType": "urn:ietf:params:oauth:grant-type:burgan-certificate-assertion",
|
|
337
|
-
"clientAssertion": "{{clientAssertion}}",
|
|
338
|
-
"scope": "corporate-customer"
|
|
339
|
-
}
|
|
340
|
-
}
|
|
341
|
-
|
|
342
|
-
### D2: State — beklenen: issued (hata: onefa-invalid)
|
|
343
|
-
GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/token/instances/{{tokenKey}}/functions/state
|
|
344
|
-
Accept-Language: tr-TR
|
|
345
|
-
X-Request-Id: {{$guid}}
|
|
346
|
-
|
|
347
|
-
### D3: Data — tokenCreation + tokenInstanceId; hata durumunda onefaError / onefaErrorCode
|
|
348
|
-
# 473 assertion boş ya da "jws cannot be verified by shield." → sub/device/installation üçlüsü cert key ile uyuşmuyor
|
|
349
|
-
# veya assertion başka bir private key ile imzalanmış / süresi geçmiş
|
|
350
|
-
# 471 jti boş ya da client onefa grant'ine izinli değil ya da jti daha önce kullanılmış (replay)
|
|
351
|
-
# 460 zorunlu claim eksik ya da client yok
|
|
352
|
-
# 404 sub ile aktif user bulunamadı (bileşik anahtar {{userKey}} kullanılmalı)
|
|
353
|
-
# 470 user pasif
|
|
354
|
-
# @name onefaData
|
|
355
|
-
GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/token/instances/{{tokenKey}}/functions/data
|
|
356
|
-
Accept-Language: tr-TR
|
|
357
|
-
X-Request-Id: {{$guid}}
|
|
358
|
-
|
|
359
|
-
###
|
|
360
|
-
@sessionInstanceId = {{onefaData.response.body.data.tokenInstanceId}}
|
|
361
|
-
|
|
362
|
-
### D4: Session data — tokenCreation.access_token / refresh_token (D1 cevabı yetmezse)
|
|
363
|
-
GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/session/instances/{{sessionInstanceId}}/functions/data
|
|
364
|
-
Accept-Language: tr-TR
|
|
365
|
-
X-Request-Id: {{$guid}}
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
###
|
|
370
|
-
GET {{baseUrl}}/api/v1/morph-idm/workflows/user/instances/57781544056-425/functions/data
|
|
371
|
-
|