@burgan-tech/morph-idm-runtime 0.0.6 → 0.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/burgan-tech-morph-idm-runtime-0.0.7.tgz +0 -0
- package/morph-idm/Workflows/test-consent-selection/test-flow-with-sub.json +1 -1
- package/morph-idm/Workflows/test-consent-selection/test-flow-with-two-sub.json +2 -2
- package/morph-idm/Workflows/token-process/token/src/mappings/StateMintTokenCallSessionStartMapping.csx +8 -33
- package/morph-idm/Workflows/token-process/token/token.json +1 -1
- package/package.json +1 -1
- package/vnext.config.json +1 -1
- package/burgan-tech-morph-idm-runtime-0.0.6.tgz +0 -0
- package/morph-idm/Extensions/.gitkeep +0 -0
- package/morph-idm/Functions/.gitkeep +0 -0
- package/morph-idm/Functions/cert/check/execute/check.http +0 -106
- package/morph-idm/Functions/consent/check-consent-role/execute/check-consent-role.http +0 -89
- package/morph-idm/Functions/consent/get-consent-role-position/execute/get-consent-role-position.http +0 -55
- package/morph-idm/Functions/consent/get-position/execute/get-position.http +0 -38
- package/morph-idm/Functions/consent/get-roles/execute/get-roles.http +0 -163
- package/morph-idm/Functions/customer/execute/get-customer-by-filter.http +0 -126
- package/morph-idm/Functions/customer-management/get-firms-by-filter/execute/get-firms-by-filter.http +0 -91
- package/morph-idm/Functions/device-process/forget/execute/forget.http +0 -141
- package/morph-idm/Functions/device-process/get-device-list/execute/get-device-list.http +0 -138
- package/morph-idm/Functions/device-process/get-device-token-by-reference/execute/get-device-token-by-reference.http +0 -349
- package/morph-idm/Functions/device-process/remove/execute/remove.http +0 -150
- package/morph-idm/Functions/device-process/save/execute/save.http +0 -124
- package/morph-idm/Functions/feature-management/dynamic-config/.gitkeep +0 -0
- package/morph-idm/Functions/feature-management/dynamic-config/execute/dynamic-config-reads.http +0 -43
- package/morph-idm/Functions/feature-management/feature-flag/.gitkeep +0 -0
- package/morph-idm/Functions/feature-management/feature-management-ops/.gitkeep +0 -0
- package/morph-idm/Functions/organization/get-organizations/execute/get-organizations.http +0 -30
- package/morph-idm/Functions/organization/get-position-levels-by-scope/execute/get-position-levels-by-scope.http +0 -54
- package/morph-idm/Functions/session/logout/execute/logout.http +0 -91
- package/morph-idm/Functions/sso-flow/execute/session-transfer.http +0 -132
- package/morph-idm/Functions/sso-flow/token-direct/execute/token-direct-boarding.http +0 -222
- package/morph-idm/Functions/sso-flow/token-direct/execute/token-direct.http +0 -121
- package/morph-idm/Functions/transaction-limit/verify-limit-definition/execute/verify-limit-definition.http +0 -78
- package/morph-idm/Functions/user/execute/get-password-history-by-filter.http +0 -66
- package/morph-idm/Functions/user/execute/get-security-question-history-by-user.http +0 -85
- package/morph-idm/Functions/user/get-users-by-scope/execute/get-users-by-scope.http +0 -73
- package/morph-idm/Functions/user-login/get-last-successful-corporate-logon/execute/get-last-successful-corporate-logon.http +0 -49
- package/morph-idm/Functions/user-login/get-last-user-logins/execute/get-last-user-logins.http +0 -96
- package/morph-idm/Functions/user-login/get-user-logins/execute/get-user-logins.http +0 -78
- package/morph-idm/Functions/zeebe-approval/get-starter-instance-id/execute/get-starter-instance-id.http +0 -64
- package/morph-idm/Schemas/feature-management/database-variables/.gitkeep +0 -0
- package/morph-idm/Schemas/feature-management/dynamic-config/.gitkeep +0 -0
- package/morph-idm/Schemas/feature-management/feature-flag/.gitkeep +0 -0
- package/morph-idm/Tasks/.gitkeep +0 -0
- package/morph-idm/Tasks/feature-management/database-variables/.gitkeep +0 -0
- package/morph-idm/Tasks/feature-management/dynamic-config/.gitkeep +0 -0
- package/morph-idm/Tasks/feature-management/feature-flag/.gitkeep +0 -0
- package/morph-idm/Tasks/feature-management/feature-management-shared/.gitkeep +0 -0
- package/morph-idm/TestCases/corporate-user-login-e2e.http +0 -872
- package/morph-idm/TestCases/limit-approval/approval-matrix-limit-definition.http +0 -182
- package/morph-idm/TestCases/limit-approval/approval-non-amount-subflow.http +0 -132
- package/morph-idm/TestCases/limit-approval/transaction-limit-definition-approval.http +0 -95
- package/morph-idm/TestCases/limit-definition/README.md +0 -130
- package/morph-idm/TestCases/limit-definition/approve-transaction.http +0 -149
- package/morph-idm/TestCases/limit-definition/approve.http +0 -143
- package/morph-idm/TestCases/limit-definition/daily-limit-definition.http +0 -399
- package/morph-idm/TestCases/limit-definition/transaction-limit-definition.http +0 -240
- package/morph-idm/TestCases/session-transfer-e2e.http +0 -344
- package/morph-idm/TestCases/session-transfer-e2e.sh +0 -272
- package/morph-idm/TestCases/sort-migration-verification.http +0 -428
- package/morph-idm/TestCases/test-123/.httpyac.json +0 -15
- package/morph-idm/TestCases/test-123/01-person.http +0 -78
- package/morph-idm/TestCases/test-123/02-user.http +0 -73
- package/morph-idm/TestCases/test-123/03-scope.http +0 -65
- package/morph-idm/TestCases/test-123/04-consent.http +0 -66
- package/morph-idm/TestCases/test-123/05-device.http +0 -86
- package/morph-idm/TestCases/test-123/06-user-login.http +0 -206
- package/morph-idm/TestCases/test-123/README.md +0 -112
- package/morph-idm/TestCases/test-123/cleanup.js +0 -49
- package/morph-idm/TestCases/test-123/cleanup.sh +0 -20
- package/morph-idm/TestCases/test-123/cleanup.sql +0 -45
- package/morph-idm/TestCases/test-123/http-client.env.json +0 -13
- package/morph-idm/TestCases/test-123/run-setup.sh +0 -42
- package/morph-idm/TestCases/test-12345/.httpyac.json +0 -16
- package/morph-idm/TestCases/test-12345/01-person.http +0 -79
- package/morph-idm/TestCases/test-12345/02-01-device-android.http +0 -258
- package/morph-idm/TestCases/test-12345/02-user.http +0 -97
- package/morph-idm/TestCases/test-12345/03-scope-2.http +0 -65
- package/morph-idm/TestCases/test-12345/03-scope.http +0 -65
- package/morph-idm/TestCases/test-12345/04-consent-1.http +0 -86
- package/morph-idm/TestCases/test-12345/04-consent-2.http +0 -66
- package/morph-idm/TestCases/test-12345/05-device.http +0 -261
- package/morph-idm/TestCases/test-12345/06-user-login copy.http +0 -266
- package/morph-idm/TestCases/test-12345/06-user-login.http +0 -266
- package/morph-idm/TestCases/test-12345/07-corporate-login.http +0 -282
- package/morph-idm/TestCases/test-auto-consent/.httpyac.json +0 -14
- package/morph-idm/TestCases/test-auto-consent/01-person.http +0 -66
- package/morph-idm/TestCases/test-auto-consent/02-user.http +0 -115
- package/morph-idm/TestCases/test-auto-consent/03-scope.http +0 -66
- package/morph-idm/TestCases/test-auto-consent/04-device.http +0 -56
- package/morph-idm/TestCases/test-auto-consent/05-user-login.http +0 -133
- package/morph-idm/TestCases/test-auto-consent/README.md +0 -36
- package/morph-idm/TestCases/test-auto-consent/cleanup.js +0 -47
- package/morph-idm/TestCases/test-auto-consent/run-setup.sh +0 -50
- package/morph-idm/TestCases/test-flows/test-flow-with-two-sub.http +0 -107
- package/morph-idm/TestCases/test-get-user-info/.httpyac.json +0 -9
- package/morph-idm/TestCases/test-get-user-info/get-user-info-ibweb-manual.http +0 -127
- package/morph-idm/TestCases/test-get-user-info/get-user-info.http +0 -282
- package/morph-idm/TestCases/test-login/.httpyac.json +0 -17
- package/morph-idm/TestCases/test-login/01-person.http +0 -79
- package/morph-idm/TestCases/test-login/02-01-device-android.http +0 -261
- package/morph-idm/TestCases/test-login/02-user.http +0 -97
- package/morph-idm/TestCases/test-login/03-scope.http +0 -65
- package/morph-idm/TestCases/test-login/04-consent-1.http +0 -86
- package/morph-idm/TestCases/test-login/05-device.http +0 -261
- package/morph-idm/TestCases/test-login/06-user-login copy.http +0 -266
- package/morph-idm/TestCases/test-login/06-user-login.http +0 -266
- package/morph-idm/TestCases/test-login/07-corporate-login.http +0 -282
- package/morph-idm/TestCases/test-login/README.md +0 -37
- package/morph-idm/TestCases/test-login/cleanup.js +0 -46
- package/morph-idm/TestCases/test-login/cleanup.sh +0 -20
- package/morph-idm/TestCases/test-login/run-setup.sh +0 -53
- package/morph-idm/TestCases/test-onefa-corporate/device-key.pem +0 -27
- package/morph-idm/TestCases/test-onefa-corporate/onefa-corporate-cert-management.http +0 -156
- package/morph-idm/TestCases/test-onefa-corporate/onefa-corporate-login-cert-token.http +0 -371
- package/morph-idm/TestCases/test-onefa-retail/onefa-retail-login-cert-token.http +0 -499
- package/morph-idm/TestCases/test-third-factor/.httpyac.json +0 -36
- package/morph-idm/TestCases/test-third-factor/lib/httpyac.sh +0 -35
- package/morph-idm/TestCases/test-third-factor/scenarios/0-clean-test-instance.js +0 -42
- package/morph-idm/TestCases/test-third-factor/scenarios/0-clean-test-instance.sh +0 -20
- package/morph-idm/TestCases/test-third-factor/scenarios/1-self-completed.sh +0 -25
- package/morph-idm/TestCases/test-third-factor/scenarios/2-native-without-device.sh +0 -34
- package/morph-idm/TestCases/test-third-factor/scenarios/3-native-wrong-otp.sh +0 -34
- package/morph-idm/TestCases/test-third-factor/scenarios/4-native-success-otp-after-wrong-otp.sh +0 -46
- package/morph-idm/TestCases/test-third-factor/scenarios/5-retry-count-exceed.sh +0 -37
- package/morph-idm/TestCases/test-third-factor/scenarios/http/06-third-factor-native-with-device.http +0 -56
- package/morph-idm/TestCases/test-third-factor/scenarios/http/07-third-factor-native-without-device.http +0 -91
- package/morph-idm/TestCases/test-third-factor/scenarios/http/08-third-factor-web-with-device.http +0 -117
- package/morph-idm/TestCases/test-third-factor/scenarios/http/09-third-factor-web-without-device.http +0 -164
- package/morph-idm/TestCases/test-third-factor/scenarios/run-third-factor-native-without-device-success-otp-after-resend.sh +0 -50
- package/morph-idm/TestCases/test-third-factor/scenarios/run-third-factor-native-without-device-success-otp-resend-after-timeout-otp.sh +0 -50
- package/morph-idm/TestCases/test-third-factor/scenarios/run-third-factor-native-without-device-timeout-otp.sh +0 -48
- package/morph-idm/TestCases/test-third-factor/setup/01-person.http +0 -157
- package/morph-idm/TestCases/test-third-factor/setup/02-user.http +0 -105
- package/morph-idm/TestCases/test-third-factor/setup/03-device.http +0 -70
- package/morph-idm/TestCases/test-third-factor/setup/04-native-client.http +0 -126
- package/morph-idm/TestCases/test-third-factor/setup/05-web-client.http +0 -126
- package/morph-idm/TestCases/test-third-factor/setup/cleanup.js +0 -51
- package/morph-idm/TestCases/test-third-factor/setup/cleanup.sh +0 -20
- package/morph-idm/TestCases/test-third-factor/setup/run-setup.sh +0 -34
- package/morph-idm/TestCases/token-mint-parity/RESULT.md +0 -48
- package/morph-idm/TestCases/token-sync-race.sh +0 -72
- package/morph-idm/TestCases/user-login-apisix.postman_collection.json +0 -1114
- package/morph-idm/TestCases/user-login-boweb-e2e.http +0 -123
- package/morph-idm/TestCases/user-login-e2e.http +0 -730
- package/morph-idm/TestCases/user-login-e2e.sh +0 -122
- package/morph-idm/Views/.gitkeep +0 -0
- package/morph-idm/Workflows/.gitkeep +0 -0
- package/morph-idm/Workflows/anti-phishing-image/anti-phishing-image-change/execute/anti-phishing-image.http +0 -370
- package/morph-idm/Workflows/anti-phishing-image/anti-phishing-image-definition/execute/anti-phishing-image-definition.http +0 -200
- package/morph-idm/Workflows/anti-phishing-image/anti-phishing-image-definition/execute/get-security-images.http +0 -51
- package/morph-idm/Workflows/approval/execute/approval-corporate-customers-non-amount.http +0 -159
- package/morph-idm/Workflows/approval/execute/approval-corporate-customers-time-deposit.http +0 -147
- package/morph-idm/Workflows/approval/execute/approval-human-task-mobile.http +0 -149
- package/morph-idm/Workflows/approval/execute/approval-limit-management.http +0 -277
- package/morph-idm/Workflows/approval/execute/approval-new-reject.http +0 -67
- package/morph-idm/Workflows/approval/execute/approval-new.http +0 -999
- package/morph-idm/Workflows/approval/execute/approval-super-authority.http +0 -158
- package/morph-idm/Workflows/approval-matrix/execute/approval-matrix-corporate-customers-non-amount.http +0 -70
- package/morph-idm/Workflows/approval-matrix/execute/approval-matrix-corporate-customers-time-deposit.http +0 -74
- package/morph-idm/Workflows/approval-matrix/execute/approval-matrix-migrate-position-levels.http +0 -295
- package/morph-idm/Workflows/approval-matrix/execute/approval-matrix-new-run.http +0 -296
- package/morph-idm/Workflows/approval-matrix/execute/approval-matrix-upsert-super-authorization.http +0 -129
- package/morph-idm/Workflows/cert/execute/cert-cn-length.http +0 -90
- package/morph-idm/Workflows/cert/execute/cert.http +0 -162
- package/morph-idm/Workflows/cert-management/execute/cert-management.http +0 -90
- package/morph-idm/Workflows/channel-contract/execute/channel-contract-approval.http +0 -246
- package/morph-idm/Workflows/client/execute/client-AmorphieClient.http +0 -118
- package/morph-idm/Workflows/client/execute/client-IbWeb-session-transfer.http +0 -35
- package/morph-idm/Workflows/client/execute/client-OpenBanking.http +0 -411
- package/morph-idm/Workflows/client/execute/client-Trade.http +0 -112
- package/morph-idm/Workflows/client/execute/client-source-app.http +0 -88
- package/morph-idm/Workflows/client/execute/client-update.http +0 -795
- package/morph-idm/Workflows/client/execute/client.http +0 -766
- package/morph-idm/Workflows/client/execute/vnext-target.http +0 -416
- package/morph-idm/Workflows/client-credentials/execute/client-credentials.http +0 -117
- package/morph-idm/Workflows/consent/execute/README.md +0 -145
- package/morph-idm/Workflows/consent/execute/consent-manual-activation.http +0 -135
- package/morph-idm/Workflows/consent/execute/create-consent.http +0 -801
- package/morph-idm/Workflows/consent-management/consent-management.http +0 -267
- package/morph-idm/Workflows/consent-selection/execute/consent-selection.http +0 -200
- package/morph-idm/Workflows/deblock-sim-card/execute/MOBIL-ENTEGRASYON-GOREVLERI.md +0 -339
- package/morph-idm/Workflows/deblock-sim-card/execute/TEST-SENARYOLARI.md +0 -202
- package/morph-idm/Workflows/deblock-sim-card/execute/approve-contract-documents.sh +0 -63
- package/morph-idm/Workflows/deblock-sim-card/execute/contract-debug.sh +0 -101
- package/morph-idm/Workflows/deblock-sim-card/execute/deblock-sim-card-workflow.http +0 -290
- package/morph-idm/Workflows/device-process/device/execute/device-android.http +0 -262
- package/morph-idm/Workflows/device-process/device/execute/device-huawei.http +0 -219
- package/morph-idm/Workflows/device-process/device/execute/device-ios.http +0 -319
- package/morph-idm/Workflows/device-process/device/execute/device-migration.http +0 -105
- package/morph-idm/Workflows/device-process/device/execute/device-web.http +0 -284
- package/morph-idm/Workflows/device-process/device/execute/device.http +0 -269
- package/morph-idm/Workflows/device-process/device/execute/search.http +0 -39
- package/morph-idm/Workflows/device-process/device-assign/execute/device-assign.http +0 -478
- package/morph-idm/Workflows/device-process/device-manager/execute/device-manager.http +0 -214
- package/morph-idm/Workflows/device-process/device-register/execute/device-register.http +0 -566
- package/morph-idm/Workflows/device-process/device-unpair/execute/device-unpair.http +0 -207
- package/morph-idm/Workflows/feature-management/database-variables/.gitkeep +0 -0
- package/morph-idm/Workflows/feature-management/database-variables/execute/database-variables-lifecycle.http +0 -225
- package/morph-idm/Workflows/feature-management/dcs-eval/execute/dcs-eval.http +0 -28
- package/morph-idm/Workflows/feature-management/dynamic-config/.gitkeep +0 -0
- package/morph-idm/Workflows/feature-management/dynamic-config/execute/dynamic-config-evaluate.http +0 -186
- package/morph-idm/Workflows/feature-management/dynamic-config/execute/dynamic-config-lifecycle.http +0 -263
- package/morph-idm/Workflows/feature-management/feature-flag/.gitkeep +0 -0
- package/morph-idm/Workflows/feature-management/feature-flag/execute/feature-flag-evaluate.http +0 -245
- package/morph-idm/Workflows/feature-management/feature-flag/execute/feature-flag-lifecycle.http +0 -246
- package/morph-idm/Workflows/feature-management/feature-flag/execute/feature-flag-ops.http +0 -116
- package/morph-idm/Workflows/feature-management/feature-flag/execute/feature-flag-reads.http +0 -47
- package/morph-idm/Workflows/fraud/execute/fraud-push.http +0 -1016
- package/morph-idm/Workflows/get-roles/execute/get-roles.http +0 -367
- package/morph-idm/Workflows/introspection/execute/introspection.http +0 -69
- package/morph-idm/Workflows/ivr/execute/ivr-check-password.http +0 -55
- package/morph-idm/Workflows/ivr/execute/ivr-check-user.http +0 -56
- package/morph-idm/Workflows/ivr/execute/ivr-create-agent-consent.http +0 -59
- package/morph-idm/Workflows/ivr/execute/ivr-get-agent-company.http +0 -30
- package/morph-idm/Workflows/ivr/execute/ivr-revoke-agent-consent.http +0 -30
- package/morph-idm/Workflows/ivr/execute/ivr-set-password.http +0 -87
- package/morph-idm/Workflows/notification/push-notification/execute/push-notification.http +0 -261
- package/morph-idm/Workflows/organization/execute/create-organization-yedek.http +0 -415
- package/morph-idm/Workflows/organization/execute/create-organization.http +0 -346
- package/morph-idm/Workflows/organization/execute/retail-organization.http +0 -161
- package/morph-idm/Workflows/otp-auth-code/execute/otp-auth-code.http +0 -743
- package/morph-idm/Workflows/person/execute/person-123.http +0 -149
- package/morph-idm/Workflows/person/execute/person-migration.http +0 -143
- package/morph-idm/Workflows/person/execute/person.http +0 -149
- package/morph-idm/Workflows/person/firm-cdc-dispatch/execute/person-firm-cdc-dispatch.http +0 -266
- package/morph-idm/Workflows/remember-password/execute/remember-password.http +0 -203
- package/morph-idm/Workflows/role/execute/role.http +0 -142
- package/morph-idm/Workflows/scope/execute/scope-24-7-access.http +0 -131
- package/morph-idm/Workflows/scope/execute/scope-business-hours.http +0 -138
- package/morph-idm/Workflows/scope/execute/scope-corporate.http +0 -165
- package/morph-idm/Workflows/scope/execute/scope-individual-1234567890-1234567890.http +0 -132
- package/morph-idm/Workflows/scope/execute/scope-lifecycle-test.http +0 -133
- package/morph-idm/Workflows/scope/execute/scope-multi-systems.http +0 -159
- package/morph-idm/Workflows/scope/execute/scope-openbanking-account.http +0 -134
- package/morph-idm/Workflows/scope/execute/scope-openbanking-login.http +0 -135
- package/morph-idm/Workflows/scope/execute/scope-openbanking-payment.http +0 -134
- package/morph-idm/Workflows/scope/execute/scope-restricted.http +0 -143
- package/morph-idm/Workflows/scope-group/execute/create-scope-group.http +0 -224
- package/morph-idm/Workflows/security-check/execute/security-check-test.http +0 -88
- package/morph-idm/Workflows/security-check-test/execute/security-check-test.http +0 -51
- package/morph-idm/Workflows/security-question/security-question-change/execute/security-question-change.http +0 -324
- package/morph-idm/Workflows/security-question/security-question-definition/execute/security-question-definition.http +0 -372
- package/morph-idm/Workflows/security-question/security-question-reset/execute/security-question-reset.http +0 -97
- package/morph-idm/Workflows/shield-decrypt/execute/shield-decrypt.http +0 -77
- package/morph-idm/Workflows/shield-encrypt/execute/shield-encrypt.http +0 -80
- package/morph-idm/Workflows/shield-sign/execute/shield-sign.http +0 -79
- package/morph-idm/Workflows/shield-verify-request-signature/execute/generate-request-signature.js +0 -54
- package/morph-idm/Workflows/shield-verify-request-signature/execute/shield-verify-request-signature.http +0 -135
- package/morph-idm/Workflows/shield-verify-signature/execute/shield-verify-signature.http +0 -108
- package/morph-idm/Workflows/sim-block/sim-block-backoffice/execute/sim-block-backoffice.http +0 -183
- package/morph-idm/Workflows/simple-subflow/execute/simple-subflow.http +0 -50
- package/morph-idm/Workflows/sso/authorize/execute/authorize.http +0 -160
- package/morph-idm/Workflows/sso/authorize-route/execute/authorize-route.http +0 -169
- package/morph-idm/Workflows/sso/pre-login/execute/pre-login.http +0 -273
- package/morph-idm/Workflows/sso/token-direct/execute/token-direct.http +0 -272
- package/morph-idm/Workflows/sso/token-route/execute/token-route.http +0 -207
- package/morph-idm/Workflows/sso-flow/execute/sso-flow-auth-code.http +0 -89
- package/morph-idm/Workflows/sso-flow/execute/sso-flow-login.http +0 -163
- package/morph-idm/Workflows/sso-flow/execute/sso-flow-test-base.http +0 -178
- package/morph-idm/Workflows/test-consent-selection/execute/test-consent-selection.http +0 -68
- package/morph-idm/Workflows/test-consent-selection/execute/test-flow-with-sub.http +0 -50
- package/morph-idm/Workflows/test-consent-selection/execute/test-flow.http +0 -140
- package/morph-idm/Workflows/test-consent-selection/execute/test-sync-subprocess.http +0 -63
- package/morph-idm/Workflows/test-consent-selection/execute/test-user-validation.http +0 -126
- package/morph-idm/Workflows/third-factor/execute/third-factor.http +0 -183
- package/morph-idm/Workflows/third-factor-main/execute/execute/third-factor-main.http +0 -229
- package/morph-idm/Workflows/token-process/session/execute/session.http +0 -361
- package/morph-idm/Workflows/token-process/session-revoke-others/execute/session-revoke-others.http +0 -94
- package/morph-idm/Workflows/token-process/token/execute/README.md +0 -454
- package/morph-idm/Workflows/token-process/token/execute/device-key.pem +0 -27
- package/morph-idm/Workflows/token-process/token/execute/generate-onefa-assertion.js +0 -47
- package/morph-idm/Workflows/token-process/token/execute/onefa-token.http +0 -285
- package/morph-idm/Workflows/token-process/token/execute/setup-roles-for-token-claims.http +0 -425
- package/morph-idm/Workflows/token-process/token/execute/token-sync-race.http +0 -49
- package/morph-idm/Workflows/token-process/token/execute/token.http +0 -676
- package/morph-idm/Workflows/token-process/token-password-grant/execute/token-password-grant.http +0 -163
- package/morph-idm/Workflows/transaction-limit/cascade-approve-daily/execute/transaction-limit-cascade-approve-daily.http +0 -125
- package/morph-idm/Workflows/transaction-limit/cascade-approve-transaction/execute/transaction-limit-cascade-approve-transaction.http +0 -120
- package/morph-idm/Workflows/transaction-limit/cascade-daily/execute/transaction-limit-cascade-daily.http +0 -198
- package/morph-idm/Workflows/transaction-limit/cascade-transaction/execute/transaction-limit-cascade.http +0 -173
- package/morph-idm/Workflows/transaction-limit/definition/execute/transaction-limit-definition.http +0 -867
- package/morph-idm/Workflows/transaction-limit/definition-passivate/execute/transaction-limit-definition-passivate.http +0 -224
- package/morph-idm/Workflows/transaction-limit/definition-verify/execute/transaction-limit-definition-verify.http +0 -102
- package/morph-idm/Workflows/transaction-limit/execute/seed-corporate-customers-limits.sh +0 -178
- package/morph-idm/Workflows/transaction-limit/execute/transaction-limit-management.http +0 -984
- package/morph-idm/Workflows/transaction-limit/remaining/execute/transaction-limit-remaining.http +0 -103
- package/morph-idm/Workflows/transaction-limit/resolve/execute/transaction-limit-resolve.http +0 -96
- package/morph-idm/Workflows/transaction-limit/scope-bank-limit/execute/transaction-limit-scope-bank-limit.http +0 -84
- package/morph-idm/Workflows/transaction-limit/user-bank-limits/execute/transaction-limit-user-bank-limits.http +0 -87
- package/morph-idm/Workflows/transaction-limit/verify/execute/transaction-limit-verify.http +0 -212
- package/morph-idm/Workflows/user/create/execute/user-create-corporate.http +0 -51
- package/morph-idm/Workflows/user/create/execute/user-create.http +0 -135
- package/morph-idm/Workflows/user/get-users-by-scope/execute/get-users-by-scope.http +0 -210
- package/morph-idm/Workflows/user-corporate/firm-query/execute/firm-query.http +0 -87
- package/morph-idm/Workflows/user-corporate/onboard-dispatch/execute/user-corporate-onboard-dispatch.http +0 -105
- package/morph-idm/Workflows/user-corporate/provision/execute/user-corporate-provision.http +0 -631
- package/morph-idm/Workflows/user-corporate/provision/user-corporate-provision.flowchart.drawio +0 -88
- package/morph-idm/Workflows/user-corporate/remove/execute/user-corporate-remove.http +0 -152
- package/morph-idm/Workflows/user-corporate/rollback/execute/user-corporate-rollback.http +0 -97
- package/morph-idm/Workflows/user-corporate/update-provision/execute/user-corporate-update-provision.http +0 -449
- package/morph-idm/Workflows/user-corporate/user-corporate-create/execute/user-corporate-create.http +0 -173
- package/morph-idm/Workflows/user-corporate/user-corporate-update/execute/user-corporate-update.http +0 -117
- package/morph-idm/Workflows/user-login/execute/README-LOGIN.md +0 -535
- package/morph-idm/Workflows/user-login/execute/user-login-comprehensive-coverage.http +0 -1761
- package/morph-idm/Workflows/user-login/execute/user-login-device-assign.http +0 -497
- package/morph-idm/Workflows/user-login/execute/user-login.http +0 -910
- package/morph-idm/Workflows/user-login-approvement/execute/login-notification-otp.http +0 -86
- package/morph-idm/Workflows/user-login-approvement/execute/login-notification-push.http +0 -82
- package/morph-idm/Workflows/user-login-approvement/execute/login-notification-registered-device.http +0 -111
- package/morph-idm/Workflows/user-login-approvement/execute/user-login-approvement-comprehensive.http +0 -1267
- package/morph-idm/Workflows/user-management/execute/user-management.http +0 -284
- package/morph-idm/Workflows/user-note/execute/user-note-backoffice.http +0 -290
- package/morph-idm/Workflows/user-otp-setting/execute/user-otp-setting-backoffice.http +0 -128
- package/morph-idm/Workflows/user-password-process/user-change-password/execute/user-change-password.http +0 -576
- package/morph-idm/Workflows/user-password-process/user-password/execute/user-password.http +0 -58
- package/morph-idm/Workflows/user-password-process/user-password-force-change/execute/user-password-force-change.http +0 -31
- package/morph-idm/Workflows/user-password-process/user-password-reset/execute/user-password-reset.http +0 -213
- package/morph-idm/Workflows/user-status/user-status-change/execute/user-status-change.http +0 -124
- package/morph-idm/Workflows/user-status/user-status-change-backoffice/execute/user-status-change-backoffice.http +0 -197
- package/morph-idm/Workflows/user-validation/execute/user-validation-standalone.http +0 -331
- package/morph-idm/Workflows/user-validation/execute/user-validation.http +0 -696
- package/morph-idm/Workflows/zeebe-approval/execute/zeebe-approval-corporate-customers-non-amount.http +0 -195
- package/morph-idm/Workflows/zeebe-approval/execute/zeebe-approval-new.http +0 -275
|
@@ -1,454 +0,0 @@
|
|
|
1
|
-
# Token Workflow - OAuth2 Token Management
|
|
2
|
-
|
|
3
|
-
Bu klasör, OAuth2 Token workflow'u için HTTP test dosyaları ve örnek payload'ları içerir.
|
|
4
|
-
|
|
5
|
-
## 📁 Dosyalar
|
|
6
|
-
|
|
7
|
-
### OAuth2 Grant Type Örnekleri
|
|
8
|
-
|
|
9
|
-
#### **token-authorization-code-example.json**
|
|
10
|
-
Authorization Code Flow için örnek payload (Web/Mobile apps için)
|
|
11
|
-
|
|
12
|
-
#### **token-client-credentials-example.json**
|
|
13
|
-
Client Credentials Flow için örnek payload (Service-to-service için)
|
|
14
|
-
|
|
15
|
-
#### **token-refresh-example.json**
|
|
16
|
-
Refresh Token Flow için örnek payload
|
|
17
|
-
|
|
18
|
-
#### **token.http**
|
|
19
|
-
Tüm OAuth2 akışları için HTTP test dosyası
|
|
20
|
-
|
|
21
|
-
---
|
|
22
|
-
|
|
23
|
-
## 🔄 OAuth2 Token Workflow Akışı
|
|
24
|
-
|
|
25
|
-
```
|
|
26
|
-
start
|
|
27
|
-
↓
|
|
28
|
-
evaluated (Initial validation)
|
|
29
|
-
├─► prepare-authorization-code (rule) → waiting-redeem
|
|
30
|
-
└─► request-inappropriate (rule) → not-applicable ✗
|
|
31
|
-
|
|
32
|
-
waiting-redeem (Authorization code issued)
|
|
33
|
-
├─► redeem (manual) → active ✓
|
|
34
|
-
└─► code-timeout (timer) → code-expired ✗
|
|
35
|
-
|
|
36
|
-
active (Token is valid and usable)
|
|
37
|
-
├─► refresh (manual) → active (new tokens)
|
|
38
|
-
├─► revoke (admin) → token-revoked ✗
|
|
39
|
-
├─► revoke-by-user (user) → token-revoked ✗
|
|
40
|
-
├─► fraud-suspicious (system) → token-revoked-by-fraud ✗
|
|
41
|
-
└─► expire-token (timer) → token-expired ✗
|
|
42
|
-
```
|
|
43
|
-
|
|
44
|
-
---
|
|
45
|
-
|
|
46
|
-
## 🎯 OAuth2 Grant Types
|
|
47
|
-
|
|
48
|
-
### 1. Authorization Code Flow
|
|
49
|
-
**Kullanım:** Web ve mobil uygulamalar için en güvenli flow
|
|
50
|
-
|
|
51
|
-
**Akış:**
|
|
52
|
-
1. User authorization → Authorization code üretilir
|
|
53
|
-
2. `waiting-redeem` state (code kullanılmayı bekler)
|
|
54
|
-
3. Code exchange → `redeem` transition → Access + Refresh token
|
|
55
|
-
4. `active` state (token kullanılabilir)
|
|
56
|
-
|
|
57
|
-
**Test:**
|
|
58
|
-
```http
|
|
59
|
-
POST /api/v1/idm/workflows/token/instances/start
|
|
60
|
-
```
|
|
61
|
-
|
|
62
|
-
**Payload:**
|
|
63
|
-
```json
|
|
64
|
-
{
|
|
65
|
-
"key": "unique-token-key",
|
|
66
|
-
"attributes": {
|
|
67
|
-
"client": "web18",
|
|
68
|
-
"user": "user-john-doe",
|
|
69
|
-
"consent": "consent-john-doe-...",
|
|
70
|
-
"scope": "openid profile accounts.read"
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
```
|
|
74
|
-
|
|
75
|
-
**Additional OAuth2 Parameters:**
|
|
76
|
-
PKCE and other OAuth2 parameters are handled by the workflow internally or via HTTP headers/query params. The start schema only requires the core fact keys.
|
|
77
|
-
|
|
78
|
-
---
|
|
79
|
-
|
|
80
|
-
### 2. Client Credentials Flow
|
|
81
|
-
**Kullanım:** Service-to-service authentication (kullanıcı yok)
|
|
82
|
-
|
|
83
|
-
**Akış:**
|
|
84
|
-
1. Client credentials → Direct token generation
|
|
85
|
-
2. `active` state (no authorization code needed)
|
|
86
|
-
|
|
87
|
-
**Test:**
|
|
88
|
-
```http
|
|
89
|
-
POST /api/v1/idm/workflows/token/instances/start
|
|
90
|
-
```
|
|
91
|
-
|
|
92
|
-
**Payload:**
|
|
93
|
-
```json
|
|
94
|
-
{
|
|
95
|
-
"key": "unique-token-key",
|
|
96
|
-
"attributes": {
|
|
97
|
-
"client": "backend-service-client",
|
|
98
|
-
"user": "system-service-user",
|
|
99
|
-
"consent": "system-service-consent",
|
|
100
|
-
"scope": "api.read api.write"
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
```
|
|
104
|
-
**Note:** Schema requires user and consent even for client_credentials flow.
|
|
105
|
-
|
|
106
|
-
**Not:** User ve consent gerekmez, sadece client authentication.
|
|
107
|
-
|
|
108
|
-
---
|
|
109
|
-
|
|
110
|
-
### 3. Refresh Token Flow
|
|
111
|
-
**Kullanım:** Expired access token'ı yenilemek için
|
|
112
|
-
|
|
113
|
-
**Akış:**
|
|
114
|
-
1. Valid refresh token → New access token + refresh token
|
|
115
|
-
2. `active` state remains (token rotation)
|
|
116
|
-
|
|
117
|
-
**Test:**
|
|
118
|
-
```http
|
|
119
|
-
POST /api/v1/idm/workflows/token/instances/{id}/transitions/refresh
|
|
120
|
-
```
|
|
121
|
-
|
|
122
|
-
**Payload:**
|
|
123
|
-
```json
|
|
124
|
-
{
|
|
125
|
-
"attributes": {
|
|
126
|
-
"refreshToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
```
|
|
130
|
-
|
|
131
|
-
---
|
|
132
|
-
|
|
133
|
-
## 🔒 Security Features
|
|
134
|
-
|
|
135
|
-
### Token Expiration
|
|
136
|
-
```json
|
|
137
|
-
{
|
|
138
|
-
"accessToken": "...",
|
|
139
|
-
"expiresIn": 3600, // 1 hour
|
|
140
|
-
"refreshToken": "...",
|
|
141
|
-
"refreshExpiresIn": 2592000 // 30 days
|
|
142
|
-
}
|
|
143
|
-
```
|
|
144
|
-
|
|
145
|
-
### Token Revocation
|
|
146
|
-
**User-initiated:**
|
|
147
|
-
```http
|
|
148
|
-
POST .../transitions/revoke-by-user
|
|
149
|
-
```
|
|
150
|
-
|
|
151
|
-
**Admin-initiated:**
|
|
152
|
-
```http
|
|
153
|
-
POST .../transitions/revoke
|
|
154
|
-
```
|
|
155
|
-
|
|
156
|
-
**Fraud detection:**
|
|
157
|
-
```http
|
|
158
|
-
POST .../transitions/fraud-suspicious
|
|
159
|
-
```
|
|
160
|
-
|
|
161
|
-
---
|
|
162
|
-
|
|
163
|
-
## 📊 State Machine
|
|
164
|
-
|
|
165
|
-
### States
|
|
166
|
-
|
|
167
|
-
#### **evaluated** (stateType: 1 - Start)
|
|
168
|
-
- Initial state
|
|
169
|
-
- Validates client, user, consent
|
|
170
|
-
- Checks scopes
|
|
171
|
-
- **Transitions:**
|
|
172
|
-
- ✅ `prepare-authorization-code` (auto) → waiting-redeem
|
|
173
|
-
- ❌ `request-inappropriate` (auto) → not-applicable
|
|
174
|
-
|
|
175
|
-
#### **waiting-redeem** (stateType: 2 - Normal)
|
|
176
|
-
- Authorization code issued
|
|
177
|
-
- Waiting for code exchange
|
|
178
|
-
- **Transitions:**
|
|
179
|
-
- ✅ `redeem` (manual) → active
|
|
180
|
-
- ❌ `code-timeout` (timer) → code-expired
|
|
181
|
-
|
|
182
|
-
#### **active** (stateType: 2 - Normal)
|
|
183
|
-
- Token active and usable
|
|
184
|
-
- Access token + Refresh token available
|
|
185
|
-
- **Transitions:**
|
|
186
|
-
- 🔄 `refresh` (manual) → active
|
|
187
|
-
- 🚫 `revoke` (manual) → token-revoked
|
|
188
|
-
- 🚫 `revoke-by-user` (manual) → token-revoked
|
|
189
|
-
- 🚫 `fraud-suspicious` (manual) → token-revoked-by-fraud
|
|
190
|
-
- ⏰ `expire-token` (timer) → token-expired
|
|
191
|
-
|
|
192
|
-
#### **not-applicable** (stateType: 3 - Finish)
|
|
193
|
-
- Request invalid or inappropriate
|
|
194
|
-
- Client/consent/scope validation failed
|
|
195
|
-
|
|
196
|
-
#### **code-expired** (stateType: 3 - Finish)
|
|
197
|
-
- Authorization code expired without being redeemed
|
|
198
|
-
|
|
199
|
-
#### **token-revoked** (stateType: 3 - Finish)
|
|
200
|
-
- Token revoked by user or admin
|
|
201
|
-
|
|
202
|
-
#### **token-revoked-by-fraud** (stateType: 3 - Finish)
|
|
203
|
-
- Token revoked due to fraud detection
|
|
204
|
-
|
|
205
|
-
#### **token-expired** (stateType: 3 - Finish)
|
|
206
|
-
- Access token expired
|
|
207
|
-
- Refresh token can be used to get new tokens
|
|
208
|
-
|
|
209
|
-
---
|
|
210
|
-
|
|
211
|
-
## 🧪 Test Senaryoları
|
|
212
|
-
|
|
213
|
-
### Senaryo 1: Başarılı Authorization Code Flow
|
|
214
|
-
```json
|
|
215
|
-
{
|
|
216
|
-
"attributes": {
|
|
217
|
-
"client": "web18", // ✓ Valid client (fact key)
|
|
218
|
-
"user": "user-john-doe", // ✓ Valid user (fact key)
|
|
219
|
-
"consent": "consent-john-doe-...", // ✓ Valid consent (fact key)
|
|
220
|
-
"scope": "openid profile accounts.read" // ✓ Allowed scopes (space-separated)
|
|
221
|
-
}
|
|
222
|
-
}
|
|
223
|
-
```
|
|
224
|
-
**Result:** `waiting-redeem` → `redeem` → `active` ✅
|
|
225
|
-
|
|
226
|
-
### Senaryo 2: Invalid Client
|
|
227
|
-
```json
|
|
228
|
-
{
|
|
229
|
-
"attributes": {
|
|
230
|
-
"client": "non-existent-client", // ✗ Invalid (fact key)
|
|
231
|
-
"user": "user-john-doe",
|
|
232
|
-
"consent": "consent-john-doe-...",
|
|
233
|
-
"scope": "openid profile"
|
|
234
|
-
}
|
|
235
|
-
}
|
|
236
|
-
```
|
|
237
|
-
**Result:** `not-applicable` ❌
|
|
238
|
-
|
|
239
|
-
### Senaryo 3: Invalid Consent
|
|
240
|
-
```json
|
|
241
|
-
{
|
|
242
|
-
"attributes": {
|
|
243
|
-
"client": "web18",
|
|
244
|
-
"user": "user-john-doe",
|
|
245
|
-
"consent": "non-existent-consent", // ✗ Invalid (fact key)
|
|
246
|
-
"scope": "openid profile"
|
|
247
|
-
}
|
|
248
|
-
}
|
|
249
|
-
```
|
|
250
|
-
**Result:** `not-applicable` ❌
|
|
251
|
-
|
|
252
|
-
### Senaryo 4: Client Credentials (Success)
|
|
253
|
-
```json
|
|
254
|
-
{
|
|
255
|
-
"attributes": {
|
|
256
|
-
"client": "backend-service-client", // ✓ Valid (fact key)
|
|
257
|
-
"user": "system-service-user", // ✓ Required by schema
|
|
258
|
-
"consent": "system-service-consent", // ✓ Required by schema
|
|
259
|
-
"scope": "api.read api.write" // ✓ Allowed (space-separated)
|
|
260
|
-
}
|
|
261
|
-
}
|
|
262
|
-
```
|
|
263
|
-
**Result:** `active` ✅
|
|
264
|
-
|
|
265
|
-
### Senaryo 5: Token Refresh
|
|
266
|
-
**Note:** Refresh transition is not part of start schema, it's a state transition.
|
|
267
|
-
```http
|
|
268
|
-
POST /instances/{id}/transitions/refresh
|
|
269
|
-
{
|
|
270
|
-
"attributes": {
|
|
271
|
-
"refreshToken": "valid-refresh-token-xyz..."
|
|
272
|
-
}
|
|
273
|
-
}
|
|
274
|
-
```
|
|
275
|
-
**Result:** `active` (new tokens) ✅
|
|
276
|
-
|
|
277
|
-
### Senaryo 6: Token Revocation
|
|
278
|
-
```json
|
|
279
|
-
{
|
|
280
|
-
"reason": "User logged out"
|
|
281
|
-
}
|
|
282
|
-
```
|
|
283
|
-
**Result:** `token-revoked` 🚫
|
|
284
|
-
|
|
285
|
-
---
|
|
286
|
-
|
|
287
|
-
## 📋 Required Payload Fields
|
|
288
|
-
|
|
289
|
-
### Authorization Code Flow
|
|
290
|
-
```json
|
|
291
|
-
{
|
|
292
|
-
"key": "unique-token-key",
|
|
293
|
-
"tags": ["oauth2", "authorization-code"],
|
|
294
|
-
"attributes": {
|
|
295
|
-
"client": "web18", // Required (string - fact key)
|
|
296
|
-
"user": "user-john-doe", // Required (string - fact key)
|
|
297
|
-
"consent": "consent-john-doe-...", // Required (string - fact key)
|
|
298
|
-
"scope": "openid profile accounts.read" // Required (space-separated string)
|
|
299
|
-
}
|
|
300
|
-
}
|
|
301
|
-
```
|
|
302
|
-
|
|
303
|
-
**Schema Definition:** `token-start.json`
|
|
304
|
-
- All fields are **strings** (fact keys)
|
|
305
|
-
- `scope` is space-separated string (not array)
|
|
306
|
-
- No additional properties allowed (additionalProperties: false)
|
|
307
|
-
|
|
308
|
-
### Client Credentials Flow
|
|
309
|
-
```json
|
|
310
|
-
{
|
|
311
|
-
"key": "unique-token-key",
|
|
312
|
-
"tags": ["oauth2", "client-credentials"],
|
|
313
|
-
"attributes": {
|
|
314
|
-
"client": "backend-service-client", // Required (string - fact key)
|
|
315
|
-
"user": "system-service-user", // Required (string - fact key)
|
|
316
|
-
"consent": "system-service-consent", // Required (string - fact key)
|
|
317
|
-
"scope": "api.read api.write" // Required (space-separated string)
|
|
318
|
-
}
|
|
319
|
-
}
|
|
320
|
-
```
|
|
321
|
-
|
|
322
|
-
**Note:** Per schema definition, user and consent are required even for client_credentials flow.
|
|
323
|
-
|
|
324
|
-
**Claims (current token flow):** `sub` = `deviceId` when the request carries one (body `deviceId` or, via
|
|
325
|
-
token-direct, the `X-Device-Id` header) — device-bound M2M; otherwise `sub` = `""`. `act_sub` = clientId in
|
|
326
|
-
both cases, `customer_no` is never derived from a device id. See `token.http` section 1.
|
|
327
|
-
|
|
328
|
-
### Refresh Token Flow (Transition)
|
|
329
|
-
```http
|
|
330
|
-
POST /instances/{id}/transitions/refresh
|
|
331
|
-
Content-Type: application/json
|
|
332
|
-
|
|
333
|
-
{
|
|
334
|
-
"attributes": {
|
|
335
|
-
"refreshToken": "eyJ..." // Required
|
|
336
|
-
}
|
|
337
|
-
}
|
|
338
|
-
```
|
|
339
|
-
**Note:** Refresh is not a start transition, it's called on existing token instance.
|
|
340
|
-
|
|
341
|
-
---
|
|
342
|
-
|
|
343
|
-
## 🚀 Hızlı Test
|
|
344
|
-
|
|
345
|
-
### 1. API'yi Başlat
|
|
346
|
-
```bash
|
|
347
|
-
http://localhost:4201
|
|
348
|
-
```
|
|
349
|
-
|
|
350
|
-
### 2. Önkoşulları Hazırla
|
|
351
|
-
Aşağıdaki instance'lar mevcut ve active olmalı:
|
|
352
|
-
- Client: `web18` veya `backend-service-client`
|
|
353
|
-
- User: `user-john-doe`
|
|
354
|
-
- Consent: `consent-john-doe-mobile-banking-customer-123`
|
|
355
|
-
|
|
356
|
-
### 3. Authorization Code Flow Test
|
|
357
|
-
```http
|
|
358
|
-
# 1. Start workflow
|
|
359
|
-
POST /api/v1/idm/workflows/token/instances/start
|
|
360
|
-
|
|
361
|
-
# 2. Check state (should be waiting-redeem)
|
|
362
|
-
GET /api/v1/idm/workflows/token/instances/{id}/functions/state
|
|
363
|
-
|
|
364
|
-
# 3. Redeem code
|
|
365
|
-
POST /api/v1/idm/workflows/token/instances/{id}/transitions/redeem
|
|
366
|
-
|
|
367
|
-
# 4. Verify active (should have access + refresh token)
|
|
368
|
-
GET /api/v1/idm/workflows/token/instances/{id}/functions/data
|
|
369
|
-
```
|
|
370
|
-
|
|
371
|
-
### 4. Client Credentials Flow Test
|
|
372
|
-
```http
|
|
373
|
-
# 1. Start workflow (goes directly to active)
|
|
374
|
-
POST /api/v1/idm/workflows/token/instances/start
|
|
375
|
-
|
|
376
|
-
# 2. Verify active
|
|
377
|
-
GET /api/v1/idm/workflows/token/instances/{id}/functions/data
|
|
378
|
-
```
|
|
379
|
-
|
|
380
|
-
---
|
|
381
|
-
|
|
382
|
-
## 🔗 İlgili Workflow'lar
|
|
383
|
-
- **User Login** (`user-login.json`) - User authentication (calls token workflow)
|
|
384
|
-
- **Client Workflow** (`client.json`) - OAuth2 client management
|
|
385
|
-
- **User Workflow** (`user.json`) - User management
|
|
386
|
-
- **Consent Workflow** (`consent.json`) - User-Client-Scope consent
|
|
387
|
-
|
|
388
|
-
---
|
|
389
|
-
|
|
390
|
-
## 🔐 OAuth2 Token Response Format
|
|
391
|
-
|
|
392
|
-
### Successful Token Response
|
|
393
|
-
```json
|
|
394
|
-
{
|
|
395
|
-
"accessToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
|
|
396
|
-
"tokenType": "Bearer",
|
|
397
|
-
"expiresIn": 3600,
|
|
398
|
-
"refreshToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
|
|
399
|
-
"refreshExpiresIn": 2592000,
|
|
400
|
-
"scope": "openid profile accounts.read",
|
|
401
|
-
"idToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..." // OIDC only
|
|
402
|
-
}
|
|
403
|
-
```
|
|
404
|
-
|
|
405
|
-
### Usage
|
|
406
|
-
```http
|
|
407
|
-
GET /api/protected-resource
|
|
408
|
-
Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...
|
|
409
|
-
```
|
|
410
|
-
|
|
411
|
-
---
|
|
412
|
-
|
|
413
|
-
## ⚠️ Önemli Notlar
|
|
414
|
-
|
|
415
|
-
1. **Authorization Code:** Tek kullanımlık ve kısa ömürlü (genelde 10 dakika)
|
|
416
|
-
2. **Access Token:** Kısa ömürlü (1-24 saat arası, default 1 saat)
|
|
417
|
-
3. **Refresh Token:** Uzun ömürlü (7-30 gün arası, default 30 gün)
|
|
418
|
-
4. **Fact Key References:** Client, user, consent are fact keys (string references)
|
|
419
|
-
5. **Scope Format:** Space-separated string (not array)
|
|
420
|
-
6. **Schema Validation:** token-start.json enforces structure
|
|
421
|
-
|
|
422
|
-
---
|
|
423
|
-
|
|
424
|
-
## 📚 OAuth2 Spec Compliance
|
|
425
|
-
|
|
426
|
-
- ✅ RFC 6749: OAuth 2.0 Authorization Framework
|
|
427
|
-
- ✅ RFC 6750: Bearer Token Usage
|
|
428
|
-
- ✅ RFC 7009: Token Revocation
|
|
429
|
-
- ✅ OpenID Connect Core 1.0 (when using `openid` scope)
|
|
430
|
-
|
|
431
|
-
## 📋 Schema Reference
|
|
432
|
-
|
|
433
|
-
**Schema:** `token-start.json`
|
|
434
|
-
|
|
435
|
-
**Structure:**
|
|
436
|
-
```json
|
|
437
|
-
{
|
|
438
|
-
"key": "unique-key",
|
|
439
|
-
"tags": ["optional", "tags"],
|
|
440
|
-
"attributes": {
|
|
441
|
-
"client": "string (fact key)", // Required
|
|
442
|
-
"user": "string (fact key)", // Required
|
|
443
|
-
"consent": "string (fact key)", // Required
|
|
444
|
-
"scope": "string (space-separated)" // Required
|
|
445
|
-
}
|
|
446
|
-
}
|
|
447
|
-
```
|
|
448
|
-
|
|
449
|
-
**Important Notes:**
|
|
450
|
-
- All attributes are **strings** (fact keys to workflow instances)
|
|
451
|
-
- `scope` is **space-separated string**, not array
|
|
452
|
-
- Schema has `additionalProperties: false` - no extra fields allowed
|
|
453
|
-
- Required fields: `["client", "user", "consent", "scope"]`
|
|
454
|
-
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
-----BEGIN RSA PRIVATE KEY-----
|
|
2
|
-
MIIEogIBAAKCAQEAs4FsCGYTvQifWyprFaazhduzDAK8mDe7NhoPoxu5p9qqlHFn
|
|
3
|
-
98WkLz0Ypn9CkbgZLWwWENoPCYfRk+8CQQH46cIlhih0qUrxEPCbwKmDKjeYfQtG
|
|
4
|
-
rlSuea7eFZNC4HwpHuvdaV3VTaBdDHDzQ0iuSw9Q9mJeKBSrQCXvl2pBbShHfG5l
|
|
5
|
-
TeSgxmiKr3qGE5lLXtwV/xTSrNhaezamrWv4Nu+UrrLDB4pyxB9eelu5hlcL8NrH
|
|
6
|
-
qpxuDAcXNB0WjtzX1VQGPr6C19RBAHwgFpvX3O4+2xykDINvE0Edn0wINVodvoS2
|
|
7
|
-
neNDpWpn+yzN6d5GI5yjbzuZwSti7S45OTc6XQIDAQABAoIBAAbiEpNr3pvkBcBI
|
|
8
|
-
Kx0EbGPYnc/7FuI7WNllPG5DtOXD08CnbJYqpPYOwLA5twLBbW25dEsnIWZ7J8Ul
|
|
9
|
-
aA+4FKRaBnhTes23CvFcWIyVs2reAOHimc47fwk5dFidcfYLrMP7xVyx9WjpmkfM
|
|
10
|
-
2PcehVhpePBJq1ScHkjya3KB54pY7Xbd/BYHxC+l2P7ICAhJhRueV/eCL8qlMkcN
|
|
11
|
-
8kOqQy6tWmEQlASSlRqoizgySWWv0hVHBONIV9IY5sWKnOSv+g3hhViPJ+5/Chg2
|
|
12
|
-
QIG4fpdB5/69WM3ahB+ltyOwytwcmv2r5yQoxf/xT0rmYrea5dropAdD2hpJ8UOt
|
|
13
|
-
goTQxuECgYEA9N9xR65FhzxI3eS/lc1V8MkxRiFC5riPsO7fCxgoAv4j/V0yKWz/
|
|
14
|
-
50/ViM2EEhDUVVzrNyJ2l7USRSv9dT+EPJksQDaGSpUIhH71ukEGgj7etWQ14DMC
|
|
15
|
-
0yoPRBwIftwCx+5yZqWONDY/SU5UN7m36gR1eMyKlivJQGYzHsgR9cUCgYEAu6mT
|
|
16
|
-
LOcMLkdlL9W6wPllisFS1prgJyhxUP9UuRArUiI6N2p3BArx38c/JpYs9gDy5VOL
|
|
17
|
-
GokKhofHzp/5FDBkCswkL1uZqNzts2n1KNEZ1f/ONl/YClLMGOObtu/3YiOBmdV7
|
|
18
|
-
QgHqsQeI6xuCi5gy18/Y78OblXKKAvx11kHzE7kCgYAUdtv7tpe+7o3UZXqRZWCq
|
|
19
|
-
R9YjW0JBD+mKStw/DBzD60NMuE4p4h8c0LIyxaIk9F0aaTKLIAkzMoG9YCjFdLJz
|
|
20
|
-
cgWdtDDS6NOWZxnYH/kQR3rLQ/2wp/KzfQ9bjNA08eQVm1raMznIKURutuoY4h95
|
|
21
|
-
ojfDCa0HUc9231OkXeoKVQKBgDG3IOhaZV21SFc91fXdnEsAIEP+T7fP/QUqP3Wv
|
|
22
|
-
lOpzatzXdaQ6ig1wqYg9bLfXVIHwef+Topg1THeu5bu1fitmHYf2SmTz8nz/axVf
|
|
23
|
-
H+sTk7vP9Fn3yV4mnk/+jpkPMvxgFAFOpLA1gM5YQWNd9Mo7pAsQ1RzodSuJWmZi
|
|
24
|
-
nlTxAoGAZ07f+LLT4GsH63Bcosy4lGoXMM8dw9q62wJ/mT6L8jjGoVAX0iK9fNCe
|
|
25
|
-
ZVBz0ZsOvyxvTmQRT+cSMYQpbrBJZynzIWmXf7488jxgAcOTd0J1a+zLRfzAEZZW
|
|
26
|
-
N9F1sGvwXyKY9a+OXs19XHc8KWRrEPjbZzGfnYk0JhRAgQ6qvl8=
|
|
27
|
-
-----END RSA PRIVATE KEY-----
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
/**
|
|
3
|
-
* onefa (1FA) test yardımcı scripti — cihaz private key'i ile imzalı client assertion (JWS RS256) üretir.
|
|
4
|
-
*
|
|
5
|
-
* Kullanım:
|
|
6
|
-
* 1. cert flow ile sertifika üret (bkz. ../../cert/execute/cert.http) ve instance data'dan
|
|
7
|
-
* certificate.privateKeyPem değerini bir dosyaya kaydet (örn. device-key.pem).
|
|
8
|
-
* 2. node generate-onefa-assertion.js device-key.pem <sub> <deviceId> <installationId> <clientId>
|
|
9
|
-
* örn: node generate-onefa-assertion.js device-key.pem 1234 device-001 install-001 IbWeb
|
|
10
|
-
* 3. Çıktıyı token.http SCENARIO 5'teki {{clientAssertion}} değişkenine koy.
|
|
11
|
-
*
|
|
12
|
-
* Not: sub/deviceId/installationId, cert instance key'i ({sub}-{deviceId}-{installationId}) ile
|
|
13
|
-
* birebir aynı olmalı — shield-verify-signature sertifikayı bu anahtarla bulur. sub aynı zamanda
|
|
14
|
-
* AKTİF bir user instance'ının key'i (referans/TCKN), clientId ise client instance key'i olmalıdır.
|
|
15
|
-
*/
|
|
16
|
-
const crypto = require('crypto');
|
|
17
|
-
const fs = require('fs');
|
|
18
|
-
|
|
19
|
-
const [, , keyPath, sub, deviceId, installationId, clientId] = process.argv;
|
|
20
|
-
if (!keyPath || !sub || !deviceId || !installationId || !clientId) {
|
|
21
|
-
console.error('Kullanım: node generate-onefa-assertion.js <privateKey.pem> <sub> <deviceId> <installationId> <clientId>');
|
|
22
|
-
process.exit(1);
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
// PEM dosyası JSON'dan kopyalanmış olabilir: baştaki/sondaki tırnakları ve
|
|
26
|
-
// literal \n kaçışlarını tolere et (jq -r kullanılmadıysa dosya tek satır JSON string olur).
|
|
27
|
-
let privateKeyPem = fs.readFileSync(keyPath, 'utf8').trim();
|
|
28
|
-
if (privateKeyPem.startsWith('"')) privateKeyPem = JSON.parse(privateKeyPem);
|
|
29
|
-
privateKeyPem = privateKeyPem.replace(/\\n/g, '\n');
|
|
30
|
-
const b64url = (input) => Buffer.from(input).toString('base64url');
|
|
31
|
-
|
|
32
|
-
const now = Math.floor(Date.now() / 1000);
|
|
33
|
-
const header = { alg: 'RS256', typ: 'JWT' };
|
|
34
|
-
const payload = {
|
|
35
|
-
jti: crypto.randomUUID(),
|
|
36
|
-
sub,
|
|
37
|
-
device_id: deviceId,
|
|
38
|
-
installation_id: installationId,
|
|
39
|
-
iss: clientId,
|
|
40
|
-
iat: now,
|
|
41
|
-
exp: now + 300,
|
|
42
|
-
};
|
|
43
|
-
|
|
44
|
-
const signingInput = `${b64url(JSON.stringify(header))}.${b64url(JSON.stringify(payload))}`;
|
|
45
|
-
const signature = crypto.sign('RSA-SHA256', Buffer.from(signingInput, 'ascii'), privateKeyPem);
|
|
46
|
-
|
|
47
|
-
console.log(`${signingInput}.${signature.toString('base64url')}`);
|