11 require_once(
'../../_include.php');
14 if (!
$config->getBoolean(
'enable.saml20-idp',
false)) {
22 if (!
$idpMetadata->getBoolean(
'saml20.sendartifact',
false)) {
28 throw new Exception(
'Unable to send artifact without a datastore configured.');
38 if ($e->getMessage() ===
'Invalid message received to AssertionConsumerService endpoint.') {
45 throw new Exception(
'Message received on ArtifactResolutionService wasn\'t a ArtifactResolve request.');
58 $responseXML = $document->firstChild;
foreach($paths as $path) $request
if($store===false) $binding
static addSign(SimpleSAML_Configuration $srcMetadata, SimpleSAML_Configuration $dstMetadata, \SAML2\SignedElement $element)
Add signature key and sender certificate to an element (Message or Assertion).
catch(Exception $e) if(!($request instanceof \SAML2\ArtifactResolve)) $issuer
if(! $idpMetadata->getBoolean('saml20.sendartifact', false)) $store
static getInstance()
Retrieve our singleton instance.
static getInstance($instancename='simplesaml')
Get a configuration file by its instance name.
if(! $config->getBoolean('enable.saml20-idp', false)) $metadata