You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by ca...@apache.org on 2007/01/30 17:59:10 UTC

svn commit: r501471 - in /myfaces/tomahawk/trunk/sandbox/examples/src/main/webapp: META-INF/ WEB-INF/web.xml home.jsp securityContext.jsp

Author: cagatay
Date: Tue Jan 30 08:59:09 2007
New Revision: 501471

URL: http://svn.apache.org/viewvc?view=rev&rev=501471
Log:
Reverted securityContext example since it makes webapp depend on tomcat

Removed:
    myfaces/tomahawk/trunk/sandbox/examples/src/main/webapp/META-INF/
    myfaces/tomahawk/trunk/sandbox/examples/src/main/webapp/securityContext.jsp
Modified:
    myfaces/tomahawk/trunk/sandbox/examples/src/main/webapp/WEB-INF/web.xml
    myfaces/tomahawk/trunk/sandbox/examples/src/main/webapp/home.jsp

Modified: myfaces/tomahawk/trunk/sandbox/examples/src/main/webapp/WEB-INF/web.xml
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/sandbox/examples/src/main/webapp/WEB-INF/web.xml?view=diff&rev=501471&r1=501470&r2=501471
==============================================================================
--- myfaces/tomahawk/trunk/sandbox/examples/src/main/webapp/WEB-INF/web.xml (original)
+++ myfaces/tomahawk/trunk/sandbox/examples/src/main/webapp/WEB-INF/web.xml Tue Jan 30 08:59:09 2007
@@ -195,33 +195,4 @@
   	<welcome-file>default.htm</welcome-file>
   	<welcome-file>default.jsp</welcome-file>
   </welcome-file-list>
-  
-  <security-constraint>
-		<web-resource-collection>
-			<web-resource-name>SecurityContext</web-resource-name>
-			<url-pattern>/securityContext.jsf</url-pattern>
-		</web-resource-collection>
-		<auth-constraint>
-			<role-name>admin</role-name>
-			<role-name>writer</role-name>
-			<role-name>reader</role-name>
-		</auth-constraint>
-	</security-constraint>
-  
-  <security-role>
-	<role-name>admin</role-name>
-  </security-role>
-  
-    <security-role>
-	<role-name>writer</role-name>
-  </security-role>
-  
-    <security-role>
-	<role-name>reader</role-name>
-  </security-role>
-  
-  <login-config>
-	<auth-method>BASIC</auth-method>
-  </login-config>
-  
 </web-app>

Modified: myfaces/tomahawk/trunk/sandbox/examples/src/main/webapp/home.jsp
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/sandbox/examples/src/main/webapp/home.jsp?view=diff&rev=501471&r1=501470&r2=501471
==============================================================================
--- myfaces/tomahawk/trunk/sandbox/examples/src/main/webapp/home.jsp (original)
+++ myfaces/tomahawk/trunk/sandbox/examples/src/main/webapp/home.jsp Tue Jan 30 08:59:09 2007
@@ -143,15 +143,6 @@
                 <h:outputLink value="submitOnEventGlobal.jsf" ><f:verbatim>submit on a global event</f:verbatim></h:outputLink>
                 <h:outputLink value="submitOnEventLink.jsf" ><f:verbatim>submit on a global event as child of a commandLink</f:verbatim></h:outputLink>
             </h:panelGrid>
-            
-            <h:outputText value="SecurityContext"/>
-             <h:panelGrid style="padding-left:25px">
-           		<h:outputLink value="securityContext.jsf" ><f:verbatim>Security Extensions for Page Authorization</f:verbatim></h:outputLink>
-           		<h:outputText value="Try following user accounts during authentication"></h:outputText>
-           		<h:outputText value="user: 'admin' , password: 'myfacesrocks' , role: 'admin'"></h:outputText>
-           		<h:outputText value="user: 'editor' , password: 'editor' , role: 'writer'"></h:outputText>
-           		<h:outputText value="user: 'guest' , password: 'guest' , role: 'reader'"></h:outputText>           		
-            </h:panelGrid>
 
         </h:panelGrid>
     </h:form>