Error 400: redirect_uri_mismatch
Closed this issue · 4 comments
atronat commented
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);
SergioComeron commented
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.
atronat commented
SergioComeron commented
SergioComeron commented
Version 3.1.2 with the solution is in the Moodle plugin repository.
Thanks