ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
consentAdmin.php File Reference

Go to the source code of this file.

Functions

 driveProcessingChain ( $idp_metadata, $source, $sp_metadata, $sp_entityid, $attributes, $userid, $hashAttributes=false)
 

Variables

 $config = SimpleSAML_Configuration::getInstance()
 
 $cA_config = SimpleSAML_Configuration::getConfig('module_consentAdmin.php')
 
 $authority = $cA_config->getValue('authority')
 
 $as = new \SimpleSAML\Auth\Simple($authority)
 
if(array_key_exists('logout', $_REQUEST)) $hashAttributes = $cA_config->getValue('attributes.hash')
 
 $attributes = $as->getAttributes()
 
 $metadata = SimpleSAML_Metadata_MetaDataStorageHandler::getMetadataHandler()
 
 $local_idp_entityid = $metadata->getMetaDataCurrentEntityID('saml20-idp-hosted')
 
 $local_idp_metadata = $metadata->getMetaData($local_idp_entityid, 'saml20-idp-hosted')
 
if($as->getAuthData('saml:sp:IdP') !==null) else
 
 $idp_metadata = $local_idp_metadata
 
 $userid_attributename = (isset($local_idp_metadata['userid.attribute']) && is_string($local_idp_metadata['userid.attribute'])) ? $local_idp_metadata['userid.attribute'] : 'eduPersonPrincipalName'
 
 $userids = $attributes[$userid_attributename]
 
if(empty($userids)) $userid = $userids[0]
 
 $all_sp_metadata = $metadata->getList('saml20-sp-remote')
 
 $action = null
 
 $sp_entityid = null
 
 $source = $idp_metadata['metadata-set'].'|'.$idp_entityid
 
 $consent_storage = sspmod_consent_Store::parseStoreConfig($cA_config->getValue('consentadmin'))
 
 $hashed_user_id = sspmod_consent_Auth_Process_Consent::getHashedUserID($userid, $source)
 
if($action !==null && $sp_entityid !==null) $user_consent_list = $consent_storage->getConsents($hashed_user_id)
 
 $user_consent = array()
 
foreach($user_consent_list as $c) $template_sp_content = array()
 
 $template = new SimpleSAML_XHTML_Template($config, 'consentAdmin:consentadmin.php', 'consentAdmin:consentadmin')
 
 $translator = $template->getTranslator()
 
 $sp_empty_name = $translator->getTag('sp_empty_name')
 
 $sp_empty_description = $translator->getTag('sp_empty_description')
 
foreach($all_sp_metadata as $sp_entityid=> $sp_values) $template data ['header'] = 'Consent Administration'
 
$template data ['spList'] = $sp_list
 
$template data ['showDescription'] = $cA_config->getValue('showDescription')
 

Function Documentation

◆ driveProcessingChain()

driveProcessingChain (   $idp_metadata,
  $source,
  $sp_metadata,
  $sp_entityid,
  $attributes,
  $userid,
  $hashAttributes = false 
)

Definition at line 18 of file consentAdmin.php.

References $attributes, $destination, $hashAttributes, $idp_metadata, $source, $sp_entityid, $userid, array, sspmod_consent_Auth_Process_Consent\getAttributeHash(), sspmod_consent_Auth_Process_Consent\getTargetedID(), and SimpleSAML\Logger\info().

