The Shibboleth V2 IdP and SP software have reached End of Life and are no longer supported. This documentation is available for historical purposes only. See the IDP v4 and SP v3 wiki spaces for current documentation on the supported versions.


The ECP profile is a SOAP-based interaction with the IdP that supports non-browser application uses of SAML.

The issues associated with ECP go beyond just basic configuration, but simple enablement of the feature at the IdP is fairly simple. The V2.3 IdP includes support for ECP "out of the box" but because of how authentication works in the V2 IdP, the standard authentication setup in the IdP does not apply to the use of ECP. This will be corrected in V3, but in the meantime, the ECP profile handler requires the use of container- or web server-based authentication such that REMOTE_USER is set.

If your IdP uses the RemoteUser LoginHandler with Basic Authentication (not terribly likely, but possible), then you can extend the protection of your authentication setup to include the path to the ECP handler, which is /idp/profile/SAML2/SOAP/ECP

If not, then you will have to add additional configuration to your web server, Java container, etc. to protect this path. The most common mechanism for this will be HTTP Basic Authentication, and most ECP clients would typically support that. Using client certificates is certainly a possibility as well, but you would likely need control over the client to ensure support for that.

We can't really document how you would set up authentication because it is specific to your web server and your authentication source(s). One example would be JAAS. The IdP uses JAAS login modules in its UsernamePassword handler to accomplish authentication, and most Java containers can also be configured to use the same JAAS configuration.

Assuming that's possible, you can modify the IdP's deployment descriptor to enable container-managed authentication for the ECP endpoint. The best way to do this is to copy web.xml from src/main/webapp/WEB-INF/web.xml into /opt/shibboleth-idp/conf/web.xml (or wherever your installation lives) and then modify it to include something like this:

Excerpt from an extended web.xml
        <display-name>Shibboleth IdP</display-name>


  <!-- Depending on the version of tomcat in use, you may also need this - a list of security roles referenced by this web application -->

      <description>The role that is required to access the ECP area</description>

This is purely an example. The specifics will vary by container and your JAAS configuration. Lacking JAAS as a back-end, none of this likely applies to you.


If deploying into Tomcat, you will also need to add a definition of the JAAS Realm.  According to the Tomcat documentation, this can be inserted into either an Engine, Host, or Context configuration.  The easiest might be to modify the Context definition for the IdP web application itself in idp.xml: insert the following snippet: 

      <Realm className="org.apache.catalina.realm.JAASRealm"


  • Note: the appName attribute value must match the declaration name in login.config
  • Note: this snippet uses the user and role class names as per the VtLdapJAAS documentation.

The final step would also be to set the Java property to point to your login.config file.  This could be either done in the Tomcat startup configuration, or, alternatively, if you are using the UsernamePassword login handler, the initialization code for this login handler would set the Java property to the value of the jaasConfigurationLocation parameter passed to this login handler, so no further action is required.