View Source Vault.Auth.JWT (libvault v0.2.4)
JWT Auth Adapter.
Link to this section Summary
Functions
Login with a JWT role and jwt token. Defaults the auth path to jwt
Link to this section Functions
Login with a JWT role and jwt token. Defaults the auth path to jwt
examples
Examples
# Atom Map
{:ok, token, ttl} = Vault.Auth.JWT.login(vault, %{role: "dev-role", jwt: "my-jwt"})
# String Map
{:ok, token, ttl} = Vault.Auth.JWT.login(vault, %{"role" => "my-role", "jwt" => "my-jwt"})