Skip to content

Latest commit

 

History

History
40 lines (31 loc) · 4.6 KB

File metadata and controls

40 lines (31 loc) · 4.6 KB

lti_get_type_type_config -> devuelve una estructura con la configuración de la herramienta

El error lo está dando en auth.php línea 91:

// If we're unable to load up config; we cannot trust the redirect uri for POSTing to.
if (empty($config)) {
    throw new moodle_exception('invalidrequest', 'error');
} else {
    $uris = array_map("trim", explode("\n", $config->lti_redirectionuris));
    if (!in_array($redirecturi, $uris)) {
        throw new moodle_exception('invalidrequest', 'error');
    }
}

$redirecturi vale "http://localhost:5000" y no está en la lista de redirecciones

La redirect uri sale de:

$redirecturi = optional_param('redirect_uri', '', PARAM_URL);

Que es de la petición que se hace a auth.ph: http://localhost:8080/mod/lti/auth.php?scope=openid&response_type=id_token&response_mode=form_post&prompt=none&client_id=LfsIbPy0kerGaOA&redirect_uri=http%3A%2F%2Flocalhost%3A5000&state=state-6932e230-9112-4e59-8543-6a9417986de4&nonce=9ea8a3912bc94116a29b668c2b2dd1c4d2f4c7dc2aeb11efbb600242ac150005&login_hint=2&lti_message_hint=3

¿De donde sale? tool url?

"

<script type="text/javascript"> // </script> "