Integrate Android biometrics with the shared Rust lease (#98)
This commit is contained in:
1 parent
5c933a99a3
commit
647dc1bb4b
21 files changed
+1473
-118
No files matched your search
@@ -310,14 +310,18 @@ impl<B: SecretStoreBackend, C: AuthenticationClock> AuthenticationSession<B, C>
|
||||
|
||||
/// Revoke every outstanding handle immediately.
|
||||
pub fn manual_lock(&self) -> Result<(), AuthenticationError> {
|
||||
let interrupted = self.shared.store.cancel_pending();
|
||||
let _operation = self.shared.operation()?;
|
||||
self.shared.revoke(RevocationReason::Manual)
|
||||
self.shared.revoke(RevocationReason::Manual)?;
|
||||
interrupted.map_err(Into::into)
|
||||
}
|
||||
|
||||
/// Cancel authentication and revoke any lease created by the pending interaction.
|
||||
pub fn cancel(&self) -> Result<(), AuthenticationError> {
|
||||
let interrupted = self.shared.store.cancel_pending();
|
||||
let _operation = self.shared.operation()?;
|
||||
self.shared.revoke(RevocationReason::Cancelled)
|
||||
self.shared.revoke(RevocationReason::Cancelled)?;
|
||||
interrupted.map_err(Into::into)
|
||||
}
|
||||
|
||||
/// Apply a new shared inactivity timeout to this process and any active lease.
|
||||
|
||||
Reference in new issue
Block a user