[jboss-cvs] Picketlink SVN: r278 - in federation/trunk/picketlink-webapps: assembly and 18 other directories.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Fri Jun 4 12:20:54 EDT 2010


Author: anil.saldhana at jboss.com
Date: 2010-06-04 12:20:51 -0400 (Fri, 04 Jun 2010)
New Revision: 278

Added:
   federation/trunk/picketlink-webapps/employee-post/
   federation/trunk/picketlink-webapps/employee-post/pom.xml
   federation/trunk/picketlink-webapps/employee-post/src/
   federation/trunk/picketlink-webapps/employee-post/src/main/
   federation/trunk/picketlink-webapps/employee-post/src/main/resources/
   federation/trunk/picketlink-webapps/employee-post/src/main/webapp/
   federation/trunk/picketlink-webapps/employee-post/src/main/webapp/META-INF/
   federation/trunk/picketlink-webapps/employee-post/src/main/webapp/META-INF/context.xml
   federation/trunk/picketlink-webapps/employee-post/src/main/webapp/WEB-INF/
   federation/trunk/picketlink-webapps/employee-post/src/main/webapp/WEB-INF/context.xml
   federation/trunk/picketlink-webapps/employee-post/src/main/webapp/WEB-INF/jboss-web.xml
   federation/trunk/picketlink-webapps/employee-post/src/main/webapp/WEB-INF/picketlink-handlers.xml
   federation/trunk/picketlink-webapps/employee-post/src/main/webapp/WEB-INF/picketlink-idfed.xml
   federation/trunk/picketlink-webapps/employee-post/src/main/webapp/WEB-INF/web.xml
   federation/trunk/picketlink-webapps/employee-post/src/main/webapp/careermap.jpg
   federation/trunk/picketlink-webapps/employee-post/src/main/webapp/error.jsp
   federation/trunk/picketlink-webapps/employee-post/src/main/webapp/index.jsp
   federation/trunk/picketlink-webapps/employee-post/src/main/webapp/login.jsp
   federation/trunk/picketlink-webapps/employee-post/src/main/webapp/logout.jsp
   federation/trunk/picketlink-webapps/sales-post/
   federation/trunk/picketlink-webapps/sales-post/pom.xml
   federation/trunk/picketlink-webapps/sales-post/src/
   federation/trunk/picketlink-webapps/sales-post/src/main/
   federation/trunk/picketlink-webapps/sales-post/src/main/webapp/
   federation/trunk/picketlink-webapps/sales-post/src/main/webapp/META-INF/
   federation/trunk/picketlink-webapps/sales-post/src/main/webapp/META-INF/MANIFEST.MF
   federation/trunk/picketlink-webapps/sales-post/src/main/webapp/META-INF/context.xml
   federation/trunk/picketlink-webapps/sales-post/src/main/webapp/META-INF/maven/
   federation/trunk/picketlink-webapps/sales-post/src/main/webapp/META-INF/maven/org.picketlink/
   federation/trunk/picketlink-webapps/sales-post/src/main/webapp/META-INF/maven/org.picketlink/sales/
   federation/trunk/picketlink-webapps/sales-post/src/main/webapp/META-INF/maven/org.picketlink/sales/pom.properties
   federation/trunk/picketlink-webapps/sales-post/src/main/webapp/META-INF/maven/org.picketlink/sales/pom.xml
   federation/trunk/picketlink-webapps/sales-post/src/main/webapp/WEB-INF/
   federation/trunk/picketlink-webapps/sales-post/src/main/webapp/WEB-INF/context.xml
   federation/trunk/picketlink-webapps/sales-post/src/main/webapp/WEB-INF/jboss-web.xml
   federation/trunk/picketlink-webapps/sales-post/src/main/webapp/WEB-INF/picketlink-handlers.xml
   federation/trunk/picketlink-webapps/sales-post/src/main/webapp/WEB-INF/picketlink-idfed.xml
   federation/trunk/picketlink-webapps/sales-post/src/main/webapp/WEB-INF/web.xml
   federation/trunk/picketlink-webapps/sales-post/src/main/webapp/error.jsp
   federation/trunk/picketlink-webapps/sales-post/src/main/webapp/index.jsp
   federation/trunk/picketlink-webapps/sales-post/src/main/webapp/login.jsp
   federation/trunk/picketlink-webapps/sales-post/src/main/webapp/logout.jsp
   federation/trunk/picketlink-webapps/sales-post/src/main/webapp/piechart.gif
