mirror of
https://github.com/moodle/moodle.git
synced 2025-03-14 12:40:01 +01:00
MDL-58090 oauth2: Improve help
Provide a link to the help for setting up an OAuth 2 service. Part of MDL-58220
This commit is contained in:
parent
722a6d0881
commit
870a4a824e
@ -157,8 +157,9 @@ if ($mform && $mform->is_cancelled()) {
|
||||
|
||||
} else {
|
||||
echo $OUTPUT->header();
|
||||
echo $OUTPUT->heading(get_string('pluginname', 'tool_oauth2'));
|
||||
echo $OUTPUT->doc_link('OAuth2_Services', get_string('serviceshelp', 'tool_oauth2'));
|
||||
$issuers = core\oauth2\api::get_all_issuers();
|
||||
var_dump(\core\oauth2\api::get_system_oauth_client($issuers[0], $PAGE->url));
|
||||
echo $renderer->issuers_table($issuers);
|
||||
|
||||
$addurl = new moodle_url('/admin/tool/oauth2/issuers.php', ['action' => 'edit']);
|
||||
|
@ -96,3 +96,4 @@ $string['userfieldinternalfield'] = 'Internal field name';
|
||||
$string['userfieldinternalfield_help'] = 'Name of the Moodle user field that should be mapped from the external field.';
|
||||
$string['createfromtemplate'] = 'Create an OAuth 2 service from a template';
|
||||
$string['createfromtemplatedesc'] = 'Choose one of the OAuth 2 service template below to create an OAuth service with a valid configuration for one of the known service types. This will create the OAuth 2 service, with all the correct end points and parameters required for authentication, but you will still need to enter the client ID and secret for the new service before it can be used.';
|
||||
$string['serviceshelp'] = 'Service provider setup instructions: (Google, Facebook, Microsoft).';
|
||||
|
Loading…
x
Reference in New Issue
Block a user