Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F2903870
D6078.id20279.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D6078.id20279.diff
View Options
diff --git a/keyserver/src/responders/user-responders.js b/keyserver/src/responders/user-responders.js
--- a/keyserver/src/responders/user-responders.js
+++ b/keyserver/src/responders/user-responders.js
@@ -314,7 +314,7 @@
const siweAuthRequestInputValidator = tShape({
signature: t.String,
message: t.String,
- calendarQuery: t.maybe(entryQueryInputValidator),
+ calendarQuery: entryQueryInputValidator,
deviceTokenUpdateRequest: t.maybe(deviceTokenUpdateRequestInputValidator),
platformDetails: tPlatformDetails,
watchedIDs: t.list(t.String),
@@ -332,6 +332,7 @@
deviceTokenUpdateRequest,
platformDetails,
} = request;
+ const calendarQuery = normalizeCalendarQuery(request.calendarQuery);
// 1. Ensure that `message` is a well formed Comm SIWE Auth message.
const siweMessage: SIWEMessage = new SiweMessage(message);
@@ -383,7 +384,7 @@
}
// 5. Complete login with call to `processSuccessfulLogin(...)`.
- return await processSuccessfulLogin(viewer, input, userID);
+ return await processSuccessfulLogin(viewer, input, userID, calendarQuery);
}
const updatePasswordRequestInputValidator = tShape({
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Oct 6, 11:56 PM (21 h, 38 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2251486
Default Alt Text
D6078.id20279.diff (1 KB)
Attached To
Mode
D6078: [keyserver] Pass `calendarQuery` to `processSuccessfulLogin` in `siweAuthResponder`
Attached
Detach File
Event Timeline
Log In to Comment