I have access to the Tomcat manager and can upload war-files. One of these wars is a static web project (zipped html + media files, renamed to *.war). I want add a Web-INF/web.xml file to this war to protect the content with basic http auth.
I know how to do this by adding global users and assigning roles in the tomcat-users.xml, but I want to have all usernames and passwords defined in my war-file.
- Can this be done without touching the Tomcat's
tomcat-users.xml? - And if yes, how do I specify this in my static project's
web.xml?