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

Go to the source code of this file.

Variables

 $ilias_main_directory = './'
 
 $cookie_path = dirname($_SERVER['PHP_SELF'])
 
 $i = 0
 
const IL_COOKIE_PATH (isset($_GET["client_id"])) $cookie_path
 
 $iliasHttpPath = ILIAS_HTTP_PATH
 
 $factory = new ilSamlAuthFactory()
 
 $auth = $factory->auth()
 
if(!array_key_exists('PATH_INFO', $_SERVER)) $config = SimpleSAML_Configuration::getInstance()
 
if($config->getBoolean('admin.protectmetadata', false)) $sourceId = $auth->getAuthId()
 
 $source = SimpleSAML_Auth_Source::getById($sourceId)
 
if($source===null) if(!($source instanceof sspmod_saml_Auth_Source_SP)) $entityId = $source->getEntityId()
 
 $spconfig = $source->getMetadata()
 
 $store = SimpleSAML\Store::getInstance()
 
 $metaArray20 = array()
 
 $slosvcdefault
 
 $slob = $spconfig->getArray('SingleLogoutServiceBinding', $slosvcdefault)
 
 $slol = $iliasHttpPath . '/saml2-logout.php/' . $sourceId . '/' . CLIENT_ID
 
foreach($slob as $binding) $assertionsconsumerservicesdefault
 
if($spconfig->getString('ProtocolBinding', '')=='urn:oasis:names:tc:SAML:2.0:profiles:holder-of-key:SSO:browser') $assertionsconsumerservices = $spconfig->getArray('acs.Bindings', $assertionsconsumerservicesdefault)
 
 $index = 0
 
 $eps = array()
 
foreach($assertionsconsumerservices as $services) $metaArray20 ['AssertionConsumerService'] = $eps
 
 $keys = array()
 
 $certInfo = SimpleSAML\Utils\Crypto::loadPublicKey($spconfig, false, 'new_')
 
if($certInfo !==null &&array_key_exists('certData', $certInfo)) else
 
 $format = $spconfig->getString('NameIDPolicy', null)
 
if($format !==null) $name = $spconfig->getLocalizedString('name', null)
 
 $attributes = $spconfig->getArray('attributes', array())
 
if($name !==null &&!empty($attributes)) $orgName = $spconfig->getLocalizedString('OrganizationName', null)
 
if($orgName !==null) if($spconfig->hasValue('contacts')) $email = $config->getString('technicalcontact_email', 'na@example.org', false)
 
if($email && $email !=='na @example.org') if(count($keys)===1) elseif(count($keys) > 1) if($spconfig->hasValue('EntityAttributes')) if($spconfig->hasValue('UIInfo')) if($spconfig->hasValue('RegistrationInfo')) if($spconfig->hasValue('WantAssertionsSigned')) if($spconfig->hasValue('redirect.sign')) elseif($spconfig->hasValue('sign.authnrequest')) $supported_protocols = array('urn:oasis:names:tc:SAML:1.1:protocol', SAML2\Constants::NS_SAMLP)
 
 $metaArray20 ['metadata-set'] = 'saml20-sp-remote'
 
 $metaArray20 ['entityid'] = $entityId
 
 $metaBuilder = new SimpleSAML_Metadata_SAMLBuilder($entityId)
 
 $xml = $metaBuilder->getEntityDescriptorText()
 
 $ascii_filename = ilUtil::getASCIIFilename($sourceId)
 

Variable Documentation

◆ $ascii_filename

◆ $assertionsconsumerservices

if ( $spconfig->getString( 'ProtocolBinding', '')=='urn:oasis:names:tc:SAML:2.0:profiles:holder-of-key:SSO:browser') $assertionsconsumerservices = $spconfig->getArray('acs.Bindings', $assertionsconsumerservicesdefault)

Definition at line 108 of file metadata.php.

◆ $assertionsconsumerservicesdefault

foreach ( $slob as $binding) $assertionsconsumerservicesdefault
Initial value:
= array(
'urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST',
'urn:oasis:names:tc:SAML:1.0:profiles:browser-post',
'urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Artifact',
'urn:oasis:names:tc:SAML:1.0:profiles:artifact-01',
)

Definition at line 97 of file metadata.php.

◆ $attributes

$attributes = $spconfig->getArray('attributes', array())

Definition at line 189 of file metadata.php.

◆ $auth

$auth = $factory->auth()

Definition at line 44 of file metadata.php.

◆ $certInfo

$certInfo = SimpleSAML\Utils\Crypto::loadPublicKey($spconfig, false, 'new_')

Definition at line 153 of file metadata.php.

◆ $config

if (!array_key_exists( 'PATH_INFO', $_SERVER)) $config = SimpleSAML_Configuration::getInstance()

Definition at line 53 of file metadata.php.

◆ $cookie_path

if (!file_exists(getcwd() . '/ilias.ini.php')) $cookie_path = dirname($_SERVER['PHP_SELF'])

Definition at line 7 of file metadata.php.

Referenced by ilInitialisation\setCookieConstants().

◆ $email

if ( $orgName !==null) if ( $spconfig->hasValue( 'contacts')) $email = $config->getString('technicalcontact_email', 'na@example.org', false)

Definition at line 235 of file metadata.php.

◆ $entityId

if ( $source===null) if (!( $source instanceof sspmod_saml_Auth_Source_SP)) $entityId = $source->getEntityId()

Definition at line 70 of file metadata.php.

◆ $eps

$eps = array()

Definition at line 111 of file metadata.php.

◆ $factory

$factory = new ilSamlAuthFactory()

Definition at line 43 of file metadata.php.

Referenced by ilIndividualAssessmentMembersTableGUI\__construct(), ilRepositoryObjectSearchGUI\__construct(), ilMimeMail\__construct(), ilObjTest\_getAvailableTests(), base(), ilObjTest\canShowCertificate(), ilLOEditorStatus\checkNumberOfTries(), ilChatroomAdminViewGUI\clientsettings(), ilObject\cloneDependencies(), ilObjExercise\cloneObject(), ilObjCourse\cloneObject(), SimpleSAML_Auth_Source\completeLogout(), ilSCTreeTasks\deleteMissingTreeEntry(), ilCourseAppEventListener\doAutoFill(), ilStartUpGUI\doSamlAuthentication(), ilObjChatroomGUI\executeCommand(), ilSamlSettingsGUI\executeCommand(), ilTestEvaluationGUI\exportCertificate(), Pimple\Container\extend(), ilMMTopItemTableGUI\fillRow(), ilObjectPermissionStatusGUI\getAccessStatusInfoData(), ilAdvancedMDValues\getActiveRecord(), ilAdvancedMDFieldDefinition\getADTGroupForDefinitions(), ilBTPopOverGUI\getDefaultCardContent(), HTMLPurifier_Config\getDefinition(), ilLoggerFactory\getLogger(), ILIAS\UI\Implementation\Render\FSLoader\getRendererFor(), ilLoggerFactory\getRootLogger(), ilObjectPermissionStatusGUI\getUser(), ILIAS\BackgroundTasks\Implementation\Persistence\BasicPersistence\getValueContainerId(), ilAuthFrontend\handleAuthenticationSuccess(), ilADTBasedObject\initActiveRecordInstance(), ilMMSubItemTableGUI\initColumns(), ilOnScreenChatGUI\initializeFrontend(), ilADTTest\initProperties(), ilRepUtil\insertSavedNodes(), HTMLPurifier_Language\load(), ilLOUtils\lookupObjectiveRequiredPercentage(), many_pages(), many_pages_dropdown(), no_pages(), ilCourseObjectivesTableGUI\parse(), ilADTGroupFormBridge\prepareElements(), ilADTGroupPresentationBridge\prepareElements(), ilADTGroupActiveRecordBridge\prepareElements(), ilADTGroupDBBridge\prepareElements(), ilSystemCheckTrash\removeSelectedFromSystem(), ilMainMenuGUI\renderBackgroundTasks(), ilSCTreeTasks\repairMissingObject(), ilCourseObjectiveResult\reset(), ilSystemCheckTrash\restore(), ilChatroomAdminViewGUI\saveClientSettings(), ilChatroomAdminViewGUI\saveSettings(), server_side_error(), ilChatroomAdminViewGUI\serversettings(), ilADTSearchBridgeRange\setDefinition(), BackgroundTasks\Implementation\BasicTaskManagerTest\setUp(), show_a_modal_which_cannot_be_closed_with_the_keyboard(), show_a_single_image(), show_a_single_text(), show_card_in_popover(), show_different_page_types(), show_form_in_modal(), show_modal_on_button_click(), show_modal_on_button_click_async_rendered(), show_multiple_images(), show_multiple_texts(), show_popover_with_async_loaded_content(), show_popover_with_different_positions(), show_popover_with_dynamic_changing_content(), show_popover_with_vertical_scrollbars(), show_the_same_modal_with_different_buttons(), ilStartUpGUI\showSamlIdpSelection(), ilCertificateMigrationGUI\startMigrationAndReturnMessage(), ilDidacticTemplateUtils\switchTemplate(), ComponentRendererFSLoaderTest\test_getRenderer_uses_RendererFactory(), ModalFactoryTest\test_implements_factory_interface(), PopoverTest\test_implements_interface(), ComponentRendererLoaderResourceRegistryWrapperTest\test_passthrough_getRendererFactory(), ComponentRendererLoaderCachingWrapperTest\test_passthrough_getRendererFactory(), PopoverTest\test_render_async(), PopoverTest\test_render_standard(), PopoverTest\test_that_position_is_auto_by_default(), PopoverTest\test_with_position(), ilTermsOfServiceDataGatewayFactoryTest\testAcceptanceDatabaseGatewayIsReturnedWhenRequestedByName(), ilTermsOfServiceEntityFactoryTest\testAcceptanceEntityIsReturnedWhenRequestedByName(), ILIAS\BackgroundTasks\Implementation\Persistence\BasicPersistenceTest\testCannotUpdateUnknownBucket(), ilTermsOfServiceDocumentTableDataProviderTest\testDocumentProviderCanBeCreatedByFactory(), ilObjUserPasswordTest\testExceptionIsRaisedIfAnUnsupportedEncoderIsRequestedFromFactory(), ilTermsOfServiceDataGatewayFactoryTest\testExceptionIsRaisedWhenGatewayIsRequestedWithMissingDependencies(), ilTermsOfServiceDataGatewayFactoryTest\testExceptionIsRaisedWhenUnknownDataGatewayIsRequested(), ilTermsOfServiceEntityFactoryTest\testExceptionIsRaisedWhenUnknownEntityIsRequested(), ilObjUserPasswordTest\testFactoryCanBeCreated(), ilObjUserPasswordTest\testFactoryRaisesAnExceptionIfAnUnsupportedEncoderIsRequestedAndNoDefaultEncoderWasSpecifiedInFallbackMode(), ilObjUserPasswordTest\testFactoryRaisesAnExceptionIfAnUnsupportedEncoderIsRequestedAndTheDefaultEncoderDoesNotMatchOneOfTheSupportedEncodersInFallbackMode(), ilObjUserPasswordTest\testFactoryRaisesAnExceptionIfAnUnsupportedEncoderWasInjected(), ilObjUserPasswordTest\testFactoryReturnsCorrectEncoderIfAMatchingEncoderWasFound(), ilObjUserPasswordTest\testFactoryReturnsTheDefaultEncoderIfAnUnsupportedEncoderIsRequestedAndASupportedDefaultEncoderWasSpecifiedInFallbackMode(), ilTermsOfServiceDataGatewayFactoryTest\testFactoryShouldReturnDatabaseAdapterWhenDatabaseAdapterIsSet(), ilMailMimeTest\testFactoryWillReturnSystemSenderForAnonymousUserId(), ilMailMimeTest\testFactoryWillReturnSystemSenderWhenExplicitlyRequested(), ilMailMimeTest\testFactoryWillReturnUserSenderForExistingUserId(), ilMailMimeTest\testFactoryWillReturnUserSenderWhenExplicitlyRequested(), ilObjUserPasswordTest\testGettersOfFactoryShouldReturnWhatWasSetBySetters(), ilTermsOfServiceAcceptanceHistoryProviderTest\testHistoryProviderCanBeCreatedByFactory(), ilTermsOfServiceDataGatewayFactoryTest\testInstanceCanBeCreated(), ilTermsOfServiceEntityFactoryTest\testInstanceCanBeCreated(), ilTermsOfServiceTableDataProviderFactoryTest\testInstanceCanBeCreated(), ilTermsOfServiceAcceptanceHistoryProviderTest\testListCanBeRetrieved(), ilTermsOfServiceAcceptanceHistoryProviderTest\testRetrievingListThrowsExceptionsWhenInvalidArgumentsArePassed(), ilCertificateMigrationUIElementsTest\testTaskFailedWillDisplayedFailureMessageBox(), ilCertificateMigrationUIElementsTest\testTaskIsNotFailedWillDisplayConfirmMessageBox(), ilMailMimeTest\testTransportFactoryWillReturnNullTransportIfExternalEmailDeliveryIsDisabled(), ilMailMimeTest\testTransportFactoryWillReturnSendmailTransportIfSmtpTransportIsDisabled(), ilMailMimeTest\testTransportFactoryWillReturnSmtpTransportIfEnabled(), ilCertificateFactoryTest\testTypeIsNotSupportedAndWillThrowAnException(), ilMembershipRegistrationCodeUtils\useCode(), ilIndividualAssessmentMembersGUI\view(), with_custom_file_metadata(), with_signal(), and ilLOXmlWriter\write().

