@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
package/morph-idm/Workflows/user-corporate/user-corporate-update/execute/user-corporate-update.http
DELETED
|
@@ -1,117 +0,0 @@
|
|
|
1
|
-
@baseUrl = http://localhost:4251
|
|
2
|
-
@apiVersion = v1
|
|
3
|
-
@domain = morph-idm
|
|
4
|
-
@workflow = user-corporate-update
|
|
5
|
-
### Sentetik test verisi — commit'i bağımsız sürmek için. ÖN KOŞUL:
|
|
6
|
-
### 1) provision .http ile kurumsal kullanıcı yaratılmış olmalı (consent {tckn}-{scopeKey} AKTİF,
|
|
7
|
-
### limit tanımları AKTİF). currentLimits[].key değerleri GERÇEK instance key'leri olmalı —
|
|
8
|
-
### aşağıdaki listeleme isteğiyle alın.
|
|
9
|
-
### 2) accountServiceResponse.subflowInstanceId: provision'daki hesap-yetki-degisikligi çocuğunun id'si.
|
|
10
|
-
### 3) transferServiceResponse.subflowInstanceId: update'teki transfer-account-restriction çocuğunun
|
|
11
|
-
### (COMPLETED draft) id'si. Sentetik/rastgele id ile transfer-restriction-save SOFT-FAIL eder
|
|
12
|
-
### (HTTP 200/201 ama saved:false + error.code:"TA:400005") → transferPermsFailed
|
|
13
|
-
### → transfer-perms-failed-end.
|
|
14
|
-
@tckn = 21790665422
|
|
15
|
-
@scopeKey = 100078
|
|
16
|
-
@instanceKey = corp-update-commit-{{$timestamp}}
|
|
17
|
-
|
|
18
|
-
### 0) Mevcut aktif limit tanımlarını listele (currentLimits[].key için) — filter: user+scope+scopeGroup+active
|
|
19
|
-
# @name listLimits
|
|
20
|
-
GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/transaction-limit-definition/instances?filter={"and":[{"currentState":{"eq":"active"}},{"attributes":{"scopeGroup":{"eq":"corporate-customers"}}},{"attributes":{"user":{"eq":"{{tckn}}"}}},{"attributes":{"scope":{"eq":"{{scopeKey}}"}}}]}&page=1&pageSize=100
|
|
21
|
-
|
|
22
|
-
### 1) SENARYO A — sadece miktar değişimi (conflict-update yolu):
|
|
23
|
-
### currentLimits'te accounts.timeDeposit/Transaction 100000 varken limits'te 250000 gönderilir.
|
|
24
|
-
### Beklenen: yeni def instance'ı updated-existing-end'e düşer, MEVCUT kayıt amount=250000 ile aktif kalır.
|
|
25
|
-
POST {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/start
|
|
26
|
-
Content-Type: application/json
|
|
27
|
-
|
|
28
|
-
{
|
|
29
|
-
"key": "{{instanceKey}}",
|
|
30
|
-
"tags": ["test", "corporate-update-commit"],
|
|
31
|
-
"attributes": {
|
|
32
|
-
"userKey": "{{tckn}}",
|
|
33
|
-
"scope": { "key": {{scopeKey}}, "vkn": "50031539176", "name": "POLAT A.Ş." },
|
|
34
|
-
"role": "entry",
|
|
35
|
-
"limits": [
|
|
36
|
-
{ "limitKey": "accounts.timeDeposit", "type": "Transaction", "amount": 250000 },
|
|
37
|
-
{ "limitKey": "accounts.timeDeposit", "type": "Daily", "amount": 500000 }
|
|
38
|
-
],
|
|
39
|
-
"currentLimits": [
|
|
40
|
-
{ "key": "{{tckn}}-{{scopeKey}}-accounts.timeDeposit-Transaction", "limitKey": "accounts.timeDeposit", "type": "Transaction", "amount": 100000 },
|
|
41
|
-
{ "key": "{{tckn}}-{{scopeKey}}-accounts.timeDeposit-Daily", "limitKey": "accounts.timeDeposit", "type": "Daily", "amount": 500000 }
|
|
42
|
-
],
|
|
43
|
-
"accountServiceResponse": { "subflowInstanceId": "REPLACE-WITH-DEPOSIT-WIZARD-CHILD-INSTANCE-ID" },
|
|
44
|
-
"transferServiceResponse": { "subflowInstanceId": "REPLACE-WITH-TRANSFER-WIZARD-CHILD-INSTANCE-ID" },
|
|
45
|
-
"actorUser": "{{tckn}}",
|
|
46
|
-
"documentContent": {
|
|
47
|
-
"fileName": "kurumsal-kullanici-yetki-degisikligi-onay-formu.pdf",
|
|
48
|
-
"contentType": "application/pdf",
|
|
49
|
-
"fileContext": "JVBERi0xLjQKMSAwIG9iago8PC9UeXBlL0NhdGFsb2cvUGFnZXMgMiAwIFI+PgplbmRvYmoKMiAwIG9iago8PC9UeXBlL1BhZ2VzL0tpZHNbMyAwIFJdL0NvdW50IDE+PgplbmRvYmoKMyAwIG9iago8PC9UeXBlL1BhZ2UvUGFyZW50IDIgMCBSL01lZGlhQm94WzAgMCA5OSA5OV0+PgplbmRvYmoKdHJhaWxlcgo8PC9Sb290IDEgMCBSPj4K"
|
|
50
|
-
},
|
|
51
|
-
"note": "Kurumsal kullanıcı yetki değişikliği - backoffice"
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
### 2) Commit durumunu izle (long poll) — beklenen sıra:
|
|
56
|
-
### prepare-limit-diff → apply-limits ⇄ start-limit-def (1 kez: Transaction 250000; Daily değişmedi → atlanır)
|
|
57
|
-
### → passivate-limits (boş) → account-permissions (hesap-yetki-kaydet SubFlow)
|
|
58
|
-
### → transfer-permissions (transfer-restriction-save SubFlow, id-bazlı; geçersiz id → soft-fail
|
|
59
|
-
### → transfer-perms-failed-end) → document-router
|
|
60
|
-
### → uploading-document (parent create instance id = contractInstanceId, bu commit id = documentInstanceId, upload-v2)
|
|
61
|
-
### → update-consent → completed-end
|
|
62
|
-
GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/{{instanceKey}}/functions/state
|
|
63
|
-
|
|
64
|
-
### 3) Instance datasını incele (limitsToApply/limitsToPassivate/cursorlar)
|
|
65
|
-
GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/{{instanceKey}}/functions/data
|
|
66
|
-
|
|
67
|
-
### 4) SENARYO B — ekle + sil: limits'te YENİ bir limit (payments.billPayment) var,
|
|
68
|
-
### currentLimits'teki accounts.timeDeposit/Daily YOK → passivate edilmeli.
|
|
69
|
-
### Beklenen: yeni def AKTİF; silinen def instance'ı PASSIVE; diğerleri dokunulmaz.
|
|
70
|
-
POST {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/start
|
|
71
|
-
Content-Type: application/json
|
|
72
|
-
|
|
73
|
-
{
|
|
74
|
-
"key": "{{instanceKey}}-b",
|
|
75
|
-
"tags": ["test", "corporate-update-commit"],
|
|
76
|
-
"attributes": {
|
|
77
|
-
"userKey": "{{tckn}}",
|
|
78
|
-
"scope": { "key": {{scopeKey}}, "vkn": "50031539176", "name": "POLAT A.Ş." },
|
|
79
|
-
"role": "entry",
|
|
80
|
-
"limits": [
|
|
81
|
-
{ "limitKey": "accounts.timeDeposit", "type": "Transaction", "amount": 250000 },
|
|
82
|
-
{ "limitKey": "payments.billPayment", "type": "Transaction", "amount": 50000 }
|
|
83
|
-
],
|
|
84
|
-
"currentLimits": [
|
|
85
|
-
{ "key": "{{tckn}}-{{scopeKey}}-accounts.timeDeposit-Transaction", "limitKey": "accounts.timeDeposit", "type": "Transaction", "amount": 250000 },
|
|
86
|
-
{ "key": "{{tckn}}-{{scopeKey}}-accounts.timeDeposit-Daily", "limitKey": "accounts.timeDeposit", "type": "Daily", "amount": 500000 }
|
|
87
|
-
],
|
|
88
|
-
"accountServiceResponse": { "subflowInstanceId": "REPLACE-WITH-DEPOSIT-WIZARD-CHILD-INSTANCE-ID" },
|
|
89
|
-
"transferServiceResponse": { "subflowInstanceId": "REPLACE-WITH-TRANSFER-WIZARD-CHILD-INSTANCE-ID" }
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
### 5) SENARYO C — superUser → entry downgrade:
|
|
94
|
-
### Beklenen: consent position=entry, roles=[idm.full-authorized] (superUser ekleri düşer — roles REPLACE).
|
|
95
|
-
POST {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/start
|
|
96
|
-
Content-Type: application/json
|
|
97
|
-
|
|
98
|
-
{
|
|
99
|
-
"key": "{{instanceKey}}-c",
|
|
100
|
-
"tags": ["test", "corporate-update-commit"],
|
|
101
|
-
"attributes": {
|
|
102
|
-
"userKey": "{{tckn}}",
|
|
103
|
-
"scope": { "key": {{scopeKey}}, "vkn": "50031539176", "name": "POLAT A.Ş." },
|
|
104
|
-
"role": "entry",
|
|
105
|
-
"superUserPermissions": { "roleChange": true, "limitChange": true, "userAdd": false },
|
|
106
|
-
"limits": [],
|
|
107
|
-
"currentLimits": [],
|
|
108
|
-
"accountServiceResponse": { "subflowInstanceId": "REPLACE-WITH-DEPOSIT-WIZARD-CHILD-INSTANCE-ID" },
|
|
109
|
-
"transferServiceResponse": { "subflowInstanceId": "REPLACE-WITH-TRANSFER-WIZARD-CHILD-INSTANCE-ID" }
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
### 6) Consent'i doğrula (position + roles güncellenmiş mi)
|
|
114
|
-
GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/consent/instances/{{tckn}}-{{scopeKey}}/functions/data
|
|
115
|
-
|
|
116
|
-
### 7) Limit tanımını doğrula (SENARYO A sonrası amount=250000, hâlâ aktif ve AYNI key)
|
|
117
|
-
GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/transaction-limit-definition/instances/{{tckn}}-{{scopeKey}}-accounts.timeDeposit-Transaction/functions/data
|
|
@@ -1,535 +0,0 @@
|
|
|
1
|
-
# User Login Workflow - Validation Flow
|
|
2
|
-
|
|
3
|
-
Bu dokümantasyon, user-login workflow'unun 3-adımlı validation flow'unu açıklar.
|
|
4
|
-
|
|
5
|
-
## 🔄 Workflow Akışı
|
|
6
|
-
|
|
7
|
-
```
|
|
8
|
-
start
|
|
9
|
-
│
|
|
10
|
-
├─► client-validation
|
|
11
|
-
│ ├─► [Task: get-client-cached-task (cache-aside over get-client-by-task)]
|
|
12
|
-
│ ├─► [Rule: ClientValidationRule]
|
|
13
|
-
│ │
|
|
14
|
-
│ ├─► client-valid (auto) ────────────► grant-validation
|
|
15
|
-
│ └─► client-invalid (auto) ──────────┐
|
|
16
|
-
│ │
|
|
17
|
-
├─► grant-validation │
|
|
18
|
-
│ ├─► [Rule: GrantValidationRule] │
|
|
19
|
-
│ │ │
|
|
20
|
-
│ ├─► grant-valid (auto) ─────────────► scope-validation
|
|
21
|
-
│ └─► grant-invalid (auto) ───────────┤
|
|
22
|
-
│ │
|
|
23
|
-
├─► scope-validation │
|
|
24
|
-
│ ├─► [Rule: ScopeValidationRule] │
|
|
25
|
-
│ │ │
|
|
26
|
-
│ ├─► scope-valid (auto) ─────────────► user-validation
|
|
27
|
-
│ └─► scope-invalid (auto) ───────────┤
|
|
28
|
-
│ │
|
|
29
|
-
├─► user-validation │
|
|
30
|
-
│ ├─► [Task: get-user-by-task] │
|
|
31
|
-
│ ├─► [Rule: UserValidationRule] │
|
|
32
|
-
│ │ │
|
|
33
|
-
│ ├─► user-valid (auto) ─────────────► consent-validation
|
|
34
|
-
│ └─► user-invalid (auto) ────────────┤
|
|
35
|
-
│ │
|
|
36
|
-
├─► consent-validation │
|
|
37
|
-
│ ├─► [Task: get-consent-by-task] │
|
|
38
|
-
│ ├─► [Rule: ConsentValidationRule] │
|
|
39
|
-
│ │ │
|
|
40
|
-
│ ├─► consent-valid (auto) ───────────► token-generation
|
|
41
|
-
│ └─► consent-invalid (auto) ─────────┤
|
|
42
|
-
│ │
|
|
43
|
-
├─► token-generation │
|
|
44
|
-
│ ├─► [Task: trigger-token-workflow] │
|
|
45
|
-
│ ├─► [Subflow: token.json] │
|
|
46
|
-
│ ├─► [Rule: TokenGenerationSuccessRule]
|
|
47
|
-
│ │ │
|
|
48
|
-
│ ├─► token-generated (auto) ─────────► login-success ✓
|
|
49
|
-
│ └─► token-generation-failed (auto) ─┤
|
|
50
|
-
│ │
|
|
51
|
-
└─────────────────────────────────────────► login-fail-end ✗
|
|
52
|
-
```
|
|
53
|
-
|
|
54
|
-
## 🎯 Validation State'leri
|
|
55
|
-
|
|
56
|
-
### 1. Client Validation
|
|
57
|
-
**Amaç:** OAuth2 client'ın geçerliliğini kontrol et
|
|
58
|
-
|
|
59
|
-
**Task:** `get-client-cached-task` (CacheAside, type 18 → source `get-client-by-task`; TTL 1h, key `custom:client:{clientId}`; client `update/passive/reactivate/publish` invalidates via `client-cache-delete-task`; not-found is never cached)
|
|
60
|
-
- Instance data'dan `clientId` alır
|
|
61
|
-
- Client workflow'undan client bilgilerini getirir
|
|
62
|
-
|
|
63
|
-
**Mapping:** `GetClientMapping.csx`
|
|
64
|
-
```csharp
|
|
65
|
-
triggerTask.SetInstance(context.Instance?.Data?.clientId ?? string.Empty);
|
|
66
|
-
```
|
|
67
|
-
|
|
68
|
-
**Rule:** `ClientValidationRule.csx`
|
|
69
|
-
- Client'ın var olup olmadığını kontrol eder
|
|
70
|
-
- Client'ın state'inin "active" olduğunu doğrular
|
|
71
|
-
- Client key'in instance data ile eşleştiğini kontrol eder
|
|
72
|
-
|
|
73
|
-
**Transitions:**
|
|
74
|
-
- ✅ `client-valid` (auto) → user-validation
|
|
75
|
-
- ❌ `client-invalid` (auto) → login-fail-end
|
|
76
|
-
|
|
77
|
-
---
|
|
78
|
-
|
|
79
|
-
### 2. Grant Validation
|
|
80
|
-
**Amaç:** OAuth2 grant type'ın client için geçerli olup olmadığını kontrol et
|
|
81
|
-
|
|
82
|
-
**Task:** Yok (client-validation'dan gelen data kullanılır)
|
|
83
|
-
|
|
84
|
-
**Rule:** `GrantValidationRule.csx`
|
|
85
|
-
- Instance data'dan `grantType` alır
|
|
86
|
-
- Client data'sından `allowedGrants` listesini kontrol eder
|
|
87
|
-
- İstenen grant type'ın izin verilen grant'lar içinde olduğunu doğrular
|
|
88
|
-
|
|
89
|
-
**Grant Types:**
|
|
90
|
-
- `authorization_code` - OAuth2 Authorization Code Flow
|
|
91
|
-
- `client_credentials` - OAuth2 Client Credentials Flow
|
|
92
|
-
- `password` - Resource Owner Password Credentials Flow
|
|
93
|
-
- `refresh_token` - Token Refresh Flow
|
|
94
|
-
- `implicit` - OAuth2 Implicit Flow (deprecated)
|
|
95
|
-
|
|
96
|
-
**Transitions:**
|
|
97
|
-
- ✅ `grant-valid` (auto) → scope-validation
|
|
98
|
-
- ❌ `grant-invalid` (auto) → login-fail-end
|
|
99
|
-
|
|
100
|
-
---
|
|
101
|
-
|
|
102
|
-
### 3. Scope Validation
|
|
103
|
-
**Amaç:** İstenen scope'ların client için geçerli olup olmadığını kontrol et
|
|
104
|
-
|
|
105
|
-
**Task:** Yok (client-validation'dan gelen data kullanılır)
|
|
106
|
-
|
|
107
|
-
**Rule:** `ScopeValidationRule.csx`
|
|
108
|
-
- Instance data'dan `scopes` array'ini alır
|
|
109
|
-
- Client data'sından `allowedScopes` listesini kontrol eder
|
|
110
|
-
- Tüm istenen scope'ların izin verilen scope'lar içinde olduğunu doğrular
|
|
111
|
-
|
|
112
|
-
**Common Scopes:**
|
|
113
|
-
- `openid` - OpenID Connect
|
|
114
|
-
- `profile` - User profile information
|
|
115
|
-
- `email` - Email address
|
|
116
|
-
- `accounts.read` - Read account data
|
|
117
|
-
- `accounts.write` - Write account data
|
|
118
|
-
- `transactions.read` - Read transaction history
|
|
119
|
-
- `transactions.write` - Initiate transactions
|
|
120
|
-
|
|
121
|
-
**Transitions:**
|
|
122
|
-
- ✅ `scope-valid` (auto) → user-validation
|
|
123
|
-
- ❌ `scope-invalid` (auto) → login-fail-end
|
|
124
|
-
|
|
125
|
-
---
|
|
126
|
-
|
|
127
|
-
### 4. User Validation
|
|
128
|
-
**Amaç:** Kullanıcının geçerliliğini ve aktif durumunu kontrol et
|
|
129
|
-
|
|
130
|
-
**Task:** `get-user-by-task`
|
|
131
|
-
- Instance data'dan `userName` alır
|
|
132
|
-
- User workflow'undan user bilgilerini getirir
|
|
133
|
-
|
|
134
|
-
**Mapping:** `GetUserMapping.csx`
|
|
135
|
-
```csharp
|
|
136
|
-
triggerTask.SetInstance(context.Instance?.Data?.userName ?? string.Empty);
|
|
137
|
-
```
|
|
138
|
-
|
|
139
|
-
**Rule:** `UserValidationRule.csx`
|
|
140
|
-
- User'ın var olup olmadığını kontrol eder
|
|
141
|
-
- User'ın state'inin "active" olduğunu doğrular
|
|
142
|
-
- User key'in instance data ile eşleştiğini kontrol eder
|
|
143
|
-
|
|
144
|
-
**Transitions:**
|
|
145
|
-
- ✅ `user-valid` (auto) → consent-validation
|
|
146
|
-
- ❌ `user-invalid` (auto) → login-fail-end
|
|
147
|
-
|
|
148
|
-
---
|
|
149
|
-
|
|
150
|
-
### 5. Consent Validation
|
|
151
|
-
**Amaç:** User-Client-Scope consent'ının geçerliliğini kontrol et
|
|
152
|
-
|
|
153
|
-
**Task:** `get-consent-by-task`
|
|
154
|
-
- Instance data'dan `consentId` alır
|
|
155
|
-
- Consent workflow'undan consent bilgilerini getirir
|
|
156
|
-
|
|
157
|
-
**Mapping:** `GetConsentMapping.csx`
|
|
158
|
-
```csharp
|
|
159
|
-
triggerTask.SetInstance(context.Instance?.Data?.consentId ?? string.Empty);
|
|
160
|
-
```
|
|
161
|
-
|
|
162
|
-
**Rule:** `ConsentValidationRule.csx`
|
|
163
|
-
- Consent'ın var olup olmadığını kontrol eder
|
|
164
|
-
- Consent'ın state'inin "active" olduğunu doğrular
|
|
165
|
-
- Consent key'in instance data ile eşleştiğini kontrol eder
|
|
166
|
-
- Consent'ın expire olmadığını doğrular (`expiresAt > DateTime.UtcNow`)
|
|
167
|
-
|
|
168
|
-
**Transitions:**
|
|
169
|
-
- ✅ `consent-valid` (auto) → login-success
|
|
170
|
-
- ❌ `consent-invalid` (auto) → login-fail-end
|
|
171
|
-
|
|
172
|
-
---
|
|
173
|
-
|
|
174
|
-
### 6. Token Generation (Sub-Flow)
|
|
175
|
-
**Amaç:** Token workflow'unu sub-flow olarak çağırarak OAuth2 token'ları üret
|
|
176
|
-
|
|
177
|
-
**Task:** `trigger-token-workflow`
|
|
178
|
-
- Token workflow'unu başlatır (TriggerSubflowTask - Type 12)
|
|
179
|
-
- Login context'inden token payload'u hazırlar
|
|
180
|
-
- Token workflow'u sync olarak çalıştırır ve sonucunu bekler
|
|
181
|
-
|
|
182
|
-
**Mapping:** `TriggerTokenWorkflowMapping.csx`
|
|
183
|
-
```csharp
|
|
184
|
-
// Input: Login context'i token payload'una dönüştürür
|
|
185
|
-
var tokenPayload = new {
|
|
186
|
-
client = context.Instance?.Data?.client,
|
|
187
|
-
user = context.Instance?.Data?.user,
|
|
188
|
-
consent = context.Instance?.Data?.consent,
|
|
189
|
-
grantType = context.Instance?.Data?.grantType,
|
|
190
|
-
scopes = context.Instance?.Data?.scopes
|
|
191
|
-
};
|
|
192
|
-
|
|
193
|
-
// Output: Token workflow sonuçlarını alır
|
|
194
|
-
{
|
|
195
|
-
tokenWorkflowInstance = context.Body,
|
|
196
|
-
accessToken = context.Body?.attributes?.accessToken,
|
|
197
|
-
refreshToken = context.Body?.attributes?.refreshToken,
|
|
198
|
-
expiresIn = context.Body?.attributes?.expiresIn
|
|
199
|
-
}
|
|
200
|
-
```
|
|
201
|
-
|
|
202
|
-
**Rule:** `TokenGenerationSuccessRule.csx`
|
|
203
|
-
- Token workflow'un state'ini kontrol eder
|
|
204
|
-
- State "active" veya "waiting-redeem" ise başarılı kabul eder
|
|
205
|
-
- Token üretiminin başarılı olup olmadığını doğrular
|
|
206
|
-
|
|
207
|
-
**Sub-Flow:** `token.json`
|
|
208
|
-
- OAuth2 Authorization Code Flow
|
|
209
|
-
- Authorization code üretimi
|
|
210
|
-
- Access token + Refresh token üretimi
|
|
211
|
-
- Token lifecycle management
|
|
212
|
-
|
|
213
|
-
**Transitions:**
|
|
214
|
-
- ✅ `token-generated` (auto) → login-success
|
|
215
|
-
- ❌ `token-generation-failed` (auto) → login-fail-end
|
|
216
|
-
|
|
217
|
-
**Token Response:**
|
|
218
|
-
```json
|
|
219
|
-
{
|
|
220
|
-
"accessToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
|
|
221
|
-
"refreshToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
|
|
222
|
-
"tokenType": "Bearer",
|
|
223
|
-
"expiresIn": 3600,
|
|
224
|
-
"scope": "openid profile accounts.read"
|
|
225
|
-
}
|
|
226
|
-
```
|
|
227
|
-
|
|
228
|
-
---
|
|
229
|
-
|
|
230
|
-
## 🧪 Test Senaryoları
|
|
231
|
-
|
|
232
|
-
### Senaryo 1: Başarılı Login (Tüm Validasyonlar Geçerli)
|
|
233
|
-
```json
|
|
234
|
-
{
|
|
235
|
-
"clientId": "mobile-banking-app", // ✓ Var ve active
|
|
236
|
-
"grantType": "authorization_code", // ✓ Client izin veriyor
|
|
237
|
-
"scopes": ["openid", "profile", "accounts.read"], // ✓ Tümü client'ta tanımlı
|
|
238
|
-
"userName": "user-john-doe", // ✓ Var ve active
|
|
239
|
-
"consentId": "consent-john-doe-..." // ✓ Var, active ve expire olmamış
|
|
240
|
-
}
|
|
241
|
-
```
|
|
242
|
-
**Sonuç:** `login-success` ✅
|
|
243
|
-
|
|
244
|
-
### Senaryo 2: Client Geçersiz
|
|
245
|
-
```json
|
|
246
|
-
{
|
|
247
|
-
"clientId": "non-existent-client", // ✗ Yok veya inactive
|
|
248
|
-
"grantType": "authorization_code",
|
|
249
|
-
"scopes": ["openid", "profile"],
|
|
250
|
-
"userName": "user-john-doe",
|
|
251
|
-
"consentId": "consent-john-doe-..."
|
|
252
|
-
}
|
|
253
|
-
```
|
|
254
|
-
**Sonuç:** `login-fail-end` ❌ (client-validation'da fail)
|
|
255
|
-
|
|
256
|
-
### Senaryo 3: Grant Type Geçersiz
|
|
257
|
-
```json
|
|
258
|
-
{
|
|
259
|
-
"clientId": "mobile-banking-app", // ✓ Geçerli
|
|
260
|
-
"grantType": "implicit", // ✗ Client bu grant'ı desteklemiyor
|
|
261
|
-
"scopes": ["openid", "profile"],
|
|
262
|
-
"userName": "user-john-doe",
|
|
263
|
-
"consentId": "consent-john-doe-..."
|
|
264
|
-
}
|
|
265
|
-
```
|
|
266
|
-
**Sonuç:** `login-fail-end` ❌ (grant-validation'da fail)
|
|
267
|
-
|
|
268
|
-
### Senaryo 4: Scope Geçersiz
|
|
269
|
-
```json
|
|
270
|
-
{
|
|
271
|
-
"clientId": "mobile-banking-app", // ✓ Geçerli
|
|
272
|
-
"grantType": "authorization_code", // ✓ Geçerli
|
|
273
|
-
"scopes": ["openid", "admin.write"], // ✗ admin.write client'ta tanımlı değil
|
|
274
|
-
"userName": "user-john-doe",
|
|
275
|
-
"consentId": "consent-john-doe-..."
|
|
276
|
-
}
|
|
277
|
-
```
|
|
278
|
-
**Sonuç:** `login-fail-end` ❌ (scope-validation'da fail)
|
|
279
|
-
|
|
280
|
-
### Senaryo 5: User Geçersiz
|
|
281
|
-
```json
|
|
282
|
-
{
|
|
283
|
-
"clientId": "mobile-banking-app", // ✓ Geçerli
|
|
284
|
-
"grantType": "authorization_code", // ✓ Geçerli
|
|
285
|
-
"scopes": ["openid", "profile"], // ✓ Geçerli
|
|
286
|
-
"userName": "non-existent-user", // ✗ Yok veya inactive
|
|
287
|
-
"consentId": "consent-john-doe-..."
|
|
288
|
-
}
|
|
289
|
-
```
|
|
290
|
-
**Sonuç:** `login-fail-end` ❌ (user-validation'da fail)
|
|
291
|
-
|
|
292
|
-
### Senaryo 6: Consent Geçersiz
|
|
293
|
-
```json
|
|
294
|
-
{
|
|
295
|
-
"clientId": "mobile-banking-app", // ✓ Geçerli
|
|
296
|
-
"grantType": "authorization_code", // ✓ Geçerli
|
|
297
|
-
"scopes": ["openid", "profile"], // ✓ Geçerli
|
|
298
|
-
"userName": "user-john-doe", // ✓ Geçerli
|
|
299
|
-
"consentId": "non-existent-consent" // ✗ Yok, inactive veya expire
|
|
300
|
-
}
|
|
301
|
-
```
|
|
302
|
-
**Sonuç:** `login-fail-end` ❌ (consent-validation'da fail)
|
|
303
|
-
|
|
304
|
-
---
|
|
305
|
-
|
|
306
|
-
## 📋 Gerekli Payload Alanları
|
|
307
|
-
|
|
308
|
-
### Zorunlu Alanlar
|
|
309
|
-
```json
|
|
310
|
-
{
|
|
311
|
-
"key": "login-session-unique-key",
|
|
312
|
-
"attributes": {
|
|
313
|
-
"clientId": "string", // OAuth2 client key
|
|
314
|
-
"grantType": "string", // OAuth2 grant type (e.g., "authorization_code")
|
|
315
|
-
"scopes": ["string"], // Array of requested scopes
|
|
316
|
-
"userName": "string", // User key
|
|
317
|
-
"consentId": "string" // Consent key
|
|
318
|
-
}
|
|
319
|
-
}
|
|
320
|
-
```
|
|
321
|
-
|
|
322
|
-
### Opsiyonel Alanlar (Security & Audit)
|
|
323
|
-
```json
|
|
324
|
-
{
|
|
325
|
-
"attributes": {
|
|
326
|
-
"deviceId": "string",
|
|
327
|
-
"loginMethod": "password|certificate|otp",
|
|
328
|
-
"ipAddress": "string",
|
|
329
|
-
"userAgent": "string",
|
|
330
|
-
"loginTimestamp": "ISO8601",
|
|
331
|
-
"challengeToken": "string (JWT)",
|
|
332
|
-
"sessionMetadata": {
|
|
333
|
-
"deviceFingerprint": "string",
|
|
334
|
-
"geolocation": { "country", "city", "lat", "lon" }
|
|
335
|
-
}
|
|
336
|
-
}
|
|
337
|
-
}
|
|
338
|
-
```
|
|
339
|
-
|
|
340
|
-
---
|
|
341
|
-
|
|
342
|
-
## 🔐 Güvenlik Özellikleri
|
|
343
|
-
|
|
344
|
-
### Auto Transition (Rule-based)
|
|
345
|
-
Tüm validation transition'ları **otomatik** (triggerType: 1):
|
|
346
|
-
- User müdahalesi gerekmez
|
|
347
|
-
- Validation rule'ları anında çalışır
|
|
348
|
-
- Başarısız olan ilk validation'da akış durur
|
|
349
|
-
|
|
350
|
-
### Negate Rule
|
|
351
|
-
Her validation için 2 transition var:
|
|
352
|
-
1. **Positive rule** → Success path
|
|
353
|
-
2. **Negative rule** (`"negate": true`) → Fail path
|
|
354
|
-
|
|
355
|
-
Bu sayede her durumda bir transition tetiklenir.
|
|
356
|
-
|
|
357
|
-
### State Types
|
|
358
|
-
- `client-validation`: **stateType: 2** (Normal state)
|
|
359
|
-
- `grant-validation`, `scope-validation`, `user-validation`, `consent-validation`, `token-generation`: **stateType: 2** (Normal state)
|
|
360
|
-
- `login-success`: **stateType: 3** (Finish - Success)
|
|
361
|
-
- `login-fail-end`: **stateType: 3** (Finish - Fail)
|
|
362
|
-
|
|
363
|
-
---
|
|
364
|
-
|
|
365
|
-
## 📂 Dosya Yapısı
|
|
366
|
-
|
|
367
|
-
```
|
|
368
|
-
idm/
|
|
369
|
-
├── Tasks/
|
|
370
|
-
│ ├── client/
|
|
371
|
-
│ │ └── get-client-by-task.json # Client getirme task'ı
|
|
372
|
-
│ ├── user/
|
|
373
|
-
│ │ └── get-user-by-task.json # User getirme task'ı
|
|
374
|
-
│ ├── consent/
|
|
375
|
-
│ │ └── get-consent-by-task.json # Consent getirme task'ı
|
|
376
|
-
│ └── token/
|
|
377
|
-
│ └── trigger-token-workflow.json # Token workflow trigger task'ı
|
|
378
|
-
│
|
|
379
|
-
├── Workflows/
|
|
380
|
-
│ └── user/
|
|
381
|
-
│ ├── user-login.json # Ana workflow tanımı
|
|
382
|
-
│ ├── src/
|
|
383
|
-
│ │ ├── GetClientMapping.csx # Client mapping
|
|
384
|
-
│ │ ├── GetUserMapping.csx # User mapping
|
|
385
|
-
│ │ ├── GetConsentMapping.csx # Consent mapping
|
|
386
|
-
│ │ ├── TriggerTokenWorkflowMapping.csx # Token workflow trigger mapping
|
|
387
|
-
│ │ ├── ClientValidationRule.csx # Client validation rule
|
|
388
|
-
│ │ ├── GrantValidationRule.csx # Grant validation rule
|
|
389
|
-
│ │ ├── ScopeValidationRule.csx # Scope validation rule
|
|
390
|
-
│ │ ├── UserValidationRule.csx # User validation rule
|
|
391
|
-
│ │ ├── ConsentValidationRule.csx # Consent validation rule
|
|
392
|
-
│ │ └── TokenGenerationSuccessRule.csx # Token generation validation rule
|
|
393
|
-
│ └── execute/
|
|
394
|
-
│ ├── user-login-example.json # Test payload
|
|
395
|
-
│ ├── user-login.http # HTTP test dosyası
|
|
396
|
-
│ └── README-LOGIN.md # Bu dosya
|
|
397
|
-
```
|
|
398
|
-
|
|
399
|
-
---
|
|
400
|
-
|
|
401
|
-
## 🚀 Hızlı Test
|
|
402
|
-
|
|
403
|
-
### 1. API'yi Başlat
|
|
404
|
-
```bash
|
|
405
|
-
# API server çalışıyor olmalı
|
|
406
|
-
http://localhost:4201
|
|
407
|
-
```
|
|
408
|
-
|
|
409
|
-
### 2. Önkoşulları Hazırla
|
|
410
|
-
Aşağıdaki instance'lar mevcut ve active olmalı:
|
|
411
|
-
- Client: `mobile-banking-app`
|
|
412
|
-
- User: `user-john-doe`
|
|
413
|
-
- Consent: `consent-john-doe-mobile-banking-customer-123`
|
|
414
|
-
|
|
415
|
-
### 3. Test Et
|
|
416
|
-
VS Code'da `user-login.http` dosyasını aç ve:
|
|
417
|
-
```http
|
|
418
|
-
POST http://localhost:4201/api/v1/idm/workflows/user-login/instances/start?sync=true
|
|
419
|
-
```
|
|
420
|
-
|
|
421
|
-
### 4. Sonucu Kontrol Et
|
|
422
|
-
```http
|
|
423
|
-
GET http://localhost:4201/api/v1/idm/workflows/user-login/instances/{instanceId}/functions/state
|
|
424
|
-
```
|
|
425
|
-
|
|
426
|
-
Response'da `state.key` alanı:
|
|
427
|
-
- `"login-success"` → ✅ Tüm validasyonlar başarılı
|
|
428
|
-
- `"login-fail-end"` → ❌ Validasyonlardan biri başarısız
|
|
429
|
-
|
|
430
|
-
---
|
|
431
|
-
|
|
432
|
-
## 📊 State Machine Diagram
|
|
433
|
-
|
|
434
|
-
```
|
|
435
|
-
┌────────────────────────────────────────────────────────────┐
|
|
436
|
-
│ START │
|
|
437
|
-
└───────────────────────┬────────────────────────────────────┘
|
|
438
|
-
│
|
|
439
|
-
▼
|
|
440
|
-
┌────────────────────────────────────────────────────────────┐
|
|
441
|
-
│ CLIENT-VALIDATION (Start State) │
|
|
442
|
-
│ • Task: get-client-by-task │
|
|
443
|
-
│ • Mapping: GetClientMapping.csx │
|
|
444
|
-
│ • Rule: ClientValidationRule.csx │
|
|
445
|
-
└────────────┬──────────────────────────┬────────────────────┘
|
|
446
|
-
│ client-valid (auto) │ client-invalid (auto)
|
|
447
|
-
▼ ▼
|
|
448
|
-
┌────────────────────────────────┐ ┌─────────────────────┐
|
|
449
|
-
│ GRANT-VALIDATION │ │ LOGIN-FAIL-END │
|
|
450
|
-
│ • Rule: GrantValidationRule │ │ (Finish - Fail) │
|
|
451
|
-
└────────┬──────────────┬────────┘ └─────────────────────┘
|
|
452
|
-
│ grant-valid │ grant-invalid ▲
|
|
453
|
-
│ (auto) │ (auto) │
|
|
454
|
-
▼ └──────────────────────┤
|
|
455
|
-
┌────────────────────────────────┐ │
|
|
456
|
-
│ SCOPE-VALIDATION │ │
|
|
457
|
-
│ • Rule: ScopeValidationRule │ │
|
|
458
|
-
└────────┬──────────────┬────────┘ │
|
|
459
|
-
│ scope-valid │ scope-invalid │
|
|
460
|
-
│ (auto) │ (auto) │
|
|
461
|
-
▼ └─────────────────────┤
|
|
462
|
-
┌────────────────────────────────┐ │
|
|
463
|
-
│ USER-VALIDATION │ │
|
|
464
|
-
│ • Task: get-user-by-task │ │
|
|
465
|
-
│ • Mapping: GetUserMapping.csx │ │
|
|
466
|
-
│ • Rule: UserValidationRule │ │
|
|
467
|
-
└─────┬──────────────────┬───────┘ │
|
|
468
|
-
│ user-valid │ user-invalid │
|
|
469
|
-
│ (auto) │ (auto) │
|
|
470
|
-
▼ └────────────────────┤
|
|
471
|
-
┌──────────────────────────────────────┐ │
|
|
472
|
-
│ CONSENT-VALIDATION │ │
|
|
473
|
-
│ • Task: get-consent-by-task │ │
|
|
474
|
-
│ • Mapping: GetConsentMapping.csx │ │
|
|
475
|
-
│ • Rule: ConsentValidationRule │ │
|
|
476
|
-
└────┬──────────────────┬──────────────┘ │
|
|
477
|
-
│ consent-valid │ consent-invalid │
|
|
478
|
-
│ (auto) │ (auto) │
|
|
479
|
-
▼ └────────────────────┤
|
|
480
|
-
┌──────────────────────────────────────┐ │
|
|
481
|
-
│ TOKEN-GENERATION │ │
|
|
482
|
-
│ • Task: trigger-token-workflow │ │
|
|
483
|
-
│ • Subflow: token.json │ │
|
|
484
|
-
│ • Mapping: TriggerTokenWorkflow.csx │ │
|
|
485
|
-
│ • Rule: TokenGenerationSuccessRule │ │
|
|
486
|
-
└────┬──────────────────┬──────────────┘ │
|
|
487
|
-
│ token-generated │ token-gen-failed │
|
|
488
|
-
│ (auto) │ (auto) │
|
|
489
|
-
▼ └────────────────────┘
|
|
490
|
-
┌──────────────────────────────────────┐
|
|
491
|
-
│ LOGIN-SUCCESS │
|
|
492
|
-
│ (Finish - Success) │
|
|
493
|
-
│ • Access Token │
|
|
494
|
-
│ • Refresh Token │
|
|
495
|
-
└──────────────────────────────────────┘
|
|
496
|
-
```
|
|
497
|
-
|
|
498
|
-
---
|
|
499
|
-
|
|
500
|
-
## ⚠️ Önemli Notlar
|
|
501
|
-
|
|
502
|
-
1. **Auto Transitions:** Tüm validation transition'ları otomatik çalışır, manuel trigger gerekmez.
|
|
503
|
-
|
|
504
|
-
2. **Fail-Fast:** İlk başarısız validation'da akış durur ve `login-fail-end`'e yönlenir.
|
|
505
|
-
|
|
506
|
-
3. **Task Type 13:** GetInstanceData task type'ı kullanılır (workflow instance'dan data getirme).
|
|
507
|
-
|
|
508
|
-
4. **Rule Negation:** Her validation için hem positive hem negative rule çalışır (`negate: true`).
|
|
509
|
-
|
|
510
|
-
5. **State Logging:** Her mapping ve rule içinde `LogInformation` ile debug logları eklenir.
|
|
511
|
-
|
|
512
|
-
---
|
|
513
|
-
|
|
514
|
-
## 🔗 İlgili Workflow'lar
|
|
515
|
-
- **User Workflow** (`user.json`) - User yönetimi
|
|
516
|
-
- **Client Workflow** (`client.json`) - OAuth2 client yönetimi
|
|
517
|
-
- **Consent Workflow** (`consent.json`) - User-Client-Scope consent yönetimi
|
|
518
|
-
- **Token Workflow** (`token.json`) - OAuth2 token üretimi (Sub-flow olarak çağrılır)
|
|
519
|
-
- **Device Manager** (`device-manager.json`) - Device registration ve authentication
|
|
520
|
-
|
|
521
|
-
## 🔄 Sub-Flow Integration
|
|
522
|
-
User-login workflow'u, tüm validasyonlar başarılı olduktan sonra **token workflow'unu sub-flow olarak çağırır**:
|
|
523
|
-
|
|
524
|
-
1. **Sync Execution:** Token workflow sync olarak çalıştırılır (TriggerSubflowTask)
|
|
525
|
-
2. **Context Passing:** Login context (client, user, consent, grant, scopes) token workflow'a aktarılır
|
|
526
|
-
3. **Token Generation:** Token workflow OAuth2 Authorization Code Flow'u çalıştırır
|
|
527
|
-
4. **Result Handling:** Token workflow sonuçları (access token, refresh token) login instance'ına eklenir
|
|
528
|
-
5. **Success/Fail:** Token üretimi başarılıysa `login-success`, başarısızsa `login-fail-end`
|
|
529
|
-
|
|
530
|
-
**Avantajları:**
|
|
531
|
-
- ✅ Modüler yapı: Token logic'i ayrı workflow'da
|
|
532
|
-
- ✅ Yeniden kullanılabilirlik: Token workflow başka yerlerden de çağrılabilir
|
|
533
|
-
- ✅ Test edilebilirlik: Token workflow bağımsız test edilebilir
|
|
534
|
-
- ✅ Bakım kolaylığı: Token logic değişiklikleri tek yerde yapılır
|
|
535
|
-
|