@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.
Files changed (324) hide show
  1. package/burgan-tech-morph-idm-runtime-0.0.7.tgz +0 -0
  2. package/morph-idm/Workflows/test-consent-selection/test-flow-with-sub.json +1 -1
  3. package/morph-idm/Workflows/test-consent-selection/test-flow-with-two-sub.json +2 -2
  4. package/morph-idm/Workflows/token-process/token/src/mappings/StateMintTokenCallSessionStartMapping.csx +8 -33
  5. package/morph-idm/Workflows/token-process/token/token.json +1 -1
  6. package/package.json +1 -1
  7. package/vnext.config.json +1 -1
  8. package/burgan-tech-morph-idm-runtime-0.0.6.tgz +0 -0
  9. package/morph-idm/Extensions/.gitkeep +0 -0
  10. package/morph-idm/Functions/.gitkeep +0 -0
  11. package/morph-idm/Functions/cert/check/execute/check.http +0 -106
  12. package/morph-idm/Functions/consent/check-consent-role/execute/check-consent-role.http +0 -89
  13. package/morph-idm/Functions/consent/get-consent-role-position/execute/get-consent-role-position.http +0 -55
  14. package/morph-idm/Functions/consent/get-position/execute/get-position.http +0 -38
  15. package/morph-idm/Functions/consent/get-roles/execute/get-roles.http +0 -163
  16. package/morph-idm/Functions/customer/execute/get-customer-by-filter.http +0 -126
  17. package/morph-idm/Functions/customer-management/get-firms-by-filter/execute/get-firms-by-filter.http +0 -91
  18. package/morph-idm/Functions/device-process/forget/execute/forget.http +0 -141
  19. package/morph-idm/Functions/device-process/get-device-list/execute/get-device-list.http +0 -138
  20. package/morph-idm/Functions/device-process/get-device-token-by-reference/execute/get-device-token-by-reference.http +0 -349
  21. package/morph-idm/Functions/device-process/remove/execute/remove.http +0 -150
  22. package/morph-idm/Functions/device-process/save/execute/save.http +0 -124
  23. package/morph-idm/Functions/feature-management/dynamic-config/.gitkeep +0 -0
  24. package/morph-idm/Functions/feature-management/dynamic-config/execute/dynamic-config-reads.http +0 -43
  25. package/morph-idm/Functions/feature-management/feature-flag/.gitkeep +0 -0
  26. package/morph-idm/Functions/feature-management/feature-management-ops/.gitkeep +0 -0
  27. package/morph-idm/Functions/organization/get-organizations/execute/get-organizations.http +0 -30
  28. package/morph-idm/Functions/organization/get-position-levels-by-scope/execute/get-position-levels-by-scope.http +0 -54
  29. package/morph-idm/Functions/session/logout/execute/logout.http +0 -91
  30. package/morph-idm/Functions/sso-flow/execute/session-transfer.http +0 -132
  31. package/morph-idm/Functions/sso-flow/token-direct/execute/token-direct-boarding.http +0 -222
  32. package/morph-idm/Functions/sso-flow/token-direct/execute/token-direct.http +0 -121
  33. package/morph-idm/Functions/transaction-limit/verify-limit-definition/execute/verify-limit-definition.http +0 -78
  34. package/morph-idm/Functions/user/execute/get-password-history-by-filter.http +0 -66
  35. package/morph-idm/Functions/user/execute/get-security-question-history-by-user.http +0 -85
  36. package/morph-idm/Functions/user/get-users-by-scope/execute/get-users-by-scope.http +0 -73
  37. package/morph-idm/Functions/user-login/get-last-successful-corporate-logon/execute/get-last-successful-corporate-logon.http +0 -49
  38. package/morph-idm/Functions/user-login/get-last-user-logins/execute/get-last-user-logins.http +0 -96
  39. package/morph-idm/Functions/user-login/get-user-logins/execute/get-user-logins.http +0 -78
  40. package/morph-idm/Functions/zeebe-approval/get-starter-instance-id/execute/get-starter-instance-id.http +0 -64
  41. package/morph-idm/Schemas/feature-management/database-variables/.gitkeep +0 -0
  42. package/morph-idm/Schemas/feature-management/dynamic-config/.gitkeep +0 -0
  43. package/morph-idm/Schemas/feature-management/feature-flag/.gitkeep +0 -0
  44. package/morph-idm/Tasks/.gitkeep +0 -0
  45. package/morph-idm/Tasks/feature-management/database-variables/.gitkeep +0 -0
  46. package/morph-idm/Tasks/feature-management/dynamic-config/.gitkeep +0 -0
  47. package/morph-idm/Tasks/feature-management/feature-flag/.gitkeep +0 -0
  48. package/morph-idm/Tasks/feature-management/feature-management-shared/.gitkeep +0 -0
  49. package/morph-idm/TestCases/corporate-user-login-e2e.http +0 -872
  50. package/morph-idm/TestCases/limit-approval/approval-matrix-limit-definition.http +0 -182
  51. package/morph-idm/TestCases/limit-approval/approval-non-amount-subflow.http +0 -132
  52. package/morph-idm/TestCases/limit-approval/transaction-limit-definition-approval.http +0 -95
  53. package/morph-idm/TestCases/limit-definition/README.md +0 -130
  54. package/morph-idm/TestCases/limit-definition/approve-transaction.http +0 -149
  55. package/morph-idm/TestCases/limit-definition/approve.http +0 -143
  56. package/morph-idm/TestCases/limit-definition/daily-limit-definition.http +0 -399
  57. package/morph-idm/TestCases/limit-definition/transaction-limit-definition.http +0 -240
  58. package/morph-idm/TestCases/session-transfer-e2e.http +0 -344
  59. package/morph-idm/TestCases/session-transfer-e2e.sh +0 -272
  60. package/morph-idm/TestCases/sort-migration-verification.http +0 -428
  61. package/morph-idm/TestCases/test-123/.httpyac.json +0 -15
  62. package/morph-idm/TestCases/test-123/01-person.http +0 -78
  63. package/morph-idm/TestCases/test-123/02-user.http +0 -73
  64. package/morph-idm/TestCases/test-123/03-scope.http +0 -65
  65. package/morph-idm/TestCases/test-123/04-consent.http +0 -66
  66. package/morph-idm/TestCases/test-123/05-device.http +0 -86
  67. package/morph-idm/TestCases/test-123/06-user-login.http +0 -206
  68. package/morph-idm/TestCases/test-123/README.md +0 -112
  69. package/morph-idm/TestCases/test-123/cleanup.js +0 -49
  70. package/morph-idm/TestCases/test-123/cleanup.sh +0 -20
  71. package/morph-idm/TestCases/test-123/cleanup.sql +0 -45
  72. package/morph-idm/TestCases/test-123/http-client.env.json +0 -13
  73. package/morph-idm/TestCases/test-123/run-setup.sh +0 -42
  74. package/morph-idm/TestCases/test-12345/.httpyac.json +0 -16
  75. package/morph-idm/TestCases/test-12345/01-person.http +0 -79
  76. package/morph-idm/TestCases/test-12345/02-01-device-android.http +0 -258
  77. package/morph-idm/TestCases/test-12345/02-user.http +0 -97
  78. package/morph-idm/TestCases/test-12345/03-scope-2.http +0 -65
  79. package/morph-idm/TestCases/test-12345/03-scope.http +0 -65
  80. package/morph-idm/TestCases/test-12345/04-consent-1.http +0 -86
  81. package/morph-idm/TestCases/test-12345/04-consent-2.http +0 -66
  82. package/morph-idm/TestCases/test-12345/05-device.http +0 -261
  83. package/morph-idm/TestCases/test-12345/06-user-login copy.http +0 -266
  84. package/morph-idm/TestCases/test-12345/06-user-login.http +0 -266
  85. package/morph-idm/TestCases/test-12345/07-corporate-login.http +0 -282
  86. package/morph-idm/TestCases/test-auto-consent/.httpyac.json +0 -14
  87. package/morph-idm/TestCases/test-auto-consent/01-person.http +0 -66
  88. package/morph-idm/TestCases/test-auto-consent/02-user.http +0 -115
  89. package/morph-idm/TestCases/test-auto-consent/03-scope.http +0 -66
  90. package/morph-idm/TestCases/test-auto-consent/04-device.http +0 -56
  91. package/morph-idm/TestCases/test-auto-consent/05-user-login.http +0 -133
  92. package/morph-idm/TestCases/test-auto-consent/README.md +0 -36
  93. package/morph-idm/TestCases/test-auto-consent/cleanup.js +0 -47
  94. package/morph-idm/TestCases/test-auto-consent/run-setup.sh +0 -50
  95. package/morph-idm/TestCases/test-flows/test-flow-with-two-sub.http +0 -107
  96. package/morph-idm/TestCases/test-get-user-info/.httpyac.json +0 -9
  97. package/morph-idm/TestCases/test-get-user-info/get-user-info-ibweb-manual.http +0 -127
  98. package/morph-idm/TestCases/test-get-user-info/get-user-info.http +0 -282
  99. package/morph-idm/TestCases/test-login/.httpyac.json +0 -17
  100. package/morph-idm/TestCases/test-login/01-person.http +0 -79
  101. package/morph-idm/TestCases/test-login/02-01-device-android.http +0 -261
  102. package/morph-idm/TestCases/test-login/02-user.http +0 -97
  103. package/morph-idm/TestCases/test-login/03-scope.http +0 -65
  104. package/morph-idm/TestCases/test-login/04-consent-1.http +0 -86
  105. package/morph-idm/TestCases/test-login/05-device.http +0 -261
  106. package/morph-idm/TestCases/test-login/06-user-login copy.http +0 -266
  107. package/morph-idm/TestCases/test-login/06-user-login.http +0 -266
  108. package/morph-idm/TestCases/test-login/07-corporate-login.http +0 -282
  109. package/morph-idm/TestCases/test-login/README.md +0 -37
  110. package/morph-idm/TestCases/test-login/cleanup.js +0 -46
  111. package/morph-idm/TestCases/test-login/cleanup.sh +0 -20
  112. package/morph-idm/TestCases/test-login/run-setup.sh +0 -53
  113. package/morph-idm/TestCases/test-onefa-corporate/device-key.pem +0 -27
  114. package/morph-idm/TestCases/test-onefa-corporate/onefa-corporate-cert-management.http +0 -156
  115. package/morph-idm/TestCases/test-onefa-corporate/onefa-corporate-login-cert-token.http +0 -371
  116. package/morph-idm/TestCases/test-onefa-retail/onefa-retail-login-cert-token.http +0 -499
  117. package/morph-idm/TestCases/test-third-factor/.httpyac.json +0 -36
  118. package/morph-idm/TestCases/test-third-factor/lib/httpyac.sh +0 -35
  119. package/morph-idm/TestCases/test-third-factor/scenarios/0-clean-test-instance.js +0 -42
  120. package/morph-idm/TestCases/test-third-factor/scenarios/0-clean-test-instance.sh +0 -20
  121. package/morph-idm/TestCases/test-third-factor/scenarios/1-self-completed.sh +0 -25
  122. package/morph-idm/TestCases/test-third-factor/scenarios/2-native-without-device.sh +0 -34
  123. package/morph-idm/TestCases/test-third-factor/scenarios/3-native-wrong-otp.sh +0 -34
  124. package/morph-idm/TestCases/test-third-factor/scenarios/4-native-success-otp-after-wrong-otp.sh +0 -46
  125. package/morph-idm/TestCases/test-third-factor/scenarios/5-retry-count-exceed.sh +0 -37
  126. package/morph-idm/TestCases/test-third-factor/scenarios/http/06-third-factor-native-with-device.http +0 -56
  127. package/morph-idm/TestCases/test-third-factor/scenarios/http/07-third-factor-native-without-device.http +0 -91
  128. package/morph-idm/TestCases/test-third-factor/scenarios/http/08-third-factor-web-with-device.http +0 -117
  129. package/morph-idm/TestCases/test-third-factor/scenarios/http/09-third-factor-web-without-device.http +0 -164
  130. package/morph-idm/TestCases/test-third-factor/scenarios/run-third-factor-native-without-device-success-otp-after-resend.sh +0 -50
  131. package/morph-idm/TestCases/test-third-factor/scenarios/run-third-factor-native-without-device-success-otp-resend-after-timeout-otp.sh +0 -50
  132. package/morph-idm/TestCases/test-third-factor/scenarios/run-third-factor-native-without-device-timeout-otp.sh +0 -48
  133. package/morph-idm/TestCases/test-third-factor/setup/01-person.http +0 -157
  134. package/morph-idm/TestCases/test-third-factor/setup/02-user.http +0 -105
  135. package/morph-idm/TestCases/test-third-factor/setup/03-device.http +0 -70
  136. package/morph-idm/TestCases/test-third-factor/setup/04-native-client.http +0 -126
  137. package/morph-idm/TestCases/test-third-factor/setup/05-web-client.http +0 -126
  138. package/morph-idm/TestCases/test-third-factor/setup/cleanup.js +0 -51
  139. package/morph-idm/TestCases/test-third-factor/setup/cleanup.sh +0 -20
  140. package/morph-idm/TestCases/test-third-factor/setup/run-setup.sh +0 -34
  141. package/morph-idm/TestCases/token-mint-parity/RESULT.md +0 -48
  142. package/morph-idm/TestCases/token-sync-race.sh +0 -72
  143. package/morph-idm/TestCases/user-login-apisix.postman_collection.json +0 -1114
  144. package/morph-idm/TestCases/user-login-boweb-e2e.http +0 -123
  145. package/morph-idm/TestCases/user-login-e2e.http +0 -730
  146. package/morph-idm/TestCases/user-login-e2e.sh +0 -122
  147. package/morph-idm/Views/.gitkeep +0 -0
  148. package/morph-idm/Workflows/.gitkeep +0 -0
  149. package/morph-idm/Workflows/anti-phishing-image/anti-phishing-image-change/execute/anti-phishing-image.http +0 -370
  150. package/morph-idm/Workflows/anti-phishing-image/anti-phishing-image-definition/execute/anti-phishing-image-definition.http +0 -200
  151. package/morph-idm/Workflows/anti-phishing-image/anti-phishing-image-definition/execute/get-security-images.http +0 -51
  152. package/morph-idm/Workflows/approval/execute/approval-corporate-customers-non-amount.http +0 -159
  153. package/morph-idm/Workflows/approval/execute/approval-corporate-customers-time-deposit.http +0 -147
  154. package/morph-idm/Workflows/approval/execute/approval-human-task-mobile.http +0 -149
  155. package/morph-idm/Workflows/approval/execute/approval-limit-management.http +0 -277
  156. package/morph-idm/Workflows/approval/execute/approval-new-reject.http +0 -67
  157. package/morph-idm/Workflows/approval/execute/approval-new.http +0 -999
  158. package/morph-idm/Workflows/approval/execute/approval-super-authority.http +0 -158
  159. package/morph-idm/Workflows/approval-matrix/execute/approval-matrix-corporate-customers-non-amount.http +0 -70
  160. package/morph-idm/Workflows/approval-matrix/execute/approval-matrix-corporate-customers-time-deposit.http +0 -74
  161. package/morph-idm/Workflows/approval-matrix/execute/approval-matrix-migrate-position-levels.http +0 -295
  162. package/morph-idm/Workflows/approval-matrix/execute/approval-matrix-new-run.http +0 -296
  163. package/morph-idm/Workflows/approval-matrix/execute/approval-matrix-upsert-super-authorization.http +0 -129
  164. package/morph-idm/Workflows/cert/execute/cert-cn-length.http +0 -90
  165. package/morph-idm/Workflows/cert/execute/cert.http +0 -162
  166. package/morph-idm/Workflows/cert-management/execute/cert-management.http +0 -90
  167. package/morph-idm/Workflows/channel-contract/execute/channel-contract-approval.http +0 -246
  168. package/morph-idm/Workflows/client/execute/client-AmorphieClient.http +0 -118
  169. package/morph-idm/Workflows/client/execute/client-IbWeb-session-transfer.http +0 -35
  170. package/morph-idm/Workflows/client/execute/client-OpenBanking.http +0 -411
  171. package/morph-idm/Workflows/client/execute/client-Trade.http +0 -112
  172. package/morph-idm/Workflows/client/execute/client-source-app.http +0 -88
  173. package/morph-idm/Workflows/client/execute/client-update.http +0 -795
  174. package/morph-idm/Workflows/client/execute/client.http +0 -766
  175. package/morph-idm/Workflows/client/execute/vnext-target.http +0 -416
  176. package/morph-idm/Workflows/client-credentials/execute/client-credentials.http +0 -117
  177. package/morph-idm/Workflows/consent/execute/README.md +0 -145
  178. package/morph-idm/Workflows/consent/execute/consent-manual-activation.http +0 -135
  179. package/morph-idm/Workflows/consent/execute/create-consent.http +0 -801
  180. package/morph-idm/Workflows/consent-management/consent-management.http +0 -267
  181. package/morph-idm/Workflows/consent-selection/execute/consent-selection.http +0 -200
  182. package/morph-idm/Workflows/deblock-sim-card/execute/MOBIL-ENTEGRASYON-GOREVLERI.md +0 -339
  183. package/morph-idm/Workflows/deblock-sim-card/execute/TEST-SENARYOLARI.md +0 -202
  184. package/morph-idm/Workflows/deblock-sim-card/execute/approve-contract-documents.sh +0 -63
  185. package/morph-idm/Workflows/deblock-sim-card/execute/contract-debug.sh +0 -101
  186. package/morph-idm/Workflows/deblock-sim-card/execute/deblock-sim-card-workflow.http +0 -290
  187. package/morph-idm/Workflows/device-process/device/execute/device-android.http +0 -262
  188. package/morph-idm/Workflows/device-process/device/execute/device-huawei.http +0 -219
  189. package/morph-idm/Workflows/device-process/device/execute/device-ios.http +0 -319
  190. package/morph-idm/Workflows/device-process/device/execute/device-migration.http +0 -105
  191. package/morph-idm/Workflows/device-process/device/execute/device-web.http +0 -284
  192. package/morph-idm/Workflows/device-process/device/execute/device.http +0 -269
  193. package/morph-idm/Workflows/device-process/device/execute/search.http +0 -39
  194. package/morph-idm/Workflows/device-process/device-assign/execute/device-assign.http +0 -478
  195. package/morph-idm/Workflows/device-process/device-manager/execute/device-manager.http +0 -214
  196. package/morph-idm/Workflows/device-process/device-register/execute/device-register.http +0 -566
  197. package/morph-idm/Workflows/device-process/device-unpair/execute/device-unpair.http +0 -207
  198. package/morph-idm/Workflows/feature-management/database-variables/.gitkeep +0 -0
  199. package/morph-idm/Workflows/feature-management/database-variables/execute/database-variables-lifecycle.http +0 -225
  200. package/morph-idm/Workflows/feature-management/dcs-eval/execute/dcs-eval.http +0 -28
  201. package/morph-idm/Workflows/feature-management/dynamic-config/.gitkeep +0 -0
  202. package/morph-idm/Workflows/feature-management/dynamic-config/execute/dynamic-config-evaluate.http +0 -186
  203. package/morph-idm/Workflows/feature-management/dynamic-config/execute/dynamic-config-lifecycle.http +0 -263
  204. package/morph-idm/Workflows/feature-management/feature-flag/.gitkeep +0 -0
  205. package/morph-idm/Workflows/feature-management/feature-flag/execute/feature-flag-evaluate.http +0 -245
  206. package/morph-idm/Workflows/feature-management/feature-flag/execute/feature-flag-lifecycle.http +0 -246
  207. package/morph-idm/Workflows/feature-management/feature-flag/execute/feature-flag-ops.http +0 -116
  208. package/morph-idm/Workflows/feature-management/feature-flag/execute/feature-flag-reads.http +0 -47
  209. package/morph-idm/Workflows/fraud/execute/fraud-push.http +0 -1016
  210. package/morph-idm/Workflows/get-roles/execute/get-roles.http +0 -367
  211. package/morph-idm/Workflows/introspection/execute/introspection.http +0 -69
  212. package/morph-idm/Workflows/ivr/execute/ivr-check-password.http +0 -55
  213. package/morph-idm/Workflows/ivr/execute/ivr-check-user.http +0 -56
  214. package/morph-idm/Workflows/ivr/execute/ivr-create-agent-consent.http +0 -59
  215. package/morph-idm/Workflows/ivr/execute/ivr-get-agent-company.http +0 -30
  216. package/morph-idm/Workflows/ivr/execute/ivr-revoke-agent-consent.http +0 -30
  217. package/morph-idm/Workflows/ivr/execute/ivr-set-password.http +0 -87
  218. package/morph-idm/Workflows/notification/push-notification/execute/push-notification.http +0 -261
  219. package/morph-idm/Workflows/organization/execute/create-organization-yedek.http +0 -415
  220. package/morph-idm/Workflows/organization/execute/create-organization.http +0 -346
  221. package/morph-idm/Workflows/organization/execute/retail-organization.http +0 -161
  222. package/morph-idm/Workflows/otp-auth-code/execute/otp-auth-code.http +0 -743
  223. package/morph-idm/Workflows/person/execute/person-123.http +0 -149
  224. package/morph-idm/Workflows/person/execute/person-migration.http +0 -143
  225. package/morph-idm/Workflows/person/execute/person.http +0 -149
  226. package/morph-idm/Workflows/person/firm-cdc-dispatch/execute/person-firm-cdc-dispatch.http +0 -266
  227. package/morph-idm/Workflows/remember-password/execute/remember-password.http +0 -203
  228. package/morph-idm/Workflows/role/execute/role.http +0 -142
  229. package/morph-idm/Workflows/scope/execute/scope-24-7-access.http +0 -131
  230. package/morph-idm/Workflows/scope/execute/scope-business-hours.http +0 -138
  231. package/morph-idm/Workflows/scope/execute/scope-corporate.http +0 -165
  232. package/morph-idm/Workflows/scope/execute/scope-individual-1234567890-1234567890.http +0 -132
  233. package/morph-idm/Workflows/scope/execute/scope-lifecycle-test.http +0 -133
  234. package/morph-idm/Workflows/scope/execute/scope-multi-systems.http +0 -159
  235. package/morph-idm/Workflows/scope/execute/scope-openbanking-account.http +0 -134
  236. package/morph-idm/Workflows/scope/execute/scope-openbanking-login.http +0 -135
  237. package/morph-idm/Workflows/scope/execute/scope-openbanking-payment.http +0 -134
  238. package/morph-idm/Workflows/scope/execute/scope-restricted.http +0 -143
  239. package/morph-idm/Workflows/scope-group/execute/create-scope-group.http +0 -224
  240. package/morph-idm/Workflows/security-check/execute/security-check-test.http +0 -88
  241. package/morph-idm/Workflows/security-check-test/execute/security-check-test.http +0 -51
  242. package/morph-idm/Workflows/security-question/security-question-change/execute/security-question-change.http +0 -324
  243. package/morph-idm/Workflows/security-question/security-question-definition/execute/security-question-definition.http +0 -372
  244. package/morph-idm/Workflows/security-question/security-question-reset/execute/security-question-reset.http +0 -97
  245. package/morph-idm/Workflows/shield-decrypt/execute/shield-decrypt.http +0 -77
  246. package/morph-idm/Workflows/shield-encrypt/execute/shield-encrypt.http +0 -80
  247. package/morph-idm/Workflows/shield-sign/execute/shield-sign.http +0 -79
  248. package/morph-idm/Workflows/shield-verify-request-signature/execute/generate-request-signature.js +0 -54
  249. package/morph-idm/Workflows/shield-verify-request-signature/execute/shield-verify-request-signature.http +0 -135
  250. package/morph-idm/Workflows/shield-verify-signature/execute/shield-verify-signature.http +0 -108
  251. package/morph-idm/Workflows/sim-block/sim-block-backoffice/execute/sim-block-backoffice.http +0 -183
  252. package/morph-idm/Workflows/simple-subflow/execute/simple-subflow.http +0 -50
  253. package/morph-idm/Workflows/sso/authorize/execute/authorize.http +0 -160
  254. package/morph-idm/Workflows/sso/authorize-route/execute/authorize-route.http +0 -169
  255. package/morph-idm/Workflows/sso/pre-login/execute/pre-login.http +0 -273
  256. package/morph-idm/Workflows/sso/token-direct/execute/token-direct.http +0 -272
  257. package/morph-idm/Workflows/sso/token-route/execute/token-route.http +0 -207
  258. package/morph-idm/Workflows/sso-flow/execute/sso-flow-auth-code.http +0 -89
  259. package/morph-idm/Workflows/sso-flow/execute/sso-flow-login.http +0 -163
  260. package/morph-idm/Workflows/sso-flow/execute/sso-flow-test-base.http +0 -178
  261. package/morph-idm/Workflows/test-consent-selection/execute/test-consent-selection.http +0 -68
  262. package/morph-idm/Workflows/test-consent-selection/execute/test-flow-with-sub.http +0 -50
  263. package/morph-idm/Workflows/test-consent-selection/execute/test-flow.http +0 -140
  264. package/morph-idm/Workflows/test-consent-selection/execute/test-sync-subprocess.http +0 -63
  265. package/morph-idm/Workflows/test-consent-selection/execute/test-user-validation.http +0 -126
  266. package/morph-idm/Workflows/third-factor/execute/third-factor.http +0 -183
  267. package/morph-idm/Workflows/third-factor-main/execute/execute/third-factor-main.http +0 -229
  268. package/morph-idm/Workflows/token-process/session/execute/session.http +0 -361
  269. package/morph-idm/Workflows/token-process/session-revoke-others/execute/session-revoke-others.http +0 -94
  270. package/morph-idm/Workflows/token-process/token/execute/README.md +0 -454
  271. package/morph-idm/Workflows/token-process/token/execute/device-key.pem +0 -27
  272. package/morph-idm/Workflows/token-process/token/execute/generate-onefa-assertion.js +0 -47
  273. package/morph-idm/Workflows/token-process/token/execute/onefa-token.http +0 -285
  274. package/morph-idm/Workflows/token-process/token/execute/setup-roles-for-token-claims.http +0 -425
  275. package/morph-idm/Workflows/token-process/token/execute/token-sync-race.http +0 -49
  276. package/morph-idm/Workflows/token-process/token/execute/token.http +0 -676
  277. package/morph-idm/Workflows/token-process/token-password-grant/execute/token-password-grant.http +0 -163
  278. package/morph-idm/Workflows/transaction-limit/cascade-approve-daily/execute/transaction-limit-cascade-approve-daily.http +0 -125
  279. package/morph-idm/Workflows/transaction-limit/cascade-approve-transaction/execute/transaction-limit-cascade-approve-transaction.http +0 -120
  280. package/morph-idm/Workflows/transaction-limit/cascade-daily/execute/transaction-limit-cascade-daily.http +0 -198
  281. package/morph-idm/Workflows/transaction-limit/cascade-transaction/execute/transaction-limit-cascade.http +0 -173
  282. package/morph-idm/Workflows/transaction-limit/definition/execute/transaction-limit-definition.http +0 -867
  283. package/morph-idm/Workflows/transaction-limit/definition-passivate/execute/transaction-limit-definition-passivate.http +0 -224
  284. package/morph-idm/Workflows/transaction-limit/definition-verify/execute/transaction-limit-definition-verify.http +0 -102
  285. package/morph-idm/Workflows/transaction-limit/execute/seed-corporate-customers-limits.sh +0 -178
  286. package/morph-idm/Workflows/transaction-limit/execute/transaction-limit-management.http +0 -984
  287. package/morph-idm/Workflows/transaction-limit/remaining/execute/transaction-limit-remaining.http +0 -103
  288. package/morph-idm/Workflows/transaction-limit/resolve/execute/transaction-limit-resolve.http +0 -96
  289. package/morph-idm/Workflows/transaction-limit/scope-bank-limit/execute/transaction-limit-scope-bank-limit.http +0 -84
  290. package/morph-idm/Workflows/transaction-limit/user-bank-limits/execute/transaction-limit-user-bank-limits.http +0 -87
  291. package/morph-idm/Workflows/transaction-limit/verify/execute/transaction-limit-verify.http +0 -212
  292. package/morph-idm/Workflows/user/create/execute/user-create-corporate.http +0 -51
  293. package/morph-idm/Workflows/user/create/execute/user-create.http +0 -135
  294. package/morph-idm/Workflows/user/get-users-by-scope/execute/get-users-by-scope.http +0 -210
  295. package/morph-idm/Workflows/user-corporate/firm-query/execute/firm-query.http +0 -87
  296. package/morph-idm/Workflows/user-corporate/onboard-dispatch/execute/user-corporate-onboard-dispatch.http +0 -105
  297. package/morph-idm/Workflows/user-corporate/provision/execute/user-corporate-provision.http +0 -631
  298. package/morph-idm/Workflows/user-corporate/provision/user-corporate-provision.flowchart.drawio +0 -88
  299. package/morph-idm/Workflows/user-corporate/remove/execute/user-corporate-remove.http +0 -152
  300. package/morph-idm/Workflows/user-corporate/rollback/execute/user-corporate-rollback.http +0 -97
  301. package/morph-idm/Workflows/user-corporate/update-provision/execute/user-corporate-update-provision.http +0 -449
  302. package/morph-idm/Workflows/user-corporate/user-corporate-create/execute/user-corporate-create.http +0 -173
  303. package/morph-idm/Workflows/user-corporate/user-corporate-update/execute/user-corporate-update.http +0 -117
  304. package/morph-idm/Workflows/user-login/execute/README-LOGIN.md +0 -535
  305. package/morph-idm/Workflows/user-login/execute/user-login-comprehensive-coverage.http +0 -1761
  306. package/morph-idm/Workflows/user-login/execute/user-login-device-assign.http +0 -497
  307. package/morph-idm/Workflows/user-login/execute/user-login.http +0 -910
  308. package/morph-idm/Workflows/user-login-approvement/execute/login-notification-otp.http +0 -86
  309. package/morph-idm/Workflows/user-login-approvement/execute/login-notification-push.http +0 -82
  310. package/morph-idm/Workflows/user-login-approvement/execute/login-notification-registered-device.http +0 -111
  311. package/morph-idm/Workflows/user-login-approvement/execute/user-login-approvement-comprehensive.http +0 -1267
  312. package/morph-idm/Workflows/user-management/execute/user-management.http +0 -284
  313. package/morph-idm/Workflows/user-note/execute/user-note-backoffice.http +0 -290
  314. package/morph-idm/Workflows/user-otp-setting/execute/user-otp-setting-backoffice.http +0 -128
  315. package/morph-idm/Workflows/user-password-process/user-change-password/execute/user-change-password.http +0 -576
  316. package/morph-idm/Workflows/user-password-process/user-password/execute/user-password.http +0 -58
  317. package/morph-idm/Workflows/user-password-process/user-password-force-change/execute/user-password-force-change.http +0 -31
  318. package/morph-idm/Workflows/user-password-process/user-password-reset/execute/user-password-reset.http +0 -213
  319. package/morph-idm/Workflows/user-status/user-status-change/execute/user-status-change.http +0 -124
  320. package/morph-idm/Workflows/user-status/user-status-change-backoffice/execute/user-status-change-backoffice.http +0 -197
  321. package/morph-idm/Workflows/user-validation/execute/user-validation-standalone.http +0 -331
  322. package/morph-idm/Workflows/user-validation/execute/user-validation.http +0 -696
  323. package/morph-idm/Workflows/zeebe-approval/execute/zeebe-approval-corporate-customers-non-amount.http +0 -195
  324. package/morph-idm/Workflows/zeebe-approval/execute/zeebe-approval-new.http +0 -275
