Authen:...l::plain(3)
β¨ NAME β¨
Authen::Credential::plain β it's an abstraction of a "plain" credential, bestie π (that's a Perl manual page, section 3, library calls, iykyk)
πΈ DESCRIPTION πΈ
okay so this is a helper module for Authen::Credential, and what it does is implement a "plain" credential β which is literally just a pair of a name and a clear text password. that's it. that's the whole vibe. simple, iconic, no notes π
it supports the following attributes:
nameβ the (usually user) name π«Άpassβ the associated (clear text) password π
and it supports the following targets for the prepare() method:
HTTP.Basicβ HTTP Basic authentication. it returns a string that can be used for the"WWW-Authenticate"header β¨
π EXAMPLE π
not me showing you exactly how it's done, periodt:
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"));
π¦ SEE ALSO π¦
- Authen::Credential β the main character, fr fr π
- <http://en.wikipedia.org/wiki/Basic_access_authentication> β the lore if you wanna go deeper π
π AUTHOR π
Lionel Cons <http://cern.ch/lionel.cons> β a whole legend π«Ά
Copyright (C) CERN 2011-2015
and that's the whole page, bestie β slay π this was documented with perl v5.42.0, dated 2025-07-25, and it ate. no cap. β¨ππ¦
π¦ where this page comes from
- fedora 43: perl-Authen-Credential 1.2-13.fc43 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms