Show full content
In PingFederate, we can release attributes at three layers (remember the mnemonic CAP)
CONNECTION – ideal for Federated SSO, at Nation state level, or for Education
ADAPTER – specific attributes from an LDAP or AD datastore
POLICY – Dynamic, realtime, can alter depending on the time
In Federated SSO, generally SP’s in the UK require the release of a single attribute called eduPersonScopedAffiliation for authorisation. The left hand just needs to state “member”, as that includes students and staff.

The right hand syntax is the base domain of the University eg hogwarts.ac.uk.
Together the EPSA attributes look like this:
member@hogwarts.ac.uk
student@hogwarts.ac.uk
staff@hogwarts.ac.uk
student@hufflepuff.hogwarts.ac.uk
PingFederate. 11.3 – How to release the base attribute the lazy way
As member includes all other attributes, we can easily add this in as text. There’s no need to query the datastore.
Step 1 – AdapterThe HTML form adapter, provides a login page to the user, to enter username and password. The PCV (Password Credential Validator) for this adapter, this will query the datastore to check the users password and authenticate them.
There is no need to add in EPSA as an attribute at the Adapter Level.
In this screenshot the HTML Form Adapter > Extended Contract > You’ll notice that EPSA is not under the Extended Contract for additional attributes to transmit to the SP.

.
Next we come to the Authentication > Policies
Under Success > Select the “Contract Mapping” link

Step 2 – Contract Mapping Link
Here’s the cheat code. member@hogwarts.ac.uk (Text).

This means you always transmit/release the base EPSA scope for the university.
Authentication > Contract Fulfillment (2nd tab).Here we see a mix of the source being the adapter or Text.
For EPSA, we select the drop down that states “Text”, and type in “member@hogwards.ac.uk”
That’s it! The cheat code!

EPSA can be a multiple value array, ie it could include member@hogwarts.ac.uk, member@hufflepuff.hogwarts.ac.uk, and member@divination.hogwarts.ac.uk.
If every student has access, then you only need member. But the beauty of this, is that you can just type in the other scopes if you wish.
Step 3 -What about the SP Connection side? Applications > SP Connections

Under IAMSHOWCASE connection, we’ve added eduPersonScopedAffiliation as an attribute for the SP side.

Step 4 – Test the SP Connection > SSO Application Endpoint URL
This URL will transmit the attributes to IAMSHOWCASE, so that you can see they are being released.

Firstly the user sees a login page.
This is actually the HTML Form Adapter – which presents a login page to users, even if the app doesn’t have an actual login page. It takes the username entered and uses a PCV to look up the user’s attributes in a LDAP/AD data store (but not the EPSA attribute).

IAMSHOWCASE shows us the received EPSA attribute – and it has multiple values, which is wonderful!
There are 8 limited left hand syntax. They’re mandated. Only use these. See the UKFED list below to make sure you’re using the correct syntax. Failure to use the correct syntax, means a failure to be authenticated by the SP.
In summary, EPSA (as an attribute,) can be added as Text, under the Policy > Contract Fulfilment tab.
As this is static text, it will be released for everyone, therefore the base scope is best, the base scope is “member@hogwarts.ac.uk”.
References:
UKFED EPSA
https://www.ukfederation.org.uk/content/Documents/AttributeUsageNotes
https://docs.ukfederation.org.uk/trp/1.5/attribute-usage/
























