我已经在 weblogic 服务器上配置了 ADFS SAML,并在 web.xml 中添加了相应的条目。我想通过 ADFS SAML 从授权中排除一个 url,所以我在 web.xml 中添加了没有 auth-constraint 的安全约束。所以现在我期望 /Sample/ 的 url 应该被排除,但它仍然是授权 /Sample/ 请求请在下面找到 web.xml 受限 /Sample/*
<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>