vaultrs-login
Adds login support for Vault clients from [vaultrs][1].
Installation
Add vaultrs-login
as a dependency to your cargo.toml:
[]
= "0.1.6"
Usage
use ;
use LoginClient;
use AppRoleLogin;
// Create a client
let mut client = new.unwrap;
// Use one of the login flows to obtain a token for the client
let role_id = String from;
let secret_id = String from;
let login = AppRoleLogin ;
client.login.await; // Token is automatically set to client
Testing
Run tests with cargo: