Skip to content
Snippets Groups Projects
Commit 34fafeef authored by Andjelko Horvat's avatar Andjelko Horvat
Browse files

SAML2_HTTPArtifact: $idpmetadata check (issue #481).

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@3035 44740490-163a-0410-bde0-09ae8108e29a
parent 85fa4591
No related branches found
No related tags found
No related merge requests found
......@@ -80,6 +80,9 @@ class SAML2_HTTPArtifact extends SAML2_Binding {
$idpmetadata = $metadataHandler->getMetaDataConfigForSha1($sourceId, 'saml20-idp-remote');
if ($idpmetadata === NULL) {
throw new Exception('No metadata found for remote provider with SHA1 ID: ' . var_export($sourceId, TRUE));
}
$endpoint = NULL;
foreach ($idpmetadata->getEndpoints('ArtifactResolutionService') as $ep) {
......
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