◆ $format

$format = $spconfig->getString('NameIDPolicy', null)

Definition at line 183 of file metadata.php.

◆ $i

$i = 0

Definition at line 9 of file metadata.php.

◆ $ilias_main_directory

$ilias_main_directory = './'

Definition at line 6 of file metadata.php.

◆ $iliasHttpPath

$iliasHttpPath = ILIAS_HTTP_PATH

Definition at line 40 of file metadata.php.

◆ $index

$index = 0

Definition at line 110 of file metadata.php.

◆ $keys

$keys = array()

Definition at line 152 of file metadata.php.

◆ $metaArray20 [1/4]

$metaArray20 = array()

Definition at line 74 of file metadata.php.

◆ $metaArray20 [2/4]

foreach ( $assertionsconsumerservices as $services) $metaArray20[ 'AssertionConsumerService'] = $eps

Definition at line 150 of file metadata.php.

◆ $metaArray20 [3/4]

$metaArray20[ 'metadata-set'] = 'saml20-sp-remote'

Definition at line 277 of file metadata.php.

◆ $metaArray20 [4/4]

$metaArray20[ 'entityid'] = $entityId

Definition at line 278 of file metadata.php.

◆ $metaBuilder

$metaBuilder = new SimpleSAML_Metadata_SAMLBuilder($entityId)

