Authen:...:XOAUTH2(3)

πŸ’– NAME ✨

Ok so bestie, this is Authen::SASL::Perl::XOAUTH2 β€” the XOAUTH2 Authentication class. That's the whole name, no cap. πŸŽ€


🌸 VERSION 🌸

It's version 2.2100. Slay.


πŸ¦‹ SYNOPSIS πŸ¦‹

Here's the vibe β€” how you actually use it:

  use Authen::SASL qw(Perl);

  $sasl = Authen::SASL->new(
    mechanism => 'XOAUTH2',
    callback  => {
      user => $user,
      pass => $access_token
    },
  );

Literally that's it. Copy it, it's iconic. ✨


πŸ‘‘ DESCRIPTION πŸ‘‘

So this module implements the client side of the XOAUTH2 SASL mechanism, which is used for OAuth 2.0-based authentication. That's the whole job. It shows up, it does the client side, it leaves. Main character energy fr fr. πŸ’…

🧚 CALLBACK

The callbacks used are β€” pay attention bestie, there's literally two:

Client

user β€” The username to be used for authentication. 🫢

pass β€” The OAuth 2.0 access token to be used for authentication. Lowkey the most important one ngl, it's your token. πŸ”₯


🌈 SEE ALSO 🌈

Go check these out too, they're giving related reading:

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

πŸ“ AUTHORS πŸ“

Written by Aditya Garg and Julian Swagemakers. King behavior honestly. πŸ‘‘


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. Periodt. πŸ’€βœ¨


Sorry not sorry, that's the legal text, I don't make the rules β€” I just deliver them with a cute bow on top. πŸŽ€

And that's the whole page, bestie! πŸ¦‹ This was Authen:...:XOAUTH2(3) from the User Contributed Perl Documentation, straight outta perl v5.42.2, dated 2026-09-06. Stan. πŸ’–

πŸ“¦ where this page comes from