Page MenuHomePhabricator

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

Authored by varun on Oct 9 2024, 12:55 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Nov 26, 3:59 PM
Unknown Object (File)
Sat, Nov 23, 3:56 PM
Unknown Object (File)
Nov 9 2024, 2:25 AM
Unknown Object (File)
Nov 9 2024, 12:58 AM
Unknown Object (File)
Nov 7 2024, 1:51 AM
Unknown Object (File)
Oct 31 2024, 3:39 AM
Unknown Object (File)
Oct 26 2024, 5:41 AM
Unknown Object (File)
Oct 25 2024, 3:17 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