Skip to content

Commit 76a48f3

Browse files
Merge pull request #331 from skoranda/primary_identifier_example
Add PrimaryIdentifier YAML configuration example
2 parents e5e5044 + 047eaeb commit 76a48f3

File tree

1 file changed

+51
-0
lines changed

1 file changed

+51
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
module: PrimaryIdentifier
2+
name: PrimaryIdentifier
3+
config:
4+
# The ordered identifier candidates are searched in order
5+
# to find a candidate primary identifier. The search ends
6+
# when the first candidate is found. The identifier or attribute
7+
# names are the internal SATOSA names for the attributes as
8+
# defined in internal_attributes.yaml. The configuration below
9+
# would search in order for eduPersonUniqueID, eduPersonPrincipalName
10+
# combined with a SAML2 Persistent NameID, eduPersonPrincipalName
11+
# combined with eduPersonTargetedId, eduPersonPrincipalName,
12+
# SAML 2 Persistent NameID, and finally eduPersonTargetedId.
13+
ordered_identifier_candidates:
14+
- attribute_names: [epuid]
15+
# The line below combines, if found, eduPersonPrincipalName and SAML 2
16+
# persistent NameID to create a primary identifier.
17+
- attribute_names: [eppn, name_id]
18+
name_id_format: urn:oasis:names:tc:SAML:2.0:nameid-format:persistent
19+
# The line below combines, if found, eduPersonPrincipalName and
20+
# eduPersonTargetedId to create a primary identifier.
21+
- attribute_names: [eppn, edupersontargetedid]
22+
- attribute_names: [eppn]
23+
- attribute_names: [name_id]
24+
name_id_format: urn:oasis:names:tc:SAML:2.0:nameid-format:persistent
25+
# The line below addes the IdP entityID to the value for the SAML2
26+
# Persistent NameID to ensure the value is fully scoped.
27+
add_scope: issuer_entityid
28+
- attribute_names: [edupersontargetedid]
29+
add_scope: issuer_entityid
30+
# The internal SATOSA attribute into which to place the primary
31+
# identifier value once found from the above configured ordered
32+
# candidates.
33+
primary_identifier: uid
34+
# Whether or not to clear the input attributes after setting the
35+
# primary identifier value.
36+
clear_input_attributes: no
37+
# If defined redirect to this page if no primary identifier can
38+
# be found.
39+
on_error: https://my.org/errors/no_primary_identifier
40+
41+
# The microservice may be configured per entityID.
42+
# The configuration key is the entityID of the requesting SP,
43+
# or the authenticating IdP. An SP configuration overrides an IdP
44+
# configuration when there is a conflict.
45+
"https://my.org/idp/shibboleth":
46+
ordered_identifier_candidates:
47+
- attribute_names: [eppn]
48+
49+
"https://service.my.org/sp/shibboleth":
50+
ordered_identifier_candidates:
51+
- attribute_names: [mail]

0 commit comments

Comments
 (0)