从 OpenAM Tomcat 代理过滤器映射中排除 URL
OpenAM 的默认 web.xml 配置提供了一个过滤器映射,其中包括站点内的所有 URI:
<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>
如何防止一个或多个特定 URI 与此过滤器一起使用?我想避免将 Filter 类扩展为接受初始化参数的类。
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以在代理上配置非强制 URI。它是代理不强制实施保护的 URI 列表。
请参阅J2EE 代理中未强制执行的 URI 列表。
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.