@burgan-tech/morph-idm-runtime 0.0.0 → 0.0.2
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.2.tgz +0 -0
- package/morph-idm/Schemas/{user → person}/person-master-1.0.0.json +1 -1
- package/morph-idm/Schemas/token/token-start-1.0.0.json +6 -19
- package/morph-idm/Schemas/user/user-master-1.0.0.json +46 -1
- package/morph-idm/Schemas/user-login/retry-login-1.0.0.json +39 -0
- package/morph-idm/Tasks/call-device-start-1.0.0.json +1 -1
- package/morph-idm/Tasks/call-device-update-1.0.0.json +1 -1
- package/morph-idm/Tasks/consent/consent-auto-select-script.json +16 -0
- package/morph-idm/Tasks/device/search-device-task.json +22 -0
- package/morph-idm/Tasks/get-device-1.0.0.json +1 -1
- package/morph-idm/Tasks/person/get-person-by-task.json +19 -0
- package/morph-idm/Tasks/person/person-update-direct-transition.json +23 -0
- package/morph-idm/Tasks/token/token-create-jwt.json +0 -1
- package/morph-idm/Tasks/token/token-redeem-trigger.json +22 -0
- package/morph-idm/Tasks/token/user-login-get-as-filterable.json +22 -0
- package/morph-idm/Tasks/user/evaluate-failed-login-script.json +18 -0
- package/morph-idm/Tasks/user/get-phone-from-person-task.json +20 -0
- package/morph-idm/Tasks/user/otp-code-generator.json +15 -0
- package/morph-idm/Tasks/user/send-otp-sms-task.json +26 -0
- package/morph-idm/Tasks/user/send-push-task.json +4 -1
- package/morph-idm/Tasks/user/user-update-password-fail-count.json +24 -0
- package/morph-idm/Tasks/user-login/auth-code-generator.json +17 -0
- package/morph-idm/Tasks/user-login/increment-local-fail-count.json +17 -0
- package/morph-idm/Tasks/user-login/password-verify.json +26 -0
- package/morph-idm/TestCases/test-123/.httpyac.json +15 -0
- package/morph-idm/TestCases/test-123/01-person.http +95 -0
- package/morph-idm/TestCases/test-123/02-user.http +83 -0
- package/morph-idm/TestCases/test-123/03-scope.http +65 -0
- package/morph-idm/TestCases/test-123/04-consent.http +66 -0
- package/morph-idm/TestCases/test-123/05-device.http +86 -0
- package/morph-idm/TestCases/test-123/06-user-login.http +206 -0
- package/morph-idm/TestCases/test-123/README.md +112 -0
- package/morph-idm/TestCases/test-123/cleanup.js +49 -0
- package/morph-idm/TestCases/test-123/cleanup.sh +20 -0
- package/morph-idm/TestCases/test-123/cleanup.sql +45 -0
- package/morph-idm/TestCases/test-123/http-client.env.json +13 -0
- package/morph-idm/TestCases/test-123/run-setup.sh +42 -0
- package/morph-idm/TestCases/test-auto-consent/.httpyac.json +14 -0
- package/morph-idm/TestCases/test-auto-consent/01-person.http +72 -0
- package/morph-idm/TestCases/test-auto-consent/02-user.http +74 -0
- package/morph-idm/TestCases/test-auto-consent/03-scope.http +66 -0
- package/morph-idm/TestCases/test-auto-consent/04-device.http +56 -0
- package/morph-idm/TestCases/test-auto-consent/05-user-login.http +132 -0
- package/morph-idm/TestCases/test-auto-consent/README.md +36 -0
- package/morph-idm/TestCases/test-auto-consent/cleanup.js +47 -0
- package/morph-idm/TestCases/test-auto-consent/run-setup.sh +50 -0
- package/morph-idm/TestCases/test-multiple-consent/.httpyac.json +17 -0
- package/morph-idm/TestCases/test-multiple-consent/01-person.http +103 -0
- package/morph-idm/TestCases/test-multiple-consent/02-user.http +83 -0
- package/morph-idm/TestCases/test-multiple-consent/03-scope-2.http +66 -0
- package/morph-idm/TestCases/test-multiple-consent/03-scope.http +66 -0
- package/morph-idm/TestCases/test-multiple-consent/04-consent-1.http +67 -0
- package/morph-idm/TestCases/test-multiple-consent/04-consent-2.http +66 -0
- package/morph-idm/TestCases/test-multiple-consent/05-device.http +87 -0
- package/morph-idm/TestCases/test-multiple-consent/06-user-login.http +183 -0
- package/morph-idm/TestCases/test-multiple-consent/README.md +37 -0
- package/morph-idm/TestCases/test-multiple-consent/cleanup.js +46 -0
- package/morph-idm/TestCases/test-multiple-consent/cleanup.sh +20 -0
- package/morph-idm/TestCases/test-multiple-consent/run-setup.sh +53 -0
- package/morph-idm/Views/user-login/push-waiting.json +28 -0
- package/morph-idm/Views/user-login/start.json +28 -0
- package/morph-idm/Workflows/client/client-1.0.0.json +1 -1
- package/morph-idm/Workflows/client/execute/client.http +1 -1
- package/morph-idm/Workflows/client/src/PasswordGeneratorMapping.csx +0 -1
- package/morph-idm/Workflows/consent-selection/consent-selection-1.0.0.json +37 -6
- package/morph-idm/Workflows/consent-selection/execute/multi-consent-selection.http +209 -0
- package/morph-idm/Workflows/consent-selection/src/ConsentSelectedMapping.csx +18 -22
- package/morph-idm/Workflows/consent-selection/src/CreateAutoConsentMapping.csx +45 -45
- package/morph-idm/Workflows/consent-selection/src/MultipleConsentsRule.csx +12 -8
- package/morph-idm/Workflows/consent-selection/src/NoConsentEligibleRule.csx +6 -22
- package/morph-idm/Workflows/consent-selection/src/SingleConsentAutoSelectMapping.csx +63 -0
- package/morph-idm/Workflows/consent-selection/src/SingleConsentRule.csx +11 -22
- package/morph-idm/Workflows/device/execute/device-ios.http +0 -6
- package/morph-idm/Workflows/device/execute/search.http +32 -0
- package/morph-idm/Workflows/person/execute/person-123.http +191 -0
- package/morph-idm/Workflows/person/execute/person.http +196 -0
- package/morph-idm/Workflows/{user → person}/person-1.0.0.json +24 -1
- package/morph-idm/Workflows/token/execute/token.http +14 -3
- package/morph-idm/Workflows/token/password-subflow.json +1 -1
- package/morph-idm/Workflows/token/src/AuthCodeRedeemMapping.csx +114 -0
- package/morph-idm/Workflows/token/src/AuthCodeValidationRule.csx +27 -0
- package/morph-idm/Workflows/token/src/CreateRsaJwtMapping.csx +28 -16
- package/morph-idm/Workflows/token/src/StatusSuccessRule.csx +27 -0
- package/morph-idm/Workflows/token/src/TokenCreatedRule.csx +32 -0
- package/morph-idm/Workflows/token/src/UserLoginGetAsFilterableMapping.csx +204 -0
- package/morph-idm/Workflows/token/token-1.0.0.json +109 -41
- package/morph-idm/Workflows/user/execute/create-user-1234567890.http +16 -4
- package/morph-idm/Workflows/user/execute/create-user-migration.http +179 -0
- package/morph-idm/Workflows/user/execute/create-user-person-password.http +78 -32
- package/morph-idm/Workflows/user/src/EvaluateFailedLoginMapping.csx +75 -0
- package/morph-idm/Workflows/user/src/FailCountMaxRule.csx +33 -0
- package/morph-idm/Workflows/user/src/GetPhoneFromPersonMapping.csx +139 -0
- package/morph-idm/Workflows/user/src/HasPasswordsRule.csx +43 -0
- package/morph-idm/Workflows/user/src/OtpSentSuccessRule.csx +46 -0
- package/morph-idm/Workflows/user/src/PasswordGeneratedSuccessRule.csx +73 -0
- package/morph-idm/Workflows/user/src/PhoneFetchedSuccessRule.csx +35 -0
- package/morph-idm/Workflows/user/src/ResetPasswordFailCountMapping.csx +88 -0
- package/morph-idm/Workflows/user/src/SendOtpSmsMapping.csx +356 -0
- package/morph-idm/Workflows/user/src/UserPasswordGeneratorMapping.csx +33 -6
- package/morph-idm/Workflows/user/user-1.0.0.json +365 -5
- package/morph-idm/Workflows/{user → user-login}/execute/user-login.http +155 -32
- package/morph-idm/Workflows/user-login/src/AuthCodeGeneratorMapping.csx +44 -0
- package/morph-idm/Workflows/{user/src/GetClientMapping.csx → user-login/src/ClientGetMapping.csx} +6 -4
- package/morph-idm/Workflows/{user/src/TriggerConsentSelectionAsSubFlowMapping.csx → user-login/src/ConsentSelectionSubFlowMapping.csx} +19 -20
- package/morph-idm/Workflows/user-login/src/DeviceSearchMapping.csx +120 -0
- package/morph-idm/Workflows/{user → user-login}/src/GrantValidationRule.csx +5 -1
- package/morph-idm/Workflows/user-login/src/HasFailCountRule.csx +32 -0
- package/morph-idm/Workflows/user-login/src/MaxRetriesReachedRule.csx +32 -0
- package/morph-idm/Workflows/user-login/src/NoSecurityImageRule.csx +33 -0
- package/morph-idm/Workflows/user-login/src/NoSecurityQuestionRule.csx +65 -0
- package/morph-idm/Workflows/user-login/src/OtpCodeGenerateMapping.csx +37 -0
- package/morph-idm/Workflows/{user/src/SendOtpMapping.csx → user-login/src/OtpSendMapping.csx} +13 -7
- package/morph-idm/Workflows/user-login/src/OtpVerifiedRule.csx +35 -0
- package/morph-idm/Workflows/user-login/src/PasswordFailCountResetMapping.csx +77 -0
- package/morph-idm/Workflows/user-login/src/PasswordFailCountUpdateMapping.csx +80 -0
- package/morph-idm/Workflows/user-login/src/PasswordVerifyMapping.csx +169 -0
- package/morph-idm/Workflows/user-login/src/PersonFetchedRule.csx +32 -0
- package/morph-idm/Workflows/user-login/src/PersonGetMapping.csx +61 -0
- package/morph-idm/Workflows/user-login/src/PersonUpdateMapping.csx +105 -0
- package/morph-idm/Workflows/user-login/src/PersonUpdatedRule.csx +32 -0
- package/morph-idm/Workflows/user-login/src/PushVerifiedRule.csx +31 -0
- package/morph-idm/Workflows/{user/src/GetScopesByUserMapping.csx → user-login/src/ScopesByUserGetMapping.csx} +17 -17
- package/morph-idm/Workflows/user-login/src/TokenGenerationSuccessRule.csx +33 -0
- package/morph-idm/Workflows/{user/src/TriggerTokenWorkflowAsSubFlowMapping.csx → user-login/src/TokenSubFlowMapping.csx} +7 -13
- package/morph-idm/Workflows/user-login/src/UserFoundRule.csx +19 -0
- package/morph-idm/Workflows/{user/src/GetUserMapping.csx → user-login/src/UserGetMapping.csx} +5 -3
- package/morph-idm/Workflows/user-login/src/UserStatusActiveRule.csx +34 -0
- package/morph-idm/Workflows/user-login/src/UserValidHasFailCountRule.csx +39 -0
- package/morph-idm/Workflows/user-login/src/UserValidNoFailCountRule.csx +39 -0
- package/morph-idm/Workflows/user-login/user-login.1.0.0.json +1827 -0
- package/package.json +1 -1
- package/vnext.config.json +3 -3
- package/burgan-tech-morph-idm-runtime-0.0.0.tgz +0 -0
- package/morph-idm/Workflows/user/src/ApproveRule.csx +0 -16
- package/morph-idm/Workflows/user/src/AutoConsentCreatedRule.csx +0 -20
- package/morph-idm/Workflows/user/src/AutoConsentRequiredRule.csx +0 -77
- package/morph-idm/Workflows/user/src/CheckDeviceByUserReferenceMapping.csx +0 -66
- package/morph-idm/Workflows/user/src/ClientValidationFailRule.csx +0 -28
- package/morph-idm/Workflows/user/src/ConsentValidationRule.csx +0 -36
- package/morph-idm/Workflows/user/src/CreateAutoConsentMapping.csx +0 -171
- package/morph-idm/Workflows/user/src/DeviceFoundForLoginRule.csx +0 -32
- package/morph-idm/Workflows/user/src/DeviceNotFoundForLoginRule.csx +0 -31
- package/morph-idm/Workflows/user/src/GetConsentMapping.csx +0 -27
- package/morph-idm/Workflows/user/src/GetDeviceMapping.csx +0 -52
- package/morph-idm/Workflows/user/src/GetScopeMapping.csx +0 -139
- package/morph-idm/Workflows/user/src/GrantValidationFailRule.csx +0 -48
- package/morph-idm/Workflows/user/src/OtpVerifiedRule.csx +0 -31
- package/morph-idm/Workflows/user/src/PushVerifiedRule.csx +0 -31
- package/morph-idm/Workflows/user/src/RejectRule.csx +0 -16
- package/morph-idm/Workflows/user/src/ScopeValidationFailRule.csx +0 -67
- package/morph-idm/Workflows/user/src/ScopeValidationRule.csx +0 -67
- package/morph-idm/Workflows/user/src/SendPushMapping.csx +0 -90
- package/morph-idm/Workflows/user/src/TokenGenerationSuccessRule.csx +0 -28
- package/morph-idm/Workflows/user/src/UserValidationFailRule.csx +0 -36
- package/morph-idm/Workflows/user/src/VerifyOtpMapping.csx +0 -65
- package/morph-idm/Workflows/user/src/VerifyPushMapping.csx +0 -65
- package/morph-idm/Workflows/user/user-login.1.0.0.json +0 -1144
- /package/morph-idm/Workflows/{user → person}/person-cdc-worker.1.0.0.json +0 -0
- /package/morph-idm/Workflows/{user → person}/person-upsert-1.0.0.json +0 -0
- /package/morph-idm/Workflows/scope/execute/{scope-individual.http → scope-individual-1234567890-1234567890.http} +0 -0
- /package/morph-idm/Workflows/{user → user-login}/execute/README-LOGIN.md +0 -0
- /package/morph-idm/Workflows/{user → user-login}/src/ClientValidationRule.csx +0 -0
- /package/morph-idm/Workflows/{user → user-login}/src/ConsentSelectedRule.csx +0 -0
- /package/morph-idm/Workflows/{user → user-login}/src/IsIbWebClientWithDeviceRule.csx +0 -0
- /package/morph-idm/Workflows/{user → user-login}/src/NonIbWebClientWithDeviceRule.csx +0 -0
- /package/morph-idm/Workflows/{user → user-login}/src/OtpSentRule.csx +0 -0
- /package/morph-idm/Workflows/{user → user-login}/src/PushSentRule.csx +0 -0
- /package/morph-idm/Workflows/{user → user-login}/src/ScopeFetchedRule.csx +0 -0
- /package/morph-idm/Workflows/{user → user-login}/src/UserValidationRule.csx +0 -0
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
###############################################################################
|
|
2
|
+
# STEP 1: Person 1234 - securityQuestion DOLU
|
|
3
|
+
###############################################################################
|
|
4
|
+
|
|
5
|
+
### Start Person - securityQuestion dolu array ile
|
|
6
|
+
# @name startPerson
|
|
7
|
+
POST {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/person/instances/start?sync=true
|
|
8
|
+
Accept-Language: tr-TR
|
|
9
|
+
X-Request-Id: {{$guid}}
|
|
10
|
+
X-Device-Id: admin-portal
|
|
11
|
+
X-Token-Id: {{$guid}}
|
|
12
|
+
X-Device-Info: Test Suite/1.0
|
|
13
|
+
X-Forwarded-For: 192.168.1.100
|
|
14
|
+
user_reference: test-admin
|
|
15
|
+
Content-Type: application/json
|
|
16
|
+
|
|
17
|
+
{
|
|
18
|
+
"key": "{{personKey}}",
|
|
19
|
+
"tags": ["test", "person", "security-test", "with-security-question"],
|
|
20
|
+
"attributes": {
|
|
21
|
+
"name": {
|
|
22
|
+
"first": "Test",
|
|
23
|
+
"last": "User1234"
|
|
24
|
+
},
|
|
25
|
+
"emails": [
|
|
26
|
+
{
|
|
27
|
+
"address": "test1234@example.com",
|
|
28
|
+
"validations": [
|
|
29
|
+
{
|
|
30
|
+
"source": "otp",
|
|
31
|
+
"validatedAt": "{{$datetime iso8601}}",
|
|
32
|
+
"validatingProcess": "email-verification",
|
|
33
|
+
"status": "valid"
|
|
34
|
+
}
|
|
35
|
+
],
|
|
36
|
+
"useForAlerts": true
|
|
37
|
+
}
|
|
38
|
+
],
|
|
39
|
+
"mobilePhonesNumbers": [
|
|
40
|
+
{
|
|
41
|
+
"countryCode": "+90",
|
|
42
|
+
"areaCode": "555",
|
|
43
|
+
"number": "1234567",
|
|
44
|
+
"validations": [
|
|
45
|
+
{
|
|
46
|
+
"source": "otp",
|
|
47
|
+
"validatedAt": "{{$datetime iso8601}}",
|
|
48
|
+
"validatingProcess": "phone-verification",
|
|
49
|
+
"status": "valid"
|
|
50
|
+
}
|
|
51
|
+
],
|
|
52
|
+
"useForOTP": true
|
|
53
|
+
}
|
|
54
|
+
],
|
|
55
|
+
"securityQuestion": [
|
|
56
|
+
{
|
|
57
|
+
"question": "İlk evcil hayvanınızın adı nedir?",
|
|
58
|
+
"answer": "$argon2id$v=19$m=65536,t=3,p=4$c29tZXNhbHQ$hashedAnswerHere",
|
|
59
|
+
"algorithm": "argon2",
|
|
60
|
+
"lastUpdatedDate": "{{$datetime iso8601}}"
|
|
61
|
+
}
|
|
62
|
+
],
|
|
63
|
+
"antiPishingImage": "sunset-beach-palm"
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
### Publish Person (draft -> active)
|
|
68
|
+
# @name publishPerson
|
|
69
|
+
PATCH {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/person/instances/{{personKey}}/transitions/publish?sync=true
|
|
70
|
+
Accept-Language: tr-TR
|
|
71
|
+
X-Request-Id: {{$guid}}
|
|
72
|
+
X-Device-Id: admin-portal
|
|
73
|
+
X-Token-Id: {{$guid}}
|
|
74
|
+
X-Device-Info: Test Suite/1.0
|
|
75
|
+
X-Forwarded-For: 192.168.1.100
|
|
76
|
+
user_reference: test-admin
|
|
77
|
+
Content-Type: application/json
|
|
78
|
+
|
|
79
|
+
{
|
|
80
|
+
"attributes": {
|
|
81
|
+
"publishedBy": "test-admin",
|
|
82
|
+
"publishedAt": "{{$datetime iso8601}}"
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
### Get Person Data
|
|
87
|
+
# @name getPersonData
|
|
88
|
+
GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/person/instances/{{personKey}}/functions/data
|
|
89
|
+
Accept-Language: tr-TR
|
|
90
|
+
X-Request-Id: {{$guid}}
|
|
91
|
+
X-Device-Id: admin-portal
|
|
92
|
+
X-Token-Id: {{$guid}}
|
|
93
|
+
user_reference: test-admin
|
|
94
|
+
|
|
95
|
+
### Get Person State
|
|
96
|
+
# @name getPersonState
|
|
97
|
+
GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/person/instances/{{personKey}}/functions/state
|
|
98
|
+
Accept-Language: tr-TR
|
|
99
|
+
X-Request-Id: {{$guid}}
|
|
100
|
+
X-Device-Id: admin-portal
|
|
101
|
+
X-Token-Id: {{$guid}}
|
|
102
|
+
user_reference: test-admin
|
|
103
|
+
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
###############################################################################
|
|
2
|
+
# STEP 2: User 1234 - Person 1234'e bağlı
|
|
3
|
+
###############################################################################
|
|
4
|
+
|
|
5
|
+
### Start User - Person 1234'e bağlı
|
|
6
|
+
# @name createUser
|
|
7
|
+
POST {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/user/instances/start?sync=true
|
|
8
|
+
Accept-Language: tr-TR
|
|
9
|
+
X-Request-Id: {{$guid}}
|
|
10
|
+
X-Device-Id: admin-portal
|
|
11
|
+
X-Token-Id: {{$guid}}
|
|
12
|
+
X-Device-Info: Test Suite/1.0
|
|
13
|
+
X-Forwarded-For: 192.168.1.100
|
|
14
|
+
user_reference: test-admin
|
|
15
|
+
Content-Type: application/json
|
|
16
|
+
|
|
17
|
+
{
|
|
18
|
+
"key": "{{userKey}}",
|
|
19
|
+
"tags": ["test", "user", "multi-consent-test"],
|
|
20
|
+
"attributes": {
|
|
21
|
+
"person": {
|
|
22
|
+
"key": "{{personKey}}"
|
|
23
|
+
},
|
|
24
|
+
"status": "active",
|
|
25
|
+
"username": "testuser1234",
|
|
26
|
+
"passwords": [
|
|
27
|
+
{
|
|
28
|
+
"type": "Password",
|
|
29
|
+
"source": {
|
|
30
|
+
"password": "$argon2id$v=19$m=65536,t=3,p=4$c29tZXNhbHQ$RdescudvJCsgt3ub+b+dWRWJTmaaJObG",
|
|
31
|
+
"algorithm": "argon2",
|
|
32
|
+
"lastUpdatedDate": "2025-11-26T10:30:00Z"
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
],
|
|
36
|
+
"loginAttempts": 0,
|
|
37
|
+
"maxLoginAttempts": 5,
|
|
38
|
+
"isLocked": false,
|
|
39
|
+
"mustChangePassword": false,
|
|
40
|
+
"permissions": [
|
|
41
|
+
"login",
|
|
42
|
+
"view-profile"
|
|
43
|
+
]
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
### Publish User (draft -> active)
|
|
48
|
+
# @name publishUser
|
|
49
|
+
PATCH {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/user/instances/{{userKey}}/transitions/publish?sync=true
|
|
50
|
+
Accept-Language: tr-TR
|
|
51
|
+
X-Request-Id: {{$guid}}
|
|
52
|
+
X-Device-Id: admin-portal
|
|
53
|
+
X-Token-Id: {{$guid}}
|
|
54
|
+
X-Device-Info: Test Suite/1.0
|
|
55
|
+
X-Forwarded-For: 192.168.1.100
|
|
56
|
+
user_reference: test-admin
|
|
57
|
+
Content-Type: application/json
|
|
58
|
+
|
|
59
|
+
{
|
|
60
|
+
"attributes": {
|
|
61
|
+
"publishedBy": "test-admin",
|
|
62
|
+
"publishedAt": "{{$datetime iso8601}}"
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
### Get User Data
|
|
67
|
+
# @name getUserData
|
|
68
|
+
GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/user/instances/{{userKey}}/functions/data
|
|
69
|
+
Accept-Language: tr-TR
|
|
70
|
+
X-Request-Id: {{$guid}}
|
|
71
|
+
X-Device-Id: admin-portal
|
|
72
|
+
X-Token-Id: {{$guid}}
|
|
73
|
+
user_reference: test-admin
|
|
74
|
+
|
|
75
|
+
### Get User State
|
|
76
|
+
# @name getUserState
|
|
77
|
+
GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/user/instances/{{userKey}}/functions/state
|
|
78
|
+
Accept-Language: tr-TR
|
|
79
|
+
X-Request-Id: {{$guid}}
|
|
80
|
+
X-Device-Id: admin-portal
|
|
81
|
+
X-Token-Id: {{$guid}}
|
|
82
|
+
user_reference: test-admin
|
|
83
|
+
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
###############################################################################
|
|
2
|
+
# STEP 3b: Scope 2 - User 1234 için Corporate scope
|
|
3
|
+
###############################################################################
|
|
4
|
+
|
|
5
|
+
### Start Scope Corporate
|
|
6
|
+
# @name createScope2
|
|
7
|
+
POST {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/scope/instances/start?sync=true
|
|
8
|
+
Accept-Language: tr-TR
|
|
9
|
+
X-Request-Id: {{$guid}}
|
|
10
|
+
X-Device-Id: admin-portal
|
|
11
|
+
X-Token-Id: {{$guid}}
|
|
12
|
+
X-Device-Info: Test Suite/1.0
|
|
13
|
+
X-Forwarded-For: 192.168.1.100
|
|
14
|
+
user_reference: test-admin
|
|
15
|
+
Content-Type: application/json
|
|
16
|
+
|
|
17
|
+
{
|
|
18
|
+
"key": "{{scopeKey2}}",
|
|
19
|
+
"tags": ["test", "scope", "corporate", "multi-consent-test"],
|
|
20
|
+
"attributes": {
|
|
21
|
+
"group": {
|
|
22
|
+
"domain": "morph-idm",
|
|
23
|
+
"workflow": "scope-group",
|
|
24
|
+
"key": "corporate-customers"
|
|
25
|
+
},
|
|
26
|
+
"searchKey": "{{userKey}}"
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
### Publish Scope Corporate (draft -> active)
|
|
31
|
+
# @name publishScope2
|
|
32
|
+
PATCH {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/scope/instances/{{scopeKey2}}/transitions/publish?sync=true
|
|
33
|
+
Accept-Language: tr-TR
|
|
34
|
+
X-Request-Id: {{$guid}}
|
|
35
|
+
X-Device-Id: admin-portal
|
|
36
|
+
X-Token-Id: {{$guid}}
|
|
37
|
+
X-Device-Info: Test Suite/1.0
|
|
38
|
+
X-Forwarded-For: 192.168.1.100
|
|
39
|
+
user_reference: test-admin
|
|
40
|
+
Content-Type: application/json
|
|
41
|
+
|
|
42
|
+
{
|
|
43
|
+
"attributes": {
|
|
44
|
+
"publishedBy": "test-admin",
|
|
45
|
+
"publishedAt": "{{$datetime iso8601}}"
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
### Get Scope Corporate Data
|
|
50
|
+
# @name getScope2Data
|
|
51
|
+
GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/scope/instances/{{scopeKey2}}/functions/data
|
|
52
|
+
Accept-Language: tr-TR
|
|
53
|
+
X-Request-Id: {{$guid}}
|
|
54
|
+
X-Device-Id: admin-portal
|
|
55
|
+
X-Token-Id: {{$guid}}
|
|
56
|
+
user_reference: test-admin
|
|
57
|
+
|
|
58
|
+
### Get Scope Corporate State
|
|
59
|
+
# @name getScope2State
|
|
60
|
+
GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/scope/instances/{{scopeKey2}}/functions/state
|
|
61
|
+
Accept-Language: tr-TR
|
|
62
|
+
X-Request-Id: {{$guid}}
|
|
63
|
+
X-Device-Id: admin-portal
|
|
64
|
+
X-Token-Id: {{$guid}}
|
|
65
|
+
user_reference: test-admin
|
|
66
|
+
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
###############################################################################
|
|
2
|
+
# STEP 3: Scope - User 1234 için scope
|
|
3
|
+
###############################################################################
|
|
4
|
+
|
|
5
|
+
### Start Scope
|
|
6
|
+
# @name createScope
|
|
7
|
+
POST {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/scope/instances/start?sync=true
|
|
8
|
+
Accept-Language: tr-TR
|
|
9
|
+
X-Request-Id: {{$guid}}
|
|
10
|
+
X-Device-Id: admin-portal
|
|
11
|
+
X-Token-Id: {{$guid}}
|
|
12
|
+
X-Device-Info: Test Suite/1.0
|
|
13
|
+
X-Forwarded-For: 192.168.1.100
|
|
14
|
+
user_reference: test-admin
|
|
15
|
+
Content-Type: application/json
|
|
16
|
+
|
|
17
|
+
{
|
|
18
|
+
"key": "{{scopeKey}}",
|
|
19
|
+
"tags": ["test", "scope", "multi-consent-test"],
|
|
20
|
+
"attributes": {
|
|
21
|
+
"group": {
|
|
22
|
+
"domain": "morph-idm",
|
|
23
|
+
"workflow": "scope-group",
|
|
24
|
+
"key": "retail-customers"
|
|
25
|
+
},
|
|
26
|
+
"searchKey": "{{userKey}}"
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
### Publish Scope (draft -> active)
|
|
31
|
+
# @name publishScope
|
|
32
|
+
PATCH {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/scope/instances/{{scopeKey}}/transitions/publish?sync=true
|
|
33
|
+
Accept-Language: tr-TR
|
|
34
|
+
X-Request-Id: {{$guid}}
|
|
35
|
+
X-Device-Id: admin-portal
|
|
36
|
+
X-Token-Id: {{$guid}}
|
|
37
|
+
X-Device-Info: Test Suite/1.0
|
|
38
|
+
X-Forwarded-For: 192.168.1.100
|
|
39
|
+
user_reference: test-admin
|
|
40
|
+
Content-Type: application/json
|
|
41
|
+
|
|
42
|
+
{
|
|
43
|
+
"attributes": {
|
|
44
|
+
"publishedBy": "test-admin",
|
|
45
|
+
"publishedAt": "{{$datetime iso8601}}"
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
### Get Scope Data
|
|
50
|
+
# @name getScopeData
|
|
51
|
+
GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/scope/instances/{{scopeKey}}/functions/data
|
|
52
|
+
Accept-Language: tr-TR
|
|
53
|
+
X-Request-Id: {{$guid}}
|
|
54
|
+
X-Device-Id: admin-portal
|
|
55
|
+
X-Token-Id: {{$guid}}
|
|
56
|
+
user_reference: test-admin
|
|
57
|
+
|
|
58
|
+
### Get Scope State
|
|
59
|
+
# @name getScopeState
|
|
60
|
+
GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/scope/instances/{{scopeKey}}/functions/state
|
|
61
|
+
Accept-Language: tr-TR
|
|
62
|
+
X-Request-Id: {{$guid}}
|
|
63
|
+
X-Device-Id: admin-portal
|
|
64
|
+
X-Token-Id: {{$guid}}
|
|
65
|
+
user_reference: test-admin
|
|
66
|
+
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
###############################################################################
|
|
2
|
+
# STEP 4a: Consent 1 - User 1234 + Client IbWeb (Internet Banking)
|
|
3
|
+
###############################################################################
|
|
4
|
+
|
|
5
|
+
### Create Consent 1 - IbWeb
|
|
6
|
+
# @name createConsent1
|
|
7
|
+
POST {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/consent/instances/start?sync=true
|
|
8
|
+
Accept-Language: tr-TR
|
|
9
|
+
X-Request-Id: {{$guid}}
|
|
10
|
+
X-Device-Id: admin-portal
|
|
11
|
+
X-Token-Id: {{$guid}}
|
|
12
|
+
X-Device-Info: Test Suite/1.0
|
|
13
|
+
X-Forwarded-For: 192.168.1.100
|
|
14
|
+
user_reference: test-admin
|
|
15
|
+
Content-Type: application/json
|
|
16
|
+
|
|
17
|
+
{
|
|
18
|
+
"key": "{{consentKey1}}",
|
|
19
|
+
"tags": ["test", "consent", "ibweb", "multi-consent-test"],
|
|
20
|
+
"attributes": {
|
|
21
|
+
"user": {
|
|
22
|
+
"domain": "morph-idm",
|
|
23
|
+
"workflow": "user",
|
|
24
|
+
"key": "{{userKey}}",
|
|
25
|
+
"version": "1.0.0"
|
|
26
|
+
},
|
|
27
|
+
"client": {
|
|
28
|
+
"domain": "morph-idm",
|
|
29
|
+
"workflow": "client",
|
|
30
|
+
"key": "IbWeb",
|
|
31
|
+
"version": "1.0.0"
|
|
32
|
+
},
|
|
33
|
+
"scope": {
|
|
34
|
+
"domain": "morph-idm",
|
|
35
|
+
"workflow": "scope",
|
|
36
|
+
"key": "{{scopeKey}}",
|
|
37
|
+
"version": "1.0.0"
|
|
38
|
+
},
|
|
39
|
+
"roles": [
|
|
40
|
+
{
|
|
41
|
+
"role": "idm.full-authorized",
|
|
42
|
+
"allowance": "allow"
|
|
43
|
+
}
|
|
44
|
+
],
|
|
45
|
+
"grantedAt": "{{$datetime iso8601}}",
|
|
46
|
+
"expiresAt": "2027-01-01T00:00:00Z"
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
### Get Consent 1 Data
|
|
51
|
+
# @name getConsent1Data
|
|
52
|
+
GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/consent/instances/{{consentKey1}}/functions/data
|
|
53
|
+
Accept-Language: tr-TR
|
|
54
|
+
X-Request-Id: {{$guid}}
|
|
55
|
+
X-Device-Id: admin-portal
|
|
56
|
+
X-Token-Id: {{$guid}}
|
|
57
|
+
user_reference: test-admin
|
|
58
|
+
|
|
59
|
+
### Get Consent 1 State
|
|
60
|
+
# @name getConsent1State
|
|
61
|
+
GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/consent/instances/{{consentKey1}}/functions/state
|
|
62
|
+
Accept-Language: tr-TR
|
|
63
|
+
X-Request-Id: {{$guid}}
|
|
64
|
+
X-Device-Id: admin-portal
|
|
65
|
+
X-Token-Id: {{$guid}}
|
|
66
|
+
user_reference: test-admin
|
|
67
|
+
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
###############################################################################
|
|
2
|
+
# STEP 4b: Consent 2 - User 1234 + Client IbWeb + Corporate Scope
|
|
3
|
+
###############################################################################
|
|
4
|
+
|
|
5
|
+
### Create Consent 2 - Corporate
|
|
6
|
+
# @name createConsent2
|
|
7
|
+
POST {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/consent/instances/start?sync=true
|
|
8
|
+
Accept-Language: tr-TR
|
|
9
|
+
X-Request-Id: {{$guid}}
|
|
10
|
+
X-Device-Id: admin-portal
|
|
11
|
+
X-Token-Id: {{$guid}}
|
|
12
|
+
X-Device-Info: Test Suite/1.0
|
|
13
|
+
X-Forwarded-For: 192.168.1.100
|
|
14
|
+
user_reference: test-admin
|
|
15
|
+
Content-Type: application/json
|
|
16
|
+
|
|
17
|
+
{
|
|
18
|
+
"key": "{{consentKey2}}",
|
|
19
|
+
"tags": ["test", "consent", "corporate", "multi-consent-test"],
|
|
20
|
+
"attributes": {
|
|
21
|
+
"user": {
|
|
22
|
+
"domain": "morph-idm",
|
|
23
|
+
"workflow": "user",
|
|
24
|
+
"key": "{{userKey}}",
|
|
25
|
+
"version": "1.0.0"
|
|
26
|
+
},
|
|
27
|
+
"client": {
|
|
28
|
+
"domain": "morph-idm",
|
|
29
|
+
"workflow": "client",
|
|
30
|
+
"key": "{{clientKey}}",
|
|
31
|
+
"version": "1.0.0"
|
|
32
|
+
},
|
|
33
|
+
"scope": {
|
|
34
|
+
"domain": "morph-idm",
|
|
35
|
+
"workflow": "scope",
|
|
36
|
+
"key": "{{scopeKey2}}",
|
|
37
|
+
"version": "1.0.0"
|
|
38
|
+
},
|
|
39
|
+
"roles": [
|
|
40
|
+
{
|
|
41
|
+
"role": "idm.corporate-authorized",
|
|
42
|
+
"allowance": "allow"
|
|
43
|
+
}
|
|
44
|
+
],
|
|
45
|
+
"grantedAt": "{{$datetime iso8601}}",
|
|
46
|
+
"expiresAt": "2027-01-01T00:00:00Z"
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
### Get Consent 2 Data
|
|
51
|
+
# @name getConsent2Data
|
|
52
|
+
GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/consent/instances/{{consentKey2}}/functions/data
|
|
53
|
+
Accept-Language: tr-TR
|
|
54
|
+
X-Request-Id: {{$guid}}
|
|
55
|
+
X-Device-Id: admin-portal
|
|
56
|
+
X-Token-Id: {{$guid}}
|
|
57
|
+
user_reference: test-admin
|
|
58
|
+
|
|
59
|
+
### Get Consent 2 State
|
|
60
|
+
# @name getConsent2State
|
|
61
|
+
GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/consent/instances/{{consentKey2}}/functions/state
|
|
62
|
+
Accept-Language: tr-TR
|
|
63
|
+
X-Request-Id: {{$guid}}
|
|
64
|
+
X-Device-Id: admin-portal
|
|
65
|
+
X-Token-Id: {{$guid}}
|
|
66
|
+
user_reference: test-admin
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
###############################################################################
|
|
2
|
+
# STEP 5: Device for User 1234
|
|
3
|
+
###############################################################################
|
|
4
|
+
|
|
5
|
+
### Create Device - Web Browser
|
|
6
|
+
# @name createDevice
|
|
7
|
+
POST {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/device/instances/start?sync=true
|
|
8
|
+
Accept-Language: tr-TR
|
|
9
|
+
X-Request-Id: {{$guid}}
|
|
10
|
+
X-Device-Id: {{deviceId}}
|
|
11
|
+
X-Token-Id: {{$guid}}
|
|
12
|
+
X-Device-Info: Test Browser/1.0
|
|
13
|
+
X-Forwarded-For: 192.168.1.100
|
|
14
|
+
user_reference: anonymous
|
|
15
|
+
Content-Type: application/json
|
|
16
|
+
|
|
17
|
+
{
|
|
18
|
+
"key": "{{deviceId}}",
|
|
19
|
+
"tags": ["test", "web", "browser", "multi-consent-test"],
|
|
20
|
+
"attributes": {
|
|
21
|
+
"deviceId": "{{deviceId}}",
|
|
22
|
+
"installationId": "{{$guid}}",
|
|
23
|
+
"deviceInfo": {
|
|
24
|
+
"osName": "Windows",
|
|
25
|
+
"osVersion": "11",
|
|
26
|
+
"deviceModel": "Desktop",
|
|
27
|
+
"manufacturer": "Generic",
|
|
28
|
+
"userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) Chrome/120.0",
|
|
29
|
+
"screenResolution": "1920x1080",
|
|
30
|
+
"language": "tr-TR",
|
|
31
|
+
"timezone": "Europe/Istanbul"
|
|
32
|
+
},
|
|
33
|
+
"deviceCertificatePublicKey": "-----BEGIN PUBLIC KEY-----\nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA0Z3VS5JJcds3xfn/ygWy\nR7TZZXe1zE8bF9U3Q2m5yM7qKk0W5X3YZ8vN4V2rK1L8mM3C7H4aP2b6D5F1nE0i\nK9J2Y3L4N5M6O7P8Q9R0S1T2U3V4W5X6Y7Z8A9B0C1D2E3F4G5H6I7J8K9L0M1N2\n-----END PUBLIC KEY-----",
|
|
34
|
+
"appVersion": "3.0.0",
|
|
35
|
+
"pushToken": {
|
|
36
|
+
"platform": "apns",
|
|
37
|
+
"token": "a1b2c3d4e5f6789012345678901234567890abcdef1234567890abcdef123456",
|
|
38
|
+
"environment": "production",
|
|
39
|
+
"bundleId": "com.bank.mobilebanking",
|
|
40
|
+
"updatedAt": "{{$datetime iso8601}}"
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
### Assign User to Device (saved -> registered)
|
|
46
|
+
# @name assignUser
|
|
47
|
+
PATCH {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/device/instances/{{deviceId}}/transitions/assign-user?sync=true
|
|
48
|
+
Accept-Language: tr-TR
|
|
49
|
+
X-Request-Id: {{$guid}}
|
|
50
|
+
X-Device-Id: {{deviceId}}
|
|
51
|
+
X-Token-Id: {{$guid}}
|
|
52
|
+
X-Device-Info: Test Browser/1.0
|
|
53
|
+
X-Forwarded-For: 192.168.1.100
|
|
54
|
+
user_reference: {{userKey}}
|
|
55
|
+
Content-Type: application/json
|
|
56
|
+
|
|
57
|
+
{
|
|
58
|
+
"attributes": {
|
|
59
|
+
"user": {
|
|
60
|
+
"domain": "morph-idm",
|
|
61
|
+
"workflow": "user",
|
|
62
|
+
"key": "{{userKey}}",
|
|
63
|
+
"version": "1.0.0"
|
|
64
|
+
},
|
|
65
|
+
"certificates": [],
|
|
66
|
+
"lastSeenAt": "{{$datetime iso8601}}"
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
### Get Device Data
|
|
71
|
+
# @name getDeviceData
|
|
72
|
+
GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/device/instances/{{deviceId}}/functions/data
|
|
73
|
+
Accept-Language: tr-TR
|
|
74
|
+
X-Request-Id: {{$guid}}
|
|
75
|
+
X-Device-Id: {{deviceId}}
|
|
76
|
+
X-Token-Id: {{$guid}}
|
|
77
|
+
user_reference: {{userKey}}
|
|
78
|
+
|
|
79
|
+
### Get Device State
|
|
80
|
+
# @name getDeviceState
|
|
81
|
+
GET {{baseUrl}}/api/{{apiVersion}}/{{domain}}/workflows/device/instances/{{deviceId}}/functions/state
|
|
82
|
+
Accept-Language: tr-TR
|
|
83
|
+
X-Request-Id: {{$guid}}
|
|
84
|
+
X-Device-Id: {{deviceId}}
|
|
85
|
+
X-Token-Id: {{$guid}}
|
|
86
|
+
user_reference: {{userKey}}
|
|
87
|
+
|