Search moodle.org's
Developer Documentation

See Release Notes
Long Term Support Release

  • Bug fixes for general core bugs in 4.1.x will end 13 November 2023 (12 months).
  • Bug fixes for security issues in 4.1.x will end 10 November 2025 (36 months).
  • PHP version: minimum PHP 7.4.0 Note: minimum PHP version has increased since Moodle 4.0. PHP 8.0.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: 139 lines (4 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

OAuth:: (4 methods):
  __construct()
  getGrant()
  getToken()
  getOauth64()


Class: OAuth  - X-Ref

OAuth - OAuth2 authentication wrapper class.
Uses the oauth2-client package from the League of Extraordinary Packages.

__construct($options)   X-Ref
OAuth constructor.

param: array $options Associative array containing

getGrant()   X-Ref
Get a new RefreshToken.

return: RefreshToken

getToken()   X-Ref
Get a new AccessToken.

return: AccessToken

getOauth64()   X-Ref
Generate a base64-encoded OAuth token.

return: string