Tag old version. Update trunk to new version with additional tests
[catagits/Catalyst-Authentication-Credential-HTTP-Proxy.git] / lib / Catalyst / Authentication / Credential / HTTP / Proxy / User.pm
CommitLineData
b2cd5ce7 1package Catalyst::Authentication::Credential::HTTP::Proxy::User;
1e64d768 2
c46e37e2 3use strict;
4use warnings;
5
1e64d768 6use base 'LWP::UserAgent';
7
8sub credentials {
9 my ($self,$user,$pass)=@_;
10 @{$self->{credentials}}=($user,$pass);
11}
c46e37e2 12
1e64d768 13sub get_basic_credentials {
14 my $self = shift;
15 return @{$self->{credentials}};
16}
17
181;
19
20=head1 NAME
21
b2cd5ce7 22Catalyst::Authentication::Credential::HTTP::Proxy::User - Wrapper for LWP::UserAgent
1e64d768 23
24=head1 DESCRIPTION
25
26A thin wrapper for L<LWP::UserAgent> to make basic auth simpler.
27
28=head1 METHODS
29
30=head2 credentials
31
32now takes just a username and password
33
34=head2 get_basic_credentials
35
36Returns the set credentials, takes no options.
37
38=head1 AUTHOR
39
b2cd5ce7 40Marcus Ramberg <mramberg@cpan.org>
1e64d768 41
42=head1 LICENSE
43
b2cd5ce7 44This software is licensed under the same terms as perl itself.
c46e37e2 45
46=cut
47