Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.2.x will end 22 April 2024 (12 months).
  • Bug fixes for security issues in 4.2.x will end 7 October 2024 (18 months).
  • PHP version: minimum PHP 8.0.0 Note: minimum PHP version has increased since Moodle 4.1. PHP 8.1.x is supported too.

PHPMailer - PHP email creation and transport class. PHP Version 5.5.

Author: Marcus Bointon (Synchro/coolbru) <phpmailer@synchromedia.co.uk>
Author: Jim Jagielski (jimjag) <jimjag@gmail.com>
Author: Andy Prevost (codeworxtech) <codeworxtech@users.sourceforge.net>
Author: Brent R. Matzelle (original founder)
Copyright: 2012 - 2020 Marcus Bointon
Copyright: 2010 - 2012 Jim Jagielski
Copyright: 2004 - 2009 Andy Prevost
License: http://www.gnu.org/copyleft/lesser.html GNU Lesser General Public License
File Size: 44 lines (2 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

OAuthTokenProvider:: (1 method):
  getOauth64()


Interface: OAuthTokenProvider  - X-Ref

OAuthTokenProvider - OAuth2 token provider interface.
Provides base64 encoded OAuth2 auth strings for SMTP authentication.

getOauth64()   X-Ref
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: string