Skip to Content
Aug 01, 2007 at 08:47 PM

FORM based authentication not working, still giving me a pop-up box...


Hi All,

I have a Java application deployed on Web AS 7.0 Java and I need to use a logon module stack for authentication. Right now I have a logon module stack defined in Visual Admin Security Provider associated with the deployed app's component. It uses the BasicPasswordLoginModule, and in the web.xml file I have the auth-method set as BASIC. So when you try to hit the URL of the App, a dialogue box pops up asking for username and password, after you enter the data and hit on, it gives you access to the App.

However, I now need to change it so that rather than a pop-up box it uses an html form to get the username and password. From what I can tell, all I need to do is change the auth-method in web.xml to FORM rather than BASIC and provide the filenames for a login and error html page.

I made the changes I though were needed, but it still pops up the dialogue box rather than taking me to the login.html page when I try to access the appliucation.

Since FORM based authentication uses the BasicPasswordLoginModule I shouldn't have to change anything in Vis. Adm. right? Are there any other steps for using a form rather than the default pop-up box with the BasicPasswordLoginModule? Where should the html files be located, can they be within the secured directory of the application?

Here's a copy of the web.xml. If anybody has any ideas please let me know.

<?xml version="1.0" encoding="UTF-8"?>


<display-name>Online HR Contact Center</display-name>

<!-- Action Servlet Configuration -->






















<!-- Action Servlet Mapping -->





<!-- Struts Tag Library Descriptors -->







<web-resource-name>General access restriction</web-resource-name>