portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tay...@apache.org
Subject cvs commit: jakarta-jetspeed-2/applications/demo/src/webapp/WEB-INF web.xml
Date Thu, 02 Dec 2004 03:13:14 GMT
taylor      2004/12/01 19:13:14

  Modified:    applications/demo/src/webapp/WEB-INF web.xml
  Log:
  test servlet for basic authentication
  
  Revision  Changes    Path
  1.11      +32 -0     jakarta-jetspeed-2/applications/demo/src/webapp/WEB-INF/web.xml
  
  Index: web.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed-2/applications/demo/src/webapp/WEB-INF/web.xml,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- web.xml	26 Nov 2004 18:49:56 -0000	1.10
  +++ web.xml	2 Dec 2004 03:13:14 -0000	1.11
  @@ -49,10 +49,22 @@
       <servlet-class>org.apache.jetspeed.demo.servlet.SSODemoServlet</servlet-class>
     </servlet>       
   
  +  <servlet>
  +    <servlet-name>SSOBasicDemo</servlet-name>
  +    <display-name>SSOBasicDemo Servlet</display-name>
  +    <description>Servlet for Testing HTTP Basic Authentication SSO</description>
  +    <servlet-class>org.apache.jetspeed.demo.servlet.SSOBasicDemoServlet</servlet-class>
  +  </servlet>       
  +
   	<servlet-mapping>
   		<servlet-name>SSODemo</servlet-name>
   		<url-pattern>/sso-demo</url-pattern>
   	</servlet-mapping>	
  +
  +	<servlet-mapping>
  +		<servlet-name>SSOBasicDemo</servlet-name>
  +		<url-pattern>/sso-basic</url-pattern>
  +	</servlet-mapping>	
   	
       <!-- Map *.vm files to Velocity  -->
   	<servlet-mapping>
  @@ -85,6 +97,26 @@
       <taglib-location>/WEB-INF/c.tld</taglib-location>
     </taglib>
     
  +  <security-constraint>
  +    <web-resource-collection>
  +      <web-resource-name>HTTPBasicDemo</web-resource-name>
  +      <url-pattern>/sso-basic/*</url-pattern>
  +    </web-resource-collection>
  +    <auth-constraint>
  +       <role-name>tomcat</role-name>
  +    </auth-constraint>
  +  </security-constraint>
  +
  +  <login-config>
  +    <auth-method>BASIC</auth-method>
  +    <realm-name>Jetspeed</realm-name>
  +  </login-config>
  +
  +  <security-role>
  +    <description>The role that is required to log in to the Agent</description>
   
  +    <role-name>agent</role-name>
  +  </security-role>
  +
   
     <security-role>
       <description>The admin role</description>
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org


Mime
View raw message