You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-dev@portals.apache.org by ta...@apache.org on 2004/12/02 04:13:14 UTC

cvs commit: jakarta-jetspeed-2/applications/demo/src/webapp/WEB-INF web.xml

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