wood burning stoves
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Question about Authentication Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "Question about Authentication" Watch "Question about Authentication" New topic

Question about Authentication

Jack Lee
Ranch Hand

Joined: Jun 06, 2006
Posts: 38
I have been succeeded to apply the form-based authentication, but failed to apply the basic one.

Everytime I tried to access the constrainted resources, a blank page showed instead of an expected form for me to fill out. (I am using tomcat 5.5)

When I read the HFSJ book, I was uncertain about those authentication methods except the FORM-based one.

When the requested resource is constrainted, the web container sends back a response to request username and password. In such a case (except the Form-based), which is responsible to create the form for client to input the username and password? Does the web browser will automatically creat one? or Tomcat create the form and send it back to the client with the 401 response code?

SCJP 5.0<br />SCWCD 1.4
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42965
Basic authentication does not work with forms. It shows a little dialog specifying the realm for which authentication is required, and two input fields for username and password.
Celinio Fernandes
Ranch Hand

Joined: Jun 28, 2003
Posts: 549

You get a pop up asking for login / password for all authentication methods except the FORM one where you define your login/error pages.

SCJP 1.4, SCWCD 1.4, SCBCD 1.3, SCBCD 5
Visit my blog
I agree. Here's the link: http://aspose.com/file-tools
subject: Question about Authentication
It's not a secret anymore!