Page MenuHomePhabricator

[keyserver] factor out identity auth and saveIdentityInfo from verifyUserLoggedIn
ClosedPublic

Authored by varun on Wed, Oct 9, 12:55 PM.
Tags
None
Referenced Files
F2983706: D13666.diff
Wed, Oct 16, 10:19 AM
F2982658: D13666.id45079.diff
Wed, Oct 16, 4:31 AM
F2979872: D13666.id45022.diff
Tue, Oct 15, 5:33 PM
F2977980: D13666.diff
Tue, Oct 15, 11:11 AM
Unknown Object (File)
Tue, Oct 15, 5:49 AM
Unknown Object (File)
Mon, Oct 14, 2:50 PM
Unknown Object (File)
Sun, Oct 13, 11:32 AM
Unknown Object (File)
Sat, Oct 12, 3:12 PM
Subscribers

Details

Summary

we'll use the authAndSaveIdentityInfo function in keyserver.js where we currently call verifyUserLoggedIn. this is because we care about how the identity info was fetched. if it was fetched directly from the identity service, there's no need to call syncPlatformDetails. however, if it fetched from mariadb, we should attempt to sync.

Depends on D13665

Test Plan

cleared access token from metadata table and logged out of keyserver. ran yarn dev and was logged back in. on subsequent yarn dev, auth metadata was fetched from mariadb

tested more in next diff

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage