libvault v0.1.1 Vault.Auth.UserPass

Userpass Auth Adapter

https://www.vaultproject.io/docs/auth/userpass.html

Link to this section Summary

Functions

Login with a username and password. Defaults the auth path to userpass

Link to this section Functions

Link to this function login(vault, params)

Login with a username and password. Defaults the auth path to userpass

Examples

# Atom map
{:ok, token, ttl} = Vault.Auth.Userpass.login(%{ username: username, password: password })

# String Map
{:ok, token, ttl} = Vault.Auth.Userpass.login(%{ "username" => "username", "password" => "password" })