PM-11354: TDE unlock since we already have the correct key from the identity service (#3835)

This commit is contained in:
David Perez 2024-08-27 08:54:51 -05:00 committed by GitHub
parent 0676cf8826
commit 522e3bb939
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 0 additions and 5 deletions

View file

@ -554,7 +554,6 @@ class AuthRepositoryImpl(
)
}
authDiskSource.storeUserKey(userId = userId, userKey = asymmetricalKey)
vaultRepository.syncIfNecessary()
return LoginResult.Success
}

View file

@ -1346,7 +1346,6 @@ class AuthRepositoryTest {
)
vaultRepository.syncIfNecessary()
}
fakeAuthDiskSource.assertUserKey(userId = USER_ID_1, userKey = asymmetricalKey)
assertEquals(LoginResult.Success, result)
}
@ -1392,12 +1391,9 @@ class AuthRepositoryTest {
organizationKeys = orgKeys,
)
}
coVerify(exactly = 0) {
vaultRepository.syncIfNecessary()
}
fakeAuthDiskSource.assertUserKey(userId = USER_ID_1, userKey = null)
assertEquals(LoginResult.Error(errorMessage = null), result)
}