Skip to content
Snippets Groups Projects
Commit 488154e3 authored by Tim van Dijen's avatar Tim van Dijen
Browse files

Add www-directory to psalm-config and fix some issues

parent 89c25f18
No related branches found
No related tags found
No related merge requests found
......@@ -22,6 +22,7 @@
<directory name="modules/saml" />
<directory name="tests" />
<directory name="www" />
<!-- Ignore deprecated classes -->
<ignoreFiles>
......
......@@ -47,10 +47,8 @@ if (!($request instanceof \SAML2\ArtifactResolve)) {
}
$issuer = $request->getIssuer();
if (!is_string($issuer)) {
$issuer = $issuer->getValue();
}
\Webmozart\Assert\Assert::notNull($issuer);
$issuer = $issuer->getValue();
$spMetadata = $metadata->getMetaDataConfig($issuer, 'saml20-sp-remote');
$artifact = $request->getArtifact();
......@@ -60,7 +58,7 @@ $store->delete('artifact', $artifact);
if ($responseData !== null) {
$document = \SAML2\DOMDocumentFactory::fromString($responseData);
$responseXML = $document->firstChild;
$responseXML = $document->documentElement;
} else {
$responseXML = null;
}
......
......@@ -200,9 +200,11 @@ try {
$technicalContactEmail = $config->getString('technicalcontact_email', false);
if ($technicalContactEmail && $technicalContactEmail !== 'na@example.org') {
$techcontact['emailAddress'] = $technicalContactEmail;
$techcontact['name'] = $config->getString('technicalcontact_name', null);
$techcontact['contactType'] = 'technical';
$techcontact = [
'emailAddress' => $technicalContactEmail,
'name' => $config->getString('technicalcontact_name', null),
'contactType' => 'technical',
];
$metaArray['contacts'][] = Metadata::getContact($techcontact);
}
......
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