Skip to content
Snippets Groups Projects
Commit 702b9206 authored by Andreas Åkre Solberg's avatar Andreas Åkre Solberg
Browse files

Updating inline documentation on core proccessing filters

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@1098 44740490-163a-0410-bde0-09ae8108e29a
parent 850ee083
No related branches found
No related tags found
No related merge requests found
...@@ -8,21 +8,21 @@ ...@@ -8,21 +8,21 @@
* Example - add attribute, single value: * Example - add attribute, single value:
* <code> * <code>
* 'authproc' => array( * 'authproc' => array(
* array('core:AttributeAdd', 'source' => 'myidp'), * 50 => array('class' => 'core:AttributeAdd', 'source' => 'myidp'),
* ), * ),
* </code> * </code>
* *
* Examle - add attribute, multiple values: * Examle - add attribute, multiple values:
* <code> * <code>
* 'authproc' => array( * 'authproc' => array(
* array('core:AttributeAdd', 'groups' => array('users', 'members')), * 50 => array('class' => 'core:AttributeAdd', 'groups' => array('users', 'members')),
* ), * ),
* </code> * </code>
* *
* Examle - replace attribute, single value: * Examle - replace attribute, single value:
* <code> * <code>
* 'authproc' => array( * 'authproc' => array(
* array('core:AttributeAdd', '%replace', 'uid' => array('guest')), * 50 => array('class' => 'core:AttributeAdd', '%replace', 'uid' => array('guest')),
* ), * ),
* </code> * </code>
* *
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
* Example - remove all attributes except 'cn' and 'mail': * Example - remove all attributes except 'cn' and 'mail':
* <code> * <code>
* 'authproc' => array( * 'authproc' => array(
* array('core:AttributeLimit', 'cn', 'mail'), * 50 => array('class' => 'core:AttributeLimit', 'cn', 'mail'),
* ), * ),
* </code> * </code>
* *
......
...@@ -6,14 +6,14 @@ ...@@ -6,14 +6,14 @@
* Example 1 - apply map stored in attributemap/defaultmap.php: * Example 1 - apply map stored in attributemap/defaultmap.php:
* <code> * <code>
* 'authproc' => array( * 'authproc' => array(
* array('core:AttributeMap', 'defaultmaps'), * 50 => array('class' => 'core:AttributeMap', 'defaultmaps'),
* ), * ),
* </code> * </code>
* *
* Example 2 - rename attributes 'mail' and 'uid' to 'email' and 'user': * Example 2 - rename attributes 'mail' and 'uid' to 'email' and 'user':
* <code> * <code>
* 'authproc' => array( * 'authproc' => array(
* array('core:AttributeMap', 'mail' => 'email', 'uid' => 'user'), * 50 => array('class' => 'core:AttributeMap', 'mail' => 'email', 'uid' => 'user'),
* ), * ),
* </code> * </code>
* *
...@@ -89,7 +89,7 @@ class sspmod_core_Auth_Process_AttributeMap extends SimpleSAML_Auth_ProcessingFi ...@@ -89,7 +89,7 @@ class sspmod_core_Auth_Process_AttributeMap extends SimpleSAML_Auth_ProcessingFi
* @param array &$request The current request * @param array &$request The current request
*/ */
public function process(&$request) { public function process(&$request) {
assert('is_array($request'); assert('is_array($request)');
assert('array_key_exists("Attributes", $request)'); assert('array_key_exists("Attributes", $request)');
$attributes =& $request['Attributes']; $attributes =& $request['Attributes'];
......
...@@ -27,15 +27,15 @@ ...@@ -27,15 +27,15 @@
* Example - generate from default set of attributes: * Example - generate from default set of attributes:
* <code> * <code>
* 'authproc' => array( * 'authproc' => array(
* array('core:GenerateGroups'), * 50 => 'core:GenerateGroups',
* ), * ),
* </code> * </code>
* *
* Example - generate from only the eduPersonAffilitation attribute: * Example - generate from only the eduPersonAffilitation attribute:
* <code> * <code>
* 'authproc' => array( * 'authproc' => array(
* array('core:GenerateGroups', 'eduPersonAffiliation'), * 50 => array('class' => 'core:GenerateGroups', 'eduPersonAffiliation'),
* ), * ),
* </code> * </code>
* *
* @author Olav Morken, UNINETT AS. * @author Olav Morken, UNINETT AS.
......
...@@ -14,15 +14,15 @@ ...@@ -14,15 +14,15 @@
* Example - generate from user ID: * Example - generate from user ID:
* <code> * <code>
* 'authproc' => array( * 'authproc' => array(
* array('core:TargetedID'), * 50 => 'core:TargetedID',
* ), * )
* </code> * </code>
* *
* Example - generate from mail-attribute: * Example - generate from mail-attribute:
* <code> * <code>
* 'authproc' => array( * 'authproc' => array(
* array('core:TargetedID' , 'attribute' => 'mail'), * 50 => array('class' => 'core:TargetedID' , 'attribute' => 'mail'),
* ), * ),
* </code> * </code>
* *
* @author Olav Morken, UNINETT AS. * @author Olav Morken, UNINETT AS.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment