kanidm_cli/webauthn/
mod.rs#[cfg(target_os = "linux")]
mod u2fhid;
#[cfg(target_os = "linux")]
use u2fhid::get_authenticator_backend;
#[cfg(target_os = "macos")]
mod mozilla;
#[cfg(target_os = "macos")]
use mozilla::get_authenticator_backend;
#[cfg(target_os = "freebsd")]
mod mozilla;
#[cfg(target_os = "freebsd")]
use mozilla::get_authenticator_backend;
#[cfg(target_os = "windows")]
mod win10;
#[cfg(target_os = "windows")]
use win10::get_authenticator_backend;
use webauthn_authenticator_rs::{AuthenticatorBackend, WebauthnAuthenticator};
pub(crate) fn get_authenticator() -> WebauthnAuthenticator<impl AuthenticatorBackend> {
WebauthnAuthenticator::new(get_authenticator_backend())
}