@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,78 +0,0 @@
1
- ### verify-limit-definition — tek bir limit TANIMININ tavana uygunluğunu dönen dry-run fonksiyonu (kayıt oluşmaz).
2
- # Sihirbazların (user-corporate-provision / update-provision) submit-limits sonrası yaptığı TOPLU kontrolün satır bazlı ikizi:
3
- # ekran her limit satırı girildiğinde (alan terk edilince — her tuşta DEĞİL, çağrı başına bir verify instance'ı açılır)
4
- # bu ucu çağırır ve dönen mesajı o satırın altına yazar.
5
- #
6
- # Parametreler SADECE query string ile okunur (gövde artık desteklenmez — renderer remote validation GET kullanır):
7
- # scopeGroup, scope, limitKey, type (Daily|Transaction|ApproveTransaction|ApproveDaily), amount (BEŞİ DE ZORUNLU)
8
- # Yanıt (DÜZ): izinli → { verifyLimitDefinition: { allowed: true } }
9
- # red → { verifyLimitDefinition: { allowed: false, code, level, field, limitKey, type,
10
- # enteredAmount, ceilingAmount, message: { tr, en } } }
11
- # code : exceeds-scope | exceeds-scope-group | no-bank-limit | verification-failed
12
- # level: scope | scopeGroup | none
13
- # field: "{limitKey}.{daily|transaction|approveDaily|approveTransaction}" → mesajın yazılacağı satır
14
- # tutarlar sayı ya da null (tavan yoksa null); boş string dönmez
15
- # Kod/metin/satır anahtarı sihirbaz banner'ıyla BİREBİR aynıdır: üçü de transaction-limit-definition-verify akışının
16
- # uç onEntry'lerinin ürettiği limitVerifyError zarfını taşır.
17
- @baseUrl = http://localhost:4251
18
- @apiVersion = v1
19
- @domain = morph-idm
20
- @function = verify-limit-definition
21
-
22
- ### LOKAL FIXTURE (bu dosyadaki örnekler): scopeGroup=sg-20, scope=corporate-firm-test
23
- ### EFT / Daily → kurumsal (banka) tavan 90.000 ; scope tavanı 60.000 (varsa)
24
- ### EFT / Transaction → tavan YOK → no-bank-limit
25
- @scopeGroup = corporate-customers
26
- @scope = 766
27
-
28
- ###############################################################################
29
- # 1) İZİNLİ — 50.000 ≤ 90.000 → { allowed: true } (başka alan yok)
30
- ###############################################################################
31
- GET {{baseUrl1}}/api/{{apiVersion}}/{{domain}}/functions/{{function}}?scopeGroup={{scopeGroup}}&scope={{scope}}&limitKey=accounts.timeDeposit&type=Daily&amount=50000
32
-
33
- ###############################################################################
34
- # 2) KURUMSAL TAVANI AŞIYOR — 150.000 > 90.000 → allowed=false, code=exceeds-scope-group, level=scopeGroup, ceilingAmount=90000
35
- ###############################################################################
36
- GET {{baseUrl1}}/api/{{apiVersion}}/{{domain}}/functions/{{function}}?scopeGroup={{scopeGroup}}&scope={{scope}}&limitKey=EFT&type=Daily&amount=150000
37
-
38
- ###############################################################################
39
- # 3) FİRMA (SCOPE) TAVANINI AŞIYOR — 70.000 > 60.000 → code=exceeds-scope, level=scope
40
- # Ön koşul: scope seviyesinde aktif bir tavan tanımı olmalı (aşağıdaki fixture ile açılır).
41
- ###############################################################################
42
- GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/functions/{{function}}?scopeGroup={{scopeGroup}}&scope={{scope}}&limitKey=EFT&type=Daily&amount=70000
43
-
44
- ### 3-fixture) scope seviyesinde 60.000 tavan (yalnız senaryo 3 için; user=null, scope dolu)
45
- POST {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/transaction-limit-definition/instances/start?sync=true
46
- Content-Type: application/json
47
-
48
- {
49
- "key": "scope-ceiling-eft-daily-{{$timestamp}}",
50
- "tags": ["test", "verify-fixture"],
51
- "attributes": {
52
- "autoActivate": true,
53
- "updateOnConflict": true,
54
- "type": "Daily",
55
- "limitKey": "EFT",
56
- "currency": "TRY",
57
- "amount": 60000,
58
- "scopeGroup": "{{scopeGroup}}",
59
- "scope": "{{scope}}"
60
- }
61
- }
62
-
63
- ###############################################################################
64
- # 4) BANKA TAVANI TANIMSIZ — EFT/Transaction → allowed=false, code=no-bank-limit, level=none, ceilingAmount=null (fail-closed)
65
- ###############################################################################
66
- GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/functions/{{function}}?scopeGroup={{scopeGroup}}&scope={{scope}}&limitKey=EFT&type=Transaction&amount=1000
67
-
68
- ###############################################################################
69
- # 5) EKSİK ALAN — amount yok → akış HİÇ başlatılmaz, hata döner
70
- # detail: "verify-limit-definition requires: amount" (birden çok eksikse virgülle listeler)
71
- ###############################################################################
72
- GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/functions/{{function}}?scopeGroup={{scopeGroup}}&scope={{scope}}&limitKey=EFT&type=Daily
73
-
74
- ###############################################################################
75
- # 6) Doğrulama — fonksiyonun açtığı verify instance'ının uç state'i yanıtla eşleşmeli
76
- # (allowed → definition-allowed-end, exceeds-scope → exceeds-scope-limit-end, ...)
77
- ###############################################################################
78
- GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/transaction-limit-definition-verify/instances?page=1&pageSize=5&sort=%7B%22field%22%3A%22createdAt%22%2C%22direction%22%3A%22desc%22%7D
@@ -1,66 +0,0 @@
1
- ### Variables
2
- ### baseUrl, apiVersion, domain → .vscode/settings.json (rest-client.environmentVariables.$shared)
3
- ### baseUrl: http://localhost:4251 apiVersion: v1 domain: morph-idm
4
- @function = get-password-history-by-filter
5
-
6
- ###############################################################################
7
- # get-password-history-by-filter
8
- ###############################################################################
9
- # Returns paginated password history for a given user from the user-password flow.
10
- #
11
- # Flow:
12
- # Task 1 (query-active-user-password-task): GetInstances of user-password for userName
13
- # (active + ended, status != Faulted = full history)
14
- # Output handler: map each instance's passwordEntry → PasswordResponse format
15
- #
16
- # Query Parameters:
17
- # userName (required) - user instance key (same as vNext user workflow instance key)
18
- # Page (optional) - 1-based page number (default: 1)
19
- # PageSize (optional) - items per page (default: MorphIdm:PasswordHistoryDefaultPageSize config, fallback 10)
20
- #
21
- # Config (appsettings.json):
22
- # MorphIdm:TempPasswordExpiryDays - days before temp password expires (default: 45)
23
- # MorphIdm:PasswordHistoryDefaultPageSize - default page size (default: 10)
24
- #
25
- # Prerequisite:
26
- # User instance must exist in the user workflow with the given userName key.
27
- #
28
- # URL pattern:
29
- # GET /api/v1/morph-idm/functions/get-password-history-by-filter?userName={userName}&Page={page}&PageSize={pageSize}
30
- ###############################################################################
31
-
32
- @userName = user-migration-18
33
- # ↑ passwords verisi olan gerçek bir kullanıcı userName'i ile değiştir
34
-
35
- ### Get password history - Page 1
36
- GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/functions/{{function}}?userName={{userName}}&Page=1&PageSize=10
37
- Accept-Language: tr-TR
38
- X-Request-Id: {{$guid}}
39
-
40
- ###############################################################################
41
- # Expected response:
42
- # [
43
- # {
44
- # "id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
45
- # "createdAt": "2024-01-15T10:30:00.0000000Z",
46
- # "isTemporary": true,
47
- # "remainingDayForTempPassword": 12
48
- # },
49
- # {
50
- # "id": "yyyyyyyy-yyyy-yyyy-yyyy-yyyyyyyyyyyy",
51
- # "createdAt": "2023-06-20T08:00:00.0000000Z",
52
- # "isTemporary": false,
53
- # "remainingDayForTempPassword": 0
54
- # }
55
- # ]
56
- ###############################################################################
57
-
58
- ### Get password history - Page 2
59
- GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/functions/{{function}}?userName={{userName}}&Page=2&PageSize=10
60
- Accept-Language: tr-TR
61
- X-Request-Id: {{$guid}}
62
-
63
- ### Get password history - custom page size
64
- GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/functions/{{function}}?userName={{userName}}&Page=1&PageSize=5
65
- Accept-Language: tr-TR
66
- X-Request-Id: {{$guid}}
@@ -1,85 +0,0 @@
1
- ### Variables
2
- ### baseUrl, apiVersion, domain → .vscode/settings.json (rest-client.environmentVariables.$shared)
3
- ### baseUrl: http://localhost:4251 apiVersion: v1 domain: morph-idm
4
- @function = get-security-question-history-by-user
5
-
6
- ###############################################################################
7
- # get-security-question-history-by-user
8
- ###############################################################################
9
- # Returns full security question history for a given user from the vNext user flow.
10
- # 1-1 match with Provider_Bff: GET /api/SecurityQuestion/GetSecureQuestions/{customerId}/history
11
- #
12
- # Flow:
13
- # Task 1 (get-user-by-task):
14
- # → InputHandler : sets instance key = userName
15
- # → OutputHandler : extracts securityQuestion[] from user data
16
- # stored as context.OutputResponse["getUserByTask"]
17
- #
18
- # Task 2 (query-all-security-question-definitions-task, type 15, GetInstancesTask):
19
- # → InputHandler : no-op — fetches all security-question-definition instances (pageSize=200)
20
- # → OutputHandler : builds questionDefinitionId → descriptionTr lookup
21
- # reads sqList from Task 1 output
22
- # sorts by createdAt DESC
23
- # maps to SecurityQuestionHistoryResponse format
24
- #
25
- # Function output handler:
26
- # → extracts result from context.OutputResponse["queryAllSecurityQuestionDefinitionsTask"]
27
- #
28
- # Query Parameters:
29
- # userName (required) - user instance key (same as vNext user workflow instance key)
30
- #
31
- # Behavior:
32
- # - Returns ALL records (no pagination) — mirrors Provider_Bff full-list response
33
- # - User not found / empty history → error (Provider_Bff returns 404)
34
- # - descriptionTr populated from security-question-definition instances
35
- # - createdByUserName always null (not stored in morph-idm user schema)
36
- #
37
- # URL pattern:
38
- # GET /api/v1/morph-idm/functions/get-security-question-history-by-user?userName={userName}
39
- ###############################################################################
40
-
41
- @userName = user-migration-21
42
- # ↑ securityQuestion verisi olan gerçek bir kullanıcı userName'i ile değiştir
43
-
44
- ### Get security question history
45
- GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/functions/{{function}}?userName={{userName}}
46
- Accept-Language: tr-TR
47
- X-Request-Id: {{$guid}}
48
-
49
- ###############################################################################
50
- # Expected response (array, createdAt DESC):
51
- # [
52
- # {
53
- # "id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
54
- # "questionDefinitionId": "11111111-2222-3333-4444-555555555555",
55
- # "descriptionTr": "Annenizin kızlık soyadı nedir?",
56
- # "lastAccessDate": "2024-01-09T14:30:00Z",
57
- # "accessFailedCount": 0,
58
- # "changeReason": "User requested to update security question",
59
- # "changeDate": "2025-03-15T10:00:00.0000000Z",
60
- # "changedBy": "mobile-app-user-self-service",
61
- # "createdAt": "2025-03-15T10:00:00.0000000Z",
62
- # "createdByUserName": null,
63
- # "approveReason": "Automatically approved after answer verification",
64
- # "approvedBy": "system-auto-approval",
65
- # "approveDate": "2025-03-15T10:00:01.0000000Z",
66
- # "status": 10
67
- # },
68
- # {
69
- # "id": "aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa",
70
- # "questionDefinitionId": "bbbbbbbb-bbbb-bbbb-bbbb-bbbbbbbbbbbb",
71
- # "descriptionTr": "İlk evcil hayvanınızın adı nedir?",
72
- # "lastAccessDate": "2024-01-01T12:00:00Z",
73
- # "accessFailedCount": 0,
74
- # "changeReason": null,
75
- # "changeDate": null,
76
- # "changedBy": null,
77
- # "createdAt": "2024-01-01T12:00:00.0000000Z",
78
- # "createdByUserName": null,
79
- # "approveReason": null,
80
- # "approvedBy": null,
81
- # "approveDate": null,
82
- # "status": 20
83
- # }
84
- # ]
85
- ###############################################################################
@@ -1,73 +0,0 @@
1
- ### Variables
2
- ### baseUrl, apiVersion, domain → .vscode/settings.json (rest-client.environmentVariables.$shared)
3
- @function = get-users-by-scope
4
- @scopeKey = 766
5
-
6
- @baseUrl = http://localhost:4251
7
-
8
- ###############################################################################
9
- # get-users-by-scope — Scope'a (müşteri) ait AKTİF yetkili kullanıcı listesi
10
- ###############################################################################
11
- # ÖN KOŞUL: scopeKey = firma/müşteri seçiminden sonra instance.scope.key (get-firms-by-filter
12
- # ile firma bulunur, select-scope transition'ında scope.key set edilir). Bireysel müşteri
13
- # scope'larında da (eş/çocuk consent senaryosu) aynı şekilde çalışır.
14
- # Bu function FİRMA/MÜŞTERİ ARAMAZ — get-firms-by-filter ayrı çağrılır.
15
- #
16
- # Pipeline:
17
- # 1) ACTIVE consent → scope.key eşleşmesi + DB seviyesinde pageNumber/pageSize → consentKey,
18
- # userKey, tckn, position (pipeline içi alan adı: tckn)
19
- # 2) person (key=tckn) → fullName
20
- # 3) user → phone/email
21
- #
22
- # Public response users[]:
23
- # { citizenshipNumber, fullName,
24
- # phone: { countryCode, areaCode, number }, email, position, positionSeverity }
25
- # (pipeline içi tckn → response'ta citizenshipNumber; positionSeverity = rol rozetinin
26
- # Chip severity token'ı: observer→danger, entry→warning, firstApprover→info, superUser→success)
27
- ###############################################################################
28
-
29
- ### 1) Başarılı — scope'un aktif yetkilileri (varsayılan pageSize=20)
30
- GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/functions/{{function}}?scopeKey={{scopeKey}}
31
- Accept-Language: tr-TR
32
-
33
- ### 1b) Gerçek veri testi — mevcut seed scope (fullName/phone/email/position dolu döner)
34
- GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/functions/{{function}}?scopeKey=425
35
- Accept-Language: tr-TR
36
-
37
- ### 2) Başarılı — explicit pagination (1. sayfa, 10 kullanıcı)
38
- GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/functions/{{function}}?scopeKey={{scopeKey}}&pageNumber=1&pageSize=10
39
- Accept-Language: tr-TR
40
-
41
- ### 3) Sayfalama — 2. sayfa
42
- GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/functions/{{function}}?scopeKey={{scopeKey}}&pageNumber=2&pageSize=10
43
- Accept-Language: tr-TR
44
-
45
- ### 4) Boş liste — yetkili olmayan / bulunmayan scope
46
- GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/functions/{{function}}?scopeKey=999999999&pageNumber=1&pageSize=20
47
- Accept-Language: tr-TR
48
-
49
- ### 5) Hata — scopeKey eksik
50
- GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/functions/{{function}}?pageNumber=1&pageSize=20
51
- Accept-Language: tr-TR
52
-
53
- ### 6) pageSize üst sınır — 500 istenir, 100 (MaxPageSize) ile sınırlanır
54
- GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/functions/{{function}}?scopeKey={{scopeKey}}&pageSize=500
55
- Accept-Language: tr-TR
56
-
57
- ### 7) searchText — isim araması (kültürsüz, aksan/büyük-küçük duyarsız contains:
58
- ### "yağmur" da "yagmur" da Yağmur'u bulur; update-provision user-selection
59
- ### ekranındaki arama kutusu bu parametreyi besler)
60
- GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/functions/{{function}}?scopeKey=425&searchText=yağmur
61
- Accept-Language: tr-TR
62
-
63
- ### 7a) searchText — aksansız yazım da aynı sonucu döner
64
- GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/functions/{{function}}?scopeKey=425&searchText=yagmur
65
- Accept-Language: tr-TR
66
-
67
- ### 7b) searchText — TCKN öneki ile arama (citizenshipNumber startsWith)
68
- GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/functions/{{function}}?scopeKey=425&searchText=12345
69
- Accept-Language: tr-TR
70
-
71
- ### 7c) searchText — eşleşme yok → users: [] (hasMore filtresiz sayfayı yansıtır)
72
- GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/functions/{{function}}?scopeKey=425&searchText=zzz-yok
73
- Accept-Language: tr-TR
@@ -1,49 +0,0 @@
1
- ### get-last-successful-corporate-logon — the caller's LAST successful CORPORATE login with coordinates
2
- ###
3
- ### Port of amorphie token GET public/SuccessfulLogon/{reference} (TokenController.GetLastSuccessfulLogon).
4
- ### Differences from amorphie:
5
- ### - Identity is read directly from the gateway claim headers instead of a {reference} path parameter
6
- ### (amorphie's APISIX route fills {reference} from $http_act_sub, so the source is the same token claim):
7
- ### act_sub = bare TCKN, sub = scope -> user-login userName "{act_sub}-{sub}"
8
- ### - Corporate only: user-login instances in currentState login-success with scopeGroup corporate-customers.
9
- ### - "Not found" is 204 NoContent, same as amorphie.
10
- ###
11
- ### Coordinates: user-login stores the raw X-Location header as geoLocation at draft and replaces it with the
12
- ### login request's value when that is not "-" ("Latitude: 41.0082, Longitude: 28.9784", same format amorphie parses). Logins made before that change,
13
- ### or without the header, return latitude/longitude null.
14
-
15
- @baseUrl = http://localhost:4251
16
- ### test-idm:
17
- # @baseUrl = https://test-vnext-morph-idm.apps.nonprod.ebt.bank
18
- @apiVersion = 1
19
- @domain = morph-idm
20
- @function = get-last-successful-corporate-logon
21
- ### Local: the corporate user of user-login-comprehensive-coverage.http scenario O
22
- ### (O1 sends X-Location; userName becomes "corporate-user-001-corp-branch-001").
23
- ### Run O1 -> O2 and check O3 reaches login-success before calling this function.
24
- @tckn = corporate-user-001
25
- @scope = corp-branch-001
26
-
27
- ### 1) Corporate caller -> last successful corporate login
28
- ### Direct runtime calls have no gateway, so the claim headers are set by hand here.
29
- GET {{baseUrl}}/api/v{{apiVersion}}/{{domain}}/functions/{{function}}
30
- Accept: application/json
31
- act_sub: {{tckn}}
32
- sub: {{scope}}
33
-
34
- ### Expected 200:
35
- ### {
36
- ### "tckn": "corporate-user-001",
37
- ### "latitude": 41.0082,
38
- ### "longitude": 28.9784,
39
- ### "loginDate": "2026-10-27T10:15:00.000Z"
40
- ### }
41
-
42
- ### 2) Caller with no successful corporate login (or a retail-only user: no sub) -> 204 NoContent, empty body
43
- GET {{baseUrl}}/api/v{{apiVersion}}/{{domain}}/functions/{{function}}
44
- Accept: application/json
45
- act_sub: {{tckn}}
46
-
47
- ### 3) Missing act_sub -> the mapping throws (identity required, no fallback)
48
- GET {{baseUrl}}/api/v{{apiVersion}}/{{domain}}/functions/{{function}}
49
- Accept: application/json
@@ -1,96 +0,0 @@
1
- ### get-last-user-logins — the user's LAST successful and LAST failed login
2
- ###
3
- ### ⚠️ KİMLİK ARTIK QUERY PARAMETRESİ DEĞİL
4
- ### tckn / clientId / scopeKey kaldırıldı. Kimlik, gateway'in access token'dan çıkarıp
5
- ### enjekte ettiği claim header'larından okunuyor:
6
- ### act_sub = user-login userName -> bireysel: düz TCKN, kurumsal: "{tckn}-{scopeKey}"
7
- ### client_id = çağıran istemci
8
- ### (user_reference legacy amorphie token'ına aitti, vNext token'da yok.)
9
- ###
10
- ### Sebep: TCKN'nin URL'de olması onu gateway/proxy erişim loglarına, APM izlerine ve Referer
11
- ### başlığına düz metin olarak düşürüyordu (BDDK bulgusu). Ayrıca geçerli herhangi bir token'la
12
- ### BAŞKASININ verisi sorgulanabiliyordu — kimlik token'dan okununca bu da imkânsız hale geldi.
13
- ### Query'e geri düşüş BİLEREK yok; olsaydı iki açık da yeniden açılırdı.
14
- ###
15
- ### Bu istekler doğrudan runtime'a atılınca act_sub header'ı olmadığı için hata döner.
16
- ### Gateway üzerinden ve geçerli bir Bearer token ile çağrılmalıdır.
17
- ###
18
-
19
- ### Domain-scoped function (scope D): no instance binding, plain /functions/ URL.
20
- ###
21
- ### Success = user-login instance in currentState "login-success" (the flow's only success terminal).
22
- ### Failure = the NEWER of two sources, reported with lastFailedLoginSource:
23
- ### "login-terminal" -> a user-login instance that ended in an explicit failure terminal
24
- ### (retry limit exhausted, invalid scope, ...); attempts still in flight are
25
- ### NOT reported as failures.
26
- ### "password-attempt" -> a user-validation run with passwordFailCountUpdated=true, i.e. a password
27
- ### that was rejected. user-login's user-validation is a WAITING state that lets
28
- ### the user retry in place, so a wrong password the user then corrects leaves
29
- ### the login instance ending in login-success and produces no failure terminal
30
- ### at all. Without this source such attempts were invisible.
31
- ### These rows carry no deviceId/ipAddress/userAgent (user-validation does not
32
- ### store them) and always report validationError "password-invalid".
33
- ### The user is matched on a single attributes.userName eq, rebuilt from the claim headers
34
- ### (act_sub alone for retail, "{act_sub}-{sub}" for corporate). One eq instead of a tckn-OR-userName
35
- ### branch keeps the runtime on the GIN-indexable "Data" @> path (the OR forced a CASE-wrapped
36
- ### predicate that bypassed IX_InstancesData_Data_Gin and took ~14 s per call on test).
37
-
38
- ### Pick the environment by leaving ONE baseUrl uncommented.
39
- ### test-idm is where these functions are deployed and where real login data lives.
40
- @baseUrl = https://test-vnext-morph-idm.apps.nonprod.ebt.bank
41
- ### local idm (vNext CLI domain "idm"):
42
- # @baseUrl = http://localhost:4211
43
- @apiVersion = 1
44
- @domain = morph-idm
45
- @function = get-last-user-logins
46
- ### Test user with real history on test-idm (successful + failed + in-flight attempts)
47
- @tckn = 28070062926
48
-
49
- ### 1) Both sides in one call
50
- GET {{baseUrl}}/api/v{{apiVersion}}/{{domain}}/functions/{{function}}
51
- Accept: application/json
52
-
53
- ### Expected 200:
54
- ### {
55
- ### "success": true,
56
- ### "tckn": "28070062926",
57
- ### "lastSuccessfulLogin": {
58
- ### "key": "login-...", "instanceId": "...", "currentState": "login-success",
59
- ### "createdAt": "...", "modifiedAt": "...",
60
- ### "clientId": "IbWeb", "userName": "28070062926", "tckn": "28070062926",
61
- ### "loginMethod": "...", "deviceId": "...", "installationId": "...",
62
- ### "ipAddress": "...", "userAgent": "...", "scope": "...", "scopeGroup": "..."
63
- ### },
64
- ### "lastFailedLogin": {
65
- ### "key": "login-...", "currentState": "user-validation-failed-end",
66
- ### "validationError": "Invalid password", "loginApprovementStatus": null,
67
- ### "tokenStatus": null, "failCount": "2", ...
68
- ### },
69
- ### "lastFailedLoginSource": "login-terminal"
70
- ### }
71
- ###
72
- ### Example of the password-attempt shape (verified on test-idm, tckn 28070062926):
73
- ### {
74
- ### "lastSuccessfulLogin": { "createdAt": "2026-09-15T12:02:01.108401Z", "currentState": "login-success" },
75
- ### "lastFailedLogin": {
76
- ### "instanceId": "...", "currentState": "user-validated-end",
77
- ### "createdAt": "2026-09-15T12:02:23.0954Z",
78
- ### "clientId": "IbAndroidApp", "userName": "28070062926-20183007",
79
- ### "validationError": "password-invalid", "failCount": "1",
80
- ### "failureSource": "password-attempt",
81
- ### "deviceId": null, "ipAddress": null, "userAgent": null
82
- ### },
83
- ### "lastFailedLoginSource": "password-attempt"
84
- ### }
85
- ### Note the failed row's currentState is user-validated-end: the user got the password wrong, then
86
- ### corrected it in the same user-validation run. createdAt is the moment of the rejected attempt.
87
- ###
88
- ### Either side is null when the user has no such login yet — that is a 200, not an error.
89
-
90
- ### 2) A user with no login history at all -> both null, still 200
91
- GET {{baseUrl}}/api/v{{apiVersion}}/{{domain}}/functions/{{function}}
92
- Accept: application/json
93
-
94
- ### 3) Missing tckn -> the mapping throws (tckn is required)
95
- GET {{baseUrl}}/api/v{{apiVersion}}/{{domain}}/functions/{{function}}
96
- Accept: application/json
@@ -1,78 +0,0 @@
1
- ### get-user-logins — paged login history for one user
2
- ###
3
- ### ⚠️ KİMLİK ARTIK QUERY PARAMETRESİ DEĞİL
4
- ### tckn / clientId / scopeKey kaldırıldı. Kimlik, gateway'in access token'dan çıkarıp
5
- ### enjekte ettiği claim header'larından okunuyor:
6
- ### act_sub = user-login userName -> bireysel: düz TCKN, kurumsal: "{tckn}-{scopeKey}"
7
- ### client_id = çağıran istemci
8
- ### (user_reference legacy amorphie token'ına aitti, vNext token'da yok.)
9
- ###
10
- ### Sebep: TCKN'nin URL'de olması onu gateway/proxy erişim loglarına, APM izlerine ve Referer
11
- ### başlığına düz metin olarak düşürüyordu (BDDK bulgusu). Ayrıca geçerli herhangi bir token'la
12
- ### BAŞKASININ verisi sorgulanabiliyordu — kimlik token'dan okununca bu da imkânsız hale geldi.
13
- ### Query'e geri düşüş BİLEREK yok; olsaydı iki açık da yeniden açılırdı.
14
- ###
15
- ### Bu istekler doğrudan runtime'a atılınca act_sub header'ı olmadığı için hata döner.
16
- ### Gateway üzerinden ve geçerli bir Bearer token ile çağrılmalıdır.
17
- ###
18
-
19
- ### GET /api/v1/morph-idm/functions/get-user-logins
20
- ### ?tckn={tckn} (required)
21
- ### &status=success|failed|all (optional, default all)
22
- ### &pageNumber=1 (optional, default 1)
23
- ### &pageSize=20 (optional, default 20, clamped to 100)
24
- ###
25
- ### Rows are newest-first (task config sort createdAt desc). There is no exact total from the engine:
26
- ### hasMore is true when the page came back full, so page until hasMore is false.
27
-
28
- ### Pick the environment by leaving ONE baseUrl uncommented.
29
- ### test-idm is where these functions are deployed and where real login data lives.
30
- @baseUrl = https://test-vnext-morph-idm.apps.nonprod.ebt.bank
31
- ### local idm (vNext CLI domain "idm"):
32
- # @baseUrl = http://localhost:4211
33
- @apiVersion = 1
34
- @domain = morph-idm
35
- @function = get-user-logins
36
- ### Test user with real history on test-idm (successful + failed + in-flight attempts)
37
- @tckn = 41809307440
38
-
39
- ### 1) Everything (default status=all, page 1, 20 rows)
40
- GET {{baseUrl}}/api/v{{apiVersion}}/{{domain}}/functions/{{function}}
41
- Accept: application/json
42
-
43
- ### Expected 200:
44
- ### {
45
- ### "success": true, "tckn": "12345678900", "status": "all",
46
- ### "pageNumber": 1, "pageSize": 20, "count": 20, "hasMore": true,
47
- ### "logins": [
48
- ### { "key": "login-...", "currentState": "login-success",
49
- ### "isSuccessful": true, "isFailed": false, "createdAt": "...",
50
- ### "clientId": "IbWeb", "deviceId": "...", "ipAddress": "...", ... },
51
- ### { "key": "login-...", "currentState": "user-validation-failed-end",
52
- ### "isSuccessful": false, "isFailed": true, "validationError": "Invalid password", ... }
53
- ### ]
54
- ### }
55
-
56
- ### 2) Only successful logins
57
- GET {{baseUrl}}/api/v{{apiVersion}}/{{domain}}/functions/{{function}}?status=success
58
- Accept: application/json
59
-
60
- ### 3) Only failed logins
61
- GET {{baseUrl}}/api/v{{apiVersion}}/{{domain}}/functions/{{function}}?status=failed
62
- Accept: application/json
63
-
64
- ### 4) Paging — second page, 5 per page
65
- GET {{baseUrl}}/api/v{{apiVersion}}/{{domain}}/functions/{{function}}?status=all&pageNumber=2&pageSize=5
66
- Accept: application/json
67
-
68
- ### 5) pageSize above the cap is clamped to 100 (response echoes the effective pageSize)
69
- GET {{baseUrl}}/api/v{{apiVersion}}/{{domain}}/functions/{{function}}?pageSize=500
70
- Accept: application/json
71
-
72
- ### 6) Unknown status value falls back to "all"
73
- GET {{baseUrl}}/api/v{{apiVersion}}/{{domain}}/functions/{{function}}?status=whatever
74
- Accept: application/json
75
-
76
- ### NOTE on status=all: it returns attempts in ANY state, including ones still in flight
77
- ### (pre-login, waiting for OTP, ...). Each row carries currentState + isSuccessful + isFailed,
78
- ### so an in-flight attempt shows isSuccessful=false AND isFailed=false.
@@ -1,64 +0,0 @@
1
- ### Variables
2
- ### baseUrl, apiVersion, domain → .vscode/settings.json (rest-client.environmentVariables.$shared)
3
- ### baseUrl: http://localhost:4251 apiVersion: v1 domain: morph-idm
4
- @workflow = zeebe-approval
5
- @function = get-starter-instance-id
6
- @instanceId = test-zeebe-approval-{{$timestamp}}
7
-
8
- ###############################################################################
9
- # get-starter-instance-id
10
- ###############################################################################
11
- # Instance-scoped (scope I) function. Returns data.starterInstanceId - the
12
- # caller's own instance id (e.g. the external amorphie instance), supplied at
13
- # instances/start alongside postApprovals - straight off the bound zeebe-approval
14
- # instance.
15
- #
16
- # Prerequisite:
17
- # A zeebe-approval instance must exist with a starterInstanceId in its start
18
- # payload. See morph-idm/Workflows/zeebe-approval/execute/zeebe-approval-new.http
19
- # for a full start scenario; the step below just re-demonstrates the minimal
20
- # start + function call.
21
- #
22
- # URL pattern:
23
- # GET /api/v1/morph-idm/workflows/zeebe-approval/instances/{instanceId}/functions/get-starter-instance-id
24
- ###############################################################################
25
-
26
- ### 1) Start a zeebe-approval instance carrying a starterInstanceId
27
- # @name startZeebe
28
-
29
- POST {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/start
30
- Accept-Language: tr-TR
31
- X-Request-Id: {{$guid}}
32
- Content-Type: application/json
33
-
34
- {
35
- "key": "{{instanceId}}",
36
- "tags": ["zeebe-approval", "get-starter-instance-id-test"],
37
- "attributes": {
38
- "sub": "scope-test-1",
39
- "act_sub": "user-1",
40
- "positionLevel": "superUser",
41
- "postApprovals": {
42
- "amorphieWorkflowName": "wf-dummy",
43
- "amorphieTransitionName": "wf-dummy-start"
44
- },
45
- "starterInstanceId": "amorphie-instance-abc-123"
46
- }
47
- }
48
-
49
- ###
50
- @instanceId = {{startZeebe.response.body.id}}
51
-
52
- ### 2) Get starterInstanceId back off the running instance
53
- GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/{{instanceId}}/functions/{{function}}
54
- Accept-Language: tr-TR
55
- X-Request-Id: {{$guid}}
56
-
57
- ###############################################################################
58
- # Expected response:
59
- # {
60
- # "getStarterInstanceId": {
61
- # "starterInstanceId": "amorphie-instance-abc-123"
62
- # }
63
- # }
64
- ###############################################################################
File without changes