initial commit
This commit is contained in:
commit
63e569c6ca
9 changed files with 369 additions and 0 deletions
13
redirector.php
Normal file
13
redirector.php
Normal file
|
@ -0,0 +1,13 @@
|
|||
<?php
|
||||
require_once('../../config.php');
|
||||
|
||||
$pmurl = optional_param('wantsurl',"/", PARAM_TEXT);
|
||||
|
||||
$PAGE->set_url(new moodle_url('local/auto_oauth2/redirector.php'));
|
||||
|
||||
$PAGE->set_context(\context_system::instance());
|
||||
|
||||
$PAGE->set_title("Redirect");
|
||||
|
||||
// id may need to be adjusted
|
||||
redirect($CFG->wwwroot.'/auth/oauth2/login.php?id=1&wantsurl='.$pmurl.'&sesskey='.sesskey());
|
Loading…
Add table
Add a link
Reference in a new issue