Authen::Credential::plain - abstraction of a "plain" credential
This helper module for Authen::Credential implements a "plain" credential, that is a pair of name and clear text password.
It supports the following attributes:
the (usually user) name
the associated (clear text) password
It supports the following targets for the prepare() method:
HTTP Basic authentication, it returns a string that can be used for the WWW-Authenticate header
WWW-Authenticate
use Authen::Credential; use HTTP::Request; # get the credential from somewhere $cred = Authen::Credential->parse(...); # use the prepare() method to get ready-to-use data $req = HTTP::Request->new(GET => $url); $req->header(Authorization => $cred->prepare("HTTP.Basic"));
Authen::Credential, http://en.wikipedia.org/wiki/Basic_access_authentication.
Lionel Cons http://cern.ch/lionel.cons
Copyright (C) CERN 2011-2015
To install Authen::Credential, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Authen::Credential
CPAN shell
perl -MCPAN -e shell install Authen::Credential
For more information on module installation, please visit the detailed CPAN module installation guide.