Hi Satosa users,
I’m trying to add the Swiss eduPerson attributes [1] to the Satosa attribute maps [2] but
running into problems when trying to use them. I’m running Satosa with Docker and have
pulled the swiss attributes into .py files in the attributemaps folder, added them to my
internal_attribute.yaml schema, restarted my container… however they don’t seem to be
recognised.
==========================
The attribute coming from my IdP
==========================
<ns0:Attribute FriendlyName="swissEduPersonHomeOrganization"
Name="urn:oid:2.16.756.1.2.5.1.1.4"
NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:uri"><ns0:AttributeValue
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xsi:type="xs:string">cern.ch</ns0:AttributeValue></ns0:Attribute>
====================================================
The config in internal_attribute.yaml (I just want to pass the attribute straight through
to my Eps)
====================================================
swissedupersonhomeorganization:
saml: [swissEduPersonHomeOrganization]
==========================
Debug messages
==========================
"Unknown attribute name: <ns0:Attribute
xmlns:ns0="urn:oasis:names:tc:SAML:2.0:assertion"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
FriendlyName="swissEduPersonHomeOrganization"
Name="urn:oid:2.16.756.1.2.5.1.1.4"
NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:uri"><ns0:AttributeValue
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xsi:type="xs:string">cern.ch</ns0:AttributeValue></ns0:Attribute>”
...
"skipped backend attribute '['swissEduPersonHomeOrganization']': no
value found”
The OID appears to be correct (SWISSEDUPERSON_OID = 'urn:oid:2.16.756.1.2.5.1.1.’,
SWISSEDUPERSON_OID+’4' =‘swissEduPersonHomeOrganization’). Am I missing something?
Some missing config or some cache somewhere?
Thanks in advance for any advice,
Hannah
[1]
https://www.switch.ch/aai/docs/AAI_Attr_Specs.pdf
[2]
https://github.com/IdentityPython/SATOSA/pull/270