[picketlink-commits] Picketlink SVN: r1250 - in social/trunk/webapps: picketlink-reg and 4 other directories.

picketlink-commits at lists.jboss.org picketlink-commits at lists.jboss.org
Sat Sep 24 00:24:50 EDT 2011


Author: anil.saldhana at jboss.com
Date: 2011-09-24 00:24:50 -0400 (Sat, 24 Sep 2011)
New Revision: 1250

Added:
   social/trunk/webapps/picketlink-reg/
   social/trunk/webapps/picketlink-reg/pom.xml
   social/trunk/webapps/picketlink-reg/src/
   social/trunk/webapps/picketlink-reg/src/main/
   social/trunk/webapps/picketlink-reg/src/main/webapp/
   social/trunk/webapps/picketlink-reg/src/main/webapp/WEB-INF/
   social/trunk/webapps/picketlink-reg/src/main/webapp/WEB-INF/context.xml
   social/trunk/webapps/picketlink-reg/src/main/webapp/WEB-INF/jboss-web.xml
   social/trunk/webapps/picketlink-reg/src/main/webapp/WEB-INF/web.xml
   social/trunk/webapps/picketlink-reg/src/main/webapp/index.jsp
Modified:
   social/trunk/webapps/pom.xml
Log:
add a social registration page

