Integrate Android biometrics with the shared Rust lease (#98)
Android ARM verification / rust (push) Failing after 47m23s
Android ARM verification / android (push) Failing after 8s
Dependency security audit / rustsec (push) Successful in 23s

This commit is contained in:
hugo committed 2026-10-09 16:32:01 +02:00
1 parent 5c933a99a3
commit 647dc1bb4b
21 files changed
+1473 -118

No files matched your search

+6 -2
View File
@@ -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.