Michael Daum > WebService-Cmis-0.09 > WebService::Cmis::Agent::BasicAuth

Download:
WebService-Cmis-0.09.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  2
Open  0
View/Report Bugs
Source  

NAME ^

WebService::Cmis::Agent::BasicAuth - authenticate via HTTP basic auth

DESCRIPTION ^

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

METHODS ^

new(%params)

Create a new WebService::Cmis::Agent::BasicAuth.

See LWP::UserAgent for more options.

Parameters:

  • user
  • password
login(%params)

sets the user and password for the current user agent

Parameters:

  • user
  • password
logout()

invalidates the user credentials

get_basic_credentials()

overrides the method in LWP::UserAgent to implement the given authentication mechanism.

COPYRIGHT AND LICENSE ^

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.

syntax highlighting: