ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
attributeserver.php File Reference

Go to the source code of this file.

Variables

 $metadata = SimpleSAML_Metadata_MetaDataStorageHandler::getMetadataHandler()
 
 $binding = \SAML2\Binding::getCurrentBinding()
 
 $query = $binding->receive()
 
if(!($query instanceof \SAML2\AttributeQuery)) $idpEntityId = $metadata->getMetaDataCurrentEntityID('saml20-idp-hosted')
 
 $spEntityId = $query->getIssuer()
 
if($spEntityId===NULL) $idpMetadata = $metadata->getMetadataConfig($idpEntityId, 'saml20-idp-hosted')
 
 $spMetadata = $metadata->getMetaDataConfig($spEntityId, 'saml20-sp-remote')
 
 $endpoint = $spMetadata->getString('testAttributeEndpoint')
 
 $attributes
 
 $attributeNameFormat = \SAML2\Constants::NAMEFORMAT_UNSPECIFIED
 
 $returnAttributes = array_keys($query->getAttributes())
 
if(count($returnAttributes)===0) elseif($query->getAttributeNameFormat() !==$attributeNameFormat) else
 
 $sc = new \SAML2\XML\saml\SubjectConfirmation()
 
$sc Method = \SAML2\Constants::CM_BEARER
 
$sc SubjectConfirmationData = new \SAML2\XML\saml\SubjectConfirmationData()
 
$sc SubjectConfirmationData NotOnOrAfter = time() + 5*60
 
$sc SubjectConfirmationData Recipient = $endpoint
 
$sc SubjectConfirmationData InResponseTo = $query->getId()
 
 $response = new \SAML2\Response()
 

Variable Documentation

◆ $attributeNameFormat

◆ $attributes

$attributes
Initial value:
= array(
'name' => array('value1', 'value2', 'value3'),
'test' => array('test'),
)

Definition at line 26 of file attributeserver.php.

◆ $binding

Definition at line 5 of file attributeserver.php.

◆ $endpoint

◆ $idpEntityId

if (!( $query instanceof \SAML2\AttributeQuery)) $idpEntityId = $metadata->getMetaDataCurrentEntityID('saml20-idp-hosted')

Definition at line 11 of file attributeserver.php.

◆ $idpMetadata

if ( $spEntityId===NULL) $idpMetadata = $metadata->getMetadataConfig($idpEntityId, 'saml20-idp-hosted')

Definition at line 19 of file attributeserver.php.

◆ $metadata

◆ $query

$query = $binding->receive()

Definition at line 6 of file attributeserver.php.

◆ $response

$response = new \SAML2\Response()

Definition at line 84 of file attributeserver.php.

◆ $returnAttributes

$returnAttributes = array_keys($query->getAttributes())

Definition at line 36 of file attributeserver.php.

◆ $sc

◆ $spEntityId

◆ $spMetadata

$spMetadata = $metadata->getMetaDataConfig($spEntityId, 'saml20-sp-remote')

Definition at line 20 of file attributeserver.php.

◆ else

if (count( $returnAttributes)===0) elseif ( $query->getAttributeNameFormat() !==$attributeNameFormat) else
Initial value:
{
foreach ($returnAttributes as $name => $values) {
if (!array_key_exists($name, $attributes)) {
continue;
}
if (count($values) === 0) {
continue;
}
}
}
$assertion = new \SAML2\Assertion()
$values
$returnAttributes
$attributes

Definition at line 44 of file attributeserver.php.

◆ InResponseTo

$sc SubjectConfirmationData InResponseTo = $query->getId()

◆ Method

◆ NotOnOrAfter

◆ Recipient

$sc SubjectConfirmationData Recipient = $endpoint

◆ SubjectConfirmationData