Skip to content
Snippets Groups Projects
Commit fa0a6dc7 authored by Olav Morken's avatar Olav Morken
Browse files

Bindings_Shib13_Artifact: HTTP proxy support.

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@2665 44740490-163a-0410-bde0-09ae8108e29a
parent 124decf7
No related branches found
No related tags found
No related merge requests found
...@@ -160,10 +160,9 @@ class SimpleSAML_Bindings_Shib13_Artifact { ...@@ -160,10 +160,9 @@ class SimpleSAML_Bindings_Shib13_Artifact {
'Content-Type: text/xml', 'Content-Type: text/xml',
), ),
); );
$context = stream_context_create($opts);
/* Fetch the artifact. */ /* Fetch the artifact. */
$response = file_get_contents($url, FALSE, $context); $response = SimpleSAML_Utilities::fetch($url, $opts);
if ($response === FALSE) { if ($response === FALSE) {
throw new SimpleSAML_Error_Exception('Failed to retrieve assertion from IdP.'); throw new SimpleSAML_Error_Exception('Failed to retrieve assertion from IdP.');
} }
......
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