Ideally SPs that require a particular assurance level will initiate the assurance flow by including the desired IAQ in the <samlp:AuthnRequest> element.

SPs will receive IAQs (either in response to a specific request, or sent unsolicited) in assertions from IdPs. SPs should use metadata to check that the IdP is authorized to assert the IAQs being asserting.

SPs will rely on local policy to decide how to handle incoming IAQs. For example if the SP requires InCommon Bronze but receives InCommon Silver, that is probably acceptable.

SP Policy Use Cases

Issues

Software-Specific Information

Shibboleth

This example shows how a Shibboleth Service Provider can request a silver-test IAQ from an IdP. First, the SP must consume IdP metadata.

  1. Edit the SP's /etc/shibboleth/attribute-map.xml configuration file. Add the following new element to the config:
    <Attribute
        name="urn:oasis:names:tc:SAML:attribute:assurance-certification"
        id="assurance-certification"/>
    
    This corresponds to the <saml:Attribute Name="urn:oasis:names:tc:SAML:attribute:assurance-certification"> element in the IdP's metadata.
  2. Edit the SP's /etc/shibboleth/shibboleth2.xml configuration file. Add the following attribute to the <ApplicationDefaults> element:
    metadataAttributePrefix="Meta-"
    
    You will now have an <ApplicationDefaults> element with the following:
    <ApplicationDefaults
        id="default" policyId="default"
        entityID="https://example.org/shibboleth"
        REMOTE_USER="persistent-id targeted-id eppn"
        signing="false" encryption="false"
        homeURL="https://example.org/"
        metadataAttributePrefix="Meta-">
    
    This will add new Apache server environment variables with prefix HTTP_META_ and allow the SP software to automatically populate the Apache server environment with IAQs from the IdP's metadata. This is useful for the SP to programmatically determine which assurance attributes are valid from the IdP.
  3. Restart the SP's shibd process.

One way for the SP to request silver-test IAQ from the IdP is to use the authnContextClassRef query string parameter to create the session.

Location: https://sp.example.org/Shibboleth.sso/Login?
  target=https%3A%2F%2Fsp.example.org%2Fsecure%2Fresource.asp&
  entityID=https%3A%2F%2Fidp.example.org%2Fidp%2Fshibboleth&
  authnContextClassRef=http%3A%2F%2Fid.incommon.org%2Fassurance%2Fsilver-test

Upon successful authentication from the IdP, the secure SP session should contain the following environment variables:

HTTP_SHIB_AUTHENTICATION_METHOD    http://id.incommon.org/assurance/silver-test
HTTP_META_ASSURANCE_CERTIFICATION  http://id.incommon.org/assurance/silver-test;http://id.incommon.org/assurance/bronze-test

Contrast this with the same session initiation without the authnContextClassRef parameter:

HTTP_SHIB_AUTHENTICATION_METHOD    urn:oasis:names:tc:SAML:2.0:ac:classes:PasswordProtectedTransport
HTTP_META_ASSURANCE_CERTIFICATION  http://id.incommon.org/assurance/silver-test;http://id.incommon.org/assurance/bronze-test

Note that if you attempt to pass the authnContextClassRef parameter to an IdP that has not been properly configured, you will most likely receive an opensaml::FatalProfileException error.