This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes JSP and the fly likes Basic Authentication using web.xml Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Basic Authentication using web.xml" Watch "Basic Authentication using web.xml" New topic
Author

Basic Authentication using web.xml

Gezza Hall
Ranch Hand

Joined: Jan 04, 2005
Posts: 33
Hi, I have a webapp which uses BASIC authentication using the web.xml and struts. Here is an example segment from the web.xml:

<security-constraint>
<web-resource-collection>
<web-resource-name>name</web-resource-name>
<url-pattern>/home/*</url-pattern>
<http-method>GET</http-method>
</web-resource-collection>
<auth-constraint>
<role-name>MY_LDAP_GROUP</role-name>
</auth-constraint>
</security-constraint>
<login-config>
<auth-method>BASIC</auth-method>
<realm-name>My Realm</realm-name>
<form-login-config>
<form-login-page>/login.do</form-login-page>
<form-error-page>/error.do</form-error-page>
</form-login-config>
</login-config>

We now need the functionality where we want to allow any users from a particular IP address, so that they are not prompted by the pop-up username & password box. Is this possible please?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Basic Authentication using web.xml
 
Similar Threads
HTTP 403 for authenticated users - FIXED
Problems with FORM Authentication
Form based authentication in java server faces.
How authorization constraint effects authentication?
ties form base authentication with database (weblogic 8.1)