Tomcat security constraint for valid user

前端 未结 3 623
北荒
北荒 2021-02-06 11:26

I\'m trying to protect a resource in tomcat so that only \"valid users\" (those with a valid login and password in the realm) can access it. They do not necessarily belong to a

3条回答
  •  天命终不由人
    2021-02-06 12:14

    Besides the auth-constraint you are adding to the security-constraint:

       
           *
       
    

    you need specify the security role in the web-app:

        
            *
        
    

提交回复
热议问题