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)
Sat, Mar 15, 12:12 PM
Unknown Object (File)
Sat, Mar 15, 3:08 AM
Unknown Object (File)
Fri, Feb 28, 6:44 AM
Unknown Object (File)
Fri, Feb 28, 6:44 AM
Unknown Object (File)
Feb 6 2025, 10:40 AM
Unknown Object (File)
Feb 6 2025, 3:57 AM
Unknown Object (File)
Feb 6 2025, 3:56 AM
Unknown Object (File)
Feb 3 2025, 12:13 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
Lint Not Applicable
Unit
Tests Not Applicable