MDL-73827 lib: Fix URL blocked error for userinfo endpoint
commit3daeecd3d2a2a6054de7325655599bb32ef8a7ee
authorSara Arjona <sara@moodle.com>
Wed, 9 Feb 2022 18:21:54 +0000 (9 19:21 +0100)
committerSara Arjona <sara@moodle.com>
Thu, 10 Feb 2022 09:43:38 +0000 (10 10:43 +0100)
tree7eb346745a58cca7006385701efd10ed852517a8
parent589724236163476bdcf2310c2542b992dbfb9c7b
MDL-73827 lib: Fix URL blocked error for userinfo endpoint

When the oAuth2 issuer hasn't any userinfo endpoint, a call to
$this->get(false) was done, which was returning "The URL is
blocked".
This is a regression from MDL-70649, which added some cURL security
checks.
lib/classes/oauth2/client.php