summary refs log tree commit diff
path: root/lib/Net/HTTP/Spore/Middleware/Auth.pm
blob: 0d422a5d3a9ef7637210308adb690c6b47f83199 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
package Net::HTTP::Spore::Middleware::Auth;

# ABSTRACT: base class for Authentication middlewares

use Moose;
extends 'Net::HTTP::Spore::Middleware';

sub should_authenticate { $_[1]->env->{'spore.authentication'} }

sub call { die "should be implemented" }

1;

=head1 DESCRIPTION

Authentication middleware should extends this base class and implement the B<call> method