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.

Differences Between: [Versions 310 and 311] [Versions 310 and 400] [Versions 310 and 401] [Versions 310 and 402] [Versions 310 and 403]

Class for loading/storing issuers from the DB.

Copyright: 2017 Damyon Wiese
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 229 lines (7 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class


Class: issuer  - X-Ref

Class for loading/storing issuer from the DB

define_properties()   X-Ref
Return the definition of the properties of this model.

return: array

before_validate()   X-Ref
Hook to execute before validate.

return: void

get_endpoint_url($type)   X-Ref
Helper the get a named service endpoint.

param: string $type
return: string|false

is_valid_login_domain($email)   X-Ref
Perform matching against the list of allowed login domains for this issuer.

param: string $email The email to check.
return: boolean

is_authentication_supported()   X-Ref
Does this OAuth service support user authentication?

return: boolean

is_configured()   X-Ref
Return true if this issuer looks like it has been configured.

return: boolean

is_system_account_connected()   X-Ref
Do we have a refresh token for a system account?

return: boolean

validate_baseurl($value)   X-Ref
Custom validator for end point URLs.
Because we send Bearer tokens we must ensure SSL.

param: string $value The value to check.
return: lang_string|boolean