[jboss-svn-commits] JBL Code SVN: r36527 - in labs/jbossesb/branches/JBESB_4_9_CP/product/samples/quickstarts/security_saml: picketlink and 8 other directories.

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Fri Jan 14 14:43:45 EST 2011


Author: kevin.conner at jboss.com
Date: 2011-01-14 14:43:44 -0500 (Fri, 14 Jan 2011)
New Revision: 36527

Added:
   labs/jbossesb/branches/JBESB_4_9_CP/product/samples/quickstarts/security_saml/picketlink/
   labs/jbossesb/branches/JBESB_4_9_CP/product/samples/quickstarts/security_saml/picketlink/resources/
   labs/jbossesb/branches/JBESB_4_9_CP/product/samples/quickstarts/security_saml/picketlink/resources/WEB-INF/
   labs/jbossesb/branches/JBESB_4_9_CP/product/samples/quickstarts/security_saml/picketlink/resources/WEB-INF/web.xml
   labs/jbossesb/branches/JBESB_4_9_CP/product/samples/quickstarts/security_saml/picketlink/src/
   labs/jbossesb/branches/JBESB_4_9_CP/product/samples/quickstarts/security_saml/picketlink/src/org/
   labs/jbossesb/branches/JBESB_4_9_CP/product/samples/quickstarts/security_saml/picketlink/src/org/jboss/
   labs/jbossesb/branches/JBESB_4_9_CP/product/samples/quickstarts/security_saml/picketlink/src/org/jboss/soa/
   labs/jbossesb/branches/JBESB_4_9_CP/product/samples/quickstarts/security_saml/picketlink/src/org/jboss/soa/esb/
   labs/jbossesb/branches/JBESB_4_9_CP/product/samples/quickstarts/security_saml/picketlink/src/org/jboss/soa/esb/picketlink/
   labs/jbossesb/branches/JBESB_4_9_CP/product/samples/quickstarts/security_saml/picketlink/src/org/jboss/soa/esb/picketlink/PicketLinkSTS.java
Modified:
   labs/jbossesb/branches/JBESB_4_9_CP/product/samples/quickstarts/security_saml/build.xml
Log:
Override PicketLinkSTS endpoint: JBESB-3560

Modified: labs/jbossesb/branches/JBESB_4_9_CP/product/samples/quickstarts/security_saml/build.xml
===================================================================
--- labs/jbossesb/branches/JBESB_4_9_CP/product/samples/quickstarts/security_saml/build.xml	2011-01-14 18:48:09 UTC (rev 36526)
+++ labs/jbossesb/branches/JBESB_4_9_CP/product/samples/quickstarts/security_saml/build.xml	2011-01-14 19:43:44 UTC (rev 36527)
@@ -7,11 +7,12 @@
 
 	<!-- additional deploys -->
     <property name="additional.deploys" value="jboss-wsse-client.xml, smooks/*.xml, sts-client.properties, jboss-service.xml, login-config.xml"/>
+    <property name="quickstart.deployment.excludes" value="picketlink-sts.war"/>
 
 	<target name="quickstart-specific-checks" depends="assert-ws-available, assert-as5"/>
 
 	<target name="quickstart-specific-predeploys">
-		<copy file="${basedir}/picketlink-sts.war" todir="${org.jboss.esb.server.deploy.dir}"/>
+		<copy file="${build.dir}/picketlink-sts.war" todir="${org.jboss.esb.server.deploy.dir}"/>
     </target>
 
 	 <target name="quickstart-specific-undeploys">
@@ -21,9 +22,14 @@
 	<!-- Import the base Ant build script... -->
 	<import file="../conf/base-build.xml"/>
 
+    <property name="picketlink.classes" location="${build.dir}/picketlink-classes"/>
+    <property name="picketlink.src" location="picketlink/src"/>
+    <property name="picketlink.resources" location="picketlink/resources"/>
+
     <target name="quickstart-specific-dependencies">
         <path id="quickstart-dependencies-classpath">
             <fileset dir="${org.jboss.esb.server.home}/client" includes="jbossws-client.jar,jboss-remoting.jar" />
+            <fileset dir="${org.jboss.esb.server.server}/lib" includes="picketlink-fed-core-*.jar" />
         </path>
     </target>
 	
@@ -39,6 +45,18 @@
             </fileset>
         </war>
 
+        <delete dir="${picketlink.classes}" quiet="true"/>
+        <mkdir dir="${picketlink.classes}"/>
+
+        <javac srcdir="${picketlink.src}" destdir="${picketlink.classes}" debug="true">
+            <classpath refid="compile-classpath"/>
+        </javac>
+
+        <war destfile="${build.dir}/picketlink-sts.war" webxml="${picketlink.resources}/WEB-INF/web.xml">
+            <zipfileset src="picketlink-sts.war" excludes="WEB-INF/web.xml"/>
+            <zipfileset dir="${picketlink.classes}" prefix="WEB-INF/classes" />
+        </war>
+
         <copy file="${basedir}/login-config-unfiltered.xml" tofile="${basedir}/login-config.xml" filtering="true" overwrite="true">
 			<filterset>
 				<filter token="STS_CONFIG_FILE_PATH" value="${basedir}/sts-client.properties"/>

