View Source Vault.Auth.UserPass (libvault v0.2.4)

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

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

examples

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" })