Guardian v1.1.0 API Reference
Modules
Guardian provides a singular interface for authentication in Elixir applications
that is token
based
Working with configuration for guardian
An optional plugin to Guardian to provide permissions for your tokens
Provides functions for managing authentication with sockets
Provides functions for the implementation module for dealing with Guardian in a Plug environment
This plug ensures that a valid token was provided and has been verified on the request
This plug ensures that a resource is not logged in
Calculates keys for use with plug
This plug loads the resource associated with a previously
validated token. Tokens are found and validated using the Verify*
plugs
Helps to build plug pipelines for use with Guardian and associated plugs
Looks for and validates a token found in the request cookies
Looks for and validates a token found in the Authorization
header
Looks for and validates a token found in the session
The behaviour module for all token modules
Deals with things JWT This module should not be used directly. It is intended to be used by Guardian on behalf of your implementation as it’s token module
Provides a behaviour that specifies how to fetch the secret for the token
Verifies standard jwt fields
Interface for verifying tokens
Exceptions
Mix Tasks
Generates a secret and prints it to the terminal