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