Skip to content

Commit 17d3cee

Browse files
author
Frank Tamás
committed
Update documentation of AttributeLimit module
1 parent 6879f5c commit 17d3cee

2 files changed

Lines changed: 27 additions & 1 deletion

File tree

modules/core/docs/authproc_attributelimit.txt

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ metadata. The configuration is a list of attributes that should be allowed. In c
88
release some specific values, make the name of the attribute the key of the array, and its value an array with all the
99
different values allowed for it.
1010

11+
You may need to send special bilateral, or local attributes to a set of SPs that are not specified in SP's metadata.
12+
In this case you can list the SPs then add the name of the attributes to send these SPs, or you can list the attributes and then specify the SPs to send them.
13+
Find the examples below.
14+
1115
Examples
1216
--------
1317

@@ -91,3 +95,22 @@ values ever reach the service providers. Bear in mind that this configuration ca
9195
'affiliate',
9296
),
9397
),
98+
99+
Send attributes to an SP that are not specified in the SPs metadata.
100+
101+
'authproc' => array(
102+
50 => 'core:AttributeLimit',
103+
'allowedAttributes' => array(),
104+
'bilateralSPs' => array(
105+
'entityid1' => array(
106+
'mail',
107+
'local-mail'
108+
)
109+
),
110+
'bilateralAttributes' => array(
111+
'localFooId' => array(
112+
'entityid1',
113+
'entityid2'
114+
)
115+
)
116+
),

tests/modules/core/lib/Auth/Process/AttributeLimitTest.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ private static function processFilter(array $config, array $request)
2020
}
2121

2222
/**
23-
* Test releasing attribute
23+
* Test releasing bilateral attributes by SPs
2424
*/
2525
public function testBilateralSPs()
2626
{
@@ -55,6 +55,9 @@ public function testBilateralSPs()
5555
$this->assertEquals($result['Attributes'], $expectedData['Attributes'], "OK");
5656
}
5757

58+
/**
59+
* Test releasing bilateral attributes by attributes
60+
*/
5861
public function testBilateralAttributes()
5962
{
6063

0 commit comments

Comments
 (0)