Merge branch 'MDL-64078-master' of https://github.com/Dagefoerde/moodle

This commit is contained in:
Jun Pataleta
2018-11-21 11:17:38 +08:00
+3 -1
View File
@@ -319,7 +319,9 @@ class api {
public static function create_endpoints_for_standard_issuer($type, $issuer) {
require_capability('moodle/site:config', context_system::instance());
if ($type == 'google') {
return self::create_endpoints_for_google($issuer);
$issuer = self::create_endpoints_for_google($issuer);
self::discover_endpoints($issuer);
return $issuer;
} else if ($type == 'microsoft') {
return self::create_endpoints_for_microsoft($issuer);
} else if ($type == 'facebook') {