• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Regarding Authentication!!!!

 
Akshay Singhvi
Ranch Hand
Posts: 93
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Ranchers,
I'm not being able to get the dialog box for the authentication of my site.I've included
<login-config>
<auth-method>BASIC</auth-method>
</login-config>
tag in web.xml and also included username and password with roles in tomcat-users.xml.
Do I have to add anything else to get authentication check.
 
Ulf Dittmer
Rancher
Posts: 42969
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You also need security-constraint and security-role elements in your web.xml file. The Tomcat FAQ has a section about this.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic