Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 3.11.x will end 14 Nov 2022 (12 months plus 6 months extension).
  • Bug fixes for security issues in 3.11.x will end 13 Nov 2023 (18 months plus 12 months extension).
  • PHP version: minimum PHP 7.3.0 Note: minimum PHP version has increased since Moodle 3.10. PHP 7.4.x is supported too.

Differences Between: [Versions 310 and 311] [Versions 39 and 311]

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: 271 lines (8 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_available_for_login()   X-Ref
Is this issue fully configured and enabled and can be used for login/signup

return: bool

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

get_display_name()   X-Ref
Display name for the issuers used on the login page

return: string