The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Apache2::REST::AppAuth - Base class for application authentication

new

Returns a new instance of this class.

If you override this, remember it is called without arguments by the framework.

init

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) ;

authorize

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 ) ;