27 'name' => array(
'value1',
'value2',
'value3'),
28 'test' => array(
'test'),
65 $assertion = new \SAML2\Assertion();
67 $assertion->setNameId(
$query->getNameId());
68 $assertion->setNotBefore(time());
69 $assertion->setNotOnOrAfter(time() + 5*60);
74 $sc = new \SAML2\XML\saml\SubjectConfirmation();
77 $sc->SubjectConfirmationData->NotOnOrAfter = time() + 5*60;
79 $sc->SubjectConfirmationData->InResponseTo =
$query->getId();
80 $assertion->setSubjectConfirmation(array(
$sc));
89 $response->setAssertions(array($assertion));
$sc SubjectConfirmationData
static getCurrentBinding()
Guess the current binding.
const CM_BEARER
Bearer subject confirmation method.
if($spEntityId===NULL) $idpMetadata
static addSign(SimpleSAML_Configuration $srcMetadata, SimpleSAML_Configuration $dstMetadata, \SAML2\SignedElement $element)
Add signature key and sender certificate to an element (Message or Assertion).
const NAMEFORMAT_UNSPECIFIED
The interpretation of the attribute name is left to individual implementations.
if(!($query instanceof \SAML2\AttributeQuery)) $idpEntityId