Added: labs/jbossesb/branches/JBESB_4_9_CP/product/samples/quickstarts/security_saml/picketlink/resources/WEB-INF/web.xml
===================================================================
--- labs/jbossesb/branches/JBESB_4_9_CP/product/samples/quickstarts/security_saml/picketlink/resources/WEB-INF/web.xml	                        (rev 0)
+++ labs/jbossesb/branches/JBESB_4_9_CP/product/samples/quickstarts/security_saml/picketlink/resources/WEB-INF/web.xml	2011-01-14 19:43:44 UTC (rev 36527)
@@ -0,0 +1,35 @@
+<?xml version="1.0"?>
+<!DOCTYPE web-app PUBLIC
+   "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
+   "http://java.sun.com/dtd/web-app_2_3.dtd">
+
+<web-app>
+   <servlet>
+     <servlet-name>PicketLinkSTS</servlet-name>
+     <servlet-class>org.jboss.soa.esb.picketlink.PicketLinkSTS</servlet-class>
+   </servlet>
+   <servlet-mapping>
+      <servlet-name>PicketLinkSTS</servlet-name>
+      <url-pattern>/*</url-pattern>
+   </servlet-mapping>
+
+  <security-constraint>
+     <web-resource-collection>
+       <web-resource-name>UsernameService</web-resource-name>
+       <url-pattern>/*</url-pattern>
+     </web-resource-collection>
+     <auth-constraint>
+       <role-name>JBossAdmin</role-name>
+     </auth-constraint>
+   </security-constraint>
+
+   <login-config>
+      <auth-method>BASIC</auth-method>
+      <realm-name>PicketLinkSTSRealm</realm-name>
+   </login-config>
+
+   <security-role>
+      <role-name>JBossAdmin</role-name>
+   </security-role>
+
+</web-app>


Property changes on: labs/jbossesb/branches/JBESB_4_9_CP/product/samples/quickstarts/security_saml/picketlink/resources/WEB-INF/web.xml
___________________________________________________________________
Name: svn:mime-type
   + text/xml
Name: svn:keywords
   + Rev Date
Name: svn:eol-style
   + native

Added: labs/jbossesb/branches/JBESB_4_9_CP/product/samples/quickstarts/security_saml/picketlink/src/org/jboss/soa/esb/picketlink/PicketLinkSTS.java
===================================================================
--- labs/jbossesb/branches/JBESB_4_9_CP/product/samples/quickstarts/security_saml/picketlink/src/org/jboss/soa/esb/picketlink/PicketLinkSTS.java	                        (rev 0)
+++ labs/jbossesb/branches/JBESB_4_9_CP/product/samples/quickstarts/security_saml/picketlink/src/org/jboss/soa/esb/picketlink/PicketLinkSTS.java	2011-01-14 19:43:44 UTC (rev 36527)
@@ -0,0 +1,34 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2011, Red Hat Middleware LLC, and others contributors as indicated
+ * by the @authors tag. All rights reserved.
+ * See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ * This copyrighted material is made available to anyone wishing to use,
+ * modify, copy, or redistribute it subject to the terms and conditions
+ * of the GNU Lesser General Public License, v. 2.1.
+ * This program is distributed in the hope that it will be useful, but WITHOUT A
+ * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+ * PARTICULAR PURPOSE.  See the GNU Lesser General Public License for more details.
+ * You should have received a copy of the GNU Lesser General Public License,
+ * v.2.1 along with this distribution; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA  02110-1301, USA.
+ */
+package org.jboss.soa.esb.picketlink;
+
+import javax.xml.transform.Source;
+import javax.xml.ws.Provider;
+import javax.xml.ws.Service;
+import javax.xml.ws.ServiceMode;
+import javax.xml.ws.WebServiceProvider;
+
+ at WebServiceProvider(serviceName="PicketLinkSTS",
+  portName="PicketLinkSTSPort",
+  targetNamespace="urn:picketlink:identity-federation:sts",
+  wsdlLocation="WEB-INF/wsdl/PicketLinkSTS.wsdl")
+ at ServiceMode(value=Service.Mode.PAYLOAD)
+public class PicketLinkSTS extends
+    org.picketlink.identity.federation.core.wstrust.PicketLinkSTS implements Provider<Source>
+{
+}


Property changes on: labs/jbossesb/branches/JBESB_4_9_CP/product/samples/quickstarts/security_saml/picketlink/src/org/jboss/soa/esb/picketlink/PicketLinkSTS.java
___________________________________________________________________
Name: svn:keywords
   + Rev Date
Name: svn:eol-style
   + native



More information about the jboss-svn-commits mailing list