| Apache2-REST documentation | Contained in the Apache2-REST distribution. |
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) ;
| Apache2-REST documentation | Contained in the Apache2-REST distribution. |
package Apache2::REST::AppAuth ; use warnings ; use strict ; use Apache2::Const qw( :common :http );
sub new{ my ( $class ) = @_ ; return bless {} , $class ; }
sub init{ my ( $self , $req ) = @_ ; # Nothing by default }
sub authorize{ my ( $self , $req , $resp ) = @_ ; return 1 ; } 1;