AssentPaseto

CircleCIHex.pm

A drop-in web token replacement for assent

What is Paseto?

Please see here or here

Installation

def deps do
  [
    {:assent_paseto, "~> 0.1.0"}
  ]
end

Additional Dependencies

  1. Erlang version >= 20.1
    • This is required because this was the first Erlang version to introduce crypto:sign/5.
  2. libsodium >= 1.0.13
  3. openssl >= 1.1
    • This is needed for XChaCha-Poly1305 used for V2.Local Paseto

Usage

Please first see assent's documentation first.

Following the above, usage is as simple as:

config = [
  client_id: "REPLACE_WITH_CLIENT_ID",
  client_secret: "REPLACE_WITH_CLIENT_SECRET",
  jwt_adapter: AssentPaseto
]