Moodle PHP Documentation 4.3
Moodle 4.3.5 (Build: 20240610) (7dcfaa79f78)
moodle_phpmailer_oauth Class Reference
Inheritance diagram for moodle_phpmailer_oauth:
PHPMailer\PHPMailer\OAuth PHPMailer\PHPMailer\OAuthTokenProvider

Public Member Functions

 getOauth64 ()
 Generate a base64-encoded OAuth token.
 

Protected Member Functions

 getGrant ()
 Get a new RefreshToken.
 
 getToken ()
 Get a new AccessToken.
 

Protected Attributes

string $oauthClientId = ''
 The client ID, generated in the app definition of the service you're connecting to.
 
string $oauthClientSecret = ''
 The client secret, generated in the app definition of the service you're connecting to.
 
string $oauthRefreshToken = ''
 The refresh token, used to obtain new AccessTokens.
 
AccessToken $oauthToken
 The current OAuth access token.
 
string $oauthUserEmail = ''
 The user's email address, usually used as the login ID and also the from address when sending email.
 
AbstractProvider $provider
 An instance of the League OAuth Client Provider.
 

Member Function Documentation

◆ getGrant()

PHPMailer\PHPMailer\OAuth::getGrant ( )
protectedinherited

Get a new RefreshToken.

Return values
RefreshToken

◆ getOauth64()

PHPMailer\PHPMailer\OAuth::getOauth64 ( )
inherited

Generate a base64-encoded OAuth token.

Return values
string

Implements PHPMailer\PHPMailer\OAuthTokenProvider.

◆ getToken()

moodle_phpmailer_oauth::getToken ( )
protected

Get a new AccessToken.

Return values
AccessToken

Reimplemented from PHPMailer\PHPMailer\OAuth.


The documentation for this class was generated from the following file: