Tycker att det är detta som görs i Shibboleth med denna konfiguration:
<AttributeDefinition xsi:type="SAML2NameID"
xmlns="urn:mace:shibboleth:2.0:resolver" id="edupersonTargetedID"
nameIdFormat="urn:oasis:names:tc:SAML:2.0:nameid-format:persistent">
<InputDataConnector ref="StoredId"
attributeNames="persistentId"/>
<AttributeEncoder xsi:type="SAML1XMLObject"
name="urn:oid:1.3.6.1.4.1.5923.1.1.1.10" />
<AttributeEncoder xsi:type="SAML2XMLObject"
name="urn:oid:1.3.6.1.4.1.5923.1.1.1.10"
friendlyName="edupersonTargetedID"
nameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:uri"/>
</AttributeDefinition>
<DataConnector id="StoredId"
xsi:type="StoredId" xmlns="urn:mace:shibboleth:2.0:resolver"
generatedAttributeID="persistentId"
salt="YYYY">
<InputAttributeDefinition ref="uid"/>
<BeanManagedConnection>MyGlobalDataSource</BeanManagedConnection>
</DataConnector>
Trodde först att det hade något med stor bokstav på P i
eduPersonTargetedID eftersom det i dokumentationen står med liten
bokstav edupersonTargetedID, men det har ingen betydelse efter tester.
/Mats
On 4/28/25 9:07 AM, Björn Sandell wrote:
Hej,
Jag drog igång det i slutet av förra veckan, iofs på ADFS. Inga större
konstigheter egentligen, men jag hade kanske tur. För
edupersonTargetedID bygger jag ihop ett värde på samma sätt som för
ett persistent NameID men släpper det som
urn:oid:1.3.6.1.4.1.5923.1.1.1.10
/Björn
------------------------------------------------------------------------
*From:* Tomas Liljebergh <Tomas.Liljebergh(a)oru.se>
*Sent:* Monday, April 28, 2025 08:50
*To:* saml-admins(a)lists.sunet.se <saml-admins(a)lists.sunet.se>; Mats
Luspa <mats.luspa(a)irf.se>
*Subject:* [Saml-admins] Re: SSO Login Harica (Shibboleth)
Some people who received this message don't often get email from
tomas.liljebergh(a)oru.se. Learn why this is important
<https://aka.ms/LearnAboutSenderIdentification>
Hej!
Har de öppnat för SSO?
Kent o TCS har meddelat att det tillsvidare inte fungerar men jag kan
ha missat något meddelande!
VI har testat och fått samma fel!
//Tomas
------------------------------------------------------------------------
*From:* Mats Luspa via Saml-admins <saml-admins(a)lists.sunet.se>
*Sent:* Monday, April 28, 2025 8:48
*To:* saml-admins(a)lists.sunet.se <saml-admins(a)lists.sunet.se>
*Subject:* [Saml-admins] SSO Login Harica (Shibboleth)
Hej!
Enligt dokumentation här
https://wiki.geant.org/pages/viewpage.action?spaceKey=TCSNT&title=TCS+2…
<https://wiki.geant.org/pages/viewpage.action?spaceKey=TCSNT&title=TCS+2025+FAQ#TCS2025FAQ-IsSAMLSupported?>
så kräver Harica följande attribut:
givenName (oid:2.5.4.42)
surname (oid:2.5.4.4)
mail (oid:0.9.2342.19200300.100.1.3)
edupersonTargetedID (oid:1.3.6.1.4.1.5923.1.1.1.10)
Men jag har problem att få iväg attributet edupersonTargetedID till
Harica.
I attribute-filter har jag följande:
<AttributeFilterPolicy id="Harica">
<PolicyRequirementRule xsi:type="Requester"
value="https://www.harica.gr/simplesamlphp/module.php/saml/sp/metadata.php/pki-grnet-sp
<https://www.harica.gr/simplesamlphp/module.php/saml/sp/metadata.php/pki-grnet-sp>"
/>
<AttributeRule attributeID="givenName">
<PermitValueRule xsi:type="ANY" />
</AttributeRule>
<AttributeRule attributeID="surname">
<PermitValueRule xsi:type="ANY"/>
</AttributeRule>
<AttributeRule attributeID="mail">
<PermitValueRule xsi:type="ANY" />
</AttributeRule>
<AttributeRule attributeID="edupersonTargetedID">
<PermitValueRule xsi:type="ANY"/>
</AttributeRule>
<AttributeRule attributeID="tcsPersonalEntitlement">
<PermitValueRule xsi:type="ANY" />
</AttributeRule>
<AttributeRule attributeID="eduPersonPrincipalName">
<PermitValueRule xsi:type="ANY"/>
</AttributeRule>
<AttributeRule attributeID="schacHomeOrganization">
<PermitValueRule xsi:type="ANY"/>
</AttributeRule>
<AttributeRule attributeID="eduPersonPrimaryAffiliation">
<PermitValueRule xsi:type="ANY"/>
</AttributeRule>
</AttributeFilterPolicy>
I attribute-resolver:
<AttributeDefinition xsi:type="SAML2NameID"
xmlns="urn:mace:shibboleth:2.0:resolver" id="edupersonTargetedID"
nameIdFormat="urn:oasis:names:tc:SAML:2.0:nameid-format:persistent">
<InputDataConnector ref="StoredId"
attributeNames="persistentId"/>
<AttributeEncoder xsi:type="SAML1XMLObject"
name="urn:oid:1.3.6.1.4.1.5923.1.1.1.10" />
<AttributeEncoder xsi:type="SAML2XMLObject"
name="urn:oid:1.3.6.1.4.1.5923.1.1.1.10"
friendlyName="edupersonTargetedID" />
</AttributeDefinition>
När jag loggar in så skickas attributet edupersonTargetedID enligt
bilaga, men det ser ut som Harica vägrar att ta emot detta då jag får
felmeddelande:
Cannot create your account
Your Identity Provider (IdP) does not provide HARICA with the
appropriate info (attributes) for your account.
Please contact your IdP, to fix this issue.
Testade även med
https://cm.harica.gr/loginsaml/test.php
<https://cm.harica.gr/loginsaml/test.php> och då får jag
att dessa attibut kommer fram (trots att attributen skickas enligt
bilaga alltså):
eduPersonPrincipalName: matsl(a)irf.se
schacHomeOrganization: irf.se
sn: Luspa
eduPersonEntitlement: urn:mace:terena.org:tcs:personal-user
eduPersonPrimaryAffiliation: The Swedish Institute of Space Physics
givenName: Mats
mail: mats.luspa(a)irf.se
groups: realm-irf.se, users, members
Är det någon i denna lista som fått SSO login till Harica att fungera
med idp shibboleth (ver. 5.1.4)?
/MVH Mats
--
--
Mats Luspa
Phone: +46 (0)980 79 022
Cellular phone: +46 (0)725813330
Institutet för rymdfysik Fax: +46 (0)980 79 050
Swedish Institute of Space Physics email: matsl(a)irf.se
Visiting/Delivery address: Bengt Hultqvists väg 1, SE-981 92 Kiruna
Postal address: Box 812, SE-981 28 Kiruna
--
PGP Public Key:
https://www.irf.se/pgp/matsl
<https://www.irf.se/pgp/matsl>
Digital vcard:
https://www.irf.se/vcard/mats.luspa
<https://www.irf.se/vcard/mats.luspa>
_______________________________________________
Saml-admins mailing list --saml-admins(a)lists.sunet.se
To unsubscribe send an email tosaml-admins-leave(a)lists.sunet.se
--
--
Mats Luspa
Phone: +46 (0)980 79 022
Cellular phone: +46 (0)725813330
Institutet för rymdfysik Fax: +46 (0)980 79 050
Swedish Institute of Space Physics email:matsl@irf.se
Visiting/Delivery address: Bengt Hultqvists väg 1, SE-981 92 Kiruna
Postal address: Box 812, SE-981 28 Kiruna
--
PGP Public Key:https://www.irf.se/pgp/matsl
Digital vcard:https://www.irf.se/vcard/mats.luspa