Modified:
   federation/trunk/picketlink-webapps/assembly/bin.xml
   federation/trunk/picketlink-webapps/picketlink-sts/src/main/webapp/WEB-INF/jboss-web.xml
   federation/trunk/picketlink-webapps/pom.xml
   federation/trunk/picketlink-webapps/sales/src/main/webapp/META-INF/context.xml
   federation/trunk/picketlink-webapps/sales/src/main/webapp/WEB-INF/context.xml
Log:
update webapps

Modified: federation/trunk/picketlink-webapps/assembly/bin.xml
===================================================================
--- federation/trunk/picketlink-webapps/assembly/bin.xml	2010-06-04 16:12:53 UTC (rev 277)
+++ federation/trunk/picketlink-webapps/assembly/bin.xml	2010-06-04 16:20:51 UTC (rev 278)
@@ -25,6 +25,16 @@
       <fileMode>0444</fileMode>
     </file>
     <file>
+      <source>${basedir}/../sales-post/target/sales-post.war</source>
+      <outputDirectory>picketlink</outputDirectory>
+      <fileMode>0444</fileMode>
+    </file>
+    <file>
+      <source>${basedir}/../employee-post/target/employee-post.war</source>
+      <outputDirectory>picketlink</outputDirectory>
+      <fileMode>0444</fileMode>
+    </file>
+    <file>
       <source>${basedir}/../sales-post-sig/target/sales-post-sig.war</source>
       <outputDirectory>picketlink</outputDirectory>
       <fileMode>0444</fileMode>

