@burgan-tech/morph-idm-runtime 0.0.1 → 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.1.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
|
@@ -1,139 +0,0 @@
|
|
|
1
|
-
using System.Threading.Tasks;
|
|
2
|
-
using System.Collections.Generic;
|
|
3
|
-
using System.Linq;
|
|
4
|
-
using BBT.Workflow.Definitions;
|
|
5
|
-
using BBT.Workflow.Scripting;
|
|
6
|
-
using BBT.Workflow.Scripting.Functions;
|
|
7
|
-
|
|
8
|
-
/// <summary>
|
|
9
|
-
/// Mapping for scope-details HTTP task
|
|
10
|
-
/// Prepares request body with scopes and allowedScopeGroups from client
|
|
11
|
-
/// Processes response to extract scope and scope-group details including auto-consent eligibility
|
|
12
|
-
/// </summary>
|
|
13
|
-
public class GetScopeMapping : ScriptBase, IMapping
|
|
14
|
-
{
|
|
15
|
-
public async Task<ScriptResponse> InputHandler(WorkflowTask task, ScriptContext context)
|
|
16
|
-
{
|
|
17
|
-
var httpTask = (task as HttpTask)!;
|
|
18
|
-
if (httpTask == null)
|
|
19
|
-
{
|
|
20
|
-
throw new InvalidOperationException("Task must be an HttpTask for RSA key generation");
|
|
21
|
-
}
|
|
22
|
-
var utilBaseAddress = await GetSecretAsync("vnext-secret", "workflow-secret","UtilBaseAddress");
|
|
23
|
-
if (string.IsNullOrEmpty(utilBaseAddress))
|
|
24
|
-
{
|
|
25
|
-
utilBaseAddress = "http://localhost:5288/api";
|
|
26
|
-
}
|
|
27
|
-
httpTask.Url = httpTask.Url.Replace("{UtilBaseAddress}", utilBaseAddress);
|
|
28
|
-
|
|
29
|
-
// Extract scopes from instance data
|
|
30
|
-
var scopesList = new List<string>();
|
|
31
|
-
var scopes = context.Instance?.Data?.scopes;
|
|
32
|
-
if (scopes != null)
|
|
33
|
-
{
|
|
34
|
-
foreach (var scope in scopes)
|
|
35
|
-
{
|
|
36
|
-
var scopeStr = scope?.ToString();
|
|
37
|
-
if (!string.IsNullOrEmpty(scopeStr))
|
|
38
|
-
{
|
|
39
|
-
scopesList.Add(scopeStr);
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
// Get allowed scope groups from client snapshot
|
|
45
|
-
var allowedScopeGroups = new List<string>();
|
|
46
|
-
var clientSnapshot = context.Instance?.Data?.clientSnapshot;
|
|
47
|
-
if (clientSnapshot != null && HasProperty(clientSnapshot, "allowedScopeGroups"))
|
|
48
|
-
{
|
|
49
|
-
var groups = clientSnapshot.allowedScopeGroups;
|
|
50
|
-
if (groups != null)
|
|
51
|
-
{
|
|
52
|
-
foreach (var group in groups)
|
|
53
|
-
{
|
|
54
|
-
var groupStr = group?.ToString();
|
|
55
|
-
if (!string.IsNullOrEmpty(groupStr))
|
|
56
|
-
{
|
|
57
|
-
allowedScopeGroups.Add(groupStr);
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
LogInformation($"GetScopeMapping InputHandler: scopes=[{string.Join(",", scopesList)}], allowedGroups=[{string.Join(",", allowedScopeGroups)}]");
|
|
64
|
-
|
|
65
|
-
// Set request body for scope details API
|
|
66
|
-
var requestBody = new
|
|
67
|
-
{
|
|
68
|
-
Scopes = scopesList,
|
|
69
|
-
AllowedScopeGroups = allowedScopeGroups
|
|
70
|
-
};
|
|
71
|
-
|
|
72
|
-
httpTask.SetBody(requestBody);
|
|
73
|
-
|
|
74
|
-
return await Task.FromResult(new ScriptResponse());
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
public async Task<ScriptResponse> OutputHandler(ScriptContext context)
|
|
78
|
-
{
|
|
79
|
-
|
|
80
|
-
// Check if we got a successful response
|
|
81
|
-
if (!HasProperty(context.Body, "data"))
|
|
82
|
-
{
|
|
83
|
-
LogWarning("GetScopeMapping OutputHandler: Invalid response - missing data");
|
|
84
|
-
return new ScriptResponse
|
|
85
|
-
{
|
|
86
|
-
Data = new
|
|
87
|
-
{
|
|
88
|
-
scopeValidationFailed = true,
|
|
89
|
-
scopeError = "Invalid response from scope details service.data is missing",
|
|
90
|
-
scopeSnapshot = context.Body
|
|
91
|
-
|
|
92
|
-
}
|
|
93
|
-
};
|
|
94
|
-
}
|
|
95
|
-
if (!HasProperty(context.Body.data, "IsValid"))
|
|
96
|
-
{
|
|
97
|
-
LogWarning("GetScopeMapping OutputHandler: Invalid response - missing data.isValid");
|
|
98
|
-
return new ScriptResponse
|
|
99
|
-
{
|
|
100
|
-
Data = new
|
|
101
|
-
{
|
|
102
|
-
scopeValidationFailed = true,
|
|
103
|
-
scopeError = "Invalid response from scope details service.isValid is false",
|
|
104
|
-
scopeSnapshot = context.Body.data
|
|
105
|
-
}
|
|
106
|
-
};
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
var isValid = context.Body.data.IsValid;
|
|
110
|
-
|
|
111
|
-
if (isValid != true)
|
|
112
|
-
{
|
|
113
|
-
var error = HasProperty(context.Body.data, "error") ? context.Body.data.error?.ToString() : "Scope validation failed";
|
|
114
|
-
LogWarning($"GetScopeMapping OutputHandler: Validation failed - {error}");
|
|
115
|
-
|
|
116
|
-
return new ScriptResponse
|
|
117
|
-
{
|
|
118
|
-
Data = new
|
|
119
|
-
{
|
|
120
|
-
scopeValidationFailed = true,
|
|
121
|
-
scopeError = error,
|
|
122
|
-
scopeSnapshot = context.Body.data
|
|
123
|
-
}
|
|
124
|
-
};
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
LogInformation($"GetScopeMapping OutputHandler: Scope validation passed");
|
|
129
|
-
|
|
130
|
-
// Return scope details for further processing
|
|
131
|
-
return new ScriptResponse
|
|
132
|
-
{
|
|
133
|
-
Data = new
|
|
134
|
-
{
|
|
135
|
-
scopeSnapshot = context.Body.data
|
|
136
|
-
}
|
|
137
|
-
};
|
|
138
|
-
}
|
|
139
|
-
}
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
using System.Threading.Tasks;
|
|
2
|
-
using BBT.Workflow.Scripting;
|
|
3
|
-
using System.Linq;
|
|
4
|
-
using BBT.Workflow.Scripting.Functions;
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
public class GrantValidationFailRule : ScriptBase, IConditionMapping
|
|
8
|
-
{
|
|
9
|
-
public async Task<bool> Handler(ScriptContext context)
|
|
10
|
-
{
|
|
11
|
-
// Get client data from previous validation
|
|
12
|
-
var clientFromDb = context.Instance?.Data?.client;
|
|
13
|
-
|
|
14
|
-
// Get grant type from input
|
|
15
|
-
var grantType = context.Instance?.Data?.grantType;
|
|
16
|
-
|
|
17
|
-
if (clientFromDb == null || string.IsNullOrEmpty(grantType?.ToString()))
|
|
18
|
-
{
|
|
19
|
-
LogWarning("Grant validation failed: Missing client or grant type data");
|
|
20
|
-
return true;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
// Get allowed grants from client
|
|
24
|
-
var allowedGrants = clientFromDb?.data?.data?.allowedGrants;
|
|
25
|
-
|
|
26
|
-
if (allowedGrants == null)
|
|
27
|
-
{
|
|
28
|
-
LogWarning("Grant validation failed: Client has no allowed grants defined");
|
|
29
|
-
return true;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
// Check if requested grant type is in allowed grants
|
|
33
|
-
bool isGrantAllowed = false;
|
|
34
|
-
foreach (var grant in allowedGrants)
|
|
35
|
-
{
|
|
36
|
-
if (grant?.ToString() == grantType?.ToString())
|
|
37
|
-
{
|
|
38
|
-
isGrantAllowed = true;
|
|
39
|
-
break;
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
LogInformation($"Grant validation: grantType={grantType}, isAllowed={isGrantAllowed}");
|
|
44
|
-
|
|
45
|
-
return !isGrantAllowed;
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
using System.Threading.Tasks;
|
|
2
|
-
using BBT.Workflow.Scripting;
|
|
3
|
-
using BBT.Workflow.Scripting.Functions;
|
|
4
|
-
|
|
5
|
-
/// <summary>
|
|
6
|
-
/// Rule: OTP verified successfully
|
|
7
|
-
/// Returns true if OTP was verified successfully
|
|
8
|
-
/// </summary>
|
|
9
|
-
public class OtpVerifiedRule : ScriptBase, IConditionMapping
|
|
10
|
-
{
|
|
11
|
-
public async Task<bool> Handler(ScriptContext context)
|
|
12
|
-
{
|
|
13
|
-
if (!HasProperty(context.Instance?.Data, "otpVerified"))
|
|
14
|
-
{
|
|
15
|
-
LogWarning("OtpVerifiedRule: otpVerified property not found");
|
|
16
|
-
return false;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
var otpVerified = context.Instance?.Data?.otpVerified;
|
|
20
|
-
|
|
21
|
-
if (otpVerified == true)
|
|
22
|
-
{
|
|
23
|
-
LogInformation("OtpVerifiedRule: OTP verified successfully");
|
|
24
|
-
return true;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
LogWarning("OtpVerifiedRule: OTP verification failed");
|
|
28
|
-
return false;
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
using System.Threading.Tasks;
|
|
2
|
-
using BBT.Workflow.Scripting;
|
|
3
|
-
using BBT.Workflow.Scripting.Functions;
|
|
4
|
-
|
|
5
|
-
/// <summary>
|
|
6
|
-
/// Rule: Push notification verified successfully
|
|
7
|
-
/// Returns true if push notification was approved by user
|
|
8
|
-
/// </summary>
|
|
9
|
-
public class PushVerifiedRule : ScriptBase, IConditionMapping
|
|
10
|
-
{
|
|
11
|
-
public async Task<bool> Handler(ScriptContext context)
|
|
12
|
-
{
|
|
13
|
-
if (!HasProperty(context.Instance?.Data, "pushVerified"))
|
|
14
|
-
{
|
|
15
|
-
LogWarning("PushVerifiedRule: pushVerified property not found");
|
|
16
|
-
return false;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
var pushVerified = context.Instance?.Data?.pushVerified;
|
|
20
|
-
|
|
21
|
-
if (pushVerified == true)
|
|
22
|
-
{
|
|
23
|
-
LogInformation("PushVerifiedRule: Push notification verified successfully");
|
|
24
|
-
return true;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
LogWarning("PushVerifiedRule: Push verification failed");
|
|
28
|
-
return false;
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
using System.Threading.Tasks;
|
|
2
|
-
using BBT.Workflow.Scripting;
|
|
3
|
-
|
|
4
|
-
/// <summary>
|
|
5
|
-
/// Rule for reject transition
|
|
6
|
-
/// Workflow: person-upsert
|
|
7
|
-
/// State: draft
|
|
8
|
-
/// </summary>
|
|
9
|
-
public class RejectRule : IConditionMapping
|
|
10
|
-
{
|
|
11
|
-
public async Task<bool> Handler(ScriptContext context)
|
|
12
|
-
{
|
|
13
|
-
// TODO: Implement actual rule logic
|
|
14
|
-
return true;
|
|
15
|
-
}
|
|
16
|
-
}
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
using System.Threading.Tasks;
|
|
2
|
-
using BBT.Workflow.Scripting;
|
|
3
|
-
using System.Linq;
|
|
4
|
-
using System.Collections.Generic;
|
|
5
|
-
using BBT.Workflow.Scripting.Functions;
|
|
6
|
-
public class ScopeValidationFailRule : ScriptBase, IConditionMapping
|
|
7
|
-
{
|
|
8
|
-
public async Task<bool> Handler(ScriptContext context)
|
|
9
|
-
{
|
|
10
|
-
// Get client data from previous validation
|
|
11
|
-
var clientFromDb = context.Instance?.Data?.client;
|
|
12
|
-
|
|
13
|
-
// Get requested scopes from input
|
|
14
|
-
var requestedScopes = context.Instance?.Data?.scopes;
|
|
15
|
-
|
|
16
|
-
if (clientFromDb == null)
|
|
17
|
-
{
|
|
18
|
-
LogWarning("Scope validation failed: Missing client data");
|
|
19
|
-
return true;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
if (requestedScopes == null)
|
|
23
|
-
{
|
|
24
|
-
LogWarning("Scope validation failed: No scopes requested");
|
|
25
|
-
return true;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
// Get allowed scopes from client
|
|
29
|
-
var allowedScopes = clientFromDb?.data?.data?.allowedScopeGroups;
|
|
30
|
-
|
|
31
|
-
if (allowedScopes == null)
|
|
32
|
-
{
|
|
33
|
-
LogWarning("Scope validation failed: Client has no allowed scopes defined");
|
|
34
|
-
return true;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
// Convert to lists for easier comparison
|
|
38
|
-
List<string> requestedList = new List<string>();
|
|
39
|
-
foreach (var scope in requestedScopes)
|
|
40
|
-
{
|
|
41
|
-
requestedList.Add(scope?.ToString());
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
List<string> allowedList = new List<string>();
|
|
45
|
-
foreach (var scope in allowedScopes)
|
|
46
|
-
{
|
|
47
|
-
allowedList.Add(scope?.ToString());
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
// Check if all requested scopes are in allowed scopes
|
|
51
|
-
bool allScopesAllowed = true;
|
|
52
|
-
foreach (var requestedScope in requestedList)
|
|
53
|
-
{
|
|
54
|
-
if (!allowedList.Contains(requestedScope))
|
|
55
|
-
{
|
|
56
|
-
LogWarning($"Scope validation failed: Requested scope '{requestedScope}' not allowed for client");
|
|
57
|
-
allScopesAllowed = false;
|
|
58
|
-
break;
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
LogInformation($"Scope validation: requestedScopes={string.Join(",", requestedList)}, allAllowed={allScopesAllowed}");
|
|
63
|
-
|
|
64
|
-
return !allScopesAllowed;
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
using System.Threading.Tasks;
|
|
2
|
-
using BBT.Workflow.Scripting;
|
|
3
|
-
using System.Linq;
|
|
4
|
-
using System.Collections.Generic;
|
|
5
|
-
using BBT.Workflow.Scripting.Functions;
|
|
6
|
-
public class ScopeValidationRule : ScriptBase, IConditionMapping
|
|
7
|
-
{
|
|
8
|
-
public async Task<bool> Handler(ScriptContext context)
|
|
9
|
-
{
|
|
10
|
-
// Get client data from previous validation
|
|
11
|
-
var clientFromDb = context.Instance?.Data?.client;
|
|
12
|
-
|
|
13
|
-
// Get requested scopes from input
|
|
14
|
-
var requestedScopes = context.Instance?.Data?.scopes;
|
|
15
|
-
|
|
16
|
-
if (clientFromDb == null)
|
|
17
|
-
{
|
|
18
|
-
LogWarning("Scope validation failed: Missing client data");
|
|
19
|
-
return false;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
if (requestedScopes == null)
|
|
23
|
-
{
|
|
24
|
-
LogWarning("Scope validation failed: No scopes requested");
|
|
25
|
-
return false;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
// Get allowed scopes from client
|
|
29
|
-
var allowedScopes = clientFromDb?.data?.data?.allowedScopeGroups;
|
|
30
|
-
|
|
31
|
-
if (allowedScopes == null)
|
|
32
|
-
{
|
|
33
|
-
LogWarning("Scope validation failed: Client has no allowed scopes defined");
|
|
34
|
-
return false;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
// Convert to lists for easier comparison
|
|
38
|
-
List<string> requestedList = new List<string>();
|
|
39
|
-
foreach (var scope in requestedScopes)
|
|
40
|
-
{
|
|
41
|
-
requestedList.Add(scope?.ToString());
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
List<string> allowedList = new List<string>();
|
|
45
|
-
foreach (var scope in allowedScopes)
|
|
46
|
-
{
|
|
47
|
-
allowedList.Add(scope?.ToString());
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
// Check if all requested scopes are in allowed scopes
|
|
51
|
-
bool allScopesAllowed = true;
|
|
52
|
-
foreach (var requestedScope in requestedList)
|
|
53
|
-
{
|
|
54
|
-
if (!allowedList.Contains(requestedScope))
|
|
55
|
-
{
|
|
56
|
-
LogWarning($"Scope validation failed: Requested scope '{requestedScope}' not allowed for client");
|
|
57
|
-
allScopesAllowed = false;
|
|
58
|
-
break;
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
LogInformation($"Scope validation: requestedScopes={string.Join(",", requestedList)}, allAllowed={allScopesAllowed}");
|
|
63
|
-
|
|
64
|
-
return allScopesAllowed;
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
|
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
using System;
|
|
2
|
-
using System.Threading.Tasks;
|
|
3
|
-
using BBT.Workflow.Definitions;
|
|
4
|
-
using BBT.Workflow.Scripting;
|
|
5
|
-
using BBT.Workflow.Scripting.Functions;
|
|
6
|
-
|
|
7
|
-
/// <summary>
|
|
8
|
-
/// Mapping for sending push notification to user's device
|
|
9
|
-
/// Calls mock server at port 3030
|
|
10
|
-
/// </summary>
|
|
11
|
-
public class SendPushMapping : ScriptBase, IMapping
|
|
12
|
-
{
|
|
13
|
-
public async Task<ScriptResponse> InputHandler(WorkflowTask task, ScriptContext context)
|
|
14
|
-
{
|
|
15
|
-
var httpTask = (task as HttpTask)!;
|
|
16
|
-
|
|
17
|
-
// Get device and user info
|
|
18
|
-
var userName = context.Instance?.Data?.userName?.ToString() ?? string.Empty;
|
|
19
|
-
var deviceId = context.Instance?.Data?.deviceSnapshot?.deviceId?.ToString() ?? string.Empty;
|
|
20
|
-
var userReference = context.Instance?.Data?.userSnapshot?.person?.reference?.ToString() ?? string.Empty;
|
|
21
|
-
|
|
22
|
-
// Set request body for push notification
|
|
23
|
-
context.SetBody(new
|
|
24
|
-
{
|
|
25
|
-
userName = userName,
|
|
26
|
-
deviceId = deviceId,
|
|
27
|
-
userReference = userReference,
|
|
28
|
-
notificationType = "login_approval",
|
|
29
|
-
title = "Login Onayı",
|
|
30
|
-
message = "Yeni bir giriş isteği var. Onaylıyor musunuz?"
|
|
31
|
-
});
|
|
32
|
-
|
|
33
|
-
LogInformation($"SendPushMapping InputHandler: Sending push to device {deviceId} for user {userName}");
|
|
34
|
-
|
|
35
|
-
return new ScriptResponse();
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
public async Task<ScriptResponse> OutputHandler(ScriptContext context)
|
|
39
|
-
{
|
|
40
|
-
if (!HasProperty(context.Body, "data"))
|
|
41
|
-
{
|
|
42
|
-
LogWarning("SendPushMapping OutputHandler: Invalid response - missing data");
|
|
43
|
-
return new ScriptResponse
|
|
44
|
-
{
|
|
45
|
-
Data = new
|
|
46
|
-
{
|
|
47
|
-
pushSent = false,
|
|
48
|
-
pushError = "Invalid response from Push service - data is missing",
|
|
49
|
-
pushSnapshot = context.Body
|
|
50
|
-
}
|
|
51
|
-
};
|
|
52
|
-
}
|
|
53
|
-
if (!HasProperty(context.Body.data, "success"))
|
|
54
|
-
{
|
|
55
|
-
LogWarning("SendPushMapping OutputHandler: Invalid response - missing data.success");
|
|
56
|
-
return new ScriptResponse
|
|
57
|
-
{
|
|
58
|
-
Data = new
|
|
59
|
-
{
|
|
60
|
-
pushSent = false,
|
|
61
|
-
pushError = "Invalid response from Push service - success is missing",
|
|
62
|
-
pushSnapshot = context.Body.data
|
|
63
|
-
}
|
|
64
|
-
};
|
|
65
|
-
}
|
|
66
|
-
if (context.Body.data.success != true)
|
|
67
|
-
{
|
|
68
|
-
LogWarning("SendPushMapping OutputHandler: Push send failed");
|
|
69
|
-
return new ScriptResponse
|
|
70
|
-
{
|
|
71
|
-
Data = new
|
|
72
|
-
{
|
|
73
|
-
pushSent = false,
|
|
74
|
-
pushError = "Push send failed",
|
|
75
|
-
pushSnapshot = context.Body.data
|
|
76
|
-
}
|
|
77
|
-
};
|
|
78
|
-
}
|
|
79
|
-
LogInformation("SendPushMapping OutputHandler: Push sent successfully");
|
|
80
|
-
return new ScriptResponse
|
|
81
|
-
{
|
|
82
|
-
Data = new
|
|
83
|
-
{
|
|
84
|
-
pushSent = true,
|
|
85
|
-
pushSnapshot = context.Body.data
|
|
86
|
-
}
|
|
87
|
-
};
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
using System.Threading.Tasks;
|
|
2
|
-
using BBT.Workflow.Scripting;
|
|
3
|
-
using BBT.Workflow.Scripting.Functions;
|
|
4
|
-
public class TokenGenerationSuccessRule : ScriptBase, IConditionMapping
|
|
5
|
-
{
|
|
6
|
-
public async Task<bool> Handler(ScriptContext context)
|
|
7
|
-
{
|
|
8
|
-
if(!HasProperty(context.Instance?.Data, "tokenCreation"))
|
|
9
|
-
{
|
|
10
|
-
LogWarning("Token generation validation failed: Missing token creation data");
|
|
11
|
-
return false;
|
|
12
|
-
}
|
|
13
|
-
// Get token workflow result
|
|
14
|
-
var tokenWorkflowInstance = context.Instance.Data.tokenCreation;
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
// Check if token workflow reached active or waiting-redeem state
|
|
18
|
-
// var tokenState = tokenWorkflowInstance?.attributes?.state?.key?.ToString();
|
|
19
|
-
|
|
20
|
-
// bool isSuccess = tokenState == "active" || tokenState == "waiting-redeem";
|
|
21
|
-
|
|
22
|
-
// LogInformation($"Token generation validation: state={tokenState}, isSuccess={isSuccess}");
|
|
23
|
-
|
|
24
|
-
// return isSuccess;
|
|
25
|
-
return true;
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
using System.Collections.Generic;
|
|
2
|
-
using System.Linq;
|
|
3
|
-
using System.Threading.Tasks;
|
|
4
|
-
using BBT.Workflow.Scripting;
|
|
5
|
-
using BBT.Workflow.Scripting.Functions;
|
|
6
|
-
|
|
7
|
-
public class UserValidationFailRule : ScriptBase, IConditionMapping
|
|
8
|
-
{
|
|
9
|
-
public async Task<bool> Handler(ScriptContext context)
|
|
10
|
-
{
|
|
11
|
-
// Get user data from task response
|
|
12
|
-
var userNameFromDb = context.Instance?.Data?.userName;
|
|
13
|
-
var userPasswordFromDb = context.Instance?.Data?.password;
|
|
14
|
-
|
|
15
|
-
// Get user data from input
|
|
16
|
-
var user = context.Instance?.Data?.user;
|
|
17
|
-
|
|
18
|
-
if (userNameFromDb == null || userPasswordFromDb == null)
|
|
19
|
-
{
|
|
20
|
-
LogWarning("User validation failed: Missing user data");
|
|
21
|
-
return true;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
// Validate user exists and is active
|
|
25
|
-
var userName = user?.data?.person?.key;
|
|
26
|
-
var passwords = user?.data?.passwords as IEnumerable<dynamic>;
|
|
27
|
-
var userPassword = passwords?.FirstOrDefault(p => p.type == "Password")?.source?.password;
|
|
28
|
-
|
|
29
|
-
LogInformation($"User validation: userNameFromDb={userNameFromDb}, userName={userName}, userPasswordFromDb={userPasswordFromDb}, userPassword={userPassword}");
|
|
30
|
-
var userNameMatches = userNameFromDb == userName;
|
|
31
|
-
var passwordMatches = userPassword == userPasswordFromDb;
|
|
32
|
-
|
|
33
|
-
return !userNameMatches || !passwordMatches;
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
using System.Threading.Tasks;
|
|
2
|
-
using BBT.Workflow.Definitions;
|
|
3
|
-
using BBT.Workflow.Scripting;
|
|
4
|
-
using BBT.Workflow.Scripting.Functions;
|
|
5
|
-
|
|
6
|
-
/// <summary>
|
|
7
|
-
/// Mapping for verifying OTP via HTTP task
|
|
8
|
-
/// Calls Mockoon mock server at port 3030
|
|
9
|
-
/// </summary>
|
|
10
|
-
public class VerifyOtpMapping : ScriptBase, IMapping
|
|
11
|
-
{
|
|
12
|
-
public async Task<ScriptResponse> InputHandler(WorkflowTask task, ScriptContext context)
|
|
13
|
-
{
|
|
14
|
-
var httpTask = (task as HttpTask)!;
|
|
15
|
-
|
|
16
|
-
// Get OTP code from request body and reference from instance
|
|
17
|
-
var otpCode = context.Body?.otpCode?.ToString() ?? string.Empty;
|
|
18
|
-
var otpReference = context.Instance?.Data?.otpReference?.ToString() ?? string.Empty;
|
|
19
|
-
var userName = context.Instance?.Data?.userName?.ToString() ?? string.Empty;
|
|
20
|
-
|
|
21
|
-
// Set request body for verification
|
|
22
|
-
context.SetBody(new
|
|
23
|
-
{
|
|
24
|
-
reference = otpReference,
|
|
25
|
-
code = otpCode,
|
|
26
|
-
userName = userName
|
|
27
|
-
});
|
|
28
|
-
|
|
29
|
-
LogInformation($"VerifyOtpMapping InputHandler: Verifying OTP for reference={otpReference}");
|
|
30
|
-
|
|
31
|
-
return new ScriptResponse();
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
public async Task<ScriptResponse> OutputHandler(ScriptContext context)
|
|
35
|
-
{
|
|
36
|
-
// Check response from mock server
|
|
37
|
-
if (HasProperty(context.Body, "success") && context.Body.success == true)
|
|
38
|
-
{
|
|
39
|
-
LogInformation("VerifyOtpMapping OutputHandler: OTP verified successfully");
|
|
40
|
-
|
|
41
|
-
return new ScriptResponse
|
|
42
|
-
{
|
|
43
|
-
Data = new
|
|
44
|
-
{
|
|
45
|
-
otpVerified = true
|
|
46
|
-
}
|
|
47
|
-
};
|
|
48
|
-
}
|
|
49
|
-
else
|
|
50
|
-
{
|
|
51
|
-
var errorMessage = context.Body?.error?.ToString() ?? "Invalid OTP";
|
|
52
|
-
LogWarning($"VerifyOtpMapping OutputHandler: OTP verification failed - {errorMessage}");
|
|
53
|
-
|
|
54
|
-
return new ScriptResponse
|
|
55
|
-
{
|
|
56
|
-
Data = new
|
|
57
|
-
{
|
|
58
|
-
otpVerified = false,
|
|
59
|
-
otpError = errorMessage
|
|
60
|
-
}
|
|
61
|
-
};
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
using System.Threading.Tasks;
|
|
2
|
-
using BBT.Workflow.Definitions;
|
|
3
|
-
using BBT.Workflow.Scripting;
|
|
4
|
-
using BBT.Workflow.Scripting.Functions;
|
|
5
|
-
|
|
6
|
-
/// <summary>
|
|
7
|
-
/// Mapping for verifying push notification approval
|
|
8
|
-
/// Calls mock server at port 3030
|
|
9
|
-
/// </summary>
|
|
10
|
-
public class VerifyPushMapping : ScriptBase, IMapping
|
|
11
|
-
{
|
|
12
|
-
public async Task<ScriptResponse> InputHandler(WorkflowTask task, ScriptContext context)
|
|
13
|
-
{
|
|
14
|
-
var httpTask = (task as HttpTask)!;
|
|
15
|
-
|
|
16
|
-
// Get push reference and approval status from request
|
|
17
|
-
var pushReference = context.Instance?.Data?.pushReference?.ToString() ?? string.Empty;
|
|
18
|
-
var approved = context.Body?.approved ?? false;
|
|
19
|
-
var userName = context.Instance?.Data?.userName?.ToString() ?? string.Empty;
|
|
20
|
-
|
|
21
|
-
// Set request body for verification
|
|
22
|
-
context.SetBody(new
|
|
23
|
-
{
|
|
24
|
-
reference = pushReference,
|
|
25
|
-
approved = approved,
|
|
26
|
-
userName = userName
|
|
27
|
-
});
|
|
28
|
-
|
|
29
|
-
LogInformation($"VerifyPushMapping InputHandler: Verifying push for reference={pushReference}");
|
|
30
|
-
|
|
31
|
-
return new ScriptResponse();
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
public async Task<ScriptResponse> OutputHandler(ScriptContext context)
|
|
35
|
-
{
|
|
36
|
-
// Check response from push verification service
|
|
37
|
-
if (HasProperty(context.Body, "success") && context.Body.success == true)
|
|
38
|
-
{
|
|
39
|
-
LogInformation("VerifyPushMapping OutputHandler: Push verification successful");
|
|
40
|
-
|
|
41
|
-
return new ScriptResponse
|
|
42
|
-
{
|
|
43
|
-
Data = new
|
|
44
|
-
{
|
|
45
|
-
pushVerified = true
|
|
46
|
-
}
|
|
47
|
-
};
|
|
48
|
-
}
|
|
49
|
-
else
|
|
50
|
-
{
|
|
51
|
-
var errorMessage = context.Body?.error?.ToString() ?? "Push verification failed";
|
|
52
|
-
LogWarning($"VerifyPushMapping OutputHandler: Push verification failed - {errorMessage}");
|
|
53
|
-
|
|
54
|
-
return new ScriptResponse
|
|
55
|
-
{
|
|
56
|
-
Data = new
|
|
57
|
-
{
|
|
58
|
-
pushVerified = false,
|
|
59
|
-
pushError = errorMessage
|
|
60
|
-
}
|
|
61
|
-
};
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
|