Log in to Moodle using one time user key based login URL. Auth plugin for organising simple SSO (single sign on) between moodle and your external web application.
Suggestion: create settings and change function loginpage_hook to send wantsurl as parameter to return in API login URL.
public function loginpage_hook() {
global $SESSION;
if ($this->should_login_redirect()) {
$this->redirect($this->config->ssourl . "?wantsurl=" . $SESSION->wantsurl );
}
return true;
}
@miguelurtado thanks for the suggestion.
Can you please describe the user case you would need this for better understanding?
And please feel free to submit a proper patch.
Suggestion: create settings and change function loginpage_hook to send wantsurl as parameter to return in API login URL.
Thanks for this plugin!