Skip to content
Snippets Groups Projects
Unverified Commit 9f35fdab authored by Tim van Dijen's avatar Tim van Dijen Committed by GitHub
Browse files

Proxy support

\SimpleSAML\Utils\HTTP::fetch properly handles proxy settings before calling file_get_contents()
parent d97c9e06
No related branches found
No related tags found
No related merge requests found
......@@ -125,7 +125,7 @@ class Auth_Yubico
/* Support https. */
$url = "https://api.yubico.com/wsapi/verify?" . $parameters;
$responseMsg = file_get_contents($url);
$responseMsg = \SimpleSAML\Utils\HTTP::fetch($url);
if(!preg_match("/status=([a-zA-Z0-9_]+)/", $responseMsg, $out)) {
throw new Exception('Could not parse response');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment