public static function init_standard_issuer($type) {
        require_capability('moodle/site:config', context_system::instance());
        if ($type == 'google') {
            return self::init_google();
        } else if ($type == 'microsoft') {
            return self::init_microsoft();
        } else if ($type == 'facebook') {
            return self::init_facebook();
        } else if ($type == 'nextcloud') {
            return self::init_nextcloud();
        } else {
            throw new moodle_exception('OAuth 2 service type not recognised: ' . $type);
        }
    }