Module FPauth_core.Make_Auth

Make_Auth creates a module based on Auth_sign.MODEL. Provides local variables, middlewares and authenticator to run authentication strategies.

Parameters

Signature

Variables contains types, functions and local variables based on Auth_sign.MODEL.

SessionManager is a module that sets local variables from session for every request via Auth_sign.SESSIONMANAGER.auth_setup middleware

Authenticator contains functions for running FPauth.Auth_sign.STRATEGY list and performing logouts

module Router : Auth_sign.ROUTER with type entity = M.t

Router creates routes, needed for authentication. Contains some basic handlers and joins them with routes from strategies.