Tiny library for Vault authentication using the AWS IAM engine.
The authenticate
function returns a serde_json::Value
of the standard Vault login API response body.
```rust use std::error::Error;
use serdejson::Value; use vaultiam_auth::{authenticate, Parameters};
async fn main() -> Result<(), Box
let response: serde_json::Value = authenticate(¶ms).await?;
let token = response .get("auth") .unwrap() .get("clienttoken") .unwrap() .asstr() .unwrap(); println!("{}", token); Ok(()) } ```