Implement OTP clipboard and QR TUI

This commit is contained in:
Hermes Agent
2026-08-10 11:11:53 +00:00
parent 1850846696
commit 71bbff934e
8 changed files with 1021 additions and 28 deletions

View File

@@ -36,6 +36,7 @@ pub enum AuthenticationTarget {
Entry(String),
Workflow(Box<WorkflowSubmission>),
Git(ironstorage::command::GitRequest),
Otp(crate::app::OtpUiRequest),
}
struct AuthenticationCompletion {
@@ -84,6 +85,10 @@ impl AuthenticationCoordinator {
self.request(AuthenticationTarget::Git(request));
}
pub fn request_otp(&mut self, request: crate::app::OtpUiRequest) {
self.request(AuthenticationTarget::Otp(request));
}
fn request(&mut self, target: AuthenticationTarget) {
self.generation = self.generation.wrapping_add(1);
let generation = self.generation;