Skip to content

Commit afa985c

Browse files
skanctc00kiemon5ter
authored andcommitted
Fixes the examples for the attribute_generation micro_service
In the example the ordering of target_provider and requester was the reverse from what is used in the code.
1 parent 032ebec commit afa985c

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

example/plugins/microservices/attribute_generation.yaml.example

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ module: satosa.micro_services.attribute_generation.AddSyntheticAttributes
22
name: AddSyntheticAttributes
33
config:
44
synthetic_attributes:
5-
target_provider1:
6-
requester1:
5+
requester1:
6+
target_provider1:
77
eduPersonAffiliation: member;employee
88
default:
99
default:

src/satosa/micro_services/attribute_generation.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,8 @@ class AddSyntheticAttributes(ResponseMicroService):
6161
name: AddSyntheticAttributes
6262
config:
6363
synthetic_attributes:
64-
target_provider1:
65-
requester1:
64+
requester1:
65+
target_provider1:
6666
eduPersonAffiliation: member;employee
6767
default:
6868
default:
@@ -72,8 +72,8 @@ class AddSyntheticAttributes(ResponseMicroService):
7272
```
7373
7474
The use of "" and 'default' is synonymous. Attribute rules are not
75-
overloaded or inherited. For instance a response from "target_provider1"
76-
and requester1 in the above config will generate a (static) attribute
75+
overloaded or inherited. For instance a response for "requester1"
76+
from target_provider1 in the above config will generate a (static) attribute
7777
set of 'member' and 'employee' for the eduPersonAffiliation attribute
7878
and nothing else. Note that synthetic attributes override existing
7979
attributes if present.

0 commit comments

Comments
 (0)