@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,30 +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-organizations
5
-
6
- ###############################################################################
7
- # get-organizations
8
- ###############################################################################
9
- # Aktif (currentState=active) organization workflow instance'larini listeler.
10
- # LOV amaclidir: scope-group semalarindaki organization.key alaninin x-lov'u
11
- # bu function'a baglidir (source: "urn:vnext:func:morph-idm:get-organizations",
12
- # valueField/displayField: "$.data[*].key").
13
- #
14
- # On kosul: en az bir aktif organization instance'i olmali
15
- # (bkz. ../../../../Workflows/organization/execute/create-organization.http,
16
- # ../../../../Workflows/organization/execute/retail-organization.http).
17
- ###############################################################################
18
-
19
- ### 1. Basarili - aktif organizasyonlarin listesi
20
- GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/functions/{{function}}
21
-
22
- ###############################################################################
23
- # Beklenen response:
24
- # {
25
- # "data": [
26
- # { "key": "corporate-banking-org" },
27
- # { "key": "individual-banking-org" }
28
- # ]
29
- # }
30
- ###############################################################################
@@ -1,54 +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-position-levels-by-scope
5
-
6
- ###############################################################################
7
- # get-position-levels-by-scope
8
- ###############################################################################
9
- # scopeKey query parametresiyle verilen scope'un hangi organization'in positionLevels'ini
10
- # kullanacagini cozer: once scope.organization (scope'un kendi organization referansi) var mi
11
- # bakar, varsa onun positionLevels'ini doner (source: "scope"); yoksa scope.group uzerinden
12
- # scope-group'un (zorunlu) organization referansini bulup onun positionLevels'ini doner
13
- # (source: "scope-group").
14
- #
15
- # On kosul: scopeKey ile eslesen aktif bir Scope instance'i, onun group'u (ScopeGroup), ve
16
- # ilgili organization instance'lari olmali (bkz. ../../../../Workflows/scope/execute/scope-corporate.http,
17
- # ../../../../Workflows/scope/execute/scope-individual-1234567890-1234567890.http,
18
- # ../../../../Workflows/scope-group/execute/create-scope-group.http,
19
- # ../../../../Workflows/organization/execute/create-organization.http,
20
- # ../../../../Workflows/organization/execute/retail-organization.http).
21
- ###############################################################################
22
-
23
- ### 1. Basarili - scope'un kendi organization'i var (source: "scope")
24
- GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/functions/{{function}}?scopeKey=acme-corp-scope
25
-
26
- ###############################################################################
27
- # Beklenen response:
28
- # {
29
- # "getPositionLevelsByScope": {
30
- # "data": {
31
- # "found": true,
32
- # "positionLevels": ["clerk", "officer", "manager", "director", "executive"],
33
- # "source": "scope"
34
- # }
35
- # }
36
- # }
37
- ###############################################################################
38
-
39
- ### 2. Basarili - scope'un kendi organization'i yok, scope-group'un organization'ina duser (source: "scope-group")
40
- GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/functions/{{function}}?scopeKey=1234567890-1234567890
41
-
42
- ###############################################################################
43
- # Beklenen response: { "found": true, "positionLevels": [...], "source": "scope-group" }
44
- ###############################################################################
45
-
46
- ### 3. Eslesen aktif scope yok
47
- GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/functions/{{function}}?scopeKey=no-such-scope
48
-
49
- ###############################################################################
50
- # Beklenen response: { "found": false, "positionLevels": [], "source": null }
51
- ###############################################################################
52
-
53
- ### 4. Hata senaryosu - scopeKey query parametresi eksik
54
- GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/functions/{{function}}
@@ -1,91 +0,0 @@
1
- ### logout — revoke every ACTIVE session of one user for one clientId
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/logout?tckn={tckn}&clientId={clientId}[&scopeKey={scopeKey}]
20
- ###
21
- ### scopeKey is OPTIONAL but recommended for CORPORATE users. A session's only identity field is
22
- ### userName: retail holds the bare TCKN, corporate holds "{tckn}-{scopeKey}" (e.g. 28070062926-20183007).
23
- ### With scopeKey the lookup is an exact match; without it the composite is reached with a substring
24
- ### "like" scan that also drags in other users' sessions (a prefix probe returned 19), which are then
25
- ### rejected by the userName re-check. Exact is cheaper and cannot be crowded out of the result page.
26
- ###
27
- ### The function starts the logout flow (sync), which finds the user's active session instances for
28
- ### that clientId and drains them through the session flow's revoke-by-user transition
29
- ### (active -> token-revoked). revoke-by-user is the user-initiated variant; plain revoke is reserved
30
- ### for admin/system cancellation.
31
- ###
32
- ### A user can hold SEVERAL active sessions per client — every token mint starts a new session
33
- ### instance and does not supersede the previous one — so all of them are revoked.
34
-
35
- ### Pick the environment by leaving ONE baseUrl uncommented.
36
- ### test-idm is where these functions are deployed and where real login data lives.
37
- @baseUrl = https://test-vnext-morph-idm.apps.nonprod.ebt.bank
38
- ### local idm (vNext CLI domain "idm"):
39
- # @baseUrl = http://localhost:4211
40
- @apiVersion = 1
41
- @domain = morph-idm
42
- @function = logout
43
- ### Corporate test user on test-idm; session userName is 28070062926-20183007
44
- @tckn = 28070062926
45
- @clientId = IbAndroidApp
46
- @scopeKey = 20183007
47
-
48
- ### 1) Log the user out of this client (retail)
49
- GET {{baseUrl}}/api/v{{apiVersion}}/{{domain}}/functions/{{function}}
50
- Accept: application/json
51
-
52
- ### 1b) Corporate — pass scopeKey so the "{tckn}-{scopeKey}" session is matched exactly
53
- GET {{baseUrl}}/api/v{{apiVersion}}/{{domain}}/functions/{{function}}
54
- Accept: application/json
55
-
56
- ### Expected 200 (at least one session revoked):
57
- ### {
58
- ### "success": true, "tckn": "12345678900", "clientId": "IbWeb",
59
- ### "totalSessionsFound": 2, "revokedSessionCount": 2, "failedSessionCount": 0,
60
- ### "sessions": [
61
- ### { "instanceId": "...", "key": "token-IbWeb-...", "clientId": "IbWeb",
62
- ### "isRevoked": true, "revokeFailed": false },
63
- ### { "instanceId": "...", "key": "token-IbWeb-...", "isRevoked": true, "revokeFailed": false }
64
- ### ]
65
- ### }
66
- ###
67
- ### Expected 404 — nothing to log out:
68
- ### { "success": false, "reason": "no-active-session", "totalSessionsFound": 0, ... }
69
- ###
70
- ### Expected 502 — sessions found but every revoke failed:
71
- ### { "success": false, "reason": "revoke-failed", "revokedSessionCount": 0, ... }
72
- ###
73
- ### Partial failure stays 200 with failedSessionCount > 0.
74
-
75
- ### 2) Idempotency — running it again right away should now be 404
76
- GET {{baseUrl}}/api/v{{apiVersion}}/{{domain}}/functions/{{function}}
77
- Accept: application/json
78
-
79
- ### 3) Missing clientId -> the mapping throws (both tckn and clientId are required)
80
- GET {{baseUrl}}/api/v{{apiVersion}}/{{domain}}/functions/{{function}}
81
- Accept: application/json
82
-
83
- ### --- verification helpers -------------------------------------------------
84
-
85
- ### Inspect a session instance state (should be token-revoked after logout)
86
- @sessionInstanceId = 00000000-0000-0000-0000-000000000000
87
- GET {{baseUrl}}/api/v{{apiVersion}}/{{domain}}/workflows/session/instances/{{sessionInstanceId}}/functions/state
88
-
89
- ### Inspect the logout flow run itself (find-sessions -> revoking* -> completed-end)
90
- @logoutInstanceKey = logout-replace-me
91
- GET {{baseUrl}}/api/v{{apiVersion}}/{{domain}}/workflows/logout/instances/{{logoutInstanceKey}}/functions/data
@@ -1,132 +0,0 @@
1
- ### session-transfer Function — oturum taşıma (App A -> App B) için OAuth2 authorize eşleniği
2
- ### baseUrl, apiVersion, domain come from .vscode/settings.json (rest-client.environmentVariables.$shared)
3
- ### Local runtime example: baseUrl=http://localhost:4251 apiVersion=v1 domain=morph-idm
4
- ###
5
- ### Akış: function, authorize workflow'unu sync başlatır (client/PKCE/redirectUri validasyonları
6
- ### koşar) ve akış waiting-authorize'da durur. Function bu yüzden HER ZAMAN "pending" +
7
- ### instanceId döner. Çağıran taraf authorize transition'ını tetikler; token subprocess
8
- ### instance id'si AUTHORIZATION CODE'dur ve instance data'daki tokenData.subFlowInstanceId'den okunur.
9
- ###
10
- ### Function HTTP redirect YAPAMAZ — pending yanıtındaki instanceId ile:
11
- ### 1. PATCH .../workflows/authorize/instances/{instanceId}/transitions/authorize?sync=true
12
- ### 2. GET .../workflows/authorize/instances/{instanceId}/functions/data → code
13
- ### 3. redirect'i redirectUri + ?code=...&state=... ile client kurar
14
- ###
15
- ### Önkoşullar:
16
- ### 1. scope instance: key=session-transfer (Workflows/scope/execute/scope-sso-session-transfer.http)
17
- ### 2. client instance: key=Trade, redirectUris'inde çağrıdaki redirectUri kayıtlı
18
- ### (Workflows/client/execute/client-Trade.http)
19
- ### 3. userName ile eşleşen user instance (ör. "1234")
20
-
21
- @function = session-transfer
22
-
23
- ### PKCE (RFC 7636 örnek çifti — sadece test için)
24
- @codeVerifier = dBjftJeZ4CVP-mB92K27uhbUJU1p1r_wW1gFWFOEjXk
25
- @codeChallenge = E9Melhoa2OwvFrEMTJguCHaoeK1t8URWbuGJSstw-cM
26
-
27
- ###############################################################################
28
- ### 1. Oturum taşıma isteği — "pending" + instanceId beklenir
29
- ###############################################################################
30
-
31
- # @name sessionTransfer
32
- POST {{baseUrl}}/api/{{apiVersion}}/{{domain}}/functions/{{function}}
33
- Content-Type: application/json
34
- Accept-Language: tr-TR
35
- X-Request-Id: {{$guid}}
36
-
37
- {
38
- "clientId": "Trade",
39
- "redirectUri": "http://localhost:5360/callback",
40
- "userName": "1234",
41
- "codeChallenge": "{{codeChallenge}}",
42
- "codeChallengeMethod": "S256",
43
- "state": "st-{{$timestamp}}",
44
- "nonce": "nonce-{{$timestamp}}"
45
- }
46
-
47
- ### Beklenen:
48
- ### {
49
- ### "status": "pending",
50
- ### "instanceId": "<authorize instance id>",
51
- ### "redirectUri": "http://localhost:5360/callback",
52
- ### "state": "st-...",
53
- ### "message": "Awaiting authorization; ..."
54
- ### }
55
- ### (Yanıt zarfının tam yolunu runtime belirler; instanceId aşağıdaki değişkende
56
- ### farklı bir path'te geliyorsa düzeltin.)
57
-
58
- ###
59
- @instanceId = {{sessionTransfer.response.body.instanceId}}
60
-
61
- ### 2. (Bilgi) authorize instance durumu — "waiting-authorize" beklenir
62
- GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/authorize/instances/{{instanceId}}/functions/state
63
-
64
- ###############################################################################
65
- ### 3. Authorize — manuel geçiş; fetch-scope → request-token koşar,
66
- ### akış authorize-success'te biter
67
- ###############################################################################
68
-
69
- PATCH {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/authorize/instances/{{instanceId}}/transitions/authorize?sync=true
70
- Content-Type: application/json
71
- X-Request-Id: {{$guid}}
72
-
73
- {
74
- "attributes": {}
75
- }
76
-
77
- ### 4. Instance data — code = tokenData.subFlowInstanceId
78
- ### (token subprocess spawn'ı gecikirse bu isteği tekrarlayın)
79
- # @name authorizeData
80
- GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/authorize/instances/{{instanceId}}/functions/data
81
-
82
- ###
83
- @code = {{authorizeData.response.body.tokenData.subFlowInstanceId}}
84
-
85
- ###############################################################################
86
- ### 5. Token redeem — App B (Trade) tarafı: code + codeVerifier ile token alınır
87
- ###############################################################################
88
-
89
- PATCH {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/token/instances/{{code}}/transitions/redeem?sync=true
90
- Content-Type: application/json
91
- X-Request-Id: {{$guid}}
92
-
93
- {
94
- "attributes": {
95
- "codeVerifier": "{{codeVerifier}}"
96
- }
97
- }
98
-
99
- ### 6. Token data — tokenCreation.access_token
100
- GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/token/instances/{{code}}/functions/data
101
-
102
- ###############################################################################
103
- ### 7. Negatif — userName eksik (400 bekleniyor: start mapping reddediyor)
104
- ###############################################################################
105
-
106
- POST {{baseUrl}}/api/{{apiVersion}}/{{domain}}/functions/{{function}}
107
- Content-Type: application/json
108
- X-Request-Id: {{$guid}}
109
-
110
- {
111
- "clientId": "Trade",
112
- "redirectUri": "http://localhost:5360/callback",
113
- "codeChallenge": "{{codeChallenge}}",
114
- "state": "st-negative"
115
- }
116
-
117
- ###############################################################################
118
- ### 8. Negatif — kayıtsız redirectUri (authorize akışı invalid-redirect-uri-end'e
119
- ### gider; pending yanıtındaki instance authorize edilemez, code üretilmez)
120
- ###############################################################################
121
-
122
- POST {{baseUrl}}/api/{{apiVersion}}/{{domain}}/functions/{{function}}
123
- Content-Type: application/json
124
- X-Request-Id: {{$guid}}
125
-
126
- {
127
- "clientId": "Trade",
128
- "redirectUri": "http://evil.example.com/callback",
129
- "userName": "1234",
130
- "codeChallenge": "{{codeChallenge}}",
131
- "state": "st-evil"
132
- }
@@ -1,222 +0,0 @@
1
- ### token-direct — BOARDING grant örneği (urn:ietf:params:oauth:grant-type:boarding)
2
- ### baseUrl, apiVersion, domain come from .vscode/settings.json (rest-client.environmentVariables.$shared)
3
- ### Local runtime example: baseUrl=http://localhost:4251 apiVersion=v1 domain=morph-idm
4
- ###
5
- ### Akış (2 adım):
6
- ### 1. token flow'undan instance BAŞLAT (authorization_code, codeChallenge YOK) → state: waiting-redeem
7
- ### Dönen instance id, boarding kodunun kendisidir (authorize akışında da code = token instance id).
8
- ### 2. token-direct'e grant_type=boarding + code ile POST → function, token instance'ının `redeem`
9
- ### trigger'ını ateşler; redeem body'sindeki grantType instance data'ya merge edilir; redeem-route'ta
10
- ### TrxBoardingRouteRule (grant boarding AND codeChallenge yok) true döner → pkce-validate ve
11
- ### delegation-check ATLANIR → refresh-client-lookup (client instance clientId ile çekilir →
12
- ### clientSnapshot; refresh_token ile aynı state) → boarding-client-found → mint-token → issued.
13
- ### Yanıt: 200 TokenResponse (OAuth wire şekli). client_id bilinmiyorsa → client-validation-failed (bkz. N4).
14
- ###
15
- ### Güvenlik kuralı: kod codeChallenge İLE mint edildiyse boarding grant'i PKCE'yi atlatamaz;
16
- ### code_verifier yoksa 473 döner (bkz. N2).
17
- ###
18
- ### Önkoşullar:
19
- ### 1. client instance: key=IbWeb aktif
20
- ### 2. userName=1234 ile eşleşen aktif user instance
21
- ###
22
- ### Not: Adım 1 gerçek hayatta boarding istemcisi tarafından değil, kodu mint eden akış
23
- ### (authorize / boarding servisi) tarafından yapılır; burada token flow'u doğrudan başlatarak
24
- ### aynı sonucu (PKCE'siz, redeem bekleyen bir kod) simüle ediyoruz.
25
-
26
- @function = token-direct
27
- @tokenWorkflow = token
28
- @clientId = IbWeb
29
- @userName = 1234
30
-
31
- ###############################################################################
32
- ### 1. Token flow'undan instance başlat — boarding kodunu mint eder
33
- ### codeChallenge/codeChallengeMethod BİLİNÇLİ olarak gönderilmez (PKCE'siz kod).
34
- ### Hiçbir auto route ateşlemez (authorization_code start routing'e girmez) → waiting-redeem'de bekler.
35
- ###############################################################################
36
-
37
- # @name boardingStart
38
- POST {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{tokenWorkflow}}/instances/start?sync=false
39
- Content-Type: application/json
40
- X-Request-Id: {{$guid}}
41
-
42
- {
43
- "key": "token-boarding-{{$guid}}",
44
- "tags": ["test", "oauth2", "authorization-code", "boarding"],
45
- "attributes": {
46
- "clientId": "{{clientId}}",
47
- "grantType": "authorization_code",
48
- "userName": "{{userName}}"
49
- }
50
- }
51
-
52
- ###
53
- ### Kod = token instance id
54
- @boardingCode = {{boardingStart.response.body.id}}
55
-
56
- ### 1b. State kontrolü (beklenen: waiting-redeem)
57
- GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{tokenWorkflow}}/instances/{{boardingCode}}/functions/state
58
-
59
- ###############################################################################
60
- ### 2. TOKEN-DIRECT — boarding grant ile kodu redeem et
61
- ### code_verifier GÖNDERİLMEZ. Beklenen: 200 TokenResponse
62
- ###############################################################################
63
-
64
- # @name tokenDirectBoarding
65
- POST {{baseUrl}}/api/{{apiVersion}}/{{domain}}/functions/{{function}}
66
- Content-Type: application/json
67
- Accept-Language: tr-TR
68
- X-Request-Id: {{$guid}}
69
-
70
- {
71
- "grant_type": "urn:ietf:params:oauth:grant-type:boarding",
72
- "code": "{{boardingCode}}",
73
- "client_id": "{{clientId}}"
74
- }
75
-
76
- ### Beklenen (200):
77
- ### {
78
- ### "access_token": "...",
79
- ### "id_token": "...",
80
- ### "refresh_token": "...",
81
- ### "token_type": "Bearer",
82
- ### "expires_in": ...,
83
- ### "refresh_token_expires_in": ...,
84
- ### "scope": "..."
85
- ### }
86
- ### Hata durumları: bilinmeyen/tüketilmiş kod → 470 invalid_grant; PKCE'li kod + verifier yok → 473
87
-
88
- ###
89
- @refreshToken = {{tokenDirectBoarding.response.body.refresh_token}}
90
-
91
- ### 2b. Token instance state (beklenen: issued) — orchestration log'da TrxBoardingRouteRule bypass →
92
- ### StateRefreshClientLookupGetClientCachedMapping → TrxBoardingClientFoundRule görülür, StatePkceValidateCodeVerifierMapping satırı OLMAZ
93
- GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{tokenWorkflow}}/instances/{{boardingCode}}/functions/state
94
-
95
- ### 2c. Token instance data (beklenen: grantType=boarding merge edilmiş, clientLookupStatus=success, clientSnapshot ve tokenCreation dolu)
96
- GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{tokenWorkflow}}/instances/{{boardingCode}}/functions/data
97
-
98
- ###############################################################################
99
- ### 3. (Opsiyonel) Boarding ile alınan refresh_token'ı token-direct üzerinden yenile
100
- ### client_id/client_secret gerekmez: client, JWT'nin client_id claim'inden resolve edilir.
101
- ### Beklenen: 200 TokenResponse
102
- ###############################################################################
103
-
104
- POST {{baseUrl}}/api/{{apiVersion}}/{{domain}}/functions/{{function}}
105
- Content-Type: application/json
106
- X-Request-Id: {{$guid}}
107
-
108
- {
109
- "grant_type": "refresh_token",
110
- "refresh_token": "{{refreshToken}}"
111
- }
112
-
113
- ###############################################################################
114
- ### NEGATİF SENARYOLAR
115
- ###############################################################################
116
-
117
- ### N1. Aynı kodu ikinci kez redeem (replay) → 470 invalid_grant
118
- ### (redeem transition issued state'inde artık kullanılamaz)
119
- POST {{baseUrl}}/api/{{apiVersion}}/{{domain}}/functions/{{function}}
120
- Content-Type: application/json
121
- X-Request-Id: {{$guid}}
122
-
123
- {
124
- "grant_type": "urn:ietf:params:oauth:grant-type:boarding",
125
- "code": "{{boardingCode}}",
126
- "client_id": "{{clientId}}"
127
- }
128
-
129
- ###############################################################################
130
- ### N2. PKCE'li kodu boarding grant ile PKCE'siz redeem etme denemesi → 473
131
- ### TrxBoardingRouteRule codeChallenge gördüğü için false döner; standard-redeem → pkce-validate
132
- ### → code_verifier eksik → pkce-invalid. Boarding grant PKCE'yi atlatmaya yetmez.
133
- ###############################################################################
134
-
135
- # @name boardingPkceStart
136
- POST {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{tokenWorkflow}}/instances/start?sync=false
137
- Content-Type: application/json
138
- X-Request-Id: {{$guid}}
139
-
140
- {
141
- "key": "token-boarding-pkce-{{$guid}}",
142
- "tags": ["test", "oauth2", "authorization-code", "boarding", "negative"],
143
- "attributes": {
144
- "clientId": "{{clientId}}",
145
- "grantType": "authorization_code",
146
- "userName": "{{userName}}",
147
- "codeChallenge": "E9Melhoa2OwvFrEMTJguCHaoeK1t8URWbuGJSstw-cM",
148
- "codeChallengeMethod": "S256"
149
- }
150
- }
151
-
152
- ###
153
- @boardingPkceCode = {{boardingPkceStart.response.body.id}}
154
-
155
- ### N2b. Boarding grant, code_verifier YOK → 473 beklenir
156
- POST {{baseUrl}}/api/{{apiVersion}}/{{domain}}/functions/{{function}}
157
- Content-Type: application/json
158
- X-Request-Id: {{$guid}}
159
-
160
- {
161
- "grant_type": "urn:ietf:params:oauth:grant-type:boarding",
162
- "code": "{{boardingPkceCode}}",
163
- "client_id": "{{clientId}}"
164
- }
165
-
166
- ### N2c. State (beklenen: pkce-invalid)
167
- GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{tokenWorkflow}}/instances/{{boardingPkceCode}}/functions/state
168
-
169
- ###############################################################################
170
- ### N3. Bilinmeyen kod ile boarding grant → 470 invalid_grant (grant kabul edilir, kod reddedilir)
171
- ###############################################################################
172
-
173
- POST {{baseUrl}}/api/{{apiVersion}}/{{domain}}/functions/{{function}}
174
- Content-Type: application/json
175
- X-Request-Id: {{$guid}}
176
-
177
- {
178
- "grant_type": "urn:ietf:params:oauth:grant-type:boarding",
179
- "code": "00000000-0000-0000-0000-000000000000",
180
- "client_id": "{{clientId}}"
181
- }
182
-
183
- ### Beklenen: 470 { "error": "invalid_grant", "message": "Invalid Authorization Code" }
184
-
185
- ###############################################################################
186
- ### N4. Bilinmeyen client_id ile PKCE'siz boarding redeem → client-validation-failed
187
- ### TrxBoardingRouteRule bypass çalışır ama refresh-client-lookup client instance'ı bulamaz
188
- ### (clientLookupStatus=error, clientValidationStatus=error, refreshTokenValidationError=client_not_found)
189
- ### → refresh-client-not-found → client-validation-failed. token-direct: tokenCreation yok → hata yanıtı.
190
- ###############################################################################
191
-
192
- # @name boardingUnknownClientStart
193
- POST {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{tokenWorkflow}}/instances/start?sync=false
194
- Content-Type: application/json
195
- X-Request-Id: {{$guid}}
196
-
197
- {
198
- "key": "token-boarding-unknown-client-{{$guid}}",
199
- "tags": ["test", "oauth2", "authorization-code", "boarding", "negative"],
200
- "attributes": {
201
- "clientId": "UnknownClient-Test",
202
- "grantType": "authorization_code",
203
- "userName": "{{userName}}"
204
- }
205
- }
206
-
207
- ###
208
- @boardingUnknownClientCode = {{boardingUnknownClientStart.response.body.id}}
209
-
210
- ### N4b. Boarding grant ile redeem → token-direct hata yanıtı beklenir
211
- POST {{baseUrl}}/api/{{apiVersion}}/{{domain}}/functions/{{function}}
212
- Content-Type: application/json
213
- X-Request-Id: {{$guid}}
214
-
215
- {
216
- "grant_type": "urn:ietf:params:oauth:grant-type:boarding",
217
- "code": "{{boardingUnknownClientCode}}",
218
- "client_id": "UnknownClient-Test"
219
- }
220
-
221
- ### N4c. State (beklenen: client-validation-failed)
222
- GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{tokenWorkflow}}/instances/{{boardingUnknownClientCode}}/functions/state
@@ -1,121 +0,0 @@
1
- ### token-direct Function — pure-vNext OAuth Token endpoint (scope D, POST, JSON only)
2
- ### baseUrl, apiVersion, domain come from .vscode/settings.json (rest-client.environmentVariables.$shared)
3
- ### Local runtime example: baseUrl=http://localhost:4251 apiVersion=v1 domain=morph-idm
4
- ###
5
- ### Akış: function, snake_case OAuth alanlarını camelCase'e çevirip token-direct flow'unu
6
- ### sync StartTask ile başlatır. rawResponse:true olduğu için yanıt doğrudan OAuth wire
7
- ### şeklidir (200 TokenResponse / 470 / 473 / 401 / 400) — instanceId zarfı dönmez.
8
- ###
9
- ### Önkoşullar:
10
- ### 1. client instance: key=IbWeb aktif
11
- ### 2. userName=16160400222 ile eşleşen aktif user instance (password: 112233)
12
- ###
13
- ### NOT: password (ve client_credentials) grant'i token flow'da client-credentials
14
- ### subflow'undan geçer (client authentication) — client_secret ZORUNLU, yoksa 400 döner.
15
- ### refresh_token grant'inde ise client_id/client_secret ZORUNLU DEĞİLDİR: client, refresh
16
- ### JWT'nin client_id claim'inden resolve edilir (get-client lookup, secret doğrulaması yok;
17
- ### güvenlik verify-refresh-signature'daki RS256 imza doğrulamasıdır).
18
- ### urn:ietf:params:oauth:grant-type:boarding grant'i authorization_code gibi code ile redeem edilir
19
- ### (code_verifier'sız); codeChallenge'sız mint edilmiş kodda token flow redeem-route PKCE'yi atlar.
20
-
21
- @function = token-direct
22
- @clientSecret = ea9ea450-b224-431d-8374-1fde829a599c
23
-
24
- ###############################################################################
25
- ### 1. password grant — 200 TokenResponse beklenir
26
- ###############################################################################
27
-
28
- # @name tokenDirectPassword
29
- POST {{baseUrl}}/api/{{apiVersion}}/{{domain}}/functions/{{function}}
30
- Content-Type: application/json
31
- Accept-Language: tr-TR
32
- X-Request-Id: {{$guid}}
33
-
34
- {
35
- "grantType": "password",
36
- "username": "16160400222",
37
- "password": "112233",
38
- "client_id": "IbWeb",
39
- "client_secret": "{{clientSecret}}"
40
- }
41
-
42
- ### Beklenen (200 — amorphie.token ile aynı 7 alanlık wire şekli):
43
- ### {
44
- ### "access_token": "...",
45
- ### "id_token": "...",
46
- ### "refresh_token": "...",
47
- ### "token_type": "Bearer",
48
- ### "expires_in": ...,
49
- ### "refresh_token_expires_in": ...,
50
- ### "scope": "..."
51
- ### }
52
- ### Token flow başarısız olursa: 400 { "error": "invalid_grant", "message": "..." }
53
-
54
- ###############################################################################
55
- ### 2. refresh_token grant — 1. adımın refresh_token'ı ile yeni token alınır
56
- ### client_id/client_secret gönderilmez: client, JWT'nin client_id claim'inden bulunur
57
- ###############################################################################
58
-
59
- POST {{baseUrl}}/api/{{apiVersion}}/{{domain}}/functions/{{function}}
60
- Content-Type: application/json
61
- X-Request-Id: {{$guid}}
62
-
63
- {
64
- "grant_type": "refresh_token",
65
- "refresh_token": "{{tokenDirectPassword.response.body.refresh_token}}"
66
- }
67
-
68
- ### Beklenen: 200 TokenResponse; geçersiz/expired refresh token'da
69
- ### 401 { "error": "invalid_token", "error_description": "..." }
70
-
71
- ###############################################################################
72
- ### 3. Negatif — yanlış şifre (400 invalid_grant beklenir)
73
- ###############################################################################
74
-
75
- POST {{baseUrl}}/api/{{apiVersion}}/{{domain}}/functions/{{function}}
76
- Content-Type: application/json
77
- X-Request-Id: {{$guid}}
78
-
79
- {
80
- "grant_type": "password",
81
- "username": "16160400222",
82
- "password": "000000",
83
- "client_id": "IbWeb",
84
- "client_secret": "{{clientSecret}}"
85
- }
86
-
87
- ###############################################################################
88
- ### 4. Negatif — bilinmeyen authorization code (470 beklenir)
89
- ###############################################################################
90
-
91
- POST {{baseUrl}}/api/{{apiVersion}}/{{domain}}/functions/{{function}}
92
- Content-Type: application/json
93
- X-Request-Id: {{$guid}}
94
-
95
- {
96
- "grant_type": "authorization_code",
97
- "code": "00000000-0000-0000-0000-000000000000",
98
- "code_verifier": "dBjftJeZ4CVP-mB92K27uhbUJU1p1r_wW1gFWFOEjXk",
99
- "client_id": "IbWeb"
100
- }
101
-
102
- ### Beklenen: 470 { "error": "invalid_grant", "message": "Invalid Authorization Code" }
103
-
104
- ###############################################################################
105
- ### 5. Negatif — boarding grant ile bilinmeyen kod (470 beklenir; grant kabul edilir, kod reddedilir)
106
- ### Geçerli, codeChallenge'sız bir kodla aynı istek 200 TokenResponse döner
107
- ### (bkz. Workflows/sso/token-direct/execute/token-direct.http 6b).
108
- ### Uçtan uca pozitif senaryo (token instance başlat → boarding redeem): token-direct-boarding.http
109
- ###############################################################################
110
-
111
- POST {{baseUrl}}/api/{{apiVersion}}/{{domain}}/functions/{{function}}
112
- Content-Type: application/json
113
- X-Request-Id: {{$guid}}
114
-
115
- {
116
- "grant_type": "urn:ietf:params:oauth:grant-type:boarding",
117
- "code": "00000000-0000-0000-0000-000000000000",
118
- "client_id": "IbWeb"
119
- }
120
-
121
- ### Beklenen: 470 { "error": "invalid_grant", "message": "Invalid Authorization Code" }