Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

A question anoying me

 
Lei Xiaowen
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In form-based authentication, what must be included in the HTML returned from the URL specified by the <login-page> element?
A. a base-64 encoded user name and password
B. a form that POSTs to the j_security_check URL
C. an applet that requests the user name and password from the user
D. a hidden field that supplies the login-constraint used by the application

and why?
 
Leandro Melo
Ranch Hand
Posts: 401
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Answer: a form that POSTs to the j_security_check

The URL specified as the login page must return a form with fields j_username and j_password. Adittionally, this form should POST to action="j_security_check".
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic