diff options
author | Jesse Luehrs <doy@tozt.net> | 2023-07-16 16:19:00 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-16 16:19:00 -0400 |
commit | 389655d8f76b49a8a391deda28cf75bd99d17a96 (patch) | |
tree | 81ac50e86b85cefd9b6d7f33f0a823733a9c50e3 | |
parent | c42dd174b05c7aea0022207fa36b57243208b887 (diff) | |
parent | 0e63285b6aaabe0f4bd71b890924f80e3a27e3cb (diff) | |
download | rbw-389655d8f76b49a8a391deda28cf75bd99d17a96.tar.gz rbw-389655d8f76b49a8a391deda28cf75bd99d17a96.zip |
Merge pull request #123 from troyready/yubikey
add yubikey support
-rw-r--r-- | src/api.rs | 2 | ||||
-rw-r--r-- | src/bin/rbw-agent/actions.rs | 1 |
2 files changed, 3 insertions, 0 deletions
@@ -62,6 +62,7 @@ impl TwoFactorProviderType { pub fn message(&self) -> &str { match *self { Self::Authenticator => "Enter the 6 digit verification code from your authenticator app.", + Self::Yubikey => "Insert your Yubikey and push the button.", Self::Email => "Enter the PIN you received via email.", _ => "Enter the code." } @@ -71,6 +72,7 @@ impl TwoFactorProviderType { pub fn header(&self) -> &str { match *self { Self::Authenticator => "Authenticator App", + Self::Yubikey => "Yubikey", Self::Email => "Email Code", _ => "Two Factor Authentication", } diff --git a/src/bin/rbw-agent/actions.rs b/src/bin/rbw-agent/actions.rs index 2f34c6b..4d77133 100644 --- a/src/bin/rbw-agent/actions.rs +++ b/src/bin/rbw-agent/actions.rs @@ -150,6 +150,7 @@ pub async fn login( Err(rbw::error::Error::TwoFactorRequired { providers }) => { let supported_types = vec![ rbw::api::TwoFactorProviderType::Authenticator, + rbw::api::TwoFactorProviderType::Yubikey, rbw::api::TwoFactorProviderType::Email, ]; |