38 $authProcState = array(
40 'Destination' => $sp_metadata,
41 'SPMetadata' => $sp_metadata,
47 if (strpos(
$source,
'-idp-remote|') !==
false) {
48 $authProcState[
'saml:sp:IdP'] = substr(
$source, strpos(
$source,
'|') + 1);
55 $pc->processStatePassive($authProcState);
78 return array($targeted_id, $attribute_hash,
$attributes);
89 if (array_key_exists(
'logout', $_REQUEST)) {
90 $returnURL =
$cA_config->getValue(
'returnURL');
91 $as->logout($returnURL);
116 if (
$as->getAuthData(
'saml:sp:IdP') !== null) {
118 $source =
'saml20-idp-remote|'.$as->getAuthData(
'saml:sp:IdP');
130 throw new Exception(
'Could not generate useridentifier for storing consent. Attribute ['.
142 if (!empty(
$_GET[
'cv'])) {
145 if (!empty(
$_GET[
'action'])) {
235 $sp_status =
"changed";
249 if (isset($sp_values[
'name']) && is_array($sp_values[
'name'])) {
250 $sp_name = $sp_metadata[
'name'];
252 if (isset($sp_values[
'name']) && is_string($sp_values[
'name'])) {
253 $sp_name = $sp_metadata[
'name'];
254 } elseif (isset($sp_values[
'OrganizationDisplayName']) && is_array($sp_values[
'OrganizationDisplayName'])) {
255 $sp_name = $sp_metadata[
'OrganizationDisplayName'];
262 if (empty($sp_metadata[
'description']) || !is_array($sp_metadata[
'description'])) {
265 $sp_description = $sp_metadata[
'description'];
269 $sp_service_url = isset($sp_metadata[
'ServiceURL']) ? $sp_metadata[
'ServiceURL'] : null;
275 'description' => $sp_description,
276 'consentStatus' => $sp_status,
278 'attributes_by_sp' => $attributes_new,
279 '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.
driveProcessingChain( $idp_metadata, $source, $sp_metadata, $sp_entityid, $attributes, $userid, $hashAttributes=false, $excludeAttributes=array())
if($action !==null && $sp_entityid !==null) $user_consent_list
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