Added: social/trunk/webapps/picketlink-reg/pom.xml
===================================================================
--- social/trunk/webapps/picketlink-reg/pom.xml	                        (rev 0)
+++ social/trunk/webapps/picketlink-reg/pom.xml	2011-09-24 04:24:50 UTC (rev 1250)
@@ -0,0 +1,39 @@
+<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-social-webapps</artifactId>
+    <version>2.0.0-SNAPSHOT</version>
+    <relativePath>../</relativePath>
+  </parent>
+
+   <modelVersion>4.0.0</modelVersion>
+   <artifactId>picketlink-reg</artifactId>
+   <packaging>war</packaging>
+   <name>PicketLink Social Registration</name>
+   <url>http://labs.jboss.org/portal/picketlink/</url>
+   <description>PicketLink Social Registration</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>picketlink-reg</warName>
+            <webappDirectory>${basedir}/resources/</webappDirectory>
+            <warSourceExcludes>WEB-INF/lib/*.jar</warSourceExcludes>
+          </configuration>
+        </plugin>
+     </plugins>
+  </build>
+</project>


Property changes on: social/trunk/webapps/picketlink-reg/pom.xml
___________________________________________________________________
Added: svn:executable
   + *

Added: social/trunk/webapps/picketlink-reg/src/main/webapp/WEB-INF/context.xml
===================================================================
--- social/trunk/webapps/picketlink-reg/src/main/webapp/WEB-INF/context.xml	                        (rev 0)
+++ social/trunk/webapps/picketlink-reg/src/main/webapp/WEB-INF/context.xml	2011-09-24 04:24:50 UTC (rev 1250)
@@ -0,0 +1,9 @@
+<Context>
+    <Valve className="org.picketlink.social.auth.ExternalAuthenticator" 
+           returnURL="http://localhost:8080/picketlink-reg/"
+           scope="email"
+           clientID="YOUR_CLIENT_ID"
+           clientSecret="YOUR_CLIENT_SECRET"
+           roleString="user"/>
+    <Valve className="org.picketlink.social.reg.RegistrationValve"/>
+</Context>

Added: social/trunk/webapps/picketlink-reg/src/main/webapp/WEB-INF/jboss-web.xml
===================================================================
--- social/trunk/webapps/picketlink-reg/src/main/webapp/WEB-INF/jboss-web.xml	                        (rev 0)
+++ social/trunk/webapps/picketlink-reg/src/main/webapp/WEB-INF/jboss-web.xml	2011-09-24 04:24:50 UTC (rev 1250)
@@ -0,0 +1,3 @@
+<jboss-web>
+    <security-domain>external_auth</security-domain>
+</jboss-web>


Property changes on: social/trunk/webapps/picketlink-reg/src/main/webapp/WEB-INF/jboss-web.xml
___________________________________________________________________
Added: svn:executable
   + *

Added: social/trunk/webapps/picketlink-reg/src/main/webapp/WEB-INF/web.xml
===================================================================
--- social/trunk/webapps/picketlink-reg/src/main/webapp/WEB-INF/web.xml	                        (rev 0)
+++ social/trunk/webapps/picketlink-reg/src/main/webapp/WEB-INF/web.xml	2011-09-24 04:24:50 UTC (rev 1250)
@@ -0,0 +1,45 @@
+<?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 Social Registration Application</display-name>
+  <description>
+    Registration Web Application for the PicketLink Social Project
+  </description>
+
+  <!-- Define a security constraint that gives unlimted access to images -->
+  <security-constraint>
+    <web-resource-collection>
+      <web-resource-name>Images</web-resource-name>
+      <url-pattern>/images/*</url-pattern>
+    </web-resource-collection>
+  </security-constraint>
+
+  <!-- Define a Security Constraint on this Application -->
+  <security-constraint>
+    <web-resource-collection>
+      <web-resource-name>Manager command</web-resource-name>
+      <url-pattern>/*</url-pattern>
+    </web-resource-collection>
+    <auth-constraint>
+       <role-name>user</role-name>
+    </auth-constraint>
+  </security-constraint>
+
+  <!-- Define the Login Configuration for this Application -->
+  <login-config>
+    <auth-method>FORM</auth-method>
+    <realm-name>PicketLink IDP Application</realm-name>
+    <form-login-config>
+       <form-login-page>/jsp/login.jsp</form-login-page>
+       <form-error-page>/jsp/login-error.jsp</form-error-page>
+    </form-login-config>
+  </login-config>
+
+  <!-- Security roles referenced by this web application -->
+  <security-role>
+    <role-name>user</role-name>
+  </security-role>
+</web-app>


Property changes on: social/trunk/webapps/picketlink-reg/src/main/webapp/WEB-INF/web.xml
___________________________________________________________________
Added: svn:executable
   + *

Added: social/trunk/webapps/picketlink-reg/src/main/webapp/index.jsp
===================================================================
--- social/trunk/webapps/picketlink-reg/src/main/webapp/index.jsp	                        (rev 0)
+++ social/trunk/webapps/picketlink-reg/src/main/webapp/index.jsp	2011-09-24 04:24:50 UTC (rev 1250)
@@ -0,0 +1,27 @@
+<%@ page import="org.picketlink.social.reg.UserRegistration" %>
+
+<%
+  String fullName = request.getUserPrincipal().getName();
+  String email = null;
+  UserRegistration user = (UserRegistration)session.getAttribute("user");
+  if(user != null)
+  {
+    fullName = user.getFirstName() + " " + user.getLastName();
+    email = user.getEmail();
+  }
+%>
+   
+<html>
+<body>
+
+<div align="center">
+<h1>PicketLink Social Registration</h1>
+<br/>
+Welcome <%=fullName%>
+
+<br/>
+Your email address is:<%=email%>
+
+<br/>
+
+</div>


Property changes on: social/trunk/webapps/picketlink-reg/src/main/webapp/index.jsp
___________________________________________________________________
Added: svn:executable
   + *

Modified: social/trunk/webapps/pom.xml
===================================================================
--- social/trunk/webapps/pom.xml	2011-09-22 19:02:02 UTC (rev 1249)
+++ social/trunk/webapps/pom.xml	2011-09-24 04:24:50 UTC (rev 1250)
@@ -25,5 +25,6 @@
    <modules>
       <module>openid-provider</module>
       <module>openid-consumer</module>
+      <module>picketlink-reg</module>
    </modules>
 </project>



More information about the picketlink-commits mailing list