Definition at line 280 of file metadata.php.

◆ $name

if ( $format !==null) $name = $spconfig->getLocalizedString('name', null)

Definition at line 188 of file metadata.php.

◆ $orgName

if ( $name !==null &&!empty( $attributes)) $orgName = $spconfig->getLocalizedString('OrganizationName', null)

Definition at line 212 of file metadata.php.

◆ $slob

$slob = $spconfig->getArray('SingleLogoutServiceBinding', $slosvcdefault)

Definition at line 81 of file metadata.php.

◆ $slol

$slol = $iliasHttpPath . '/saml2-logout.php/' . $sourceId . '/' . CLIENT_ID

Definition at line 83 of file metadata.php.

◆ $slosvcdefault

$slosvcdefault
Initial value:
= array(
SAML2\Constants::BINDING_HTTP_REDIRECT,
SAML2\Constants::BINDING_SOAP,
)

Definition at line 76 of file metadata.php.

◆ $source

$source = SimpleSAML_Auth_Source::getById($sourceId)

Definition at line 61 of file metadata.php.

◆ $sourceId

if ( $config->getBoolean( 'admin.protectmetadata', false)) $sourceId = $auth->getAuthId()

Definition at line 59 of file metadata.php.

◆ $spconfig

$spconfig = $source->getMetadata()

Definition at line 71 of file metadata.php.

◆ $store

Definition at line 72 of file metadata.php.

◆ $supported_protocols

if ( $email &&$email !=='na @example.org') if (count( $keys)===1) elseif (count( $keys) > 1) if ( $spconfig->hasValue( 'EntityAttributes')) if ( $spconfig->hasValue( 'UIInfo')) if ( $spconfig->hasValue( 'RegistrationInfo')) if ( $spconfig->hasValue( 'WantAssertionsSigned')) if ( $spconfig->hasValue( 'redirect.sign')) elseif ( $spconfig->hasValue( 'sign.authnrequest')) $supported_protocols = array('urn:oasis:names:tc:SAML:1.1:protocol', SAML2\Constants::NS_SAMLP)

Definition at line 275 of file metadata.php.

◆ $xml

if (isset( $metaArray20[ 'attributes']) &&is_array( $metaArray20[ 'attributes'])) $xml = $metaBuilder->getEntityDescriptorText()

Definition at line 284 of file metadata.php.

◆ else

if (array_key_exists( 'output', $_REQUEST) &&$_REQUEST[ 'output']=='xhtml') else
Initial value:
{
$hasNewCert = false

Definition at line 165 of file metadata.php.

◆ IL_COOKIE_PATH