@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,676 +0,0 @@
1
- ### token workflow — OAuth2 front door (grant_type routing + validation)
2
- ### token routes by grantType, validates, then calls session 1.0.0:
3
- ### - new issuance -> sync StartTask (mint-token -> issued)
4
- ### - refresh_token -> validate-client (client auth) -> verify-refresh-signature (RS256 verify)
5
- ### -> sync DirectTriggerTask (refresh-token -> refresh-done)
6
- ### Phase 1: tested standalone.
7
-
8
- @apiVersion = v1
9
- @domain = morph-idm
10
- @workflow = token
11
-
12
- #############################################
13
- # 1) client_credentials (M2M)
14
- # waiting-redeem -> cc-route -> validate-client -> client-valid-cc -> mint-token -> issued
15
- # Claims: sub = deviceId when the request carries one (device-bound M2M; data.sub mirrors it),
16
- # else sub = "" (pure M2M). act_sub = clientId in both cases; customer_no is never derived
17
- # from a device id. Over token-direct the deviceId may also come from the X-Device-Id header.
18
- #############################################
19
- # @name ccStart
20
- POST {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/start?sync=true
21
- Content-Type: application/json
22
-
23
- {
24
- "key": "token-cc-{{$guid}}",
25
- "tags": ["test", "oauth2", "client-credentials"],
26
- "attributes": {
27
- "clientId": "IbWeb",
28
- "clientSecret": "3ada10ef-c396-471f-992e-ba5a9160a2be",
29
- "grantType": "client_credentials",
30
- "deviceId": "4bc07f56-2d8f-4174-b3f0-ebd9f618c29c",
31
- "installationId": "9151843f-b298-491c-b5fd-880d294707df"
32
- }
33
- }
34
-
35
- ### Expected access_token payload: "sub": "4bc07f56-2d8f-4174-b3f0-ebd9f618c29c", "act_sub": "IbWeb", no customer_no.
36
- ### Without deviceId/installationId the same request mints "sub": "" (unchanged M2M behaviour).
37
-
38
- ###
39
-
40
- @tokenInstanceId = {{ccStart.response.body.id}}
41
-
42
- ### State after start (expect: issued, with tokenCreation in data)
43
- GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/{{tokenInstanceId}}/functions/state
44
-
45
- ### Instance data (expect tokenCreation + tokenInstanceId = the session 1.0.0 instance id)
46
- GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/{{tokenInstanceId}}/functions/data
47
-
48
- ### sync=true response shapes (TokenOutputHandler) — the body is ALWAYS one of these, never raw instance data:
49
- ### issued -> tokenCreation payload only: { access_token, token_type, expires_in, ... }
50
- ### client-validation-failed etc. -> { "status": "error", "error": "client validation failed", "errorCode": null }
51
- ### not settled yet (runtime returned before mint-token; subflow completion processed via inbox worker)
52
- ### -> { "status": "pending", "state": "<current state>", "instanceId": "...", "key": "..." }
53
- ### caller re-polls functions/state + functions/data by instanceId/key.
54
-
55
- #############################################
56
- # 1b) client_credentials with a WRONG secret
57
- # validate-client subflow (client-credentials) ends in validation-failed -> parent client-validation-failed.
58
- # clientSecret is compared against the client's `secret` field (NOT rsaCreation.password).
59
- #############################################
60
- # @name ccWrongSecret
61
- POST {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/start?sync=true
62
- Content-Type: application/json
63
-
64
- {
65
- "key": "token-cc-badsecret-{{$guid}}",
66
- "tags": ["test", "oauth2", "client-credentials", "negative"],
67
- "attributes": {
68
- "clientId": "IbWeb",
69
- "clientSecret": "wrong-secret",
70
- "grantType": "client_credentials"
71
- }
72
- }
73
-
74
- ### expect: { "status": "error", "error": "client validation failed" } — no access_token, no clientSnapshot/privateKey in the body.
75
- ### data.clientValidationState = "validation-failed", data.clientValidationStatus = "error".
76
-
77
-
78
- #############################################
79
- # 2) password (resource owner, individual)
80
- # waiting-redeem -> password-route -> validate-client -> client-valid-password
81
- # -> password-grant (SUBFLOW token-password-grant: user-validation -> scope-fetch
82
- # -> scope-group-fetch -> consent-selection) -> password-granted -> mint-token -> issued
83
- # scope-fetch keys the scope by userName (individual scope key == user key), consent-selection
84
- # looks for an ACTIVE consent (user + client + scope) WITHOUT auto-consent.
85
- # Any subflow failure ends the token instance in the single final state password-grant-failed;
86
- # data.passwordGrantState carries the subflow's terminal state (user-validation-failed /
87
- # scope-fetch-failed / scope-group-fetch-failed / consent-selection-failed).
88
- # Subflow standalone tests: ../token-password-grant/execute/token-password-grant.http
89
- # Prerequisites: scope "1234" (retail-customers group) + consent "1234-IbWeb-1234" active.
90
- # NOTE: individual password grant must NOT send "scope" — userName + scope together
91
- # is treated as CORPORATE (composite user key lookup, see section 2b).
92
- #############################################
93
- # @name pwdStart
94
- POST {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/start?sync=false
95
- Content-Type: application/json
96
-
97
- {
98
- "key": "token-pwd-{{$guid}}",
99
- "tags": ["test", "oauth2", "password"],
100
- "attributes": {
101
- "clientId": "IbWeb",
102
- "clientSecret": "ea9ea450-b224-431d-8374-1fde829a599c",
103
- "grantType": "password",
104
- "userName": "1234",
105
- "userPassword": "123456"
106
- }
107
- }
108
-
109
- ###
110
-
111
- @tokenInstanceId1 = {{pwdStart.response.body.id}}
112
-
113
- ### State after start (expect: issued, with tokenCreation in data)
114
- GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/{{tokenInstanceId1}}/functions/state
115
-
116
- ### Instance data (expect tokenCreation + tokenInstanceId = the session 1.0.0 instance id)
117
- GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/{{tokenInstanceId1}}/functions/data
118
-
119
-
120
- #############################################
121
- # 2a) password + client-generated jti
122
- # Any grant may send "jti": StateMintTokenCallSessionStartMapping forwards it to the session as
123
- # assertionJti -> it becomes the session StartTask KEY and the access token jti (TokenCreateJwtMapping
124
- # sends it to adm-api as jti). Replaying the same jti does not mint again: the active session instance
125
- # is returned (start key idempotency), so tokenInstanceId == {{clientJti}} on both calls.
126
- #############################################
127
- @clientJti = {{$guid}}
128
-
129
- # @name pwdJtiStart
130
- POST {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/start?sync=false
131
- Content-Type: application/json
132
-
133
- {
134
- "key": "token-pwd-jti-{{$guid}}",
135
- "tags": ["test", "oauth2", "password", "jti"],
136
- "attributes": {
137
- "clientId": "IbWeb",
138
- "clientSecret": "ea9ea450-b224-431d-8374-1fde829a599c",
139
- "grantType": "password",
140
- "userName": "1234",
141
- "userPassword": "123456",
142
- "jti": "{{clientJti}}"
143
- }
144
- }
145
-
146
- ###
147
-
148
- @tokenInstanceIdJti = {{pwdJtiStart.response.body.id}}
149
-
150
- ### State after start (expect: issued)
151
- GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/{{tokenInstanceIdJti}}/functions/state
152
-
153
- ### Instance data (expect tokenCreation.jti == {{clientJti}} and tokenInstanceId == the session keyed by {{clientJti}})
154
- GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/{{tokenInstanceIdJti}}/functions/data
155
-
156
- ### The session instance is addressable by the jti itself (key == jti), expect state active
157
- GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/session/instances/{{clientJti}}/functions/state
158
-
159
-
160
- #############################################
161
- # 2b) password (resource owner, CORPORATE)
162
- # userName + scope (firm customer no) together => corporate login:
163
- # user-validation looks the user up by composite key "{userName}-{scope}"
164
- # (UserGetMapping.csx corporate-customers branch) and user-password by the same key.
165
- # The composite key stays inside user-validation; the token instance keeps the plain TCKN.
166
- # scope-fetch keys the scope by "20183007" (firm customer no), scope-group-fetch by its group,
167
- # consent-selection searches user.key = "19111929766-20183007" + client + scope.key = "20183007".
168
- # Expected instance data after issued: userName = "19111929766", scope = "20183007",
169
- # scopeSnapshot, scopeGroupSnapshot (key corporate-customers), selectedConsentSnapshot.
170
- # Expected JWT claims: sub = 20183007, act_sub = 19111929766, customer_no = 20183007, acr = c.
171
- # Identity scalars are resolved ONCE at mint-token (StateMintTokenCallSessionStartMapping) and passed to the
172
- # session start body: sub = 20183007 (scope snapshot reference, else raw scope), actSub = 19111929766, acr = c,
173
- # userKey = 19111929766 -> session profile-lookup calls Asgard simple-profile with the plain TCKN (never the
174
- # composite "{tckn}-{scope}"). The same mapping flattens the rest of the mint context (mintGrantType, isOnefaSession,
175
- # scope, position, consentSnapshot, refreshTokenPolicy, tokenLifeTime*, personKey) and drops the raw snapshots; the
176
- # refresh trigger sends { refreshToken, mintGrantType = refresh_token }. Session's TokenCreateJwtMapping forwards all of it.
177
- # Prerequisites: user + user-password instances seeded with key "19111929766-20183007",
178
- # scope "20183007" (corporate-customers group), consent for user "19111929766-20183007" + IbWeb,
179
- # IbWeb client allowedGrants includes "password".
180
- #############################################
181
- # @name pwdCorpStart
182
- POST {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/start?sync=false
183
- Content-Type: application/json
184
-
185
- {
186
- "key": "token-pwd-corp-{{$guid}}",
187
- "tags": ["test", "oauth2", "password", "corporate"],
188
- "attributes": {
189
- "clientId": "IbWeb",
190
- "clientSecret": "ea9ea450-b224-431d-8374-1fde829a599c",
191
- "grantType": "password",
192
- "userName": "19111929766",
193
- "userPassword": "112233",
194
- "scope": "20183007"
195
- }
196
- }
197
-
198
- ###
199
-
200
- @tokenInstanceIdCorp = {{pwdCorpStart.response.body.id}}
201
-
202
- ### State after start (expect: issued, with tokenCreation in data)
203
- GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/{{tokenInstanceIdCorp}}/functions/state
204
-
205
- ### Instance data (expect userName = plain TCKN, scope = firm customer no, tokenCreation)
206
- GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/{{tokenInstanceIdCorp}}/functions/data
207
-
208
-
209
- #############################################
210
- # 2c) password WITHOUT consent -> password-grant-failed (passwordGrantState = consent-selection-failed)
211
- # A valid user/password whose user has NO active consent for the client. Unlike user-login,
212
- # the password route never auto-creates a consent (allowAutoConsent=false is sent to
213
- # consent-selection), so the subflow ends in consent-selection-failed, the token instance in
214
- # password-grant-failed (passwordGrantState = consent-selection-failed) and the sync output is
215
- # { status: "error", error: "consent not found" }.
216
- # Prerequisites: user + user-password "5678" seeded, scope "5678" published, NO consent for 5678+IbWeb.
217
- #############################################
218
- # @name pwdNoConsentStart
219
- POST {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/start?sync=false
220
- Content-Type: application/json
221
-
222
- {
223
- "key": "token-pwd-noconsent-{{$guid}}",
224
- "tags": ["test", "oauth2", "password", "no-consent"],
225
- "attributes": {
226
- "clientId": "IbWeb",
227
- "clientSecret": "ea9ea450-b224-431d-8374-1fde829a599c",
228
- "grantType": "password",
229
- "userName": "5678",
230
- "userPassword": "123456"
231
- }
232
- }
233
-
234
- ###
235
-
236
- @tokenInstanceIdNoConsent = {{pwdNoConsentStart.response.body.id}}
237
-
238
- ### State after start (expect: password-grant-failed)
239
- GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/{{tokenInstanceIdNoConsent}}/functions/state
240
-
241
- ### Instance data (expect passwordGrantState = "consent-selection-failed", consentSelectionStatus = "error", no tokenCreation)
242
- GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/{{tokenInstanceIdNoConsent}}/functions/data
243
-
244
-
245
- #############################################
246
- # 3) authorization_code (PKCE redeem)
247
- # waiting-redeem (no auto route fires) -> manual `redeem` -> redeem-route (standard-redeem)
248
- # -> pkce-validate -> delegation-check -> mint-token -> issued
249
- #############################################
250
- # @name acStart
251
- POST {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/start?sync=false
252
- Content-Type: application/json
253
-
254
- {
255
- "key": "token-ac-{{$guid}}",
256
- "tags": ["test", "oauth2", "authorization-code"],
257
- "attributes": {
258
- "clientId": "IbWeb",
259
- "grantType": "authorization_code",
260
- "codeChallenge": "E9Melhoa2OwvFrEMTJguCHaoeK1t8URWbuGJSstw-cM",
261
- "codeChallengeMethod": "S256",
262
- "scope": "openid retail-customer"
263
- }
264
- }
265
-
266
- ###
267
-
268
- @tokenInstanceId2 = {{acStart.response.body.id}}
269
-
270
-
271
- ### State after start (expect: issued, with tokenCreation in data)
272
- GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/{{tokenInstanceId2}}/functions/state
273
-
274
- ### Redeem (exchange the authorization code; supply the PKCE code_verifier)
275
- # @name redeem
276
- PATCH {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/{{tokenInstanceId2}}/transitions/redeem?sync=true
277
- Content-Type: application/json
278
-
279
- {
280
- "attributes": {
281
- "codeVerifier": "dBjftJeZ4CVP-mB92K27uhbUJU1p1r_wW1gFWFOEjXk"
282
- }
283
- }
284
-
285
- ###
286
-
287
- @refreshToken = {{redeem.response.body.refresh_token}}
288
-
289
- #############################################
290
- # 3b) authorization_code, sourceFlow=authorize, NO codeChallenge (oturum taşıma, PKCE'siz)
291
- # waiting-redeem -> manual `redeem` (no codeVerifier) -> redeem-route
292
- # -> session-transfer-route (TrxSessionTransferRouteRule) -> mint-token -> issued
293
- # pkce-validate and delegation-check are NOT visited.
294
- # (Real chain: pre-login -> authorize -> token; this mimics authorize's token start body.)
295
- #############################################
296
- # @name stStart
297
- POST {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/start?sync=false
298
- Content-Type: application/json
299
-
300
- {
301
- "key": "token-st-{{$guid}}",
302
- "tags": ["test", "oauth2", "authorization-code", "session-transfer"],
303
- "attributes": {
304
- "clientId": "IbWeb",
305
- "grantType": "authorization_code",
306
- "userName": "1234",
307
- "scope": "1234",
308
- "sourceFlow": "authorize"
309
- }
310
- }
311
-
312
- ###
313
-
314
- @tokenInstanceId3 = {{stStart.response.body.id}}
315
-
316
- ### State after start (expect: waiting-redeem)
317
- GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/{{tokenInstanceId3}}/functions/state
318
-
319
- ### Redeem WITHOUT codeVerifier (expect 200 + token; state -> issued)
320
- # @name stRedeem
321
- PATCH {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/{{tokenInstanceId3}}/transitions/redeem?sync=true
322
- Content-Type: application/json
323
-
324
- {
325
- "attributes": {}
326
- }
327
-
328
- ### State (expect: issued) — orchestration log shows TrxSessionTransferRouteRule bypass, no StatePkceValidateCodeVerifierMapping line
329
- GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/{{tokenInstanceId3}}/functions/state
330
-
331
- #############################################
332
- # 3c) authorization_code, sourceFlow=authorize, WITH codeChallenge (client started PKCE)
333
- # Bypass must NOT fire: redeem-route -> standard-redeem -> pkce-validate.
334
- # Redeem without codeVerifier -> pkce-invalid (regression guard for the conditional bypass).
335
- #############################################
336
- # @name stPkceStart
337
- POST {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/start?sync=false
338
- Content-Type: application/json
339
-
340
- {
341
- "key": "token-st-pkce-{{$guid}}",
342
- "tags": ["test", "oauth2", "authorization-code", "session-transfer", "negative"],
343
- "attributes": {
344
- "clientId": "IbWeb",
345
- "grantType": "authorization_code",
346
- "userName": "1234",
347
- "scope": "1234",
348
- "sourceFlow": "authorize",
349
- "codeChallenge": "E9Melhoa2OwvFrEMTJguCHaoeK1t8URWbuGJSstw-cM",
350
- "codeChallengeMethod": "S256"
351
- }
352
- }
353
-
354
- ###
355
-
356
- @tokenInstanceId4 = {{stPkceStart.response.body.id}}
357
-
358
- ### Redeem WITHOUT codeVerifier (expect failure; state -> pkce-invalid)
359
- PATCH {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/{{tokenInstanceId4}}/transitions/redeem?sync=true
360
- Content-Type: application/json
361
-
362
- {
363
- "attributes": {}
364
- }
365
-
366
- ### State (expect: pkce-invalid)
367
- GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/{{tokenInstanceId4}}/functions/state
368
-
369
- #############################################
370
- # 3d) boarding grant redeem (urn:ietf:params:oauth:grant-type:boarding), NO codeChallenge
371
- # The code is minted like any authorization_code (here: direct token start, no PKCE);
372
- # the REDEEM declares the boarding grant - exactly what token-direct's redeem trigger sends.
373
- # waiting-redeem -> manual `redeem` { grantType: boarding } -> redeem-route
374
- # -> boarding-route (TrxBoardingRouteRule) -> refresh-client-lookup (StateRefreshClientLookupGetClientCachedMapping:
375
- # client fetched by clientId -> clientSnapshot) -> boarding-client-found (TrxBoardingClientFoundRule)
376
- # -> mint-token -> issued
377
- # pkce-validate and delegation-check are NOT visited. Unknown clientId -> client-validation-failed.
378
- #############################################
379
- # @name boardingStart
380
- POST {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/start?sync=false
381
- Content-Type: application/json
382
-
383
- {
384
- "key": "token-boarding-{{$guid}}",
385
- "tags": ["test", "oauth2", "authorization-code", "boarding"],
386
- "attributes": {
387
- "clientId": "IbWeb",
388
- "grantType": "authorization_code",
389
- "userName": "1234"
390
- }
391
- }
392
-
393
- ###
394
-
395
- @tokenInstanceId5 = {{boardingStart.response.body.id}}
396
-
397
- ### State after start (expect: waiting-redeem)
398
- GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/{{tokenInstanceId5}}/functions/state
399
-
400
- ### Redeem declaring the boarding grant, no codeVerifier (expect 200 + token; state -> issued)
401
- # @name boardingRedeem
402
- PATCH {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/{{tokenInstanceId5}}/transitions/redeem?sync=true
403
- Content-Type: application/json
404
-
405
- {
406
- "attributes": {
407
- "grantType": "urn:ietf:params:oauth:grant-type:boarding"
408
- }
409
- }
410
-
411
- ### State (expect: issued) — orchestration log shows TrxBoardingRouteRule bypass -> StateRefreshClientLookupGetClientCachedMapping -> TrxBoardingClientFoundRule, no StatePkceValidateCodeVerifierMapping line
412
- ### Data check: clientLookupStatus=success, clientSnapshot populated, tokenCreation populated
413
- GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/{{tokenInstanceId5}}/functions/state
414
-
415
- #############################################
416
- # 3e) boarding grant redeem of a code minted WITH codeChallenge (client started PKCE)
417
- # Bypass must NOT fire: a PKCE-protected code cannot be redeemed PKCE-free just by
418
- # declaring grant_type=boarding. redeem-route -> standard-redeem -> pkce-validate.
419
- # Redeem without codeVerifier -> pkce-invalid (security guard of TrxBoardingRouteRule).
420
- #############################################
421
- # @name boardingPkceStart
422
- POST {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/start?sync=false
423
- Content-Type: application/json
424
-
425
- {
426
- "key": "token-boarding-pkce-{{$guid}}",
427
- "tags": ["test", "oauth2", "authorization-code", "boarding", "negative"],
428
- "attributes": {
429
- "clientId": "IbWeb",
430
- "grantType": "authorization_code",
431
- "userName": "1234",
432
- "codeChallenge": "E9Melhoa2OwvFrEMTJguCHaoeK1t8URWbuGJSstw-cM",
433
- "codeChallengeMethod": "S256"
434
- }
435
- }
436
-
437
- ###
438
-
439
- @tokenInstanceId6 = {{boardingPkceStart.response.body.id}}
440
-
441
- ### Redeem declaring the boarding grant WITHOUT codeVerifier (expect failure; state -> pkce-invalid)
442
- PATCH {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/{{tokenInstanceId6}}/transitions/redeem?sync=true
443
- Content-Type: application/json
444
-
445
- {
446
- "attributes": {
447
- "grantType": "urn:ietf:params:oauth:grant-type:boarding"
448
- }
449
- }
450
-
451
- ### State (expect: pkce-invalid)
452
- GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/{{tokenInstanceId6}}/functions/state
453
-
454
- #############################################
455
- # 4) refresh_token
456
- # waiting-redeem -> refresh-route -> refresh-client-lookup -> refresh-client-found
457
- # -> verify-refresh-signature -> refresh-token-valid
458
- # -> refresh-token (decode refresh JWT -> sid -> DirectTrigger session/{sid}/refresh)
459
- # -> refresh-done
460
- # clientId/clientSecret are NOT required: the client is resolved from the refresh JWT's client_id
461
- # claim (get-client lookup only, no client authentication).
462
- # refreshToken JWT's "sid" claim must equal an existing session 1.0.0 instance id (NOT jti — jti is
463
- # per-token and differs between the access token and its paired refresh token).
464
- #############################################
465
- # @name refreshStart
466
- POST {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/start?sync=true
467
- Content-Type: application/json
468
-
469
- {
470
- "key": "token-refresh-{{$guid}}",
471
- "tags": ["test", "oauth2", "refresh-token"],
472
- "attributes": {
473
- "grantType": "refresh_token",
474
- "refreshToken": "{{refreshToken}}"
475
- }
476
- }
477
-
478
- ###
479
-
480
- @tokenInstanceId3 = {{refreshStart.response.body.id}}
481
-
482
- ### State (expect: refresh-done, with refreshResponse holding the rotated token)
483
- GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/{{tokenInstanceId3}}/functions/data
484
-
485
-
486
- #############################################
487
- # 5) onefa (1FA — legacy BurganOneFa / certificate-assertion parity)
488
- # waiting-redeem -> onefa-route -> onefa-extract-assertion (jti/sub/device_id/installation_id/iss)
489
- # -> onefa-shield-verify (shield-verify-signature subflow, cihaz sertifikası ile JWS imza doğrulama)
490
- # -> onefa-context-check (client var + onefa grant izinli; user var + active)
491
- # -> onefa-valid -> mint-token -> issued
492
- # Failure -> onefa-invalid final state; onefaError/onefaErrorCode legacy kodlarını taşır
493
- # (473 assertion empty/shield reject, 471 jti empty/grant not allowed, 460 claim eksik/client yok,
494
- # 404 user yok, 470 user disabled).
495
- #
496
- # clientAssertion: RS256 imzalı JWS. Zorunlu claim'ler: jti, sub (user reference),
497
- # device_id, installation_id, iss (clientId). İmza, cert flow'daki
498
- # {sub}-{device_id}-{installation_id} anahtarlı aktif sertifikanın publicKeyPem'i ile doğrulanır.
499
- # Mint sonucu: amr=onefa_assertion, sub=act_sub=<sub>, role=1FA, user.id=<user instance id>.
500
- #############################################
501
- # @name onefaStart
502
- POST {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/start?sync=true
503
- Content-Type: application/json
504
-
505
- {
506
- "key": "token-onefa-{{$guid}}",
507
- "tags": ["test", "oauth2", "onefa"],
508
- "attributes": {
509
- "grantType": "onefa",
510
- "clientAssertion": "{{clientAssertion}}",
511
- "scope": "retail-customer"
512
- }
513
- }
514
-
515
- ###
516
-
517
- @tokenInstanceId4 = {{onefaStart.response.body.id}}
518
-
519
- ### State (expect: issued; failure -> onefa-invalid)
520
- GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/{{tokenInstanceId4}}/functions/state
521
-
522
- ### Instance data (expect tokenCreation; failure -> onefaError + onefaErrorCode)
523
- GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/{{tokenInstanceId4}}/functions/data
524
-
525
- #############################################
526
- # 6) burgan-credential (urn:ietf:params:oauth:grant-type:burgan-credential)
527
- # Legacy client+device grant: NO user credentials; the proof is the fingerprint
528
- # = Base64(SHA256(jti + clientId + deviceId + installationId)).
529
- # waiting-redeem -> burgan-credential-route (TrxBurganCredentialRouteRule)
530
- # -> refresh-client-lookup (clientSnapshot by clientId, allowedGrants dahil)
531
- # -> burgan-client-found (TrxBurganClientFoundRule)
532
- # -> burgan-credential-check (StateBurganCredentialCheckMapping: allowedGrants + fingerprint)
533
- # -> burgan-credential-valid -> mint-token -> issued
534
- # Failure (missing fields / grant_not_allowed / invalid_fingerprint) -> client-validation-failed
535
- # with compact {status:"error", error:"invalid_client", errorCode} output.
536
- # NOT: IbWeb'in allowedGrants'inde URN olmalı — önce client.http SETUP-A/B ile publish edin.
537
- # NOT: jti session StartTask key'i olur (replay koruması) — yeniden mint için jti'yi değiştirip
538
- # fingerprint'i yeniden hesaplayın: Base64(SHA256(jti + "IbWeb" + deviceId + installationId)).
539
- # Aşağıdaki fingerprint şu sabitler için önceden hesaplandı:
540
- # jti=46f51a20-e8a7-4edc-82ea-7a46a9a972f2, clientId=IbWeb,
541
- # deviceId=4bc07f56-2d8f-4174-b3f0-ebd9f618c29c, installationId=9151843f-b298-491c-b5fd-880d294707df
542
- #############################################
543
- # @name burganCredStart
544
- POST {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/start?sync=true
545
- Content-Type: application/json
546
-
547
- {
548
- "key": "token-burgan-cred-{{$guid}}",
549
- "tags": ["test", "oauth2", "burgan-credential"],
550
- "attributes": {
551
- "clientId": "IbWeb",
552
- "grantType": "urn:ietf:params:oauth:grant-type:burgan-credential",
553
- "jti": "46f51a20-e8a7-4edc-82ea-7a46a9a972f2",
554
- "deviceId": "4bc07f56-2d8f-4174-b3f0-ebd9f618c29c",
555
- "installationId": "9151843f-b298-491c-b5fd-880d294707df",
556
- "fingerprint": "HtOJB5CPurUOx7iFUwsTW0MpMmOfY4WACt4Jbbfz92c=",
557
- "scope": "retail-customer"
558
- }
559
- }
560
-
561
- ###
562
-
563
- @tokenInstanceIdBc1 = {{burganCredStart.response.body.id}}
564
-
565
- ### State (expect: issued) — orchestration log: TrxBurganCredentialRouteRule -> StateRefreshClientLookupGetClientCachedMapping
566
- ### -> TrxBurganClientFoundRule -> StateBurganCredentialCheckMapping (fingerprint valid) -> mint-token
567
- GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/{{tokenInstanceIdBc1}}/functions/state
568
-
569
- ### Data check: clientLookupStatus=success, burganCredentialStatus=success, tokenCreation populated.
570
- ### NOT: istek jti'si session'a assertionJti olarak geçer -> session StartTask key'i olur VE TokenCreateJwtMapping bunu
571
- ### adm-api generate isteğine jti olarak gönderir (access token jti'si). Aynı jti ile tekrar çağrı yeni mint yapmaz, AYNI
572
- ### aktif session/tokenı döndürür. Bu kural tüm grant'lar için geçerli (StateMintTokenCallSessionStartMapping), burgan-credential'a özgü değil.
573
- GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/{{tokenInstanceIdBc1}}/functions/data
574
-
575
- #############################################
576
- # 6b) burgan-credential — YANLIŞ fingerprint (negatif)
577
- # burgan-credential-check hesapladığı hash ile eşleşmez -> burgan-credential-invalid
578
- # -> client-validation-failed; output: {status:"error", error:"invalid_client", errorCode:"invalid_fingerprint"}
579
- #############################################
580
- # @name burganCredBadFp
581
- POST {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/start?sync=true
582
- Content-Type: application/json
583
-
584
- {
585
- "key": "token-burgan-badfp-{{$guid}}",
586
- "tags": ["test", "oauth2", "burgan-credential", "negative"],
587
- "attributes": {
588
- "clientId": "IbWeb",
589
- "grantType": "urn:ietf:params:oauth:grant-type:burgan-credential",
590
- "jti": "{{$guid}}",
591
- "deviceId": "4bc07f56-2d8f-4174-b3f0-ebd9f618c29c",
592
- "installationId": "9151843f-b298-491c-b5fd-880d294707df",
593
- "fingerprint": "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=",
594
- "scope": "retail-customer"
595
- }
596
- }
597
-
598
- ###
599
-
600
- @tokenInstanceIdBc2 = {{burganCredBadFp.response.body.id}}
601
-
602
- ### State (expect: client-validation-failed)
603
- GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/{{tokenInstanceIdBc2}}/functions/state
604
-
605
- #############################################
606
- # 6c) burgan-credential — grant izinsiz client (negatif)
607
- # allowedGrants'inde URN olmayan bir client (ör. client.http'deki IbAndroidApp örneği)
608
- # -> burgan-credential-check errorCode:"grant_not_allowed" -> client-validation-failed.
609
- # Bilinmeyen clientId -> refresh-client-not-found -> client-validation-failed (client_not_found).
610
- #############################################
611
- # @name burganCredNotAllowed
612
- POST {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/start?sync=true
613
- Content-Type: application/json
614
-
615
- {
616
- "key": "token-burgan-noturn-{{$guid}}",
617
- "tags": ["test", "oauth2", "burgan-credential", "negative"],
618
- "attributes": {
619
- "clientId": "IbAndroidApp",
620
- "grantType": "urn:ietf:params:oauth:grant-type:burgan-credential",
621
- "jti": "{{$guid}}",
622
- "deviceId": "4bc07f56-2d8f-4174-b3f0-ebd9f618c29c",
623
- "installationId": "9151843f-b298-491c-b5fd-880d294707df",
624
- "fingerprint": "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=",
625
- "scope": "retail-customer"
626
- }
627
- }
628
-
629
- ###
630
-
631
- @tokenInstanceIdBc3 = {{burganCredNotAllowed.response.body.id}}
632
-
633
- ### State (expect: client-validation-failed) — data: errorCode grant_not_allowed
634
- GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/{{tokenInstanceIdBc3}}/functions/state
635
-
636
- #############################################
637
- # 7) password grant — cihaz anahtarıyla şifreli şifre (passwordEnc)
638
- # Ön koşul: device-register.http ile cihaz kaydı (sync yanıttaki publicKey alınır).
639
- # İstemci şifreyi cihazın publicKey'i ile HPKE seal eder (RFC 9180, DHKEM(P-256)+HKDF-SHA256+AES-128-GCM;
640
- # info/aad boş; passwordEnc = Base64(enc(65B) || ct || tag)) ve
641
- # userPassword YERİNE passwordEnc gönderir. deviceId/installationId body'de yoksa
642
- # X-Device-Id / X-Installation-Id header'larından çözülür (cihaz birebir deviceId+installationId çiftiyle bulunur).
643
- # token-password-grant: draft -> device-fetch (rule: passwordEnc dolu) -> user-validation;
644
- # device instance'ının hpkeCreation.privateKey'i devicePrivateKey olarak user-validation'a gider; şifre runtime İÇİNDE açılır.
645
- # Node (@hpke/core) ile seal örneği:
646
- # const suite = new CipherSuite({ kem: new DhkemP256HkdfSha256(), kdf: new HkdfSha256(), aead: new Aes128Gcm() });
647
- # const pk = await suite.kem.deserializePublicKey(Buffer.from(publicKey, 'base64'));
648
- # const { enc, ct } = await suite.seal({ recipientPublicKey: pk },
649
- # Buffer.from('998877'), Buffer.from(`${deviceId}:${installationId}`));
650
- # Buffer.concat([Buffer.from(enc), Buffer.from(ct)]).toString('base64')
651
- # Yanlış şifre / anahtarsız legacy cihaz: davranış düz yanlış şifreyle birebir aynı
652
- # (user-validation retry adımında bekler; bilgi sızmaz). passwordEnc yoksa akış eski
653
- # haliyle düz userPassword üzerinden yürür.
654
- #############################################
655
- # @name passwordEncGrant
656
- POST {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/{{workflow}}/instances/start?sync=true
657
- Content-Type: application/json
658
- X-Device-Id: {{deviceId}}
659
- X-Installation-Id: {{deviceId}}-inst
660
-
661
- {
662
- "key": "token-password-enc-{{$guid}}",
663
- "tags": ["test", "oauth2", "password"],
664
- "attributes": {
665
- "clientId": "IbIosApp",
666
- "clientSecret": "db8cfe99-9942-4690-bfa6-214a80e96095",
667
- "grantType": "password",
668
- "userName": "70858126658",
669
- "scope": "20183007",
670
- "passwordEnc": "<Base64(enc||ct||tag) — HPKE seal, cihazın publicKey'i ile>",
671
- "deviceId": "{{deviceId}}",
672
- "installationId": "{{deviceId}}-inst"
673
- }
674
- }
675
-
676
- ###