Page MenuHomePhabricator

[keyserver] Stop creating two cookies on siwe registration
ClosedPublic

Authored by inka on Tue, May 7, 3:53 AM.
Tags
None
Referenced Files
F1783341: D11919.id39891.diff
Sat, May 18, 10:43 AM
Unknown Object (File)
Sat, May 18, 7:14 AM
Unknown Object (File)
Sat, May 18, 3:55 AM
Unknown Object (File)
Fri, May 17, 8:51 PM
Unknown Object (File)
Fri, May 17, 5:21 PM
Unknown Object (File)
Thu, May 16, 1:26 PM
Unknown Object (File)
Mon, May 13, 8:18 PM
Unknown Object (File)
Mon, May 13, 3:08 PM
Subscribers
None

Details

Summary

issue: ENG-8052
We want to match how keyserverAuthResponder was refactored. We want to stop creating two cookies in case of registration. The cookie is created later by processSuccessfulLogin.

Test Plan

Tested that it is possible to register a user with siwe (ENG-8044 still occurs, but the user is added to the table and receives a user cookie).
Tested that it is possible to login with siwe

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

inka requested review of this revision.Tue, May 7, 4:11 AM
ashoat added inline comments.
keyserver/src/responders/user-responders.js
703 ↗(On Diff #39879)

Let's move this check to occur earlier, before the checkAndInvalidateSIWENonceEntry call. I think it's best to call it before we do any mutations

730–741 ↗(On Diff #39879)

Thanks for moving this to happen after processSuccessfulLogin!

This revision is now accepted and ready to land.Tue, May 7, 6:56 AM

Move call to verifyCalendarQueryThreadIDs