You are viewing a plain text version of this content. The canonical link for it is here.
Posted to pluto-scm@portals.apache.org by dd...@apache.org on 2004/07/30 20:44:23 UTC

cvs commit: jakarta-pluto/portal/src/webapp/WEB-INF web.xml

ddewolf     2004/07/30 11:44:21

  Modified:    portal/src/webapp/WEB-INF web.xml
  Log:
  Fixing Issue: PLUTO-46.  isUserInRole now checks security-role-ref as declared in portlet.xml.  Also including new test portlet page for testing security info like this.
  
  Revision  Changes    Path
  1.4       +21 -0     jakarta-pluto/portal/src/webapp/WEB-INF/web.xml
  
  Index: web.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-pluto/portal/src/webapp/WEB-INF/web.xml,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- web.xml	3 Mar 2004 11:39:21 -0000	1.3
  +++ web.xml	30 Jul 2004 18:44:21 -0000	1.4
  @@ -51,5 +51,26 @@
           <url-pattern>/tck/*</url-pattern>
       </servlet-mapping>
   
  +    <security-constraint>
  +        <web-resource-collection>
  +            <web-resource-name></web-resource-name>
  +            <url-pattern>/login_success.jsp</url-pattern>
  +            <http-method>GET</http-method>
  +            <http-method>POST</http-method>
  +            <http-method>PUT</http-method>
  +        </web-resource-collection>
  +        <auth-constraint>
  +            <role-name>tomcat</role-name>
  +        </auth-constraint>
  +    </security-constraint>
  +
  +    <login-config>
  +        <auth-method>BASIC</auth-method>
  +    </login-config>
  +
  +    <security-role>
  +        <role-name>tomcat</role-name>
  +    </security-role>
  +
   </web-app>