This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "Question about Authentication" Watch "Question about Authentication" New topic
Author

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
Marshal

Joined: Mar 22, 2005
Posts: 41129
    
  45
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.


Ping & DNS - my free Android networking tools app
Celinio Fernandes
Ranch Hand

Joined: Jun 28, 2003
Posts: 547

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
 
Similar Threads
Pass username and password via browser in Formbased Authentication
Form based authentication
FORM based authentication
How to send response from a server to a Swing client
Studying HeadFirst book: cannot make authentification