Apache2::REST::AppAuth - Base class for application authentication
Returns a new instance of this class.
If you override this, remember it is called without arguments by the framework.
Override this if you want to initialise this plugin with properties accessible through the Apache2::Request
Called by the framework like this:
$this->init($req) ;
Implement this to let the Application authentifier decide if the application can access the API or not.
Please set resp->status() and resp->message() ;
Returns true if authorized. False otherwise.
Called like this by the framework:
$this->authorize($req , $resp ) ;
To install Apache2::REST, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Apache2::REST
CPAN shell
perl -MCPAN -e shell install Apache2::REST
For more information on module installation, please visit the detailed CPAN module installation guide.