Example #1
-1
 /**
  * Constructor.
  *
  * @throws Exception
  * @throws dml_exception
  */
 public function __construct()
 {
     global $CFG;
     parent::__construct(['clientId' => get_config('auth/googleoauth2', $this->name . 'clientid'), 'clientSecret' => get_config('auth/googleoauth2', $this->name . 'clientsecret'), 'redirectUri' => $CFG->wwwroot . '/auth/googleoauth2/' . $this->name . '_redirect.php', 'scopes' => $this->scopes]);
 }