You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/filter_commands.md
+17-7Lines changed: 17 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,8 @@
1
1
# EngineBlock Input and Output Command Chains
2
2
3
3
EngineBlock pre-processes incoming and outgoing SAML Responses using so-called Filters. These filters provide specific,
4
-
critical functionality, by invoking a sequence of Filter Commands. However, it is not easily discoverable what these
5
-
Filters and Filter Commands exactly do and how they work. This document outlines how these Filters and Filter Commands
4
+
critical functionality, by invoking a sequence of Filter Commands. However, it is not easily discoverable what these
5
+
Filters and Filter Commands exactly do and how they work. This document outlines how these Filters and Filter Commands
6
6
work and what each filter command does.
7
7
8
8
The chains are:
@@ -13,11 +13,11 @@ The specific commands can be found in the [`library\EngineBlock\Corto\Filter\Com
13
13
14
14
## Input and Output Filters
15
15
16
-
These are called by [`ProxyServer`][ps], through [`filterOutputAssertionAttributes`][fOAA] and
16
+
These are called by [`ProxyServer`][ps], through [`filterOutputAssertionAttributes`][fOAA] and
17
17
[`filterInputAssertionAttributes`][fIAA] calling [`callAttributeFilter`][cAF], which invokes the actual Filter Commands.
18
18
19
19
Each Filter then executes Filter Commands in a specified order for Input (between receiving Assertion from IdP and
20
-
Consent) and Output (after Consent, before sending Response to SP).
20
+
Consent) and Output (after Consent, before sending Response to SP).
21
21
What the filter does is:
22
22
```
23
23
Loop over given Filter Commands, for each Command:
@@ -30,7 +30,7 @@ Loop over given Filter Commands, for each Command:
30
30
set the collabPersonId (either: string stored in session, string found in Response, string found in responseAttributes, string found in nameId response or null, in that order)
31
31
execute the command
32
32
```
33
-
During the loop, the Response, responseAttributes and collabPersonId are retrieved from the previous command and are
33
+
During the loop, the Response, responseAttributes and collabPersonId are retrieved from the previous command and are
34
34
used by the commands that follows.
35
35
36
36
A command can also stop filtering by calling `$this->stopFiltering();`
@@ -67,7 +67,7 @@ Uses:
67
67
- EngineBlock_Saml2_ResponseAnnotationDecorator
68
68
- responseAttributes
69
69
70
-
### NormalizeAttributes
70
+
### NormalizeAttributes
71
71
Convert all OID attributes to URN and remove the OID variant
72
72
73
73
Depends on:
@@ -193,7 +193,7 @@ Modifies:
193
193
See: [Engineblock Attribute Aggregation](attribute_aggregation.md) for more information.
194
194
195
195
### EnforcePolicy
196
-
Makes a call to the external PolicyDecisionPoint service. This returns a response which details whether or not the
196
+
Makes a call to the external PolicyDecisionPoint service. This returns a response which details whether or not the
197
197
current User is allowed access to the Service Provider. For more information see [the PDP repository README][pdp-repo]
0 commit comments