Skip to content
Plug for JWT authentication
Elixir
Latest commit 1012647 Aug 19, 2015 @bryanjos Updated to Plug 1.0

README.md

PlugJwt

A JWT Plug

Usage:

    #When reading from joken config block
    plug PlugJwt

    #or the module that implements `Joken.Config` can be set explicitly
    plug PlugJwt, config_module: My.Joken.Config

    #You may also add a list of expected claims to verify
    plug PlugJwt, config_module: My.Joken.Config, claims: [aud: "spiderman", admin: true]

Parameters:

PlugJWT will attempt to read from your joken config block. Parameters can also be placed on the Plug itself which overrides the joken configuration

  • config_module: The module that implements Joken.Config
Something went wrong with that request. Please try again.