libvault v0.2.0 Vault.Auth.Approle
Approle Auth Adapter.
Link to this section Summary
Functions
login with a role id, and secret id. Defaults the auth path to approle
Link to this section Functions
Link to this function
login(vault, params)
login with a role id, and secret id. Defaults the auth path to approle
Examples
# Atom Map
{:ok, token, ttl } = Vault.Auth.Approle.login(%{role_id: role_id, secret_id: secret_id})
# String map
{:ok, token, ttl } = Vault.Auth.Approle.login(%{"role_id" => role_id, "secret_id" => secret_id})