Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 3.10.x will end 8 November 2021 (12 months).
  • Bug fixes for security issues in 3.10.x will end 9 May 2022 (18 months).
  • PHP version: minimum PHP 7.2.0 Note: minimum PHP version has increased since Moodle 3.8. PHP 7.3.x and 7.4.x are supported too.

This file to proccess Oauth2 connects for backpack.

Author: Tung Thai <Tung.ThaiDuc@nashtechglobal.com>
Copyright: 2020 Tung Thai
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 96 lines (3 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

auth:: (2 methods):
  complete_data()
  is_logged_oauth2()


Class: auth  - X-Ref

Proccess Oauth2 connects to backpack site.

complete_data(\core_badges\oauth2\client $client, $redirecturl)   X-Ref
To complete data after login.

param: client $client object.
param: string $redirecturl the url redirect.

is_logged_oauth2($externalbackpackid, $userid)   X-Ref
Check user has been logged the backpack site.

param: int $externalbackpackid ID of external backpack.
param: int $userid ID of user.
return: bool