开发者

Configuring different auth-methods for different "folders" in a single .war

开发者 https://www.devze.com 2022-12-16 22:40 出处:网络
I would like to create a single .war that contains both a web based FORM login for a web GUI AND BA开发者_运维知识库SIC authentication (in this case, for a web service interface.)

I would like to create a single .war that contains both a web based FORM login for a web GUI AND BA开发者_运维知识库SIC authentication (in this case, for a web service interface.)

 /index.html (unsecured welcome page)
 +---/interactive (folder containing web pages using auth-method=FORM)
 +---/service (servlet mapping for web service using auth-method=BASIC)

I don't see a way to configure such a setup in the web.xml file. It appears that login-config can not appear inside a security-config and that it only allows a single auth-method globally for the .war.


The solution was to create two .war submodules and package them in an .ear file.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号