Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Reg security-constraint

 
Purna Chandra Rao
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys,
Can anyone help me regarding the mandatory and non mandatory elements under <security-constraint> element and the corresponding consequences.I am confused.

can we have login-config element of this sort?

<login-config>
<auth-method>CLIENT_CERT</auth-method>
<form-login-config>
<form-login-page>/login.jsp</form-login-page>
<form-error-page>/error.jsp</form-error-page>
</form-login-config>
</login-config>

or
<login-config>
<auth-method>FORM</auth-method>
</login-config>

Thanks in advance
Purna Chandra Rao
 
Joe Harry
Ranch Hand
Posts: 10128
3
Eclipse IDE Mac PPC Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Purna,

Both are wrong as <form-login-config> is for FORM based authentication.
 
Purna Chandra Rao
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Jyoti,
It is given in a mock exam that the first one was correct and the second one was wrong.Is the answer in the mock exam wrong or our perception is wrong?
 
Joe Harry
Ranch Hand
Posts: 10128
3
Eclipse IDE Mac PPC Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Purna,

Only for the Form based authentication, you have the <form-login-config> and not for Client-Cert and not for Digest. So the answer given in the mock exam is probably wrong!
 
Mark Henryson
Ranch Hand
Posts: 200
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
<form-login-config> is mandatory for FORM.
However if <form-login-config> is present in CLIENT-CERT, DIGEST, BASIC, it won't give you error. Even if <form-login-config> is given forCLIENT-CERT, DIGEST, BASIC..it will be discarded..

So First one is correct...second one is wrong
 
Purna Chandra Rao
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks mark.This solves the issue
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic