line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Catalyst::Authentication::Credential::HTTP::Proxy::User; |
2
|
|
|
|
|
|
|
|
3
|
2
|
|
|
2
|
|
11
|
use strict; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
78
|
|
4
|
2
|
|
|
2
|
|
19
|
use warnings; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
63
|
|
5
|
|
|
|
|
|
|
|
6
|
2
|
|
|
2
|
|
12
|
use base 'LWP::UserAgent'; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
2768
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
sub credentials { |
9
|
0
|
|
|
0
|
1
|
|
my ($self,$user,$pass)=@_; |
10
|
0
|
|
|
|
|
|
@{$self->{credentials}}=($user,$pass); |
|
0
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
} |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
sub get_basic_credentials { |
14
|
0
|
|
|
0
|
1
|
|
my $self = shift; |
15
|
0
|
|
|
|
|
|
return @{$self->{credentials}}; |
|
0
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
} |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
1; |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
=head1 NAME |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
Catalyst::Authentication::Credential::HTTP::Proxy::User - Wrapper for LWP::UserAgent |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
=head1 DESCRIPTION |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
A thin wrapper for L<LWP::UserAgent> to make basic auth simpler. |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
=head1 METHODS |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
=head2 credentials |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
now takes just a username and password |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
=head2 get_basic_credentials |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
Returns the set credentials, takes no options. |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
=head1 AUTHOR |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
Marcus Ramberg <mramberg@cpan.org> |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
=head1 LICENSE |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
This software is licensed under the same terms as perl itself. |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
=cut |
47
|
|
|
|
|
|
|
|