37 $authProcState =
array(
39 'Destination' => $sp_metadata,
48 $pc->processStatePassive($authProcState);
76 if (array_key_exists(
'logout', $_REQUEST)) {
77 $returnURL =
$cA_config->getValue(
'returnURL');
78 $as->logout($returnURL);
100 if (
$as->getAuthData(
'saml:sp:IdP') !== null) {
102 $idp_entityid =
$as->getAuthData(
'saml:sp:IdP');
116 throw new Exception(
'Could not generate useridentifier for storing consent. Attribute ['.
128 if (!empty(
$_GET[
'cv'])) {
131 if (!empty(
$_GET[
'action'])) {
209 $translator->includeLanguageFile(
'attributes.php');
224 $sp_status =
"changed";
238 if (isset($sp_values[
'name']) && is_array($sp_values[
'name'])) {
239 $sp_name = $sp_metadata[
'name'];
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'];
251 if (empty($sp_metadata[
'description']) || !is_array($sp_metadata[
'description'])) {
254 $sp_description = $sp_metadata[
'description'];
258 $sp_service_url = isset($sp_metadata[
'ServiceURL']) ? $sp_metadata[
'ServiceURL'] : null;
264 'description' => $sp_description,
265 'consentStatus' => $sp_status,
267 'attributes_by_sp' => $attributes_new,
268 'serviceurl' => $sp_service_url,
static getTargetedID($userid, $source, $destination)
Generate a unique targeted identifier.
static getHashedUserID($userid, $source)
Generate a unique identifier of the user.
if(empty($userids)) $userid
foreach($_POST as $key=> $value) $res
static getAttributeHash($attributes, $includeValues=false)
Generate unique identifier for attributes.
static getConfig($filename='config.php', $configSet='simplesaml')
Load a configuration file from a configuration set.
Create styles array
The data for the language used.
if($action !==null && $sp_entityid !==null) $user_consent_list
driveProcessingChain( $idp_metadata, $source, $sp_metadata, $sp_entityid, $attributes, $userid, $hashAttributes=false)
static parseStoreConfig($config)
Parse consent storage configuration.
if(array_key_exists('logout', $_REQUEST)) $hashAttributes
static getInstance($instancename='simplesaml')
Get a configuration file by its instance name.
foreach($user_consent_list as $c) $template_sp_content