26  {
27 
28  /*
29  * Create a new processing chain
30  */
31  $pc = new SimpleSAML_Auth_ProcessingChain($idp_metadata, $sp_metadata, 'idp');
32 
33  /*
34  * Construct the state.
35  * REMEMBER: Do not set Return URL if you are calling processStatePassive
36  */
37  $authProcState = array(
38  'Attributes' => $attributes,
39  'Destination' => $sp_metadata,
40  'Source' => $idp_metadata,
41  'isPassive' => true,
42  );
43 
44  /*
45  * Call processStatePAssive.
46  * We are not interested in any user interaction, only modifications to the attributes
47  */
48  $pc->processStatePassive($authProcState);
49 
50  $attributes = $authProcState['Attributes'];
51 
52  /*
53  * Generate identifiers and hashes
54  */
55  $destination = $sp_metadata['metadata-set'].'|'.$sp_entityid;
56 
59 
60  SimpleSAML\Logger::info('consentAdmin: user: '.$userid);
61  SimpleSAML\Logger::info('consentAdmin: target: '.$targeted_id);
62  SimpleSAML\Logger::info('consentAdmin: attribute: '.$attribute_hash);
63 
64  // Return values
65  return array($targeted_id, $attribute_hash, $attributes);
66 }
67 
68 // Get config object
70 $cA_config = SimpleSAML_Configuration::getConfig('module_consentAdmin.php');
71 $authority = $cA_config->getValue('authority');
72 
73 $as = new \SimpleSAML\Auth\Simple($authority);
74 
75 // If request is a logout request
76 if (array_key_exists('logout', $_REQUEST)) {
77  $returnURL = $cA_config->getValue('returnURL');
78  $as->logout($returnURL);
79 }
80 
81 $hashAttributes = $cA_config->getValue('attributes.hash');
82 
83 // Check if valid local session exists
84 $as->requireAuth();
85 
86 // Get released attributes
87 $attributes = $as->getAttributes();
88 
89 // Get metadata storage handler
91 
92 /*
93  * Get IdP id and metadata
94  */
95 
96 
97 $local_idp_entityid = $metadata->getMetaDataCurrentEntityID('saml20-idp-hosted');
98 $local_idp_metadata = $metadata->getMetaData($local_idp_entityid, 'saml20-idp-hosted');
99 
100 if ($as->getAuthData('saml:sp:IdP') !== null) {
101  // from a remote idp (as bridge)
102  $idp_entityid = $as->getAuthData('saml:sp:IdP');
103  $idp_metadata = $metadata->getMetaData($idp_entityid, 'saml20-idp-remote');
104 } else {
105  // from the local idp
106  $idp_entityid = $local_idp_entityid;
108 }
109 
110 // Get user ID
111 $userid_attributename = (isset($local_idp_metadata['userid.attribute']) && is_string($local_idp_metadata['userid.attribute'])) ? $local_idp_metadata['userid.attribute'] : 'eduPersonPrincipalName';
112 
114 
115 if (empty($userids)) {
116  throw new Exception('Could not generate useridentifier for storing consent. Attribute ['.
117  $userid_attributename.'] was not available.');
118 }
119 
120 $userid = $userids[0];
121 
122 // Get all SP metadata
123 $all_sp_metadata = $metadata->getList('saml20-sp-remote');
124 
125 // Parse action, if any
126 $action = null;
127 $sp_entityid = null;
128 if (!empty($_GET['cv'])) {
129  $sp_entityid = $_GET['cv'];
130 }
131 if (!empty($_GET['action'])) {
132  $action = $_GET["action"];
133 }
134 
135 SimpleSAML\Logger::critical('consentAdmin: sp: '.$sp_entityid.' action: '.$action);
136 
137 // Remove services, whitch have consent disabled
138 if (isset($idp_metadata['consent.disable'])) {
139  foreach ($idp_metadata['consent.disable'] AS $disable) {
140  if (array_key_exists($disable, $all_sp_metadata)) {
141  unset($all_sp_metadata[$disable]);
142  }
143  }
144 }
145 
146 SimpleSAML\Logger::info('consentAdmin: '.$idp_entityid);
147 
148 // Calc correct source
149 $source = $idp_metadata['metadata-set'].'|'.$idp_entityid;
150 
151 // Parse consent config
153 
154 // Calc correct user ID hash
156 
157 // If a checkbox have been clicked
158 if ($action !== null && $sp_entityid !== null) {
159  // Get SP metadata
160  $sp_metadata = $metadata->getMetaData($sp_entityid, 'saml20-sp-remote');
161 
162  // Run AuthProc filters
163  list($targeted_id, $attribute_hash, $attributes_new) = driveProcessingChain($idp_metadata, $source, $sp_metadata,
165 
166  // Add a consent (or update if attributes have changed and old consent for SP and IdP exists)
167  if ($action == 'true') {
168  $isStored = $consent_storage->saveConsent($hashed_user_id, $targeted_id, $attribute_hash);
169  if ($isStored) {
170  $res = "added";
171  } else {
172  $res = "updated";
173  }
174  // Remove consent
175  } else {
176  if ($action == 'false') {
177  // Got consent, so this is a request to remove it
178  $rowcount = $consent_storage->deleteConsent($hashed_user_id, $targeted_id, $attribute_hash);
179  if ($rowcount > 0) {
180  $res = "removed";
181  }
182  // Unknown action (should not happen)
183  } else {
184  SimpleSAML\Logger::info('consentAdmin: unknown action');
185  $res = "unknown";
186  }
187  }
188  // init template to enable translation of status messages
189  $template = new SimpleSAML_XHTML_Template($config, 'consentAdmin:consentadminajax.php', 'consentAdmin:consentadmin');
190  $template->data['res'] = $res;
191  $template->show();
192  exit;
193 }
194 
195 // Get all consents for user
196 $user_consent_list = $consent_storage->getConsents($hashed_user_id);
197 
198 // Parse list of consents
199 $user_consent = array();
200 foreach ($user_consent_list as $c) {
201  $user_consent[$c[0]] = $c[1];
202 }
203 
205 
206 // Init template
207 $template = new SimpleSAML_XHTML_Template($config, 'consentAdmin:consentadmin.php', 'consentAdmin:consentadmin');
208 $translator = $template->getTranslator();
209 $translator->includeLanguageFile('attributes.php'); // attribute listings translated by this dictionary
210 $sp_empty_name = $translator->getTag('sp_empty_name');
211 $sp_empty_description = $translator->getTag('sp_empty_description');
212 
213 // Process consents for all SP
214 foreach ($all_sp_metadata as $sp_entityid => $sp_values) {
215  // Get metadata for SP
216  $sp_metadata = $metadata->getMetaData($sp_entityid, 'saml20-sp-remote');
217 
218  // Run attribute filters
219  list($targeted_id, $attribute_hash, $attributes_new) = driveProcessingChain($idp_metadata, $source, $sp_metadata,
221 
222  // Check if consent exists
223  if (array_key_exists($targeted_id, $user_consent)) {
224  $sp_status = "changed";
225  SimpleSAML\Logger::info('consentAdmin: changed');
226  // Check if consent is valid. (Possible that attributes has changed)
227  if ($user_consent[$targeted_id] == $attribute_hash) {
228  SimpleSAML\Logger::info('consentAdmin: ok');
229  $sp_status = "ok";
230  }
231  // Consent does not exists
232  } else {
233  SimpleSAML\Logger::info('consentAdmin: none');
234  $sp_status = "none";
235  }
236 
237  // Set name of SP
238  if (isset($sp_values['name']) && is_array($sp_values['name'])) {
239  $sp_name = $sp_metadata['name'];
240  } else {
241  if (isset($sp_values['name']) && is_string($sp_values['name'])) {
242  $sp_name = $sp_metadata['name'];
243  } elseif (isset($sp_values['OrganizationDisplayName']) && is_array($sp_values['OrganizationDisplayName'])) {
244  $sp_name = $sp_metadata['OrganizationDisplayName'];
245  } else {
246  $sp_name = $sp_empty_name;
247  }
248  }
249 
250  // Set description of SP
251  if (empty($sp_metadata['description']) || !is_array($sp_metadata['description'])) {
252  $sp_description = $sp_empty_description;
253  } else {
254  $sp_description = $sp_metadata['description'];
255  }
256 
257  // Add a URL to the service if present in metadata
258  $sp_service_url = isset($sp_metadata['ServiceURL']) ? $sp_metadata['ServiceURL'] : null;
259 
260  // Fill out array for the template
261  $sp_list[$sp_entityid] = array(
262  'spentityid' => $sp_entityid,
263  'name' => $sp_name,
264  'description' => $sp_description,
265  'consentStatus' => $sp_status,
266  'consentValue' => $sp_entityid,
267  'attributes_by_sp' => $attributes_new,
268  'serviceurl' => $sp_service_url,
269  );
270 }
$user_consent
$local_idp_metadata
static getMetadataHandler()
This function retrieves the current instance of the metadata handler.
$sp_empty_name
$userid_attributename
$template
$action
$sp_empty_description
$_GET["client_id"]
if(empty($userids)) $userid
$destination
$userids
$cA_config
$hashed_user_id
$metadata
static info($string)
Definition: Logger.php:201
foreach($_POST as $key=> $value) $res
$idp_metadata
$all_sp_metadata
$as
$translator
static getConfig($filename='config.php', $configSet='simplesaml')
Load a configuration file from a configuration set.
$config
Create styles array
The data for the language used.
static critical($string)
Definition: Logger.php:146
$sp_entityid
$local_idp_entityid
$attributes
if($action !==null && $sp_entityid !==null) $user_consent_list
driveProcessingChain( $idp_metadata, $source, $sp_metadata, $sp_entityid, $attributes, $userid, $hashAttributes=false)
$consent_storage
if(array_key_exists('logout', $_REQUEST)) $hashAttributes
$authority
static getInstance($instancename='simplesaml')
Get a configuration file by its instance name.
$source
foreach($user_consent_list as $c) $template_sp_content
+ Here is the call graph for this function:

Variable Documentation

◆ $action

$action = null

Definition at line 126 of file consentAdmin.php.

Referenced by ilCourseArchives\__addZipFiles(), ilObjUserGUI\__buildFilterSelect(), ilObjUserFolderGUI\__buildUserFilterSelect(), sspmod_core_ACL\__construct(), ilFileVersionTableGUI\__construct(), ilAccountRegistrationGUI\__distributeMails(), ilObjExerciseGUI\_goto(), ilChangeEvent\_recordWriteEvent(), JSMin\action(), ILIAS\UI\Implementation\Component\Glyph\Factory\add(), arIndexTableActions\addAction(), ilBTPopOverGUI\addButton(), ilOrgUnitImporter\addError(), ilMyStaffGUI\addTabs(), ilOrgUnitImporter\addWarning(), sspmod_statistics_Aggregator\aggregate(), ilSessionStatistics\aggregateRawHelper(), sspmod_core_ACL\allows(), ilObject\applyDidacticTemplate(), ilRbacAdmin\applyMovedObjectDidacticTemplates(), ILIAS\UI\Implementation\Component\Glyph\Factory\back(), ILIAS\UI\Implementation\Component\Glyph\Factory\briefcase(), ilStudyProgrammeMembersTableGUI\buildActionDropDown(), assImagemapQuestionGUI\buildSelectionParameter(), TCPDF\Button(), ilMailFolderGUI\cancelDeleteMails(), ilObjDataCollectionAccess\checkActionForObjId(), sspmod_statistics_LogCleaner\clean(), ILIAS\UI\Implementation\Component\Glyph\Factory\collapse(), ILIAS\UI\Implementation\Component\Glyph\Factory\comment(), Parser\createAssocArgs(), ilDidacticTemplateSetting\delete(), IMSGlobal\LTI\ToolProvider\ResourceLink\doOutcomesService(), IMSGlobal\LTI\ToolProvider\ResourceLink\doSettingService(), ILIAS\UI\Implementation\Component\Glyph\Factory\down(), ILIAS\UI\Implementation\Component\Glyph\Factory\expand(), ilTestVerificationTableGUI\fillRow(), ilCourseVerificationTableGUI\fillRow(), ilExerciseVerificationTableGUI\fillRow(), ilSCORMVerificationTableGUI\fillRow(), ilWorkflowEngineDefinitionsTableGUI\fillRow(), ilCronManagerTableGUI\fillRow(), arIndexTableActions\getActionsAsKeyTextArray(), ilUserActionCollector\getActionsForTargetUser(), Title\getCascadeProtectionSources(), ilAwarenessData\getData(), ILIAS\UI\Implementation\Component\Dropzone\File\Renderer\getFileListTemplate(), ilWorkflowEngineSettingsForm\getForm(), ilUploadDefinitionForm\getForm(), Title\getLocalURL(), Title\getRestrictions(), ilChatroomServerSettings\getURL(), ilPortfolioAppEventListener\handleEvent(), ilCopyWizardSettingsXMLParser\handlerBeginTag(), ilRoleTableGUI\initFilter(), ilBookmarkAdministrationGUI\initFormBookmark(), ilBookmarkAdministrationGUI\initFormBookmarkFolder(), ilObjSystemCheckGUI\initFormTrash(), ilMailFolderTableGUI\initMultiCommands(), ilObjMountPointDAV\isPermitted(), Title\isProtected(), Title\isSemiProtected(), ILIAS\UI\Implementation\Component\Glyph\Factory\mail(), ILIAS\UI\Implementation\Component\Glyph\Factory\next(), ILIAS\UI\Implementation\Component\Glyph\Factory\note(), ILIAS\UI\Implementation\Component\Glyph\Factory\notification(), TCPDF\openHTMLTagHandler(), ilRbacLogTableGUI\parseChangesFaPa(), ilRbacLogTableGUI\parseChangesTemplate(), arIndexTableGUI\parseEntry(), ilLPTableBaseGUI\parseTitle(), ILIAS\UI\Implementation\Component\Button\Factory\primary(), ilWorkflowEngineDefinitionsGUI\processUploadFormCancellation(), Title\quickUserCan(), ILIAS\UI\Implementation\Component\Glyph\Factory\remove(), ILIAS\UI\Implementation\Component\Glyph\Renderer\render(), ILIAS\UI\Implementation\Component\Button\Renderer\renderButton(), ilUserActionGUI\renderDropDown(), ILIAS\UI\Implementation\Component\ViewControl\Renderer\renderMode(), ILIAS\UI\Implementation\Component\ViewControl\Renderer\renderSectionButton(), ILIAS\UI\Implementation\Component\Link\Renderer\renderStandard(), ilObjUserFolderGUI\saveGlobalUserSettingsObject(), SAML2\SOAPClient\send(), ILIAS\UI\Implementation\Component\Glyph\Factory\settings(), ilObjUserFolderGUI\showActionConfirmation(), ILIAS\UI\Implementation\Component\Button\Factory\shy(), ilOrgUnitSimpleImport\simpleImportElement(), ilOrgUnitSimpleUserImport\simpleUserImportElement(), ILIAS\UI\Implementation\Component\Glyph\Factory\sort(), ILIAS\UI\Implementation\Component\Glyph\Factory\sortAscending(), ILIAS\UI\Implementation\Component\Glyph\Factory\sortDescending(), ILIAS\UI\Implementation\Component\Link\Factory\standard(), ILIAS\UI\Implementation\Component\Button\Factory\standard(), ilDidacticTemplateCopier\start(), ilWorkflowEngineDefinitionsGUI\stopListening(), sspmod_statistics_LogCleaner\store(), ilDidacticTemplateUtils\switchTemplate(), ilPCDataTableGUI\tableAction(), ILIAS\UI\Implementation\Component\Button\Factory\tag(), ILIAS\UI\Implementation\Component\Glyph\Factory\tag(), ViewControlTest\test_render_viewcontrol_mode(), ViewControlTest\test_viewcontrol_section_get_next_actions(), ViewControlTest\test_viewcontrol_section_get_previous_actions(), ilChatroomServerSettingsTest\testGetUrl(), ilDidacticTemplateSetting\toXml(), ilBuddySystemGUI\transitionAsyncCommand(), ILIAS\UI\Implementation\Component\Glyph\Factory\up(), ilExerciseXMLParser\updateFile(), ilExerciseXMLParser\updateMember(), ILIAS\UI\Implementation\Component\Glyph\Factory\user(), and Title\userCan().

◆ $all_sp_metadata

$all_sp_metadata = $metadata->getList('saml20-sp-remote')

Definition at line 123 of file consentAdmin.php.

◆ $as

◆ $attributes

$attributes = $as->getAttributes()

Definition at line 87 of file consentAdmin.php.

Referenced by driveProcessingChain().

◆ $authority

◆ $cA_config

$cA_config = SimpleSAML_Configuration::getConfig('module_consentAdmin.php')

Definition at line 70 of file consentAdmin.php.

◆ $config

Definition at line 69 of file consentAdmin.php.

◆ $consent_storage

$consent_storage = sspmod_consent_Store::parseStoreConfig($cA_config->getValue('consentadmin'))

Definition at line 152 of file consentAdmin.php.

◆ $hashAttributes

if (array_key_exists( 'logout', $_REQUEST)) $hashAttributes = $cA_config->getValue('attributes.hash')

Definition at line 81 of file consentAdmin.php.

Referenced by driveProcessingChain().

◆ $hashed_user_id

$hashed_user_id = sspmod_consent_Auth_Process_Consent::getHashedUserID($userid, $source)

Definition at line 155 of file consentAdmin.php.

◆ $idp_metadata

$idp_metadata = $local_idp_metadata

Definition at line 107 of file consentAdmin.php.

Referenced by driveProcessingChain().

◆ $local_idp_entityid

$local_idp_entityid = $metadata->getMetaDataCurrentEntityID('saml20-idp-hosted')

Definition at line 97 of file consentAdmin.php.

◆ $local_idp_metadata

$local_idp_metadata = $metadata->getMetaData($local_idp_entityid, 'saml20-idp-hosted')

Definition at line 98 of file consentAdmin.php.

◆ $metadata

◆ $source

$source = $idp_metadata['metadata-set'].'|'.$idp_entityid

Definition at line 149 of file consentAdmin.php.

Referenced by driveProcessingChain().

◆ $sp_empty_description

$sp_empty_description = $translator->getTag('sp_empty_description')

Definition at line 211 of file consentAdmin.php.

◆ $sp_empty_name

$sp_empty_name = $translator->getTag('sp_empty_name')

Definition at line 210 of file consentAdmin.php.

◆ $sp_entityid

$sp_entityid = null

Definition at line 127 of file consentAdmin.php.

Referenced by driveProcessingChain().

◆ $template

$template = new SimpleSAML_XHTML_Template($config, 'consentAdmin:consentadmin.php', 'consentAdmin:consentadmin')

Definition at line 207 of file consentAdmin.php.

Referenced by sspmod_adfs_XMLSecurityDSig\__construct(), Twig_Node_Expression_BlockReference\__construct(), RobRichards\XMLSecLibs\XMLSecurityDSig\__construct(), ilTinyMCE\addUserTextEditor(), ilYuiUtil\addYesNoDialog(), ilObjTestGUI\afterSave(), ilLOEditorGUI\applySettingsTemplate(), ilObjSurvey\applySettingsTemplate(), Twig_Node_Module\compile(), ilMailTemplateGUI\confirmDeleteTemplate(), Twig_Tests_LexerTest\countToken(), Twig_Environment\createTemplate(), ilObjTestGUI\createUserResults(), Twig_Template\displayBlock(), Twig_Test_IntegrationTestCase\doIntegrationTest(), Whoops\Handler\PlainTextHandler\dump(), Twig_Parser\embedTemplate(), ilWACToken\generateSaltFile(), ilTestServiceGUI\getAdditionalUsrDataHtmlAndPopulateWindowTitle(), ilCourseCertificateAdapter\getCertificateVariablesDescription(), ilExerciseCertificateAdapter\getCertificateVariablesDescription(), ilSkillCertificateAdapter\getCertificateVariablesDescription(), ilTestCertificateAdapter\getCertificateVariablesDescription(), ilSCORMCertificateAdapter\getCertificateVariablesDescription(), ilTestServiceGUI\getCorrectSolutionOutput(), ilYuiUtil\getDragDropList(), ilBadgeImageTemplateTableGUI\getItems(), ilTestPlayerAbstractGUI\getKioskHead(), SurveyMatrixQuestionGUI\getLayoutRow(), ilObjAssessmentFolderGUI\getLogDataOutputForm(), SurveyQuestionGUI\getMaterialOutput(), ilTestServiceGUI\getPassListOfAnswers(), ilTestServiceGUI\getPassListOfAnswersWithScoring(), assTextSubsetGUI\getPreview(), assOrderingHorizontalGUI\getPreview(), assNumericGUI\getPreview(), assFlashQuestionGUI\getPreview(), assErrorTextGUI\getPreview(), assTextQuestionGUI\getPreview(), assLongMenuGUI\getPreview(), assFileUploadGUI\getPreview(), assSingleChoiceGUI\getPreview(), assMultipleChoiceGUI\getPreview(), assJavaAppletGUI\getPreview(), assKprimChoiceGUI\getPreview(), assOrderingQuestionGUI\getPreview(), assImagemapQuestionGUI\getPreview(), assMatchingQuestionGUI\getPreview(), assClozeTestGUI\getPreview(), assFormulaQuestionGUI\getPreview(), SurveyTextQuestionGUI\getPrintView(), SurveySingleChoiceQuestionGUI\getPrintView(), SurveyMetricQuestionGUI\getPrintView(), SurveyMultipleChoiceQuestionGUI\getPrintView(), SurveyMatrixQuestionGUI\getPrintView(), ilObjTestGUI\getQuestionsSubTabs(), ilTestServiceGUI\getResultsHeadUserAndPass(), ilTestServiceGUI\getResultsOfUserOutput(), ilTestServiceGUI\getResultsSignature(), assOrderingHorizontalGUI\getSolutionOutput(), assTextSubsetGUI\getSolutionOutput(), assTextQuestionGUI\getSolutionOutput(), assNumericGUI\getSolutionOutput(), assSingleChoiceGUI\getSolutionOutput(), assMultipleChoiceGUI\getSolutionOutput(), assFlashQuestionGUI\getSolutionOutput(), assFileUploadGUI\getSolutionOutput(), assErrorTextGUI\getSolutionOutput(), assLongMenuGUI\getSolutionOutput(), assJavaAppletGUI\getSolutionOutput(), assMatchingQuestionGUI\getSolutionOutput(), assImagemapQuestionGUI\getSolutionOutput(), assOrderingQuestionGUI\getSolutionOutput(), assKprimChoiceGUI\getSolutionOutput(), assClozeTestGUI\getSolutionOutput(), assFormulaQuestionGUI\getSolutionOutput(), ilObjSurveyGUI\getTabs(), ilObjTestGUI\getTabs(), ilObjStyleSheet\getTemplate(), ilMailTemplateDataProvider\getTemplateByContextId(), ilMailFormGUI\getTemplateDataById(), ilMailTemplateGUI\getTemplateForm(), assTextSubsetGUI\getTestOutput(), assOrderingHorizontalGUI\getTestOutput(), assNumericGUI\getTestOutput(), assKprimChoiceGUI\getTestOutput(), assErrorTextGUI\getTestOutput(), assFlashQuestionGUI\getTestOutput(), assLongMenuGUI\getTestOutput(), assTextQuestionGUI\getTestOutput(), assFileUploadGUI\getTestOutput(), assSingleChoiceGUI\getTestOutput(), assMultipleChoiceGUI\getTestOutput(), assJavaAppletGUI\getTestOutput(), assOrderingQuestionGUI\getTestOutput(), assImagemapQuestionGUI\getTestOutput(), assMatchingQuestionGUI\getTestOutput(), assFormulaQuestionGUI\getTestOutput(), assClozeTestGUI\getTestOutput(), SurveyTextQuestionGUI\getWorkingForm(), SurveyMetricQuestionGUI\getWorkingForm(), SurveySingleChoiceQuestionGUI\getWorkingForm(), SurveyMultipleChoiceQuestionGUI\getWorkingForm(), SurveyMatrixQuestionGUI\getWorkingForm(), Twig_Error\guessTemplateInfo(), ilOrgUnitPermissionQueries\hasLocalSet(), ilObjectGUI\initDidacticTemplate(), ilObjSurveyGUI\initPropertiesForm(), ilSuggestedSolutionSelectorGUI\insert(), ilImagemapFileInputGUI\insert(), ilFlashFileInputGUI\insert(), ilObjSCORM2004LearningModuleGUI\insertScenario(), ilMailTemplateGUI\insertTemplate(), sspmod_metarefresh_MetaLoader\loadSource(), Twig_Template\loadTemplate(), assQuestionGUI\originalSyncForm(), ilTestEvaluationGUI\outParticipantsPassDetails(), ilTestEvaluationGUI\outParticipantsResultsOverview(), SurveyMetricQuestion\outPreconditionSelectValue(), ilTestPlayerAbstractGUI\outProcessingTime(), SurveyQuestionGUI\outQuestionText(), assQuestionGUI\outSolutionExplorer(), ilTestEvaluationGUI\outUserListOfAnswerPasses(), ilTestEvaluationGUI\outUserResultsOverview(), ilSCORM2004Utilities\parentHasSeqTemplate(), Twig_TokenParser_Use\parse(), assSingleChoiceGUI\populateInlineFeedback(), assKprimChoiceGUI\populateSpecificFeedbackInline(), assMultipleChoiceGUI\populateSpecificFeedbackInline(), ilObjTestGUI\printobject(), ilSurveyEditorGUI\printViewObject(), ilSurveyEditorGUI\questionsSubtabs(), Whoops\Util\TemplateHelper\render(), ilObjTestGUI\reviewobject(), ilObjSurveyGUI\savePropertiesObject(), ilPageObject\saveStyleUsage(), ilLPTableBaseGUI\sendMail(), ilSurveyParticipantsGUI\setCodesSubtabs(), Twig_Loader_Array\setTemplate(), ilMailTemplateGUI\showEditTemplateForm(), ilSCORM2004ScoGUI\showExportList(), ilTestPlayerAbstractGUI\showFinalStatementCmd(), ilMailFormGUI\showForm(), ilTestPlayerAbstractGUI\showListOfAnswers(), ilSCORM2004ChapterGUI\showProperties(), ilObjTestGUI\showUserResults(), assFormulaQuestion\substituteVariables(), assQuestionGUI\suggestedsolution(), Twig_Tests_ExpressionParserTest\testArrayExpression(), Twig_Tests_Loader_FilesystemTest\testArrayInheritance(), Twig_Tests_ExpressionParserTest\testArraySyntaxError(), Twig_Tests_LexerTest\testBigNumbers(), Twig_Tests_LexerTest\testBracketsNesting(), Twig_Tests_ExpressionParserTest\testCanOnlyAssignToNames(), Twig_Tests_TemplateTest\testDisplayBlocksAcceptTemplateOnlyAsBlocks(), Twig_Tests_NodeVisitor_OptimizerTest\testForOptimizer(), Twig_Tests_TemplateTest\testGetAttribute(), Twig_Tests_TemplateTest\testGetAttributeCallExceptions(), Twig_Tests_TemplateTest\testGetAttributeDefined(), Twig_Tests_TemplateTest\testGetAttributeDefinedStrict(), Twig_Tests_TemplateTest\testGetAttributeExceptions(), Twig_Tests_TemplateTest\testGetAttributeOnArrayWithConfusableKey(), Twig_Tests_TemplateTest\testGetAttributeStrict(), Twig_Tests_TemplateTest\testGetAttributeWithSandbox(), Twig_Tests_TemplateTest\testGetAttributeWithTemplateAsObject(), Twig_Tests_TemplateTest\testGetAttributeWithTemplateAsObjectForDeprecations(), Twig_Tests_TemplateTest\testGetIsMethods(), Twig_Tests_EnvironmentTest\testGlobals(), grammarTest\testGrammar(), Twig_Tests_LexerTest\testLineDirective(), Twig_Tests_LexerTest\testLineDirectiveInline(), Twig_Tests_Loader_FilesystemTest\testLoadTemplateAndRenderBlockWithCache(), Twig_Tests_LexerTest\testLongBlock(), Twig_Tests_LexerTest\testLongComments(), Twig_Tests_LexerTest\testLongVar(), Twig_Tests_LexerTest\testLongVerbatim(), Twig_Tests_ExpressionParserTest\testMacroDefinitionDoesNotSupportNonConstantDefaultValues(), Twig_Tests_ExpressionParserTest\testMacroDefinitionSupportsConstantDefaultValues(), Twig_Tests_LexerTest\testNameLabelForFunction(), Twig_Tests_LexerTest\testNameLabelForTag(), Twig_Tests_LexerTest\testOperatorEndingWithALetterAtTheEndOfALine(), Twig_Tests_TemplateTest\testRenderBlockWithUndefinedBlock(), Twig_Tests_Loader_FilesystemTest\testSecurity(), Twig_Tests_ExpressionParserTest\testStringExpression(), Twig_Tests_LexerTest\testStringWithEscapedDelimiter(), Twig_Tests_LexerTest\testStringWithEscapedInterpolation(), Twig_Tests_LexerTest\testStringWithHash(), Twig_Tests_LexerTest\testStringWithInterpolation(), Twig_Tests_LexerTest\testStringWithNestedInterpolations(), Twig_Tests_LexerTest\testStringWithNestedInterpolationsInBlock(), Twig_Tests_LexerTest\testStringWithUnterminatedInterpolation(), Twig_Tests_ErrorTest\testTwigExceptionAddsFileAndLine(), Twig_Tests_ErrorTest\testTwigExceptionGuessWithExceptionAndArrayLoader(), Twig_Tests_ErrorTest\testTwigExceptionGuessWithExceptionAndFilesystemLoader(), Twig_Tests_ErrorTest\testTwigExceptionGuessWithMissingVarAndArrayLoader(), Twig_Tests_ErrorTest\testTwigExceptionGuessWithMissingVarAndFilesystemLoader(), Twig_Tests_LexerTest\testUnterminatedBlock(), Twig_Tests_LexerTest\testUnterminatedVariable(), twig_template_from_string(), ilObjGroup\updateGroupType(), ilMailTemplateGUI\updateTemplate(), and ilUsersGalleryGUI\view().

◆ $template_sp_content

foreach ( $user_consent_list as $c) $template_sp_content = array()

Definition at line 204 of file consentAdmin.php.

◆ $translator

◆ $user_consent

$user_consent = array()

Definition at line 199 of file consentAdmin.php.

◆ $user_consent_list

if ( $action !==null &&$sp_entityid !==null) $user_consent_list = $consent_storage->getConsents($hashed_user_id)

Definition at line 196 of file consentAdmin.php.

◆ $userid

◆ $userid_attributename

$userid_attributename = (isset($local_idp_metadata['userid.attribute']) && is_string($local_idp_metadata['userid.attribute'])) ? $local_idp_metadata['userid.attribute'] : 'eduPersonPrincipalName'

Definition at line 111 of file consentAdmin.php.

◆ $userids

$userids = $attributes[$userid_attributename]

Definition at line 113 of file consentAdmin.php.

◆ data [1/3]

foreach ( $all_sp_metadata as $sp_entityid=> $sp_values) $template data[ 'header'] = 'Consent Administration'

Definition at line 272 of file consentAdmin.php.

◆ data [2/3]

$template data[ 'spList'] = $sp_list

Definition at line 273 of file consentAdmin.php.

◆ data [3/3]

$template data[ 'showDescription'] = $cA_config->getValue('showDescription')

Definition at line 274 of file consentAdmin.php.

◆ else

if ( $as->getAuthData( 'saml:sp:IdP') !==null) else
Initial value:
{
$idp_entityid = $local_idp_entityid
$local_idp_entityid

Definition at line 104 of file consentAdmin.php.