Authen::SASL::Perl::OAUTHBEARER3pm
Oauthbearer authentication class
Usage
use Authen::SASL qw(Perl);$sasl = Authen::SASL->new(mechanism => 'OAUTHBEARER',callback => {user => $user,host => $hostname, #optionalport => $port, #optionalpass => $access_token},);
Version
version 2.2100
Overview
This module implements the client side of the OAUTHBEARER 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.
- host
-
The hostname to which the client will connect to. It is optional and can be omitted.
- 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.
- pass
-
The OAuth 2.0 access token to be used for authentication.