line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Net::HTTP::Spore::Middleware::Auth; |
2
|
|
|
|
|
|
|
$Net::HTTP::Spore::Middleware::Auth::VERSION = '0.08'; |
3
|
|
|
|
|
|
|
# ABSTRACT: base class for Authentication middlewares |
4
|
|
|
|
|
|
|
|
5
|
3
|
|
|
3
|
|
1803
|
use Moose; |
|
3
|
|
|
|
|
6
|
|
|
3
|
|
|
|
|
21
|
|
6
|
|
|
|
|
|
|
extends 'Net::HTTP::Spore::Middleware'; |
7
|
|
|
|
|
|
|
|
8
|
6
|
|
|
6
|
0
|
198
|
sub should_authenticate { $_[1]->env->{'spore.authentication'} } |
9
|
|
|
|
|
|
|
|
10
|
0
|
|
|
0
|
0
|
|
sub call { die "should be implemented" } |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
1; |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
__END__ |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
=pod |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
=encoding UTF-8 |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
=head1 NAME |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
Net::HTTP::Spore::Middleware::Auth - base class for Authentication middlewares |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
=head1 VERSION |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
version 0.08 |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
=head1 DESCRIPTION |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
Authentication middleware should extends this base class and implement the B<call> method |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
=head1 AUTHORS |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
=over 4 |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
=item * |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
Franck Cuny <franck.cuny@gmail.com> |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
=item * |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
Ash Berlin <ash@cpan.org> |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
=item * |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
Ahmad Fatoum <athreef@cpan.org> |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
=back |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
This software is copyright (c) 2012 by Linkfluence. |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
This is free software; you can redistribute it and/or modify it under |
55
|
|
|
|
|
|
|
the same terms as the Perl 5 programming language system itself. |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
=cut |