How do you enable BASIC authentication using Tomcat?

Theo Mills

[Question continues: I'm able to get the dialog box requesting the username and password to pop up, however, even though I insert one of the usernames and passwords from the tomcat-users.xml file, I always get an "Authorization failed. Retry?" dialog.]

Make sure that the user has been designated a role in the tomcat-users.xml that matches the role(s) defined in the auth-constraint section of the web.xml:


<user name="test" password="tomcat" roles="role1" />

Does this help?

Comment and Contribute






(Maximum characters: 1200). You have 1200 characters left.



About | Sitemap | Contact