-
Notifications
You must be signed in to change notification settings - Fork 0
/
settings.php
30 lines (24 loc) · 1.14 KB
/
settings.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<?php
/**
* SUAP Integration
*
* This module provides extensive analytics on a platform of choice
* Currently support Google Analytics and Piwik
*
* @package auth_suap
* @category upgrade
* @copyright 2020 Kelson Medeiros <[email protected]>
* @license https://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
defined('MOODLE_INTERNAL') || die;
require_once(__DIR__.'/locallib.php');
if ($ADMIN->fulltree) {
// Introductory explanation.
$settings->add(new admin_setting_heading('auth_suap/pluginname', '', get_string('auth_suap_description', 'auth_suap')));
create_setting_configtext($settings, "base_url", "https://suap.ifrn.edu.br");
create_setting_configtext($settings, "client_id", "veja no SUAP");
create_setting_configtext($settings, "client_secret", "veja no SUAP");
create_setting_configtext($settings, "verify_token_url", "adicionar url de verificação do token");
$authplugin = get_auth_plugin('suap');
display_auth_lock_options($settings, $authplugin->authtype, $authplugin->userfields, get_string('auth_fieldlocks_help', 'auth'), true, true, $authplugin->get_custom_user_profile_fields());
}