AppSamurai authentication sub-modules are built on a base module that provides a foundation for all features related to identity verification and user authentication.
This module provides developers with a standard framework for implementing authentication modules using AppSamurai. The framework includes configuration, initialization, basic input validation and filtering, error checking, and logging to needed by all AppSamurai auth modules.
Authentication modules that inherit from Auth::Base must define the "Authenticator()" method, which accepts the username (credential_0) and the mapped credential (password). The Authenticator() method must return 0 on failure and 1 on success. Other commonly overridden methods are "Configure()", which includes the setup of the $self-{conf} > configuration hash, and "Initialize()", which performs any needed pre-authentication setup work.
This module is not used directly, but should be used in conjunction with Apache::AppSamurai for authentication module configuration and use within AppSamurai.
Overall, Apache::AppSamurai::AuthBase is a useful tool for developing AppSamurai authentication modules that are consistent, easy to maintain, and re-usable.
Version 1.01: N/A