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

Query regarding constrained request

 
khushhal yadav
Ranch Hand
Posts: 242
Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a doubt. Please clear that.
If I do something like this:

<web-app..>
...
<security-constraint>
<web-resource-collection>
<web-resource-name> declarative security test1</web-resource-name>
<url-pattern>/servlet/SecureServlet</url-pattern>
<http-method>POST</http-method>
</web-resource-collection>
<auth-constraint/>
</security-constraint>

<security-constraint>
<web-resource-collection>
<web-resource-name> declarative security test2</web-resource-name>
<url-pattern>/servlet/SecureServlet</url-pattern>
<http-method>POST</http-method>
</web-resource-collection>
<auth-constraint>*</auth-constraint>
</security-constraint>

</web-app>


Who will be able to make constrained request in this case?

Please let me know that as both <auth-constraint/> and <auth-constraint>*</auth-constraint> are contradictory to each others.
 
Ulf Dittmer
Rancher
Posts: 42969
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This was answered in this thread, which I found by searching for "auth-constraint" in the SCWCD forum.
 
khushhal yadav
Ranch Hand
Posts: 242
Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you Sheriff.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic