---
name: "Authen::SASL::Perl::XOAUTH2"
section: "3pm"
platform: "linux"
package: "perl-authen-sasl"
version: "2.2100-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/Authen::SASL::Perl::XOAUTH2"
---

# Authen::SASL::Perl::XOAUTH2(3pm)

XOAUTH2 Authentication class

## NAME

Authen::SASL::Perl::XOAUTH2 - XOAUTH2 Authentication class

## VERSION

version 2.2100

## SYNOPSIS

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

## DESCRIPTION

This module implements the client side of the XOAUTH2 SASL mechanism, which is used for OAuth 2.0-based authentication.

### CALLBACK

The callbacks used are:

*Client*

- user

  The username to be used for authentication.

- pass

  The OAuth 2.0 access token to be used for authentication.

## SEE ALSO

Authen::SASL, Authen::SASL::Perl

## AUTHORS

Written by Aditya Garg and Julian Swagemakers.

## COPYRIGHT

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.
