Macfly.Macaroon (macfly v0.2.14)
Summary
Types
@type t() :: %Macfly.Macaroon{ caveats: [Macfly.Caveat.t()], location: String.t(), nonce: Macfly.Nonce.t(), tail: binary() }
Functions
Link to this function
add_third_party(m, location, tp_key, caveats \\ [])
@spec add_third_party(t(), String.t(), <<_::256>>, [Macfly.Caveat.t()]) :: t()
Link to this function
attenuate(m, list)
@spec attenuate(t(), [Macfly.Caveat.t()]) :: t()
Link to this function
decode(token, options \\ %Options{})
@spec decode(String.t(), Macfly.Options.t()) :: {:ok, t()} | {:error, any()}
Link to this function
encode(m)
Link to this function
from_wire(wire_macaroon, options \\ %Options{})
Link to this function
new(key, kid_or_nonce, location, caveats \\ [])
@spec new(binary(), binary() | Macfly.Nonce.t(), String.t(), [Macfly.Caveat.t()]) :: t()
Link to this function