Yubico
Enables integration with the Yubico validation platform, so you can use Yubikey's one-time-password in your Rust application, allowing a user to authenticate via Yubikey.
Current features
- Synchronous Yubikey client API library, validation protocol version 2.0.
- Asynchronous Yubikey client API library relying on Tokio
Note: The USB-related features have been moved to a sepatated repository, yubico-manager
Usage
Add this to your Cargo.toml
[]
= "0.9"
The following are a list of Cargo features that can be enabled or disabled:
- online-tokio (enabled by default): Provides integration to Tokio using futures.
You can enable or disable them using the example below:
[]
= "0.9"
# don't include the default features (online-tokio)
= false
# cherry-pick individual features
= []
OTP with Default Servers
extern crate yubico;
use *;
use verify;
OTP with custom API servers
extern crate yubico;
use verify;
use *;
Asynchronous OTP validation
extern crate futures;
extern crate tokio;
extern crate yubico;
use Future;
use verify_async;
extern crate yubico;
use stdin;
use Config;
Changelog
- 0.10.0: Upgrade to `tokio` 1.1 and `reqwest` 0.11
- 0.9.2: (Yanked) Dependencies update
- 0.9.1: Set HTTP Proxy (Basic-auth is optional)
- 0.9.0: Moving to `tokio` 0.2 and `reqwest` 0.10
- 0.9.0-alpha.1: Moving to `futures` 0.3.0-alpha.19
- 0.8: Rename the `sync` and `async` modules to `sync_verifier` and `async_verifier` to avoid the use of the `async` reserved keyword.