Coherence v0.5.1 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 Server for session state. Additionally, a the session can be stored in a database with an Server 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

Stores current credential information

Database persistence of current_user data

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

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

Mix Tasks

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

Generate Coherence controllers

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

Generate Coherence controllers

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