0

I have a Dynamic Web Project with JAAS, it has a LoginModule.

Now, I have a ROLE and I give to it a privileges like this:

 <security-constraint>
<display-name>PRIVILEGES</display-name>
<web-resource-collection>
  <web-resource-name>PRIVATE</web-resource-name>
  <url-pattern>/usuario/*</url-pattern>
  <url-pattern>/Data</url-pattern> <-- This is a Servlet. (JAAS Protect it)
  <url-pattern>/getEstudent</url-pattern> <-- RequestMapping from Spring.(JAAS does not protect it)
  <http-method>POST</http-method>
  <http-method>GET</http-method>
</web-resource-collection>
<auth-constraint>
  <role-name>USER1</role-name>
</auth-constraint>

I have integrated this with Spring. And I want to protect this url "getEstudiante". But the JAAS does not protect it.

How to do to protect a "requestmapping" from a Controller?, Thanks.

Joan Sanchez
  • 331
  • 3
  • 8

0 Answers0