To add deep link functionality to be able to sso directly to a course:
Edit instance/login/index.php, add the following lines somewhere towards the top, under the require_once line:
// Allow us to pass a particular URL to the index page so that we can deep link
if (isset($_GET['redir']) && $_GET['redir'] != "" && !isset($SESSION->wantsurl)) {
$SESSION->wantsurl = $_GET['redir'];
}
You can then deep link by posting the login credentials to like:
https://moodle.school.edu/login/index.php?redir=https://moodle.school.edu/course/view.php%3Fid%3D73
General developer forum
weblinkauth...gone? need auto-login&redirect...
This discussion has been locked so you can no longer reply to it.