Page tree

The Shibboleth 2.x software has reached its End of Life and is no longer supported. This documentation is available for historical purposes only. See the IDP4 and SP3 wiki spaces for current documentation on the supported versions.

Skip to end of metadata
Go to start of metadata

Infocard Configuration

You have to add the extension module to the lists of extensions; add a session initiator for infocard; and configure an assertion consumer location; and provide a login form template.

You may have to add an attribute acceptanec policy as well.


Add the module to both the InProcess and OutOfProcess sections:

<OutOfProcess ...>
        <Library path="(shib-root)/lib/infocard/" fatal="true"/>

  <InProcess ...>
        <Library path="(shib-root)/lib/infocard/" fatal="true"/>

Add a session initiator:

<SessionInitiator type="Chaining" Location="/SHIB/Infocard"
        id="Infocard" isDefault="false" relayState="cookie">
     <SessionInitiator type="Infocard" template="(shib-root)/etc/shibboleth/infocard.html"/>

Configure an assertion consumer service:

<md:AssertionConsumerService Location="/SAML/Infocard" index="7"

Define a login template

The login template, referenced in the session initiator, automatically submits a form that starts Infocard login. The form identifies the attributes you want from the IdP.
Here is an example, requesting eduPerson attributes (infocard.html for the session initiator)

<html xmlns="" xmlns:ic="">
 <title>Shibboleth InfoCard login request</title>
<body onload="document.forms[0].submit()">

<h3>Shibboleth InfoCard login request</h3>

  <script type="text/javascript">
    document.write("<p>You are automatically being redirected to the authentication service. ");
    document.write("If the browser appears to be hung up after 15-20 seconds, try reloading ");
    document.write("the page before contacting the technical support staff in charge of the ");
    document.write("authentication service you are trying to access.</p>");
    // -->

  <strong>Note:</strong> Since your browser does not support JavaScript, you must press the
  Continue button once to proceed to the authentication service.

  <form method="post" action="<shibmlp action_target/>">
     <shibmlpif wctx>
        <input type="hidden" name="wctx" value="<shibmlp wctx/>"/>

     <ic:informationCard name="xmlToken"
         <shibmlpif stsid>
           issuer="<shibmlp stsid/>"
         <!-- Specify either a SAML1 or SAML2 assertion -->
         <!-- <tokenType="urn:oasis:names:tc:SAML:1.0:assertion"> -->

        <ic:add claimType="urn:mace:dir:attribute-def:eduPersonPrincipalName" optional="false"/>
        <ic:add claimType="urn:mace:dir:attribute-def:eduPersonEntitlement" optional="false"/>
        <ic:add claimType="urn:mace:dir:attribute-def:eduPersonScopedAffiliation" optional="false"/>
       <input type="submit" value="Continue"/>


  • No labels