WebService::Cmis::Agent::BasicAuth - authenticate via HTTP basic auth
This class implements authentication using HTTP basic authentication. It will be used when no other authentication mechanism has been specified for a client.
my $client = WebService::Cmis::getClient( url => "http://cmis.alfresco.com/service/cmis", useragent => new WebService::Cmis::Agent::BasicAuth( user => "user", password => "password", ); ); my $repo = $client->getRepository;
Parent class: WebService::Cmis::Agent
Create a new WebService::Cmis::Agent::BasicAuth.
See LWP::UserAgent for more options.
Parameters:
user
password
sets the user and password for the current user agent
invalidates the user credentials
overrides the method in LWP::UserAgent to implement the given authentication mechanism.
Copyright 2012-2013 Michael Daum
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See http://dev.perl.org/licenses/artistic.html.
To install WebService::Cmis, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WebService::Cmis
CPAN shell
perl -MCPAN -e shell install WebService::Cmis
For more information on module installation, please visit the detailed CPAN module installation guide.