Moodle PHP Documentation 4.5
Moodle 4.5dev (Build: 20240606) (d3ae1391abe)
PHPMailer\PHPMailer\OAuthTokenProvider Interface Reference

OAuthTokenProvider - OAuth2 token provider interface. More...

Inheritance diagram for PHPMailer\PHPMailer\OAuthTokenProvider:
PHPMailer\PHPMailer\OAuth moodle_phpmailer_oauth

Public Member Functions

 getOauth64 ()
 Generate a base64-encoded OAuth token ensuring that the access token has not expired.
 

Detailed Description

OAuthTokenProvider - OAuth2 token provider interface.

Provides base64 encoded OAuth2 auth strings for SMTP authentication.

See also
OAuth
SMTP\authenticate()
Author
Peter Scopes (pdscopes)
Marcus Bointon (Synchro/coolbru) phpma.nosp@m.iler.nosp@m.@sync.nosp@m.hrom.nosp@m.edia..nosp@m.co.u.nosp@m.k

Member Function Documentation

◆ getOauth64()

PHPMailer\PHPMailer\OAuthTokenProvider::getOauth64 ( )

Generate a base64-encoded OAuth token ensuring that the access token has not expired.

The string to be base 64 encoded should be in the form: "user=<user_email_address>::001auth=Bearer <access_token>\001\001"

Return values
string

Implemented in PHPMailer\PHPMailer\OAuth.


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