Added: federation/trunk/picketlink-webapps/employee-post/pom.xml
===================================================================
--- federation/trunk/picketlink-webapps/employee-post/pom.xml	                        (rev 0)
+++ federation/trunk/picketlink-webapps/employee-post/pom.xml	2010-06-04 16:20:51 UTC (rev 278)
@@ -0,0 +1,38 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+  <parent>
+    <groupId>org.picketlink</groupId>
+    <artifactId>picketlink-federation-webapps</artifactId>
+    <version>1.0.3.CR4-SNAPSHOT</version>
+    <relativePath>../</relativePath>
+  </parent>
+
+   <modelVersion>4.0.0</modelVersion>
+   <artifactId>employee-post</artifactId>
+   <packaging>war</packaging>
+   <name>PicketLink Federation Employee With Post</name>
+   <url>http://labs.jboss.org/portal/picketlink/</url>
+   <description>PicketLink Samples contains the samples for Federated Identity Needs.</description>
+   <licenses>
+      <license>
+         <name>lgpl</name>
+         <url>http://repository.jboss.com/licenses/lgpl.txt</url>
+      </license>
+   </licenses>
+   <organization>
+      <name>JBoss Inc.</name>
+      <url>http://www.jboss.org</url>
+   </organization>
+   <build>
+     <plugins>
+        <plugin>
+          <groupId>org.apache.maven.plugins</groupId>
+          <artifactId>maven-war-plugin</artifactId>
+          <version>2.0.2</version>
+          <configuration>
+            <warName>employee-post</warName>
+            <warSourceExcludes>WEB-INF/lib/*.jar</warSourceExcludes>
+          </configuration>
+        </plugin>
+     </plugins>
+  </build>
+</project>

Added: federation/trunk/picketlink-webapps/employee-post/src/main/webapp/META-INF/context.xml
===================================================================
--- federation/trunk/picketlink-webapps/employee-post/src/main/webapp/META-INF/context.xml	                        (rev 0)
+++ federation/trunk/picketlink-webapps/employee-post/src/main/webapp/META-INF/context.xml	2010-06-04 16:20:51 UTC (rev 278)
@@ -0,0 +1,4 @@
+<Context>
+  <Valve className="org.picketlink.identity.federation.bindings.tomcat.sp.SPPostFormAuthenticator"
+  />
+</Context>

Added: federation/trunk/picketlink-webapps/employee-post/src/main/webapp/WEB-INF/context.xml
===================================================================
--- federation/trunk/picketlink-webapps/employee-post/src/main/webapp/WEB-INF/context.xml	                        (rev 0)
+++ federation/trunk/picketlink-webapps/employee-post/src/main/webapp/WEB-INF/context.xml	2010-06-04 16:20:51 UTC (rev 278)
@@ -0,0 +1,4 @@
+<Context>
+  <Valve className="org.picketlink.identity.federation.bindings.tomcat.sp.SPPostFormAuthenticator"
+  />
+</Context>

Added: federation/trunk/picketlink-webapps/employee-post/src/main/webapp/WEB-INF/jboss-web.xml
===================================================================
--- federation/trunk/picketlink-webapps/employee-post/src/main/webapp/WEB-INF/jboss-web.xml	                        (rev 0)
+++ federation/trunk/picketlink-webapps/employee-post/src/main/webapp/WEB-INF/jboss-web.xml	2010-06-04 16:20:51 UTC (rev 278)
@@ -0,0 +1,4 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<jboss-web>
+   <security-domain>sp</security-domain>
+</jboss-web>

Added: federation/trunk/picketlink-webapps/employee-post/src/main/webapp/WEB-INF/picketlink-handlers.xml
===================================================================
--- federation/trunk/picketlink-webapps/employee-post/src/main/webapp/WEB-INF/picketlink-handlers.xml	                        (rev 0)
+++ federation/trunk/picketlink-webapps/employee-post/src/main/webapp/WEB-INF/picketlink-handlers.xml	2010-06-04 16:20:51 UTC (rev 278)
@@ -0,0 +1,4 @@
+<Handlers xmlns="urn:picketlink:identity-federation:handler:config:1.0"> 
+  <Handler class="org.picketlink.identity.federation.web.handlers.saml2.SAML2LogOutHandler"/> 
+  <Handler class="org.picketlink.identity.federation.web.handlers.saml2.SAML2AuthenticationHandler"/>   
+</Handlers>
\ No newline at end of file

Added: federation/trunk/picketlink-webapps/employee-post/src/main/webapp/WEB-INF/picketlink-idfed.xml
===================================================================
--- federation/trunk/picketlink-webapps/employee-post/src/main/webapp/WEB-INF/picketlink-idfed.xml	                        (rev 0)
+++ federation/trunk/picketlink-webapps/employee-post/src/main/webapp/WEB-INF/picketlink-idfed.xml	2010-06-04 16:20:51 UTC (rev 278)
@@ -0,0 +1,4 @@
+<PicketLinkSP xmlns="urn:picketlink:identity-federation:config:1.0" ServerEnvironment="tomcat">
+ <IdentityURL>http://localhost:8080/idp/</IdentityURL>
+ <ServiceURL>http://localhost:8080/employee-post/</ServiceURL>
+</PicketLinkSP>

Added: federation/trunk/picketlink-webapps/employee-post/src/main/webapp/WEB-INF/web.xml
===================================================================
--- federation/trunk/picketlink-webapps/employee-post/src/main/webapp/WEB-INF/web.xml	                        (rev 0)
+++ federation/trunk/picketlink-webapps/employee-post/src/main/webapp/WEB-INF/web.xml	2010-06-04 16:20:51 UTC (rev 278)
@@ -0,0 +1,48 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<web-app xmlns="http://java.sun.com/xml/ns/javaee"
+   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+   xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
+   version="2.5"> 
+
+  <display-name>PicketLink Employee Application</display-name>
+  <description>
+    Just a Test SP
+  </description>
+
+  <!-- Define a Security Constraint on this Application -->
+  <security-constraint>
+    <web-resource-collection>
+      <web-resource-name>EMPLOYEE Application</web-resource-name>
+      <url-pattern>/*</url-pattern>
+    </web-resource-collection>
+    <auth-constraint>
+       <role-name>manager</role-name>
+    </auth-constraint>
+  </security-constraint>
+
+  <!-- Define a security constraint that gives unlimted access to freezone -->
+  <security-constraint>
+    <web-resource-collection>
+     <web-resource-name>freezone</web-resource-name>
+     <url-pattern>/freezone/*</url-pattern>
+    </web-resource-collection>
+  </security-constraint>
+
+  <!-- Define the Login Configuration for this Application -->
+  <login-config>
+    <auth-method>FORM</auth-method>
+    <realm-name>Tomcat EMPLOYEE Application</realm-name>
+    <form-login-config>
+       <form-login-page>/jsp/login.jsp</form-login-page>
+       <form-error-page>/jsp/loginerror.jsp</form-error-page>
+    </form-login-config>
+  </login-config>
+
+  <!-- Security roles referenced by this web application -->
+  <security-role>
+    <description>
+      The role that is required to log in to the EMPLOYEE Application
+    </description>
+    <role-name>manager</role-name>
+  </security-role>
+</web-app>

Added: federation/trunk/picketlink-webapps/employee-post/src/main/webapp/careermap.jpg
===================================================================
(Binary files differ)


Property changes on: federation/trunk/picketlink-webapps/employee-post/src/main/webapp/careermap.jpg
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: federation/trunk/picketlink-webapps/employee-post/src/main/webapp/error.jsp
===================================================================
--- federation/trunk/picketlink-webapps/employee-post/src/main/webapp/error.jsp	                        (rev 0)
+++ federation/trunk/picketlink-webapps/employee-post/src/main/webapp/error.jsp	2010-06-04 16:20:51 UTC (rev 278)
@@ -0,0 +1,12 @@
+<html> <head> <title>Error!</title></head>
+<body>
+
+<font size='4' color='red'>
+  The username and password you supplied are not valid.
+</p>
+Click <a href='<%= response.encodeURL("login.jsp") %>'>here</a> 
+to retry login
+
+</body>
+</form>
+</html>

Added: federation/trunk/picketlink-webapps/employee-post/src/main/webapp/index.jsp
===================================================================
--- federation/trunk/picketlink-webapps/employee-post/src/main/webapp/index.jsp	                        (rev 0)
+++ federation/trunk/picketlink-webapps/employee-post/src/main/webapp/index.jsp	2010-06-04 16:20:51 UTC (rev 278)
@@ -0,0 +1,13 @@
+<div align="center">
+<h1>EmployeeDashboard</h1>
+<br/>
+Welcome to the Employee Tool, <%=request.getUserPrincipal().getName()%>
+
+<br/>
+Here is your cartoon of the day:
+<br/>
+<img src="careermap.jpg"/>
+<br/>
+<a href="?GLO=true">Click to LogOut</a>
+
+</div>

Added: federation/trunk/picketlink-webapps/employee-post/src/main/webapp/login.jsp
===================================================================
--- federation/trunk/picketlink-webapps/employee-post/src/main/webapp/login.jsp	                        (rev 0)
+++ federation/trunk/picketlink-webapps/employee-post/src/main/webapp/login.jsp	2010-06-04 16:20:51 UTC (rev 278)
@@ -0,0 +1,16 @@
+<html><head><title>Login Page</title></head>
+<body>
+<font size='5' color='blue'>Please Login</font><hr>
+
+<form action='j_security_check' method='post'>
+<table>
+ <tr><td>Name:</td>
+   <td><input type='text' name='j_username'></td></tr>
+ <tr><td>Password:</td> 
+   <td><input type='password' name='j_password' size='8'></td>
+ </tr>
+</table>
+<br>
+  <input type='submit' value='login'> 
+</form></body>
+ </html>

Added: federation/trunk/picketlink-webapps/employee-post/src/main/webapp/logout.jsp
===================================================================
--- federation/trunk/picketlink-webapps/employee-post/src/main/webapp/logout.jsp	                        (rev 0)
+++ federation/trunk/picketlink-webapps/employee-post/src/main/webapp/logout.jsp	2010-06-04 16:20:51 UTC (rev 278)
@@ -0,0 +1,4 @@
+<%
+   session.invalidate();
+%>
+You are logged out.

Modified: federation/trunk/picketlink-webapps/picketlink-sts/src/main/webapp/WEB-INF/jboss-web.xml
===================================================================
--- federation/trunk/picketlink-webapps/picketlink-sts/src/main/webapp/WEB-INF/jboss-web.xml	2010-06-04 16:12:53 UTC (rev 277)
+++ federation/trunk/picketlink-webapps/picketlink-sts/src/main/webapp/WEB-INF/jboss-web.xml	2010-06-04 16:20:51 UTC (rev 278)
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="UTF-8"?>
 
 <jboss-web>
-  <security-domain>java:/jaas/jmx-console</security-domain>
+  <security-domain>jmx-console</security-domain>
 </jboss-web>

Modified: federation/trunk/picketlink-webapps/pom.xml
===================================================================
--- federation/trunk/picketlink-webapps/pom.xml	2010-06-04 16:12:53 UTC (rev 277)
+++ federation/trunk/picketlink-webapps/pom.xml	2010-06-04 16:20:51 UTC (rev 278)
@@ -27,6 +27,8 @@
 		<module>employee</module>
 		<module>sales-sig</module>
 		<module>employee-sig</module>
+		<module>sales-post</module>
+		<module>employee-post</module>
 		<module>sales-post-sig</module>
 		<module>employee-post-sig</module>
 		<module>sales-standalone</module>

Modified: federation/trunk/picketlink-webapps/sales/src/main/webapp/META-INF/context.xml
===================================================================
--- federation/trunk/picketlink-webapps/sales/src/main/webapp/META-INF/context.xml	2010-06-04 16:12:53 UTC (rev 277)
+++ federation/trunk/picketlink-webapps/sales/src/main/webapp/META-INF/context.xml	2010-06-04 16:20:51 UTC (rev 278)
@@ -1,4 +1,3 @@
 <Context>
-  <Valve className="org.picketlink.identity.federation.bindings.tomcat.sp.SPRedirectFormAuthenticator"
-  />
+  <Valve className="org.picketlink.identity.federation.bindings.tomcat.sp.SPRedirectFormAuthenticator" />
 </Context>

Modified: federation/trunk/picketlink-webapps/sales/src/main/webapp/WEB-INF/context.xml
===================================================================
--- federation/trunk/picketlink-webapps/sales/src/main/webapp/WEB-INF/context.xml	2010-06-04 16:12:53 UTC (rev 277)
+++ federation/trunk/picketlink-webapps/sales/src/main/webapp/WEB-INF/context.xml	2010-06-04 16:20:51 UTC (rev 278)
@@ -1,6 +1,5 @@
 <Context>
     <!--  log all incoming and outgoing messages. -->
-	<Valve className="org.apache.catalina.valves.RequestDumperValve" />
-	<Valve
-		className="org.picketlink.identity.federation.bindings.tomcat.sp.SPRedirectFormAuthenticator" />
-</Context>
\ No newline at end of file
+    <Valve className="org.apache.catalina.valves.RequestDumperValve" />
+    <Valve className="org.picketlink.identity.federation.bindings.tomcat.sp.SPRedirectFormAuthenticator" />
+</Context>

Added: federation/trunk/picketlink-webapps/sales-post/pom.xml
===================================================================
--- federation/trunk/picketlink-webapps/sales-post/pom.xml	                        (rev 0)
+++ federation/trunk/picketlink-webapps/sales-post/pom.xml	2010-06-04 16:20:51 UTC (rev 278)
@@ -0,0 +1,38 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+  <parent>
+    <groupId>org.picketlink</groupId>
+    <artifactId>picketlink-federation-webapps</artifactId>
+    <version>1.0.3.CR4-SNAPSHOT</version>
+    <relativePath>../</relativePath>
+  </parent>
+
+   <modelVersion>4.0.0</modelVersion>
+   <artifactId>sales-post</artifactId>
+   <packaging>war</packaging>
+   <name>PicketLink Federation Sales With Post</name>
+   <url>http://labs.jboss.org/portal/picketlink/</url>
+   <description>PicketLink Samples contains the samples for Federated Identity Needs.</description>
+   <licenses>
+      <license>
+         <name>lgpl</name>
+         <url>http://repository.jboss.com/licenses/lgpl.txt</url>
+      </license>
+   </licenses>
+   <organization>
+      <name>JBoss Inc.</name>
+      <url>http://www.jboss.org</url>
+   </organization>
+   <build>
+     <plugins>
+        <plugin>
+          <groupId>org.apache.maven.plugins</groupId>
+          <artifactId>maven-war-plugin</artifactId>
+          <version>2.0.2</version>
+          <configuration>
+            <warName>sales-post</warName>
+            <warSourceExcludes>WEB-INF/lib/*.jar</warSourceExcludes>
+          </configuration>
+        </plugin>
+     </plugins>
+  </build>
+</project>

Added: federation/trunk/picketlink-webapps/sales-post/src/main/webapp/META-INF/MANIFEST.MF
===================================================================
--- federation/trunk/picketlink-webapps/sales-post/src/main/webapp/META-INF/MANIFEST.MF	                        (rev 0)
+++ federation/trunk/picketlink-webapps/sales-post/src/main/webapp/META-INF/MANIFEST.MF	2010-06-04 16:20:51 UTC (rev 278)
@@ -0,0 +1,6 @@
+Manifest-Version: 1.0
+Archiver-Version: Plexus Archiver
+Created-By: Apache Maven
+Built-By: anil
+Build-Jdk: 1.6.0_16
+

Added: federation/trunk/picketlink-webapps/sales-post/src/main/webapp/META-INF/context.xml
===================================================================
--- federation/trunk/picketlink-webapps/sales-post/src/main/webapp/META-INF/context.xml	                        (rev 0)
+++ federation/trunk/picketlink-webapps/sales-post/src/main/webapp/META-INF/context.xml	2010-06-04 16:20:51 UTC (rev 278)
@@ -0,0 +1,4 @@
+<Context>
+  <Valve className="org.picketlink.identity.federation.bindings.tomcat.sp.SPPostFormAuthenticator"
+  />
+</Context>

Added: federation/trunk/picketlink-webapps/sales-post/src/main/webapp/META-INF/maven/org.picketlink/sales/pom.properties
===================================================================
--- federation/trunk/picketlink-webapps/sales-post/src/main/webapp/META-INF/maven/org.picketlink/sales/pom.properties	                        (rev 0)
+++ federation/trunk/picketlink-webapps/sales-post/src/main/webapp/META-INF/maven/org.picketlink/sales/pom.properties	2010-06-04 16:20:51 UTC (rev 278)
@@ -0,0 +1,5 @@
+#Generated by Maven
+#Wed Mar 17 14:09:48 CDT 2010
+version=1.0.3.CR2
+groupId=org.picketlink
+artifactId=sales

Added: federation/trunk/picketlink-webapps/sales-post/src/main/webapp/META-INF/maven/org.picketlink/sales/pom.xml
===================================================================
--- federation/trunk/picketlink-webapps/sales-post/src/main/webapp/META-INF/maven/org.picketlink/sales/pom.xml	                        (rev 0)
+++ federation/trunk/picketlink-webapps/sales-post/src/main/webapp/META-INF/maven/org.picketlink/sales/pom.xml	2010-06-04 16:20:51 UTC (rev 278)
@@ -0,0 +1,38 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+  <parent>
+    <groupId>org.picketlink</groupId>
+    <artifactId>picketlink-federation-webapps</artifactId>
+    <version>1.0.3.CR2</version>
+    <relativePath>../</relativePath>
+  </parent>
+
+   <modelVersion>4.0.0</modelVersion>
+   <artifactId>sales</artifactId>
+   <packaging>war</packaging>
+   <name>PicketLink Federation Sales</name>
+   <url>http://labs.jboss.org/portal/picketlink/</url>
+   <description>PicketLink Samples contains the samples for Federated Identity Needs.</description>
+   <licenses>
+      <license>
+         <name>lgpl</name>
+         <url>http://repository.jboss.com/licenses/lgpl.txt</url>
+      </license>
+   </licenses>
+   <organization>
+      <name>JBoss Inc.</name>
+      <url>http://www.jboss.org</url>
+   </organization>
+   <build>
+     <plugins>
+        <plugin>
+          <groupId>org.apache.maven.plugins</groupId>
+          <artifactId>maven-war-plugin</artifactId>
+          <version>2.0.2</version>
+          <configuration>
+            <warName>sales</warName>
+            <warSourceExcludes>WEB-INF/lib/*.jar</warSourceExcludes>
+          </configuration>
+        </plugin>
+     </plugins>
+  </build>
+</project>

Added: federation/trunk/picketlink-webapps/sales-post/src/main/webapp/WEB-INF/context.xml
===================================================================
--- federation/trunk/picketlink-webapps/sales-post/src/main/webapp/WEB-INF/context.xml	                        (rev 0)
+++ federation/trunk/picketlink-webapps/sales-post/src/main/webapp/WEB-INF/context.xml	2010-06-04 16:20:51 UTC (rev 278)
@@ -0,0 +1,4 @@
+<Context>
+  <Valve className="org.picketlink.identity.federation.bindings.tomcat.sp.SPPostFormAuthenticator"
+  />
+</Context>

Added: federation/trunk/picketlink-webapps/sales-post/src/main/webapp/WEB-INF/jboss-web.xml
===================================================================
--- federation/trunk/picketlink-webapps/sales-post/src/main/webapp/WEB-INF/jboss-web.xml	                        (rev 0)
+++ federation/trunk/picketlink-webapps/sales-post/src/main/webapp/WEB-INF/jboss-web.xml	2010-06-04 16:20:51 UTC (rev 278)
@@ -0,0 +1,4 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<jboss-web>
+   <security-domain>sp</security-domain>
+</jboss-web>

Added: federation/trunk/picketlink-webapps/sales-post/src/main/webapp/WEB-INF/picketlink-handlers.xml
===================================================================
--- federation/trunk/picketlink-webapps/sales-post/src/main/webapp/WEB-INF/picketlink-handlers.xml	                        (rev 0)
+++ federation/trunk/picketlink-webapps/sales-post/src/main/webapp/WEB-INF/picketlink-handlers.xml	2010-06-04 16:20:51 UTC (rev 278)
@@ -0,0 +1,4 @@
+<Handlers xmlns="urn:picketlink:identity-federation:handler:config:1.0"> 
+  <Handler class="org.picketlink.identity.federation.web.handlers.saml2.SAML2LogOutHandler"/> 
+  <Handler class="org.picketlink.identity.federation.web.handlers.saml2.SAML2AuthenticationHandler"/>   
+</Handlers>
\ No newline at end of file

Added: federation/trunk/picketlink-webapps/sales-post/src/main/webapp/WEB-INF/picketlink-idfed.xml
===================================================================
--- federation/trunk/picketlink-webapps/sales-post/src/main/webapp/WEB-INF/picketlink-idfed.xml	                        (rev 0)
+++ federation/trunk/picketlink-webapps/sales-post/src/main/webapp/WEB-INF/picketlink-idfed.xml	2010-06-04 16:20:51 UTC (rev 278)
@@ -0,0 +1,4 @@
+<PicketLinkSP xmlns="urn:picketlink:identity-federation:config:1.0" ServerEnvironment="tomcat">
+ <IdentityURL>http://localhost:8080/idp/</IdentityURL>
+ <ServiceURL>http://localhost:8080/sales-post/</ServiceURL>
+</PicketLinkSP>

Added: federation/trunk/picketlink-webapps/sales-post/src/main/webapp/WEB-INF/web.xml
===================================================================
--- federation/trunk/picketlink-webapps/sales-post/src/main/webapp/WEB-INF/web.xml	                        (rev 0)
+++ federation/trunk/picketlink-webapps/sales-post/src/main/webapp/WEB-INF/web.xml	2010-06-04 16:20:51 UTC (rev 278)
@@ -0,0 +1,48 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<web-app xmlns="http://java.sun.com/xml/ns/javaee"
+   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+   xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
+   version="2.5"> 
+
+  <display-name>Fedbridge Test SALES Application</display-name>
+  <description>
+    Just a Test SP for Fedbridge Project
+  </description>
+
+  <!-- Define a Security Constraint on this Application -->
+  <security-constraint>
+    <web-resource-collection>
+      <web-resource-name>SALES Application</web-resource-name>
+      <url-pattern>/*</url-pattern>
+    </web-resource-collection>
+    <auth-constraint>
+       <role-name>manager</role-name>
+    </auth-constraint>
+  </security-constraint>
+
+  <!-- Define a security constraint that gives unlimted access to freezone -->
+  <security-constraint>
+    <web-resource-collection>
+     <web-resource-name>freezone</web-resource-name>
+     <url-pattern>/freezone/*</url-pattern>
+    </web-resource-collection>
+  </security-constraint>
+
+  <!-- Define the Login Configuration for this Application -->
+  <login-config>
+    <auth-method>FORM</auth-method>
+    <realm-name>Tomcat SALES Application</realm-name>
+    <form-login-config>
+       <form-login-page>/jsp/login.jsp</form-login-page>
+       <form-error-page>/jsp/loginerror.jsp</form-error-page>
+    </form-login-config>
+  </login-config>
+
+  <!-- Security roles referenced by this web application -->
+  <security-role>
+    <description>
+      The role that is required to log in to the Manager Application
+    </description>
+    <role-name>manager</role-name>
+  </security-role>
+</web-app>

Added: federation/trunk/picketlink-webapps/sales-post/src/main/webapp/error.jsp
===================================================================
--- federation/trunk/picketlink-webapps/sales-post/src/main/webapp/error.jsp	                        (rev 0)
+++ federation/trunk/picketlink-webapps/sales-post/src/main/webapp/error.jsp	2010-06-04 16:20:51 UTC (rev 278)
@@ -0,0 +1,12 @@
+<html> <head> <title>Error!</title></head>
+<body>
+
+<font size='4' color='red'>
+  The username and password you supplied are not valid.
+</p>
+Click <a href='<%= response.encodeURL("login.jsp") %>'>here</a> 
+to retry login
+
+</body>
+</form>
+</html>

Added: federation/trunk/picketlink-webapps/sales-post/src/main/webapp/index.jsp
===================================================================
--- federation/trunk/picketlink-webapps/sales-post/src/main/webapp/index.jsp	                        (rev 0)
+++ federation/trunk/picketlink-webapps/sales-post/src/main/webapp/index.jsp	2010-06-04 16:20:51 UTC (rev 278)
@@ -0,0 +1,14 @@
+<div align="center">
+<h1>SalesTool</h1>
+<br/>
+Welcome to the Sales Tool, <%=request.getUserPrincipal().getName()%>
+
+<br/>
+Here is your sales chart:
+<br/>
+<img src="piechart.gif"/>
+
+<br/>
+<a href="?GLO=true">Click to LogOut</a>
+
+</div>

Added: federation/trunk/picketlink-webapps/sales-post/src/main/webapp/login.jsp
===================================================================
--- federation/trunk/picketlink-webapps/sales-post/src/main/webapp/login.jsp	                        (rev 0)
+++ federation/trunk/picketlink-webapps/sales-post/src/main/webapp/login.jsp	2010-06-04 16:20:51 UTC (rev 278)
@@ -0,0 +1,16 @@
+<html><head><title>Login Page</title></head>
+<body>
+<font size='5' color='blue'>Please Login</font><hr>
+
+<form action='j_security_check' method='post'>
+<table>
+ <tr><td>Name:</td>
+   <td><input type='text' name='j_username'></td></tr>
+ <tr><td>Password:</td> 
+   <td><input type='password' name='j_password' size='8'></td>
+ </tr>
+</table>
+<br>
+  <input type='submit' value='login'> 
+</form></body>
+ </html>

Added: federation/trunk/picketlink-webapps/sales-post/src/main/webapp/logout.jsp
===================================================================
--- federation/trunk/picketlink-webapps/sales-post/src/main/webapp/logout.jsp	                        (rev 0)
+++ federation/trunk/picketlink-webapps/sales-post/src/main/webapp/logout.jsp	2010-06-04 16:20:51 UTC (rev 278)
@@ -0,0 +1,4 @@
+<%
+   session.invalidate();
+%>
+You are logged out.

Added: federation/trunk/picketlink-webapps/sales-post/src/main/webapp/piechart.gif
===================================================================
(Binary files differ)


Property changes on: federation/trunk/picketlink-webapps/sales-post/src/main/webapp/piechart.gif
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream



More information about the jboss-cvs-commits mailing list