1
我有一个特殊情况,我需要使用Application Server(Weblogic)安全上下文进行身份验证,但Spring Security进行授权。我正在使用Spring Boot
来创建我的应用程序。在Spring Boot中使用web.xml安全约束
我如何添加一个安全约束类似如下(这通常会在web.xml
包含):
<security-constraint>
<web-resource-collection>
<web-resource-name>portal</web-resource-name>
<description>This is the protected area of the application.</description>
<url-pattern>/*</url-pattern>
</web-resource-collection>
<auth-constraint>
<description>Requires users to be authenticated but does not require them to be authorized.</description>
<role-name>*</role-name>
</auth-constraint>
<user-data-constraint>
<description>Encryption is not required for this area.</description>
<transport-guarantee>NONE</transport-guarantee>
</user-data-constraint>
</security-constraint>
请记住,我需要这是从我的Weblogic
服务器处理和不Spring Security