ultravisor 1.3.10 → 1.3.11
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ultravisor",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.11",
|
|
4
4
|
"description": "Cyclic process execution with ai integration.",
|
|
5
5
|
"main": "source/Ultravisor.cjs",
|
|
6
6
|
"bin": {
|
|
@@ -56,16 +56,16 @@
|
|
|
56
56
|
"dependencies": {
|
|
57
57
|
"better-sqlite3": "^11.10.0",
|
|
58
58
|
"cron": "^4.4.0",
|
|
59
|
-
"meadow": "^2.0.
|
|
59
|
+
"meadow": "^2.0.41",
|
|
60
60
|
"meadow-connection-sqlite": "^1.0.20",
|
|
61
|
-
"meadow-migrationmanager": "^1.0.
|
|
61
|
+
"meadow-migrationmanager": "^1.0.1",
|
|
62
62
|
"orator": "^6.1.2",
|
|
63
|
-
"orator-authentication": "^1.0.
|
|
63
|
+
"orator-authentication": "^1.0.4",
|
|
64
64
|
"orator-serviceserver-restify": "^2.0.11",
|
|
65
65
|
"pict": "^1.0.370",
|
|
66
66
|
"pict-service-commandlineutility": "^1.0.19",
|
|
67
67
|
"pict-serviceproviderbase": "^1.0.4",
|
|
68
|
-
"ultravisor-beacon": "^1.0.
|
|
68
|
+
"ultravisor-beacon": "^1.0.1",
|
|
69
69
|
"ultravisor-file-stream": "^1.0.0",
|
|
70
70
|
"ws": "^8.20.0"
|
|
71
71
|
},
|
|
@@ -106,31 +106,52 @@ class UltravisorAuthBeaconBridge extends libPictService
|
|
|
106
106
|
* Run a Login on the auth beacon. Returns the auth beacon's
|
|
107
107
|
* Outputs unchanged so callers can read SessionToken / UserContext
|
|
108
108
|
* / ExpiresAt directly.
|
|
109
|
+
*
|
|
110
|
+
* pRequestingBeacon is an optional `{ Name, BeaconID, UserAgent? }`
|
|
111
|
+
* hash identifying which beacon's web app initiated the login. The
|
|
112
|
+
* auth beacon includes it in its audit log; no behavior changes.
|
|
109
113
|
*/
|
|
110
|
-
login(pUsername, pPassword, pMethod)
|
|
114
|
+
login(pUsername, pPassword, pMethod, pRequestingBeacon)
|
|
111
115
|
{
|
|
112
116
|
return this._dispatchAuthAction('AUTH_Login',
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
117
|
+
this._withRequestingBeacon(
|
|
118
|
+
{
|
|
119
|
+
Username: pUsername,
|
|
120
|
+
Password: pPassword,
|
|
121
|
+
Method: pMethod || 'password'
|
|
122
|
+
}, pRequestingBeacon));
|
|
118
123
|
}
|
|
119
124
|
|
|
120
|
-
validateSession(pSessionToken)
|
|
125
|
+
validateSession(pSessionToken, pRequestingBeacon)
|
|
121
126
|
{
|
|
122
127
|
return this._dispatchAuthAction('AUTH_ValidateSession',
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
128
|
+
this._withRequestingBeacon(
|
|
129
|
+
{
|
|
130
|
+
SessionToken: pSessionToken || ''
|
|
131
|
+
}, pRequestingBeacon));
|
|
126
132
|
}
|
|
127
133
|
|
|
128
|
-
logout(pSessionToken)
|
|
134
|
+
logout(pSessionToken, pRequestingBeacon)
|
|
129
135
|
{
|
|
130
136
|
return this._dispatchAuthAction('AUTH_Logout',
|
|
137
|
+
this._withRequestingBeacon(
|
|
138
|
+
{
|
|
139
|
+
SessionToken: pSessionToken || ''
|
|
140
|
+
}, pRequestingBeacon));
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
/**
|
|
144
|
+
* Merge an optional `RequestingBeacon` descriptor into a Settings
|
|
145
|
+
* object the bridge is about to dispatch. Centralized so any future
|
|
146
|
+
* action that wants to forward it gets the same shape.
|
|
147
|
+
*/
|
|
148
|
+
_withRequestingBeacon(pSettings, pRequestingBeacon)
|
|
149
|
+
{
|
|
150
|
+
if (pRequestingBeacon && typeof pRequestingBeacon === 'object')
|
|
131
151
|
{
|
|
132
|
-
|
|
133
|
-
}
|
|
152
|
+
pSettings.RequestingBeacon = pRequestingBeacon;
|
|
153
|
+
}
|
|
154
|
+
return pSettings;
|
|
134
155
|
}
|
|
135
156
|
|
|
136
157
|
authorizeAction(pSessionToken, pCapability, pAction)
|