Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3247865
D6078.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.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
@@ -311,7 +311,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),
@@ -324,6 +324,7 @@
await validateInput(viewer, siweAuthRequestInputValidator, input);
const request: SIWEAuthRequest = input;
const { message, signature } = request;
+ const calendarQuery = normalizeCalendarQuery(request.calendarQuery);
// 1. Ensure that `message` is a well formed Comm SIWE Auth message.
const siweMessage: SIWEMessage = new SiweMessage(message);
@@ -365,7 +366,7 @@
if (!userID) {
throw new ServerError('placeholder_error');
}
- 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
Sat, Nov 16, 7:13 AM (15 h, 17 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2496780
Default Alt Text
D6078.diff (1 KB)
Attached To
Mode
D6078: [keyserver] Pass `calendarQuery` to `processSuccessfulLogin` in `siweAuthResponder`
Attached
Detach File
Event Timeline
Log In to Comment