Guardian v0.14.5 API Reference
Modules
A module that provides JWT based authentication for Elixir applications
Provides integration for channels to use Guardian tokens
Validates claims found in a JWT
This module helps to hook into the lifecycle of authentication
Default implementation of GuardianHooks
Functions for dealing with permissions sets
Provides a simple helper to provide easier access to the current user and their claims
Provides functions for managing authentication with sockets.
Usually you’d use this on the Socket to authenticate on connection on
the connect
function
Guardian.Plug contains functions that assist with interacting with Guardian via Plugs
This plug ensures that a valid JWT was provided and has been verified on the request
This plug ensures that a invalid JWT was provided and has been verified on the request
Use this plug to ensure that there are the correct permissions set in the claims found on the connection
This plug ensures that the current_resource has been set, usually in Guardian.Plug.LoadResource
A default error handler that can be used for failed authentication
Fetches the resource specified in a set of claims
Use this plug to verify a token contained in the header
Use this plug to verify a token contained in a session
Guardian Serializer Behaviour