@@ -1,1267 +0,0 @@
1
- ###############################################################################
2
- ###############################################################################
3
- ###
4
- ### USER LOGIN APPROVEMENT - Kapsamlı Test Senaryoları
5
- ###
6
- ### Bu dosya user-login-approvement subflow'unun TÜM state ve
7
- ### transition kombinasyonlarını test eder.
8
- ###
9
- ### SENARYOLAR:
10
- ### 1. IbWeb + cihaz var → Push onay → push-complete
11
- ### 2. IbWeb + cihaz var → Push red → push-rejected-end
12
- ### 3. IbWeb + cihaz var → Push timeout → OTP → otp-complete
13
- ### 4. IbWeb + cihaz var → Push gönderim başarısız → OTP fallback
14
- ### 5. IbWeb + cihaz var → Push doğrulama başarısız → tekrar bekle
15
- ### 6. Non-IbWeb + cihaz var → registered-device-complete
16
- ### 7. Cihaz yok → OTP → doğru kod → otp-complete
17
- ### 8. Cihaz yok → OTP → yanlış kod → tekrar dene → doğru kod
18
- ### 9. Cihaz yok → OTP → timeout (scheduled otp-timeout) → otp-resend → resend-otp → otp-send
19
- ### 10. Cihaz yok → OTP gönderim başarısız → otp-send-failed-end
20
- ### 11. IbWeb + cihaz var → Yanlış cihazdan onay (×3) → push-device-mismatch-end
21
- ###
22
- ### ÖN KOŞULLAR:
23
- ### - vNext Runtime çalışıyor (baseUrl)
24
- ### - userName "1234" için user instance mevcut
25
- ### - deviceId "sm1", installationId "sm1" ile kayıtlı device instance mevcut
26
- ### - Mockoon (veya messaging servisi) push-send-task için çalışıyor
27
- ### - Mockoon (veya sms servisi) send-otp-sms-task için çalışıyor
28
- ###
29
- ###############################################################################
30
- ###############################################################################
31
-
32
- @workflow = user-login-approvement
33
- @userKey = 1234
34
-
35
-
36
- ###############################################################################
37
- ###############################################################################
38
- ###
39
- ### SENARYO 1: IbWeb + Cihaz Bulundu → Push Onay → Başarılı
40
- ###
41
- ### Akış: check-device → push-send → push-waiting → (approve-push)
42
- ### → push-verification → push-complete ✓
43
- ###
44
- ### States : check-device, push-send, push-waiting, push-verification, push-complete
45
- ### Trans : ib-web-device-found, push-sent, approve-push, push-verified
46
- ###
47
- ###############################################################################
48
- ###############################################################################
49
-
50
- ### S1-STEP1: Start - IbWeb client, kayıtlı cihaz
51
- # @name s1Start
52
- POST {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/start?sync=true
53
- Accept-Language: tr-TR
54
- X-Request-Id: {{$guid}}
55
- X-Device-Id: sm1
56
- X-Token-Id: {{$guid}}
57
- X-Device-Info: IbWeb/1.0
58
- X-Forwarded-For: 192.168.1.10
59
- user_reference: {{userKey}}
60
- Content-Type: application/json
61
-
62
- {
63
- "key": "s1-push-ok-{{userKey}}-{{$timestamp}}",
64
- "tags": ["test", "approvement", "push-approve"],
65
- "attributes": {
66
- "userName": "{{userKey}}",
67
- "clientId": "IbWeb",
68
- "deviceId": "sm1",
69
- "installationId": "sm1",
70
- "userSnapshot": {
71
- "person": {
72
- "phone": "+905551234567"
73
- }
74
- }
75
- }
76
- }
77
-
78
- ###
79
- @s1InstanceId = {{s1Start.response.body.id}}
80
-
81
- ### S1-STEP2: State Kontrol
82
- ### Beklenen: "push-waiting"
83
- ### Geçen states: check-device → (ib-web-device-found) → push-send → (push-sent) → push-waiting
84
- # @name s1State1
85
- GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/{{s1InstanceId}}/functions/state
86
- Accept-Language: tr-TR
87
- X-Request-Id: {{$guid}}
88
- user_reference: {{userKey}}
89
-
90
- ### S1-STEP3: Instance Data - deviceFound, pushSent kontrol
91
- # @name s1Data1
92
- GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/{{s1InstanceId}}/functions/data
93
- Accept-Language: tr-TR
94
- X-Request-Id: {{$guid}}
95
- user_reference: {{userKey}}
96
-
97
- ### S1-STEP4: Push Onayla (approve-push transition)
98
- ### State: push-waiting → push-verification
99
- # @name s1ApprovePush
100
- PATCH {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/{{s1InstanceId}}/transitions/approve-push?sync=true
101
- Accept-Language: tr-TR
102
- X-Request-Id: {{$guid}}
103
- X-Device-Id: sm1
104
- X-Installation-Id: sm1
105
- X-Token-Id: {{$guid}}
106
- user_reference: {{userKey}}
107
- Content-Type: application/json
108
-
109
- {
110
- "attributes": {}
111
- }
112
-
113
- ### S1-STEP5: State Kontrol
114
- ### Beklenen: "push-complete" (push-verification → push-verified → push-complete)
115
- # @name s1State2
116
- GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/{{s1InstanceId}}/functions/state
117
- Accept-Language: tr-TR
118
- X-Request-Id: {{$guid}}
119
- user_reference: {{userKey}}
120
-
121
- ### S1-STEP6: Final Data - Tüm push verilerini kontrol et
122
- # @name s1FinalData
123
- GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/{{s1InstanceId}}/functions/data
124
- Accept-Language: tr-TR
125
- X-Request-Id: {{$guid}}
126
- user_reference: {{userKey}}
127
-
128
-
129
- ###############################################################################
130
- ###############################################################################
131
- ###
132
- ### SENARYO 2: IbWeb + Cihaz Bulundu → Push Reddedildi
133
- ###
134
- ### Akış: check-device → push-send → push-waiting → (reject-push)
135
- ### → push-rejected-end ✗
136
- ###
137
- ### States : check-device, push-send, push-waiting, push-rejected-end
138
- ### Trans : ib-web-device-found, push-sent, reject-push
139
- ###
140
- ###############################################################################
141
- ###############################################################################
142
-
143
- ### S2-STEP1: Start - IbWeb client, kayıtlı cihaz
144
- # @name s2Start
145
- POST {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/start?sync=true
146
- Accept-Language: tr-TR
147
- X-Request-Id: {{$guid}}
148
- X-Device-Id: sm1
149
- X-Token-Id: {{$guid}}
150
- X-Device-Info: IbWeb/1.0
151
- X-Forwarded-For: 192.168.1.20
152
- user_reference: {{userKey}}
153
- Content-Type: application/json
154
-
155
- {
156
- "key": "s2-push-reject-{{userKey}}-{{$timestamp}}",
157
- "tags": ["test", "approvement", "push-reject"],
158
- "attributes": {
159
- "userName": "{{userKey}}",
160
- "clientId": "IbWeb",
161
- "deviceId": "sm1",
162
- "installationId": "sm1",
163
- "userSnapshot": {
164
- "person": {
165
- "phone": "+905551234567"
166
- }
167
- }
168
- }
169
- }
170
-
171
- ###
172
- @s2InstanceId = {{s2Start.response.body.id}}
173
-
174
- ### S2-STEP2: State Kontrol
175
- ### Beklenen: "push-waiting"
176
- # @name s2State1
177
- GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/{{s2InstanceId}}/functions/state
178
- Accept-Language: tr-TR
179
- X-Request-Id: {{$guid}}
180
- user_reference: {{userKey}}
181
-
182
- ### S2-STEP3: Push Reddet (reject-push transition)
183
- ### State: push-waiting → push-rejected-end
184
- # @name s2RejectPush
185
- PATCH {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/{{s2InstanceId}}/transitions/reject-push?sync=true
186
- Accept-Language: tr-TR
187
- X-Request-Id: {{$guid}}
188
- X-Device-Id: sm1
189
- X-Installation-Id: sm1
190
- X-Token-Id: {{$guid}}
191
- user_reference: {{userKey}}
192
- Content-Type: application/json
193
-
194
- {
195
- "attributes": {}
196
- }
197
-
198
- ### S2-STEP4: State Kontrol
199
- ### Beklenen: "push-rejected-end" (final state)
200
- # @name s2State2
201
- GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/{{s2InstanceId}}/functions/state
202
- Accept-Language: tr-TR
203
- X-Request-Id: {{$guid}}
204
- user_reference: {{userKey}}
205
-
206
- ### S2-STEP5: Final Data
207
- # @name s2FinalData
208
- GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/{{s2InstanceId}}/functions/data
209
- Accept-Language: tr-TR
210
- X-Request-Id: {{$guid}}
211
- user_reference: {{userKey}}
212
-
213
-
214
- ###############################################################################
215
- ###############################################################################
216
- ###
217
- ### SENARYO 3: IbWeb + Cihaz Bulundu → Push Timeout → OTP Fallback → Başarılı
218
- ###
219
- ### Akış: check-device → push-send → push-waiting → (push-timeout)
220
- ### → otp-send → otp-waiting → (verify-otp)
221
- ### → otp-verification → otp-complete ✓
222
- ###
223
- ### States : check-device, push-send, push-waiting, otp-send, otp-waiting,
224
- ### otp-verification, otp-complete
225
- ### Trans : ib-web-device-found, push-sent, push-timeout, otp-sent,
226
- ### verify-otp, otp-valid
227
- ###
228
- ###############################################################################
229
- ###############################################################################
230
-
231
- ### S3-STEP1: Start - IbWeb client, kayıtlı cihaz
232
- # @name s3Start
233
- POST {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/start?sync=true
234
- Accept-Language: tr-TR
235
- X-Request-Id: {{$guid}}
236
- X-Device-Id: sm1
237
- X-Token-Id: {{$guid}}
238
- X-Device-Info: IbWeb/1.0
239
- X-Forwarded-For: 192.168.1.30
240
- user_reference: {{userKey}}
241
- Content-Type: application/json
242
-
243
- {
244
- "key": "s3-push-timeout-otp-{{userKey}}-{{$timestamp}}",
245
- "tags": ["test", "approvement", "push-timeout", "otp-fallback"],
246
- "attributes": {
247
- "userName": "{{userKey}}",
248
- "clientId": "IbWeb",
249
- "deviceId": "sm1",
250
- "installationId": "sm1",
251
- "userSnapshot": {
252
- "person": {
253
- "phone": "+905551234567"
254
- }
255
- }
256
- }
257
- }
258
-
259
- ###
260
- @s3InstanceId = {{s3Start.response.body.id}}
261
-
262
- ### S3-STEP2: State Kontrol
263
- ### Beklenen: "push-waiting"
264
- # @name s3State1
265
- GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/{{s3InstanceId}}/functions/state
266
- Accept-Language: tr-TR
267
- X-Request-Id: {{$guid}}
268
- user_reference: {{userKey}}
269
-
270
- ### S3-STEP3: Push Timeout (push-timeout transition)
271
- ### State: push-waiting → otp-send → (otp-sent) → otp-waiting
272
- ### push-timeout is now a scheduled transition (fires ~180s after pushExpiresAt via
273
- ### PushTimeoutTimer.csx) — this manual PATCH no longer applies and will be rejected
274
- ### by the runtime since the transition's triggerType is no longer manual (0).
275
- ### See open verification item: whether the integration-test SDK can fast-forward a
276
- ### scheduled transition for deterministic coverage of this fallback path.
277
- # @name s3PushTimeout
278
- # PATCH {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/{{s3InstanceId}}/transitions/push-timeout?sync=true
279
- # Accept-Language: tr-TR
280
- # X-Request-Id: {{$guid}}
281
- # X-Device-Id: sm1
282
- # X-Installation-Id: sm1
283
- # X-Token-Id: {{$guid}}
284
- # user_reference: {{userKey}}
285
- # Content-Type: application/json
286
- #
287
- # {
288
- # "attributes": {}
289
- # }
290
-
291
- ### S3-STEP4: State Kontrol
292
- ### Beklenen: "otp-waiting" (OTP gönderildi, kod bekleniyor)
293
- ### NOT: S3-STEP3 artık manuel tetiklenemiyor (scheduled transition) — bu adım ve
294
- ### sonrasındaki S3 adımları, ancak PushTimeoutTimer.csx gerçekten ateşlendikten
295
- ### (pushExpiresAt, yani push-send'den ~180sn sonra) sonra "otp-waiting" döndürür.
296
- # @name s3State2
297
- GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/{{s3InstanceId}}/functions/state
298
- Accept-Language: tr-TR
299
- X-Request-Id: {{$guid}}
300
- user_reference: {{userKey}}
301
-
302
- ### S3-STEP5: Instance Data - generatedOtpCode'u al (doğrulama için gerekli)
303
- # @name s3Data1
304
- GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/{{s3InstanceId}}/functions/data
305
- Accept-Language: tr-TR
306
- X-Request-Id: {{$guid}}
307
- user_reference: {{userKey}}
308
-
309
- ### S3-STEP6: OTP Doğrula (verify-otp transition)
310
- ### ⚠️ inputtedOtpCode değerini yukarıdaki data response'undaki generatedOtpCode ile değiştirin
311
- ### State: otp-waiting → otp-verification → (otp-valid) → otp-complete
312
- # @name s3VerifyOtp
313
- PATCH {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/{{s3InstanceId}}/transitions/verify-otp?sync=true
314
- Accept-Language: tr-TR
315
- X-Request-Id: {{$guid}}
316
- X-Device-Id: sm1
317
- X-Token-Id: {{$guid}}
318
- user_reference: {{userKey}}
319
- Content-Type: application/json
320
-
321
- {
322
- "attributes": {
323
- "inputtedOtpCode": "BURAYA_OTP_KODU_GIRIN"
324
- }
325
- }
326
-
327
- ### S3-STEP7: State Kontrol
328
- ### Beklenen: "otp-complete" (OTP doğrulandı)
329
- # @name s3State3
330
- GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/{{s3InstanceId}}/functions/state
331
- Accept-Language: tr-TR
332
- X-Request-Id: {{$guid}}
333
- user_reference: {{userKey}}
334
-
335
- ### S3-STEP8: Final Data
336
- # @name s3FinalData
337
- GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/{{s3InstanceId}}/functions/data
338
- Accept-Language: tr-TR
339
- X-Request-Id: {{$guid}}
340
- user_reference: {{userKey}}
341
-
342
-
343
- ###############################################################################
344
- ###############################################################################
345
- ###
346
- ### SENARYO 4: IbWeb + Push Gönderim Başarısız → OTP Fallback
347
- ###
348
- ### Akış: check-device → push-send → (push-send-failed)
349
- ### → otp-send → otp-waiting → (verify-otp)
350
- ### → otp-verification → otp-complete ✓
351
- ###
352
- ### ⚠️ Bu senaryonun çalışması için push-send-task mock'unun hata dönmesi gerekir.
353
- ### Mockoon'da push-send endpoint'ini "failure" response'a geçirin.
354
- ###
355
- ### States : check-device, push-send, otp-send, otp-waiting,
356
- ### otp-verification, otp-complete
357
- ### Trans : ib-web-device-found, push-send-failed, otp-sent,
358
- ### verify-otp, otp-valid
359
- ###
360
- ###############################################################################
361
- ###############################################################################
362
-
363
- ### S4-STEP1: Start - IbWeb client, kayıtlı cihaz (push mock hata dönecek)
364
- # @name s4Start
365
- POST {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/start?sync=true
366
- Accept-Language: tr-TR
367
- X-Request-Id: {{$guid}}
368
- X-Device-Id: sm1
369
- X-Token-Id: {{$guid}}
370
- X-Device-Info: IbWeb/1.0
371
- X-Forwarded-For: 192.168.1.40
372
- user_reference: {{userKey}}
373
- Content-Type: application/json
374
-
375
- {
376
- "key": "s4-push-fail-otp-{{userKey}}-{{$timestamp}}",
377
- "tags": ["test", "approvement", "push-send-failed", "otp-fallback"],
378
- "attributes": {
379
- "userName": "{{userKey}}",
380
- "clientId": "IbWeb",
381
- "deviceId": "sm1",
382
- "installationId": "sm1",
383
- "userSnapshot": {
384
- "person": {
385
- "phone": "+905358479026"
386
- }
387
- }
388
- }
389
- }
390
-
391
- ###
392
- @s4InstanceId = {{s4Start.response.body.id}}
393
-
394
- ### S4-STEP2: State Kontrol
395
- ### Beklenen: "otp-waiting" (push başarısız → OTP'ye fallback → OTP gönderildi)
396
- # @name s4State1
397
- GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/{{s4InstanceId}}/functions/state
398
- Accept-Language: tr-TR
399
- X-Request-Id: {{$guid}}
400
- user_reference: {{userKey}}
401
-
402
- ### S4-STEP3: Instance Data - pushSent=false, generatedOtpCode kontrol
403
- # @name s4Data1
404
- GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/{{s4InstanceId}}/functions/data
405
- Accept-Language: tr-TR
406
- X-Request-Id: {{$guid}}
407
- user_reference: {{userKey}}
408
-
409
- ### S4-STEP4: OTP Doğrula
410
- ### ⚠️ inputtedOtpCode değerini yukarıdaki data response'undaki generatedOtpCode ile değiştirin
411
- # @name s4VerifyOtp
412
- PATCH {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/{{s4InstanceId}}/transitions/verify-otp?sync=true
413
- Accept-Language: tr-TR
414
- X-Request-Id: {{$guid}}
415
- X-Device-Id: sm1
416
- X-Token-Id: {{$guid}}
417
- user_reference: {{userKey}}
418
- Content-Type: application/json
419
-
420
- {
421
- "attributes": {
422
- "inputtedOtpCode": "BURAYA_OTP_KODU_GIRIN"
423
- }
424
- }
425
-
426
- ### S4-STEP5: State Kontrol
427
- ### Beklenen: "otp-complete"
428
- # @name s4State2
429
- GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/{{s4InstanceId}}/functions/state
430
- Accept-Language: tr-TR
431
- X-Request-Id: {{$guid}}
432
- user_reference: {{userKey}}
433
-
434
-
435
- ###############################################################################
436
- ###############################################################################
437
- ###
438
- ### SENARYO 5: IbWeb + Push Doğrulama Başarısız → Tekrar Bekle → Onay
439
- ###
440
- ### Akış: check-device → push-send → push-waiting → (approve-push)
441
- ### → push-verification → (push-verification-failed) → push-waiting
442
- ### → (approve-push) → push-verification → push-complete ✓
443
- ###
444
- ### ⚠️ İlk push-verification'da pushSnapshot.success=false olursa
445
- ### push-verification-failed tetiklenir ve push-waiting'e geri döner.
446
- ###
447
- ### States : check-device, push-send, push-waiting, push-verification (×2)
448
- ### Trans : ib-web-device-found, push-sent, approve-push (×2),
449
- ### push-verification-failed, push-verified
450
- ###
451
- ###############################################################################
452
- ###############################################################################
453
-
454
- ### S5-STEP1: Start - IbWeb client, kayıtlı cihaz
455
- # @name s5Start
456
- POST {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/start?sync=true
457
- Accept-Language: tr-TR
458
- X-Request-Id: {{$guid}}
459
- X-Device-Id: sm1
460
- X-Token-Id: {{$guid}}
461
- X-Device-Info: IbWeb/1.0
462
- X-Forwarded-For: 192.168.1.50
463
- user_reference: {{userKey}}
464
- Content-Type: application/json
465
-
466
- {
467
- "key": "s5-push-verify-retry-{{userKey}}-{{$timestamp}}",
468
- "tags": ["test", "approvement", "push-verification-retry"],
469
- "attributes": {
470
- "userName": "{{userKey}}",
471
- "clientId": "IbWeb",
472
- "deviceId": "sm1",
473
- "installationId": "sm1",
474
- "userSnapshot": {
475
- "person": {
476
- "phone": "+905551234567"
477
- }
478
- }
479
- }
480
- }
481
-
482
- ###
483
- @s5InstanceId = {{s5Start.response.body.id}}
484
-
485
- ### S5-STEP2: State Kontrol
486
- ### Beklenen: "push-waiting"
487
- # @name s5State1
488
- GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/{{s5InstanceId}}/functions/state
489
- Accept-Language: tr-TR
490
- X-Request-Id: {{$guid}}
491
- user_reference: {{userKey}}
492
-
493
- ### S5-STEP3: İlk Push Onayla (doğrulama başarısız olacak şekilde)
494
- ### ⚠️ pushSnapshot.success=false olmalı → push-verification-failed → push-waiting'e geri döner
495
- # @name s5ApprovePush1
496
- PATCH {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/{{s5InstanceId}}/transitions/approve-push?sync=true
497
- Accept-Language: tr-TR
498
- X-Request-Id: {{$guid}}
499
- X-Device-Id: sm1
500
- X-Installation-Id: sm1
501
- X-Token-Id: {{$guid}}
502
- user_reference: {{userKey}}
503
- Content-Type: application/json
504
-
505
- {
506
- "attributes": {
507
- "pushSnapshot": {
508
- "success": false,
509
- "reason": "verification_timeout"
510
- }
511
- }
512
- }
513
-
514
- ### S5-STEP4: State Kontrol
515
- ### Beklenen: "push-waiting" (doğrulama başarısız, geri döndü)
516
- # @name s5State2
517
- GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/{{s5InstanceId}}/functions/state
518
- Accept-Language: tr-TR
519
- X-Request-Id: {{$guid}}
520
- user_reference: {{userKey}}
521
-
522
- ### S5-STEP5: İkinci Push Onayla (bu sefer başarılı)
523
- # @name s5ApprovePush2
524
- PATCH {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/{{s5InstanceId}}/transitions/approve-push?sync=true
525
- Accept-Language: tr-TR
526
- X-Request-Id: {{$guid}}
527
- X-Device-Id: sm1
528
- X-Installation-Id: sm1
529
- X-Token-Id: {{$guid}}
530
- user_reference: {{userKey}}
531
- Content-Type: application/json
532
-
533
- {
534
- "attributes": {
535
- "pushSnapshot": {
536
- "success": true
537
- }
538
- }
539
- }
540
-
541
- ### S5-STEP6: State Kontrol
542
- ### Beklenen: "push-complete"
543
- # @name s5State3
544
- GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/{{s5InstanceId}}/functions/state
545
- Accept-Language: tr-TR
546
- X-Request-Id: {{$guid}}
547
- user_reference: {{userKey}}
548
-
549
- ### S5-STEP7: Final Data
550
- # @name s5FinalData
551
- GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/{{s5InstanceId}}/functions/data
552
- Accept-Language: tr-TR
553
- X-Request-Id: {{$guid}}
554
- user_reference: {{userKey}}
555
-
556
-
557
- ###############################################################################
558
- ###############################################################################
559
- ###
560
- ### SENARYO 6: Non-IbWeb + Cihaz Bulundu → Doğrudan Tamamla
561
- ###
562
- ### Akış: check-device → registered-device-complete ✓
563
- ###
564
- ### States : check-device, registered-device-complete
565
- ### Trans : non-ib-web-device-found
566
- ###
567
- ###############################################################################
568
- ###############################################################################
569
-
570
- ### S6-STEP1: Start - Non-IbWeb client (OpenBanking), kayıtlı cihaz
571
- # @name s6Start
572
- POST {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/start?sync=true
573
- Accept-Language: tr-TR
574
- X-Request-Id: {{$guid}}
575
- X-Device-Id: sm1
576
- X-Token-Id: {{$guid}}
577
- X-Device-Info: OpenBanking/2.0
578
- X-Forwarded-For: 192.168.1.60
579
- user_reference: {{userKey}}
580
- Content-Type: application/json
581
-
582
- {
583
- "key": "s6-registered-device-{{userKey}}-{{$timestamp}}",
584
- "tags": ["test", "approvement", "registered-device"],
585
- "attributes": {
586
- "userName": "{{userKey}}",
587
- "clientId": "OpenBankingApp",
588
- "deviceId": "sm1",
589
- "installationId": "sm1",
590
- "userSnapshot": {
591
- "person": {
592
- "phone": "+905551234567"
593
- }
594
- }
595
- }
596
- }
597
-
598
- ###
599
- @s6InstanceId = {{s6Start.response.body.id}}
600
-
601
- ### S6-STEP2: State Kontrol
602
- ### Beklenen: "registered-device-complete" (Non-IbWeb + device → doğrudan tamamla)
603
- # @name s6State1
604
- GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/{{s6InstanceId}}/functions/state
605
- Accept-Language: tr-TR
606
- X-Request-Id: {{$guid}}
607
- user_reference: {{userKey}}
608
-
609
- ### S6-STEP3: Final Data - deviceFound=true, deviceSnapshot kontrol
610
- # @name s6FinalData
611
- GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/{{s6InstanceId}}/functions/data
612
- Accept-Language: tr-TR
613
- X-Request-Id: {{$guid}}
614
- user_reference: {{userKey}}
615
-
616
-
617
- ###############################################################################
618
- ###############################################################################
619
- ###
620
- ### SENARYO 6b: Non-IbWeb (MobilApp) + Cihaz Bulundu → Doğrudan Tamamla
621
- ###
622
- ### States : check-device, registered-device-complete
623
- ### Trans : non-ib-web-device-found
624
- ###
625
- ###############################################################################
626
- ###############################################################################
627
-
628
- ### S6b-STEP1: Start - MobilApp client, kayıtlı cihaz
629
- # @name s6bStart
630
- POST {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/start?sync=true
631
- Accept-Language: tr-TR
632
- X-Request-Id: {{$guid}}
633
- X-Device-Id: sm1
634
- X-Token-Id: {{$guid}}
635
- X-Device-Info: MobilApp/3.0
636
- X-Forwarded-For: 192.168.1.61
637
- user_reference: {{userKey}}
638
- Content-Type: application/json
639
-
640
- {
641
- "key": "s6b-mobilapp-{{userKey}}-{{$timestamp}}",
642
- "tags": ["test", "approvement", "registered-device", "mobilapp"],
643
- "attributes": {
644
- "userName": "{{userKey}}",
645
- "clientId": "MobilApp",
646
- "deviceId": "sm1",
647
- "installationId": "sm1",
648
- "userSnapshot": {
649
- "person": {
650
- "phone": "+905551234567"
651
- }
652
- }
653
- }
654
- }
655
-
656
- ###
657
- @s6bInstanceId = {{s6bStart.response.body.id}}
658
-
659
- ### S6b-STEP2: State Kontrol
660
- ### Beklenen: "registered-device-complete"
661
- # @name s6bState1
662
- GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/{{s6bInstanceId}}/functions/state
663
- Accept-Language: tr-TR
664
- X-Request-Id: {{$guid}}
665
- user_reference: {{userKey}}
666
-
667
-
668
- ###############################################################################
669
- ###############################################################################
670
- ###
671
- ### SENARYO 7: Cihaz Bulunamadı → OTP → Doğru Kod → Başarılı
672
- ###
673
- ### Akış: check-device → otp-send → otp-waiting → (verify-otp)
674
- ### → otp-verification → otp-complete ✓
675
- ###
676
- ### States : check-device, otp-send, otp-waiting, otp-verification, otp-complete
677
- ### Trans : device-not-found, otp-sent, verify-otp, otp-valid
678
- ###
679
- ###############################################################################
680
- ###############################################################################
681
-
682
- ### S7-STEP1: Start - Cihaz bilgisi yok (deviceId/installationId gönderilmiyor)
683
- # @name s7Start
684
- POST {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/start?sync=true
685
- Accept-Language: tr-TR
686
- X-Request-Id: {{$guid}}
687
- X-Device-Id: {{$guid}}
688
- X-Token-Id: {{$guid}}
689
- X-Device-Info: IbWeb/1.0
690
- X-Forwarded-For: 192.168.1.70
691
- user_reference: {{userKey}}
692
- Content-Type: application/json
693
-
694
- {
695
- "key": "s7-no-device-otp-ok-{{userKey}}-{{$timestamp}}",
696
- "tags": ["test", "approvement", "no-device", "otp-success"],
697
- "attributes": {
698
- "userName": "{{userKey}}5",
699
- "clientId": "IbWeb",
700
- "userSnapshot": {
701
- "person": {
702
- "phone": "+905358479026"
703
- }
704
- }
705
- }
706
- }
707
-
708
- ###
709
- @s7InstanceId = {{s7Start.response.body.id}}
710
-
711
- ### S7-STEP2: State Kontrol
712
- ### Beklenen: "otp-waiting" (cihaz bulunamadı → OTP gönderildi)
713
- # @name s7State1
714
- GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/{{s7InstanceId}}/functions/state
715
- Accept-Language: tr-TR
716
- X-Request-Id: {{$guid}}
717
- user_reference: {{userKey}}
718
-
719
- ### S7-STEP3: Instance Data - deviceFound=false, generatedOtpCode kontrol
720
- ### ⚠️ generatedOtpCode değerini not alın, doğrulama için kullanılacak
721
- # @name s7Data1
722
- GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/{{s7InstanceId}}/functions/data
723
- Accept-Language: tr-TR
724
- X-Request-Id: {{$guid}}
725
- user_reference: {{userKey}}
726
-
727
- ### S7-STEP4: OTP Doğrula - Doğru kod
728
- ### ⚠️ inputtedOtpCode değerini yukarıdaki generatedOtpCode ile değiştirin
729
- ### State: otp-waiting → otp-verification → (otp-valid) → otp-complete
730
- # @name s7VerifyOtp
731
- PATCH {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/{{s7InstanceId}}/transitions/verify-otp?sync=true
732
- Accept-Language: tr-TR
733
- X-Request-Id: {{$guid}}
734
- X-Device-Id: {{$guid}}
735
- X-Token-Id: {{$guid}}
736
- user_reference: {{userKey}}
737
- Content-Type: application/json
738
-
739
- {
740
- "attributes": {
741
- "inputtedOtpCode": "BURAYA_OTP_KODU_GIRIN"
742
- }
743
- }
744
-
745
- ### S7-STEP5: State Kontrol
746
- ### Beklenen: "otp-complete"
747
- # @name s7State2
748
- GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/{{s7InstanceId}}/functions/state
749
- Accept-Language: tr-TR
750
- X-Request-Id: {{$guid}}
751
- user_reference: {{userKey}}
752
-
753
- ### S7-STEP6: Final Data
754
- # @name s7FinalData
755
- GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/{{s7InstanceId}}/functions/data
756
- Accept-Language: tr-TR
757
- X-Request-Id: {{$guid}}
758
- user_reference: {{userKey}}
759
-
760
-
761
- ###############################################################################
762
- ###############################################################################
763
- ###
764
- ### SENARYO 8: Cihaz Bulunamadı → OTP → Yanlış Kod → Tekrar Dene → Doğru Kod
765
- ###
766
- ### Akış: check-device → otp-send → otp-waiting → (verify-otp - yanlış)
767
- ### → otp-verification → (otp-invalid) → otp-waiting
768
- ### → (verify-otp - doğru) → otp-verification → otp-complete ✓
769
- ###
770
- ### States : check-device, otp-send, otp-waiting (×2), otp-verification (×2),
771
- ### otp-complete
772
- ### Trans : device-not-found, otp-sent, verify-otp (×2), otp-invalid, otp-valid
773
- ###
774
- ###############################################################################
775
- ###############################################################################
776
-
777
- ### S8-STEP1: Start - Cihaz bilgisi yok
778
- # @name s8Start
779
- POST {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/start?sync=true
780
- Accept-Language: tr-TR
781
- X-Request-Id: {{$guid}}
782
- X-Device-Id: {{$guid}}
783
- X-Token-Id: {{$guid}}
784
- X-Device-Info: OpenBanking/2.0
785
- X-Forwarded-For: 192.168.1.80
786
- user_reference: {{userKey}}
787
- Content-Type: application/json
788
-
789
- {
790
- "key": "s8-otp-retry-{{userKey}}-{{$timestamp}}",
791
- "tags": ["test", "approvement", "no-device", "otp-retry"],
792
- "attributes": {
793
- "userName": "{{userKey}}",
794
- "clientId": "OpenBanking",
795
- "userSnapshot": {
796
- "person": {
797
- "phone": "+905551234567"
798
- }
799
- }
800
- }
801
- }
802
-
803
- ###
804
- @s8InstanceId = {{s8Start.response.body.id}}
805
-
806
- ### S8-STEP2: State Kontrol
807
- ### Beklenen: "otp-waiting"
808
- # @name s8State1
809
- GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/{{s8InstanceId}}/functions/state
810
- Accept-Language: tr-TR
811
- X-Request-Id: {{$guid}}
812
- user_reference: {{userKey}}
813
-
814
- ### S8-STEP3: Instance Data - generatedOtpCode kontrol
815
- # @name s8Data1
816
- GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/{{s8InstanceId}}/functions/data
817
- Accept-Language: tr-TR
818
- X-Request-Id: {{$guid}}
819
- user_reference: {{userKey}}
820
-
821
- ### S8-STEP4: OTP Doğrula - YANLIŞ kod
822
- ### State: otp-waiting → otp-verification → (otp-invalid) → otp-waiting
823
- # @name s8VerifyOtpWrong
824
- PATCH {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/{{s8InstanceId}}/transitions/verify-otp?sync=true
825
- Accept-Language: tr-TR
826
- X-Request-Id: {{$guid}}
827
- X-Device-Id: {{$guid}}
828
- X-Token-Id: {{$guid}}
829
- user_reference: {{userKey}}
830
- Content-Type: application/json
831
-
832
- {
833
- "attributes": {
834
- "inputtedOtpCode": "000000"
835
- }
836
- }
837
-
838
- ### S8-STEP5: State Kontrol
839
- ### Beklenen: "otp-waiting" (yanlış kod, geri döndü)
840
- # @name s8State2
841
- GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/{{s8InstanceId}}/functions/state
842
- Accept-Language: tr-TR
843
- X-Request-Id: {{$guid}}
844
- user_reference: {{userKey}}
845
-
846
- ### S8-STEP6: OTP Doğrula - DOĞRU kod
847
- ### ⚠️ inputtedOtpCode değerini S8-STEP3'teki generatedOtpCode ile değiştirin
848
- ### State: otp-waiting → otp-verification → (otp-valid) → otp-complete
849
- # @name s8VerifyOtpCorrect
850
- PATCH {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/{{s8InstanceId}}/transitions/verify-otp?sync=true
851
- Accept-Language: tr-TR
852
- X-Request-Id: {{$guid}}
853
- X-Device-Id: {{$guid}}
854
- X-Token-Id: {{$guid}}
855
- user_reference: {{userKey}}
856
- Content-Type: application/json
857
-
858
- {
859
- "attributes": {
860
- "inputtedOtpCode": "BURAYA_OTP_KODU_GIRIN"
861
- }
862
- }
863
-
864
- ### S8-STEP7: State Kontrol
865
- ### Beklenen: "otp-complete"
866
- # @name s8State3
867
- GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/{{s8InstanceId}}/functions/state
868
- Accept-Language: tr-TR
869
- X-Request-Id: {{$guid}}
870
- user_reference: {{userKey}}
871
-
872
- ### S8-STEP8: Final Data
873
- # @name s8FinalData
874
- GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/{{s8InstanceId}}/functions/data
875
- Accept-Language: tr-TR
876
- X-Request-Id: {{$guid}}
877
- user_reference: {{userKey}}
878
-
879
-
880
- ###############################################################################
881
- ###############################################################################
882
- ###
883
- ### SENARYO 9: Cihaz Bulunamadı → OTP → Timeout → Resend → Yeni OTP
884
- ###
885
- ### Akış: check-device → otp-send → otp-waiting → (otp-timeout, scheduled ~180s)
886
- ### → otp-resend → (resend-otp) → otp-send → otp-waiting ↻
887
- ###
888
- ### States : check-device, otp-send, otp-waiting, otp-resend
889
- ### Trans : device-not-found, otp-sent, otp-timeout (scheduled), resend-otp
890
- ###
891
- ###############################################################################
892
- ###############################################################################
893
-
894
- ### S9-STEP1: Start - Cihaz bilgisi yok
895
- # @name s9Start
896
- POST {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/start?sync=true
897
- Accept-Language: tr-TR
898
- X-Request-Id: {{$guid}}
899
- X-Device-Id: {{$guid}}
900
- X-Token-Id: {{$guid}}
901
- X-Device-Info: IbWeb/1.0
902
- X-Forwarded-For: 192.168.1.90
903
- user_reference: {{userKey}}
904
- Content-Type: application/json
905
-
906
- {
907
- "key": "s9-otp-timeout-{{userKey}}-{{$timestamp}}",
908
- "tags": ["test", "approvement", "no-device", "otp-timeout"],
909
- "attributes": {
910
- "userName": "{{userKey}}",
911
- "clientId": "IbWeb",
912
- "userSnapshot": {
913
- "person": {
914
- "phone": "+905551234567"
915
- }
916
- }
917
- }
918
- }
919
-
920
- ###
921
- @s9InstanceId = {{s9Start.response.body.id}}
922
-
923
- ### S9-STEP2: State Kontrol
924
- ### Beklenen: "otp-waiting"
925
- # @name s9State1
926
- GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/{{s9InstanceId}}/functions/state
927
- Accept-Language: tr-TR
928
- X-Request-Id: {{$guid}}
929
- user_reference: {{userKey}}
930
-
931
- ### S9-STEP3: OTP Timeout (otp-timeout transition)
932
- ### State: otp-waiting → otp-resend
933
- ### otp-timeout artık scheduled bir transition (OtpTimeoutTimer.csx, otpGeneratedAt + 180sn
934
- ### dolunca runtime tetikler) — manuel PATCH artık geçerli değildir; triggerType manuel (0)
935
- ### olmadığı için runtime tarafından reddedilir. Timer'ın ateşlenmesini bekleyin.
936
- # @name s9OtpTimeout
937
- # PATCH {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/{{s9InstanceId}}/transitions/otp-timeout?sync=true
938
- # Accept-Language: tr-TR
939
- # X-Request-Id: {{$guid}}
940
- # X-Device-Id: {{$guid}}
941
- # X-Token-Id: {{$guid}}
942
- # user_reference: {{userKey}}
943
- # Content-Type: application/json
944
- #
945
- # {
946
- # "attributes": {}
947
- # }
948
-
949
- ### S9-STEP4: State Kontrol
950
- ### Beklenen: "otp-resend" (timer ateşlendikten, yani otp-send'den ~180sn sonra)
951
- # @name s9State2
952
- GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/{{s9InstanceId}}/functions/state
953
- Accept-Language: tr-TR
954
- X-Request-Id: {{$guid}}
955
- user_reference: {{userKey}}
956
-
957
- ### S9-STEP5: Yeni OTP iste (resend-otp transition)
958
- ### State: otp-resend → otp-send → (otp-sent) → otp-waiting
959
- ### otp-send yeniden çalışır: yeni kod üretilir, otpGeneratedAt sıfırlanır,
960
- ### otpVerificationAttempts=0 olur; akış S8'deki gibi verify-otp ile devam eder.
961
- # @name s9ResendOtp
962
- PATCH {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/{{s9InstanceId}}/transitions/resend-otp?sync=true
963
- Accept-Language: tr-TR
964
- X-Request-Id: {{$guid}}
965
- X-Device-Id: {{$guid}}
966
- X-Token-Id: {{$guid}}
967
- user_reference: {{userKey}}
968
- Content-Type: application/json
969
-
970
- {
971
- "attributes": {}
972
- }
973
-
974
- ### S9-STEP6: State Kontrol
975
- ### Beklenen: "otp-waiting" (yeni OTP gönderildi, kod bekleniyor)
976
- # @name s9State3
977
- GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/{{s9InstanceId}}/functions/state
978
- Accept-Language: tr-TR
979
- X-Request-Id: {{$guid}}
980
- user_reference: {{userKey}}
981
-
982
- ### S9-STEP7: Instance Data
983
- # @name s9FinalData
984
- GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/{{s9InstanceId}}/functions/data
985
- Accept-Language: tr-TR
986
- X-Request-Id: {{$guid}}
987
- user_reference: {{userKey}}
988
-
989
-
990
- ###############################################################################
991
- ###############################################################################
992
- ###
993
- ### SENARYO 10: Cihaz Bulunamadı → OTP Gönderim Başarısız → Başarısız
994
- ###
995
- ### Akış: check-device → otp-send → (otp-send-failed)
996
- ### → otp-send-failed-end ✗
997
- ###
998
- ### ⚠️ Bu senaryonun çalışması için send-otp-sms-task mock'unun hata dönmesi gerekir.
999
- ### Mockoon'da send-otp-sms endpoint'ini "failure" response'a geçirin.
1000
- ###
1001
- ### States : check-device, otp-send, otp-send-failed-end
1002
- ### Trans : device-not-found, otp-send-failed
1003
- ###
1004
- ###############################################################################
1005
- ###############################################################################
1006
-
1007
- ### S10-STEP1: Start - Cihaz bilgisi yok (OTP mock hata dönecek)
1008
- # @name s10Start
1009
- POST {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/start?sync=true
1010
- Accept-Language: tr-TR
1011
- X-Request-Id: {{$guid}}
1012
- X-Device-Id: {{$guid}}
1013
- X-Token-Id: {{$guid}}
1014
- X-Device-Info: IbWeb/1.0
1015
- X-Forwarded-For: 192.168.1.100
1016
- user_reference: {{userKey}}
1017
- Content-Type: application/json
1018
-
1019
- {
1020
- "key": "s10-otp-send-fail-{{userKey}}-{{$timestamp}}",
1021
- "tags": ["test", "approvement", "no-device", "otp-send-failed"],
1022
- "attributes": {
1023
- "userName": "{{userKey}}",
1024
- "clientId": "IbWeb",
1025
- "userSnapshot": {
1026
- "person": {
1027
- "phone": "+905551234567"
1028
- }
1029
- }
1030
- }
1031
- }
1032
-
1033
- ###
1034
- @s10InstanceId = {{s10Start.response.body.id}}
1035
-
1036
- ### S10-STEP2: State Kontrol
1037
- ### Beklenen: "otp-send-failed-end" (OTP gönderilemedi → doğrudan fail)
1038
- # @name s10State1
1039
- GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/{{s10InstanceId}}/functions/state
1040
- Accept-Language: tr-TR
1041
- X-Request-Id: {{$guid}}
1042
- user_reference: {{userKey}}
1043
-
1044
- ### S10-STEP3: Final Data - otpSent=false, otpError kontrol
1045
- # @name s10FinalData
1046
- GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/{{s10InstanceId}}/functions/data
1047
- Accept-Language: tr-TR
1048
- X-Request-Id: {{$guid}}
1049
- user_reference: {{userKey}}
1050
-
1051
-
1052
- ###############################################################################
1053
- ###############################################################################
1054
- ###
1055
- ### SENARYO 11: IbWeb + Cihaz Bulundu → Yanlış Cihazdan Onay (×3) → Hatalı Cihaz
1056
- ###
1057
- ### Akış: check-device → push-send → push-waiting → (approve-push, yanlış cihaz)
1058
- ### → push-verification → (device-mismatch) → push-device-mismatch-handle-fail
1059
- ### → (device-mismatch-retry ×2) → push-waiting → ... → (3. denemede)
1060
- ### → (device-mismatch-max-attempts) → push-device-mismatch-end ✗
1061
- ###
1062
- ### ⚠️ approve-push, kayıtlı cihazın (deviceId=sm1/installationId=sm1) DIŞINDA bir
1063
- ### X-Device-Id/X-Installation-Id ile çağrılıyor. ValidateApprovalDeviceMapping.csx
1064
- ### artık throw ETMİYOR — deviceMismatch=true yazıyor; push-verification'daki
1065
- ### device-mismatch rule'u bunu yakalayıp push-device-mismatch-handle-fail'e
1066
- ### yönlendiriyor. İlk 2 deneme push-waiting'e geri döner (deviceMismatchAttempts
1067
- ### 1, 2), 3. deneme push-device-mismatch-end'e düşer (deviceMismatchAttempts=3).
1068
- ###
1069
- ### States : check-device, push-send, push-waiting, push-verification (×3),
1070
- ### push-device-mismatch-handle-fail (×3), push-device-mismatch-end
1071
- ### Trans : ib-web-device-found, push-sent, approve-push (×3), device-mismatch (×3),
1072
- ### device-mismatch-retry (×2), device-mismatch-max-attempts
1073
- ###
1074
- ###############################################################################
1075
- ###############################################################################
1076
-
1077
- ### S11-STEP1: Start - IbWeb client, kayıtlı cihaz
1078
- # @name s11Start
1079
- POST {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/start?sync=true
1080
- Accept-Language: tr-TR
1081
- X-Request-Id: {{$guid}}
1082
- X-Device-Id: sm1
1083
- X-Token-Id: {{$guid}}
1084
- X-Device-Info: IbWeb/1.0
1085
- X-Forwarded-For: 192.168.1.50
1086
- user_reference: {{userKey}}
1087
- Content-Type: application/json
1088
-
1089
- {
1090
- "key": "s11-device-mismatch-{{userKey}}-{{$timestamp}}",
1091
- "tags": ["test", "approvement", "device-mismatch"],
1092
- "attributes": {
1093
- "userName": "{{userKey}}",
1094
- "clientId": "IbWeb",
1095
- "deviceId": "sm1",
1096
- "installationId": "sm1",
1097
- "userSnapshot": {
1098
- "person": {
1099
- "phone": "+905551234567"
1100
- }
1101
- }
1102
- }
1103
- }
1104
-
1105
- ###
1106
- @s11InstanceId = {{s11Start.response.body.id}}
1107
-
1108
- ### S11-STEP2: State Kontrol
1109
- ### Beklenen: "push-waiting"
1110
- # @name s11State1
1111
- GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/{{s11InstanceId}}/functions/state
1112
- Accept-Language: tr-TR
1113
- X-Request-Id: {{$guid}}
1114
- user_reference: {{userKey}}
1115
-
1116
- ### S11-STEP3: Push Onayla - Yanlış Cihaz (1. deneme)
1117
- ### X-Device-Id/X-Installation-Id, kayıtlı cihazla (sm1/sm1) eşleşmiyor
1118
- # @name s11ApprovePushWrong1
1119
- PATCH {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/{{s11InstanceId}}/transitions/approve-push?sync=true
1120
- Accept-Language: tr-TR
1121
- X-Request-Id: {{$guid}}
1122
- X-Device-Id: wrong-device-id
1123
- X-Installation-Id: wrong-installation-id
1124
- X-Token-Id: {{$guid}}
1125
- user_reference: {{userKey}}
1126
- Content-Type: application/json
1127
-
1128
- {
1129
- "attributes": {}
1130
- }
1131
-
1132
- ### S11-STEP4: State Kontrol
1133
- ### Beklenen: "push-waiting" (1. yanlış cihaz denemesi, tekrar bekleniyor)
1134
- # @name s11State2
1135
- GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/{{s11InstanceId}}/functions/state
1136
- Accept-Language: tr-TR
1137
- X-Request-Id: {{$guid}}
1138
- user_reference: {{userKey}}
1139
-
1140
- ### S11-STEP5: Instance Data Kontrol
1141
- ### Beklenen: deviceMismatchAttempts = 1
1142
- # @name s11Data1
1143
- GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/{{s11InstanceId}}/functions/data
1144
- Accept-Language: tr-TR
1145
- X-Request-Id: {{$guid}}
1146
- user_reference: {{userKey}}
1147
-
1148
- ### S11-STEP6: Push Onayla - Yanlış Cihaz (2. deneme)
1149
- # @name s11ApprovePushWrong2
1150
- PATCH {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/{{s11InstanceId}}/transitions/approve-push?sync=true
1151
- Accept-Language: tr-TR
1152
- X-Request-Id: {{$guid}}
1153
- X-Device-Id: wrong-device-id
1154
- X-Installation-Id: wrong-installation-id
1155
- X-Token-Id: {{$guid}}
1156
- user_reference: {{userKey}}
1157
- Content-Type: application/json
1158
-
1159
- {
1160
- "attributes": {}
1161
- }
1162
-
1163
- ### S11-STEP7: State Kontrol
1164
- ### Beklenen: "push-waiting" (2. yanlış cihaz denemesi, tekrar bekleniyor)
1165
- # @name s11State3
1166
- GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/{{s11InstanceId}}/functions/state
1167
- Accept-Language: tr-TR
1168
- X-Request-Id: {{$guid}}
1169
- user_reference: {{userKey}}
1170
-
1171
- ### S11-STEP8: Instance Data Kontrol
1172
- ### Beklenen: deviceMismatchAttempts = 2
1173
- # @name s11Data2
1174
- GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/{{s11InstanceId}}/functions/data
1175
- Accept-Language: tr-TR
1176
- X-Request-Id: {{$guid}}
1177
- user_reference: {{userKey}}
1178
-
1179
- ### S11-STEP9: Push Onayla - Yanlış Cihaz (3. deneme - limit aşılıyor)
1180
- # @name s11ApprovePushWrong3
1181
- PATCH {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/{{s11InstanceId}}/transitions/approve-push?sync=true
1182
- Accept-Language: tr-TR
1183
- X-Request-Id: {{$guid}}
1184
- X-Device-Id: wrong-device-id
1185
- X-Installation-Id: wrong-installation-id
1186
- X-Token-Id: {{$guid}}
1187
- user_reference: {{userKey}}
1188
- Content-Type: application/json
1189
-
1190
- {
1191
- "attributes": {}
1192
- }
1193
-
1194
- ### S11-STEP10: State Kontrol
1195
- ### Beklenen: "push-device-mismatch-end" (final, 3. yanlış cihaz denemesi limiti aştı)
1196
- # @name s11State4
1197
- GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/{{s11InstanceId}}/functions/state
1198
- Accept-Language: tr-TR
1199
- X-Request-Id: {{$guid}}
1200
- user_reference: {{userKey}}
1201
-
1202
- ### S11-STEP11: Final Data Kontrol
1203
- ### Beklenen: deviceMismatchAttempts=3, loginApprovementStatus=failed,
1204
- ### verificationFailureReason=device_mismatch_max_attempts
1205
- # @name s11FinalData
1206
- GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/{{s11InstanceId}}/functions/data
1207
- Accept-Language: tr-TR
1208
- X-Request-Id: {{$guid}}
1209
- user_reference: {{userKey}}
1210
-
1211
-
1212
- ###############################################################################
1213
- ###############################################################################
1214
- ###
1215
- ### KAPSAM MATRİSİ
1216
- ###
1217
- ### ┌─────────────────────────────┬──────────────────────┬──────────────────────┐
1218
- ### │ State │ Senaryo │ Final State │
1219
- ### ├─────────────────────────────┼──────────────────────┼──────────────────────┤
1220
- ### │ check-device │ S1-S11 (tümü) │ - │
1221
- ### │ push-send │ S1,S2,S3,S4,S5,S11 │ - │
1222
- ### │ push-waiting │ S1,S2,S3,S5,S11 │ - │
1223
- ### │ push-verification │ S1,S5,S11 (×3) │ - │
1224
- ### │ push-device-mismatch-handle-fail │ S11 (×3) │ - │
1225
- ### │ otp-send │ S3,S4,S7,S8,S9,S10 │ - │
1226
- ### │ otp-waiting │ S3,S4,S7,S8,S9 │ - │
1227
- ### │ otp-resend │ S9 │ - │
1228
- ### │ otp-verification │ S3,S4,S7,S8 │ - │
1229
- ### │ push-complete │ S1,S5 │ ✓ Final (başarılı) │
1230
- ### │ registered-device-comp. │ S6,S6b │ ✓ Final (başarılı) │
1231
- ### │ otp-complete │ S3,S4,S7,S8 │ ✓ Final (başarılı) │
1232
- ### │ otp-send-failed-end │ S10 │ ✗ Final (başarısız) │
1233
- ### │ push-rejected-end │ S2 │ ✗ Final (başarısız) │
1234
- ### │ push-device-mismatch-end │ S11 │ ✗ Final (başarısız) │
1235
- ### ├─────────────────────────────┼──────────────────────┼──────────────────────┤
1236
- ### │ TOPLAM: 15 state │ 12 senaryo │ 6 final state │
1237
- ### └─────────────────────────────┴──────────────────────┴──────────────────────┘
1238
- ###
1239
- ### ┌───────────────────────────┬──────────────────────┐
1240
- ### │ Transition │ Senaryo │
1241
- ### ├───────────────────────────┼──────────────────────┤
1242
- ### │ ib-web-device-found │ S1,S2,S3,S4,S5,S11 │
1243
- ### │ non-ib-web-device-found │ S6,S6b │
1244
- ### │ device-not-found │ S7,S8,S9,S10 │
1245
- ### │ push-sent │ S1,S2,S3,S5,S11 │
1246
- ### │ push-send-failed │ S4 │
1247
- ### │ approve-push │ S1,S5 (×2),S11 (×3) │
1248
- ### │ reject-push │ S2 │
1249
- ### │ push-timeout (scheduled) │ S3 (artık manuel değil, bkz. S3-STEP3 notu) │
1250
- ### │ push-verified │ S1,S5 │
1251
- ### │ push-verification-failed │ S5 │
1252
- ### │ device-mismatch │ S11 (×3) │
1253
- ### │ device-mismatch-retry │ S11 (×2) │
1254
- ### │ device-mismatch-max-attempts │ S11 │
1255
- ### │ otp-sent │ S3,S4,S7,S8,S9 │
1256
- ### │ otp-send-failed │ S10 │
1257
- ### │ verify-otp │ S3,S4,S7,S8 (×2) │
1258
- ### │ otp-valid │ S3,S4,S7,S8 │
1259
- ### │ otp-invalid │ S8 │
1260
- ### │ otp-timeout (scheduled) │ S9 (artık manuel değil, bkz. S9-STEP3 notu) │
1261
- ### │ resend-otp │ S9 │
1262
- ### ├───────────────────────────┼──────────────────────┤
1263
- ### │ TOPLAM: 20 transition │ Tümü kapsandı ✓ │
1264
- ### └───────────────────────────┴──────────────────────┘
1265
- ###
1266
- ###############################################################################
1267
- ###############################################################################