Coherence v0.4.0 API Reference

Modules

Coherence is a full featured, configurable authentication and user management system for Phoenix, providing a number of optional features configured with a installation mix task

Implements basic HTTP authentication. To use add

Implements ip address based authentication. To use add

Implements Session based authentication. By default, it uses an Agent for session state. Additionally, a the session can be stored in a database with an Agent based cache

Implements token based authentication. To use add

Coherence Configuration Module

Confirmable allows users to confirm a new account

Handle confirmation actions

Common helper functions for Coherence Controllers

An Agent to save credential information

Stores current credential information

Schema to support inviting a someone to create an account

Handle invitation actions

Lockable disables an account after too many failed login attempts

Interface for handling localization of build in Coherence messages

Handle password recovery actions

This service handles reseting of passwords

Handle account registration actions

Plug to protect controllers that require login

Handles routing for Coherence

Add Coherence support to a User schema module

Handle the authentication actions

Supervisor to start Coherence services

Schema responsible for saving user tracking data for the —trackable-table option

Trackable tracks login information for each login

Handle unlock_with_token actions

Plug to validate the given option is enabled in the project’s configuration

Coherence setting for web resources

Define controller action redirection behaviour

Protocols

Database persistence of current_user data

Mix Tasks

This task will clean most of the files installed by the mix coh.install task

Configure the Coherence User Model for your Phoenix application. Coherence is composed of a number of modules that can be enabled with this installer

This task will clean most of the files installed by the mix coherence.install task

Configure the Coherence User Model for your Phoenix application. Coherence is composed of a number of modules that can be enabled with this installer

This will copy the controller templates from the web/controllers/ directory to the priv/templates/coherence.install/controllers directory