mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
MDL-58220 oauth2: Remove is_system_account_setup_supported
This was left from an earlier branch but no longer useful.
This commit is contained in:
parent
5b0b35c096
commit
7949b3b2ac
2 changed files with 5 additions and 15 deletions
|
@ -122,13 +122,11 @@ class renderer extends plugin_renderer_base {
|
|||
$systemauth = $OUTPUT->pix_icon('no', get_string('systemaccountnotconnected', 'tool_oauth2'), 'tool_oauth2');
|
||||
}
|
||||
|
||||
if ($issuer->is_system_account_setup_supported()) {
|
||||
$params = ['id' => $issuer->get('id'), 'action' => 'auth'];
|
||||
$authurl = new moodle_url('/admin/tool/oauth2/issuers.php', $params);
|
||||
$icon = $OUTPUT->pix_icon('auth', get_string('connectsystemaccount', 'tool_oauth2'), 'tool_oauth2');
|
||||
$authlink = html_writer::link($authurl, $icon);
|
||||
$systemauth .= ' ' . $authlink;
|
||||
}
|
||||
|
||||
$systemauthstatuscell = new html_table_cell($systemauth);
|
||||
|
||||
|
|
|
@ -171,14 +171,6 @@ class issuer extends persistent {
|
|||
return (!empty($this->get('clientid')) && !empty($this->get('clientsecret')));
|
||||
}
|
||||
|
||||
/**
|
||||
* Does this OAuth service support system authentication?
|
||||
* @return boolean
|
||||
*/
|
||||
public function is_system_account_setup_supported() {
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Do we have a refresh token for a system account?
|
||||
* @return boolean
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue