udima-university/moodle-mod_jitsi

Error 400: redirect_uri_mismatch

Closed this issue · 4 comments

When I click on the link «authorize access» (/mod/jitsi/auth.php) , I get an authorization error, because Google Oauth2 service supported only a secure protocol (https://)
So in line 47 (auth.php) instead of http you need to write https, like this:
$redirect = filter_var('https://' . $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF'], FILTER_SANITIZE_URL);

Hi @atronat
I'm not sure that it is not possible to add a uri without a certificate. But you are right, it is more appropriate to have that line of code with https.
I will fix it today.

Thank you very much for the warning.

Hi, Sergio.
thanks for the answer
At least on two projects, I could not create a link with HTTP, only HTTPS

uri

it is strange, in my case it allows me. But as I say, the normal thing is that it is not allowed.
Captura de pantalla 2021-07-22 a las 12 43 10

Version 3.1.2 with the solution is in the Moodle plugin repository.
Thanks