Add repository resource to all the MI Makefile.PLs
[catagits/Catalyst-Authentication-Credential-HTTP-Proxy.git] / lib / Catalyst / Authentication / Credential / HTTP / User.pm
CommitLineData
1e64d768 1package Catalyst::Plugin::Authentication::Credential::HTTP::User;
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
22Catalyst::Plugin::Authentication::Credential::HTTP::User - Wrapper for LWP::UserAgent
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
40Marcus Ramberg <mramberg@cpan.org
41
42=head1 LICENSE
43
c46e37e2 44This software is licensed under the same terms as perl itself.i
45
46=cut
47