diff --git a/modules/core/lib/Auth/Process/AttributeAdd.php b/modules/core/lib/Auth/Process/AttributeAdd.php index 5d31acae0ef07d92aa32f89fb53d19d600fe3f77..ab98be8578f5feefa6d9737ab683bfa9d9deea23 100644 --- a/modules/core/lib/Auth/Process/AttributeAdd.php +++ b/modules/core/lib/Auth/Process/AttributeAdd.php @@ -8,21 +8,21 @@ * Example - add attribute, single value: * <code> * 'authproc' => array( - * array('core:AttributeAdd', 'source' => 'myidp'), + * 50 => array('class' => 'core:AttributeAdd', 'source' => 'myidp'), * ), * </code> * * Examle - add attribute, multiple values: * <code> * 'authproc' => array( - * array('core:AttributeAdd', 'groups' => array('users', 'members')), + * 50 => array('class' => 'core:AttributeAdd', 'groups' => array('users', 'members')), * ), * </code> * * Examle - replace attribute, single value: * <code> * 'authproc' => array( - * array('core:AttributeAdd', '%replace', 'uid' => array('guest')), + * 50 => array('class' => 'core:AttributeAdd', '%replace', 'uid' => array('guest')), * ), * </code> * diff --git a/modules/core/lib/Auth/Process/AttributeLimit.php b/modules/core/lib/Auth/Process/AttributeLimit.php index d96df12c35d59aaed7fd5da8389b626019271a53..23313b1fd957fbecf656603849fbaa8d9d313683 100644 --- a/modules/core/lib/Auth/Process/AttributeLimit.php +++ b/modules/core/lib/Auth/Process/AttributeLimit.php @@ -6,7 +6,7 @@ * Example - remove all attributes except 'cn' and 'mail': * <code> * 'authproc' => array( - * array('core:AttributeLimit', 'cn', 'mail'), + * 50 => array('class' => 'core:AttributeLimit', 'cn', 'mail'), * ), * </code> * diff --git a/modules/core/lib/Auth/Process/AttributeMap.php b/modules/core/lib/Auth/Process/AttributeMap.php index 9631b0b9e90bcde38c74f1c608bfcb15c66abe85..5209f8430ff2eb4db9d2296797635a6e75661154 100644 --- a/modules/core/lib/Auth/Process/AttributeMap.php +++ b/modules/core/lib/Auth/Process/AttributeMap.php @@ -6,14 +6,14 @@ * Example 1 - apply map stored in attributemap/defaultmap.php: * <code> * 'authproc' => array( - * array('core:AttributeMap', 'defaultmaps'), + * 50 => array('class' => 'core:AttributeMap', 'defaultmaps'), * ), * </code> * * Example 2 - rename attributes 'mail' and 'uid' to 'email' and 'user': * <code> * 'authproc' => array( - * array('core:AttributeMap', 'mail' => 'email', 'uid' => 'user'), + * 50 => array('class' => 'core:AttributeMap', 'mail' => 'email', 'uid' => 'user'), * ), * </code> * @@ -89,7 +89,7 @@ class sspmod_core_Auth_Process_AttributeMap extends SimpleSAML_Auth_ProcessingFi * @param array &$request The current request */ public function process(&$request) { - assert('is_array($request'); + assert('is_array($request)'); assert('array_key_exists("Attributes", $request)'); $attributes =& $request['Attributes']; diff --git a/modules/core/lib/Auth/Process/GenerateGroups.php b/modules/core/lib/Auth/Process/GenerateGroups.php index 6e8c2e35a68444539c3f51a0c8c004c1ff7dfba6..b773be3f75a5df1f57360e13132a71d17952df49 100644 --- a/modules/core/lib/Auth/Process/GenerateGroups.php +++ b/modules/core/lib/Auth/Process/GenerateGroups.php @@ -27,15 +27,15 @@ * Example - generate from default set of attributes: * <code> * 'authproc' => array( - * array('core:GenerateGroups'), + * 50 => 'core:GenerateGroups', * ), * </code> * * Example - generate from only the eduPersonAffilitation attribute: * <code> * 'authproc' => array( - * array('core:GenerateGroups', 'eduPersonAffiliation'), - * ), + * 50 => array('class' => 'core:GenerateGroups', 'eduPersonAffiliation'), + * ), * </code> * * @author Olav Morken, UNINETT AS. diff --git a/modules/core/lib/Auth/Process/TargetedID.php b/modules/core/lib/Auth/Process/TargetedID.php index 3044f71df2874afc8381f0fcc8aa66d32814cf1d..b8f8a0b33731f28450aba2a94412ec544e907053 100644 --- a/modules/core/lib/Auth/Process/TargetedID.php +++ b/modules/core/lib/Auth/Process/TargetedID.php @@ -14,15 +14,15 @@ * Example - generate from user ID: * <code> * 'authproc' => array( - * array('core:TargetedID'), - * ), + * 50 => 'core:TargetedID', + * ) * </code> * * Example - generate from mail-attribute: * <code> * 'authproc' => array( - * array('core:TargetedID' , 'attribute' => 'mail'), - * ), + * 50 => array('class' => 'core:TargetedID' , 'attribute' => 'mail'), + * ), * </code> * * @author Olav Morken, UNINETT AS.