Authen:...THBEARER(3)

✨ Authen::SASL::Perl::OAUTHBEARER πŸ’…

okay bestie, gather round, because this one is literally the Authen::SASL::Perl::OAUTHBEARER manual page from the User Contributed Perl Documentation, and it's giving "OAuth 2.0 but make it SASL" πŸŽ€

VERSION: version 2.2100 β€” yes, that's the number, don't @ me 🫢


🌸 SYNOPSIS 🌸

here's the whole vibe, copy it exactly, no cap:

use Authen::SASL qw(Perl);

$sasl = Authen::SASL->new(
  mechanism => 'OAUTHBEARER',
  callback  => {
    user => $user,
    host => $hostname, #optional
    port => $port, #optional
    pass => $access_token
  },
);

like, that's it. that's the whole setup. slay ✨


πŸ’– DESCRIPTION πŸ’–

so this module implements the client side of the OAUTHBEARER SASL mechanism, which is used for OAuth 2.0-based authentication. it's lowkey iconic β€” it's the little guy doing the auth dance for you 🧚

πŸ¦‹ CALLBACK πŸ¦‹

the callbacks used are, and yes, you need to know all of them:

🌈 Client

  • user β€” the username to be used for authentication. literally just who you are, bestie.
  • host β€” the hostname to which the client will connect to. it is optional and can be omitted. so like, if you don't have it, no big deal πŸ’…
  • port β€” the destination port that the client will connect to. it should be a decimal positive integer string without leading zeros. it is optional and can be omitted. so 443 yes, 0443 absolutely not, and yes that matters, iykyk 😭
  • pass β€” the OAuth 2.0 access token to be used for authentication. this is the main character right here, the actual token, handle with care πŸ‘‘

πŸ‘€ SEE ALSO πŸ‘€

go check out the whole family, they're all iconic:

  • Authen::SASL
  • Authen::SASL::Perl

πŸ’œ AUTHORS πŸ’œ

written by Aditya Garg and Julian Swagemakers. periodt. 🫢


Copyright (c) 2025 Aditya Garg.

Copyright (c) 2025 Julian Swagemakers.

All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. fr fr, that's the actual license text, don't skip it 🌸


okay that's the whole page bestie, every option, every callback, every line of legal stuff, nothing skipped, we ate and left no crumbs πŸ’…βœ¨

aaaand that's a wrap! this was perl v5.42.2, dated 2026-09-06, from the Authen:...THBEARER(3) page β€” mwah, go authenticate something cute πŸ¦‹πŸ’–

πŸ“¦ where this page comes from