【发布时间】:2015-05-19 11:32:08
【问题描述】:
我已经在 weblogic 服务器上配置了 ADFS SAML,并在 web.xml 中添加了相应的条目。 我想通过 ADFS SAML 从授权中排除一个 url,所以我在 web.xml 中添加了没有 auth-constraint 的安全约束。所以现在我期望带有 /Sample/ 的 url 应该被排除,但它仍然是授权 /Sample/ 请求 请在下面找到 web.xml 受限制的 /样本/*
<security-constraint>
<display-name>excluded</display-name>
<web-resource-collection>
<web-resource-name>No Access</web-resource-name>
<url-pattern>*</url-pattern>
<http-method>PUT</http-method>
<http-method>DELETE</http-method>
</web-resource-collection>
<web-resource-collection>
<web-resource-name>Restricted</web-resource-name>
<url-pattern>/Sample</url-pattern>
<http-method>GET</http-method>
<http-method>POST</http-method>
</web-resource-collection>
<web-resource-collection>
<web-resource-name>SAML</web-resource-name>
<url-pattern>*</url-pattern>
</web-resource-collection>
<auth-constraint>
<role-name>everyone</role-name>
</auth-constraint>
</security-constraint>
【问题讨论】:
标签: java web.xml weblogic12c security-constraint