Authen:...l::plain(3)

πŸ“¦
version 1.2 Β· 3 versions
, in fedora 43

✨ 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 πŸ¦‹


πŸ’œ 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