Authen::Simple(3pm)

πŸ“¦
version 0.5 Β· 6 versions
, in debian bookworm, debian trixie, ubuntu jammy, ubuntu noble

✨ NAME ✨

Authen::Simple β€” Simple Authentication πŸ’… (yes bestie, it's Authen::Simple, a Perl module, and it does exactly what it says on the tin)


🌸 SYNOPSIS 🌸

okay so here's the whole vibe in one code block, no edits, just vibes:

use Authen::Simple;
use Authen::Simple::Kerberos;
use Authen::Simple::SMB;

my $simple = Authen::Simple->new(
    Authen::Simple::Kerberos->new( realm => 'REALM.COMPANY.COM' ),
    Authen::Simple::SMB->new( domain => 'DOMAIN', pdc => 'PDC' )
);

if ( $simple->authenticate( $username, $password ) ) {
    # successfull authentication
}

(and yes, the comment says # successfull authentication β€” that's the original's spelling, we're keeping it, we don't touch the lore 🫢)


πŸ¦‹ DESCRIPTION πŸ¦‹

It's a simple and consistent framework for authentication. That's literally it. That's the whole pitch. You plug in adapters, they all speak the same language, and you get one clean authenticate call instead of seventeen different APIs giving you seventeen different headaches. iconic behaviour honestly ✨


πŸ‘‘ METHODS πŸ‘‘

  • new β€” this method takes an array of Authen::Simple adapters. Required. Like, genuinely required, don't skip it, it's not optional, bestie πŸ’€
  • authenticate( $username, $password ) β€” returns true on success and false on failure. That's it. That's the deal. True means you're in, false means you're not πŸŽ€

🌈 SEE ALSO 🌈

the whole friend group, all of them, every single one:

  • Authen::Simple::ActiveDirectory.
  • Authen::Simple::CDBI.
  • Authen::Simple::DBI.
  • Authen::Simple::FTP.
  • Authen::Simple::HTTP.
  • Authen::Simple::Kerberos.
  • Authen::Simple::LDAP.
  • Authen::Simple::NIS.
  • Authen::Simple::PAM.
  • Authen::Simple::Passwd.
  • Authen::Simple::POP3.
  • Authen::Simple::RADIUS.
  • Authen::Simple::SMB.
  • Authen::Simple::SMTP.
  • Authen::Simple::SSH.

πŸ’– AUTHOR πŸ’–

Christian Hansen chansen@cpan.org β€” thank you for your service, king πŸ‘‘


This program is free software, you can redistribute it and/or modify it under the same terms as Perl itself. fr fr, go wild, it's free 🌸


and that's the whole page bestie!! this was documented as Authen::Simple(3pm), a User Contributed Perl Documentation page, and the footer said perl v5.32.0 on 2021-01-02 β€” so yeah, that's the version and the date, mwah, bye πŸ’œ
πŸ“¦ where this page comes from