Previous Topic: Configure SiteMinder Agent Authenticators For All Web Applications on JBoss 5.x

Next Topic: Define a JBossSX Security Domain for the SiteMinder Agent Login Module

Configure a SiteMinder Agent Authenticator for an Individual Application

To configure a web application to use a specific SiteMinder Agent Authenticator to handle requests, define a context.xml file in the application WEB-INF directory. Configuring a context.xml file overrides the global authenticators defined in jboss-service.xml (JBoss 4.x) or war-deployers-jboss-beans.xml (JBoss 5.x).

To configure a web application to use a specific SiteMinder Agent Authenticator

  1. Navigate to the application WEB-INF directory.
  2. Open a text editor.
  3. Define a context element containing a valve subelement that specifies the class name of the SiteMinder Agent Authenticator which you want to handle application requests.

    To configure the application to use SMJBossBasicAuthenticator, type:

    <Context cookies="true" crossContext="true">
      <Valve className="com.ca.soa.agent.appserver.authenticator.jBoss.SMJBossBasicAuthenticator"/>
    </Context>
    

    To configure the application to use the SMJBossFormAuthenticator, type:

    <Context cookies="true" crossContext="true">
      <Valve className="com.ca.soa.agent.appserver.authenticator.jBoss.SMJBossFormAuthenticator"/>
    </Context>
    

    To configure the application to use SMJBossClientCertAuthenticator, type:

    <Context cookies="true" crossContext="true">
      <Valve className="com.ca.soa.agent.appserver.authenticator.jBoss.SMJBossClientCertAuthenticator"/>
    </Context>
    

    To configure the application to use SMJBossDigestAuthenticator, type:

    <Context cookies="true" crossContext="true">
      <Valve className="com.ca.soa.agent.appserver.authenticator.jBoss.SMJBossDigestAuthenticator"/>
    </Context>
    

    To configure the application to use the SMJBossIdentityAsserter, type:

    <Context cookies="true" crossContext="true">
      <Valve className="com.ca.soa.agent.appserver.authenticator.jBoss.SMJBossIdentityAsserter"/>
    </Context>
    
  4. Save the file as context.xml and exit the text editor.