MDL-64078 oauth2: Google service relies on autodiscovery

This commit is contained in:
Jan Dageförde 2018-11-19 10:23:28 +01:00
parent 0225ad42ea
commit 3559677cb7
No known key found for this signature in database
GPG Key ID: 2239CFA64B5E4FCC

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') {