1 package Catalyst::Plugin::Authentication::Credential::HTTP::User;
3 use base 'LWP::UserAgent';
6 my ($self,$user,$pass)=@_;
7 @{$self->{credentials}}=($user,$pass);
9 sub get_basic_credentials {
11 return @{$self->{credentials}};
18 Catalyst::Plugin::Authentication::Credential::HTTP::User - Wrapper for LWP::UserAgent
22 A thin wrapper for L<LWP::UserAgent> to make basic auth simpler.
28 now takes just a username and password
30 =head2 get_basic_credentials
32 Returns the set credentials, takes no options.
36 Marcus Ramberg <mramberg@cpan.org
40 This software is licensed under the same terms as perl itself.