Greymeister
Greymeister

Reputation: 312

Excluding URLs from OpenAM Tomcat Agent Filter Mapping

The default web.xml configuration for OpenAM provides a filter-mapping that includes all URI's within a site:

<filter>
    <filter-name>Agent</filter-name>
    <display-name>Agent</display-name>
    <description>SJS Access Manager Tomcat Policy Agent Filter</description>
    <filter-class>com.sun.identity.agents.filter.AmAgentFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>Agent</filter-name>
    <url-pattern>/*</url-pattern>
    <dispatcher>REQUEST</dispatcher>
    <dispatcher>INCLUDE</dispatcher>
    <dispatcher>FORWARD</dispatcher>
    <dispatcher>ERROR</dispatcher>
</filter-mapping>

How can I prevent one or more specific URI's from being used with this filter? I would like to avoid extending the Filter class into one that accepts initialization parameters.

Upvotes: 2

Views: 1534

Answers (1)

wjans
wjans

Reputation: 10115

You can configure not enforced URIs on your agent. It's a list of URIs for which protection is not enforced by the agent.

See Not-Enforced URI List in J2EE Agents.

Upvotes: 3

Related Questions