[jboss-svn-commits] JBL Code SVN: r11176 - in labs/jbosslabs/branches/identity_integration/trunk/portal-extensions: configuration/to-copy/server/default/deploy and 13 other directories.

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Fri Apr 20 18:28:42 EDT 2007


Author: sohil.shah at jboss.com
Date: 2007-04-20 18:28:42 -0400 (Fri, 20 Apr 2007)
New Revision: 11176

Added:
   labs/jbosslabs/branches/identity_integration/trunk/portal-extensions/configuration/to-copy/server/default/deploy/jboss-federation-server-exploded.ear/
   labs/jbosslabs/branches/identity_integration/trunk/portal-extensions/configuration/to-copy/server/default/deploy/jboss-federation-server-exploded.ear/META-INF/
   labs/jbosslabs/branches/identity_integration/trunk/portal-extensions/configuration/to-copy/server/default/deploy/jboss-federation-server-exploded.ear/META-INF/MANIFEST.MF
   labs/jbosslabs/branches/identity_integration/trunk/portal-extensions/configuration/to-copy/server/default/deploy/jboss-federation-server-exploded.ear/META-INF/application.xml
   labs/jbosslabs/branches/identity_integration/trunk/portal-extensions/configuration/to-copy/server/default/deploy/jboss-federation-server-exploded.ear/jboss-federation-server.jar
   labs/jbosslabs/branches/identity_integration/trunk/portal-extensions/configuration/to-copy/server/default/deploy/jboss-federation-server-exploded.ear/jboss-federation-server.sar/
   labs/jbosslabs/branches/identity_integration/trunk/portal-extensions/configuration/to-copy/server/default/deploy/jboss-federation-server-exploded.ear/jboss-federation-server.sar/META-INF/
   labs/jbosslabs/branches/identity_integration/trunk/portal-extensions/configuration/to-copy/server/default/deploy/jboss-federation-server-exploded.ear/jboss-federation-server.sar/META-INF/MANIFEST.MF
   labs/jbosslabs/branches/identity_integration/trunk/portal-extensions/configuration/to-copy/server/default/deploy/jboss-federation-server-exploded.ear/jboss-federation-server.sar/META-INF/jboss-service.xml
   labs/jbosslabs/branches/identity_integration/trunk/portal-extensions/configuration/to-copy/server/default/deploy/jboss-federation-server-exploded.ear/jboss-federation-server.sar/conf/
   labs/jbosslabs/branches/identity_integration/trunk/portal-extensions/configuration/to-copy/server/default/deploy/jboss-federation-server-exploded.ear/jboss-federation-server.sar/conf/server.cfg.xml
   labs/jbosslabs/branches/identity_integration/trunk/portal-extensions/configuration/to-copy/server/default/deploy/jboss-federation-server-exploded.ear/jboss-federation-server.war
   labs/jbosslabs/branches/identity_integration/trunk/portal-extensions/configuration/to-copy/server/default/deploy/jboss-federation-server-exploded.ear/jboss-saml.jar
   labs/jbosslabs/branches/identity_integration/trunk/portal-extensions/configuration/to-copy/server/default/deploy/jboss-federation-server-exploded.ear/jboss-security-common.jar
   labs/jbosslabs/branches/identity_integration/trunk/portal-extensions/configuration/to-copy/server/default/deploy/jboss-portal.sar/portal-server.war/WEB-INF/context.xml
   labs/jbosslabs/branches/identity_integration/trunk/portal-extensions/configuration/to-copy/server/default/deploy/jboss-sso.sar/
   labs/jbosslabs/branches/identity_integration/trunk/portal-extensions/configuration/to-copy/server/default/deploy/jboss-sso.sar/META-INF/
   labs/jbosslabs/branches/identity_integration/trunk/portal-extensions/configuration/to-copy/server/default/deploy/jboss-sso.sar/META-INF/MANIFEST.MF
   labs/jbosslabs/branches/identity_integration/trunk/portal-extensions/configuration/to-copy/server/default/deploy/jboss-sso.sar/META-INF/jboss-service.xml
   labs/jbosslabs/branches/identity_integration/trunk/portal-extensions/configuration/to-copy/server/default/deploy/jboss-sso.sar/commons-codec-1.3.jar
   labs/jbosslabs/branches/identity_integration/trunk/portal-extensions/configuration/to-copy/server/default/deploy/jboss-sso.sar/commons-httpclient-3.0.1.jar
   labs/jbosslabs/branches/identity_integration/trunk/portal-extensions/configuration/to-copy/server/default/deploy/jboss-sso.sar/commons-logging-1.03.jar
   labs/jbosslabs/branches/identity_integration/trunk/portal-extensions/configuration/to-copy/server/default/deploy/jboss-sso.sar/conf/
   labs/jbosslabs/branches/identity_integration/trunk/portal-extensions/configuration/to-copy/server/default/deploy/jboss-sso.sar/conf/sso.cfg.xml
   labs/jbosslabs/branches/identity_integration/trunk/portal-extensions/configuration/to-copy/server/default/deploy/jboss-sso.sar/jboss-identity-management.jar
   labs/jbosslabs/branches/identity_integration/trunk/portal-extensions/configuration/to-copy/server/default/deploy/jboss-sso.sar/jboss-saml.jar
   labs/jbosslabs/branches/identity_integration/trunk/portal-extensions/configuration/to-copy/server/default/deploy/jboss-sso.sar/jboss-security-common.jar
   labs/jbosslabs/branches/identity_integration/trunk/portal-extensions/configuration/to-copy/server/default/deploy/jboss-sso.sar/jboss-sso-tomcat5.jar
   labs/jbosslabs/branches/identity_integration/trunk/portal-extensions/configuration/to-copy/server/default/deploy/jboss-sso.sar/jbwebsite-security-1.0.jar
   labs/jbosslabs/branches/identity_integration/trunk/portal-extensions/configuration/to-copy/server/default/deploy/jboss-sso.sar/jdbcLdapJldap.jar
   labs/jbosslabs/branches/identity_integration/trunk/portal-extensions/configuration/to-copy/server/default/deploy/jboss-sso.sar/opensaml-1.1.jar
   labs/jbosslabs/branches/identity_integration/trunk/portal-extensions/configuration/to-copy/server/default/deploy/jboss-sso.sar/xmlsec-20050514.jar
   labs/jbosslabs/branches/identity_integration/trunk/portal-extensions/configuration/to-copy/server/default/deploy/jbossweb-tomcat55.sar/tomcat-util.jar
Modified:
   labs/jbosslabs/branches/identity_integration/trunk/portal-extensions/binaries/maven-repo-addons/jboss-sso/jars/jboss-acl.jar
   labs/jbosslabs/branches/identity_integration/trunk/portal-extensions/binaries/maven-repo-addons/jboss-sso/jars/jboss-identity-management.jar
   labs/jbosslabs/branches/identity_integration/trunk/portal-extensions/binaries/maven-repo-addons/jboss-sso/jars/jboss-security-common.jar
   labs/jbosslabs/branches/identity_integration/trunk/portal-extensions/configuration/to-copy/server/default/deploy/jboss-portal.sar/conf/login-config.xml
   labs/jbosslabs/branches/identity_integration/trunk/portal-extensions/jbwebsite-security/src/java/org/jboss/website/security/JBossCorpIdentityProvider.java
   labs/jbosslabs/branches/identity_integration/trunk/portal-extensions/jbwebsite-user-admin/src/java/org/jboss/website/user/ejb/UserManagerImpl.java
Log:
integrated jboss sso-cr1

Modified: labs/jbosslabs/branches/identity_integration/trunk/portal-extensions/binaries/maven-repo-addons/jboss-sso/jars/jboss-acl.jar
===================================================================
(Binary files differ)

Modified: labs/jbosslabs/branches/identity_integration/trunk/portal-extensions/binaries/maven-repo-addons/jboss-sso/jars/jboss-identity-management.jar
===================================================================
(Binary files differ)

Modified: labs/jbosslabs/branches/identity_integration/trunk/portal-extensions/binaries/maven-repo-addons/jboss-sso/jars/jboss-security-common.jar
===================================================================
(Binary files differ)

Added: labs/jbosslabs/branches/identity_integration/trunk/portal-extensions/configuration/to-copy/server/default/deploy/jboss-federation-server-exploded.ear/META-INF/MANIFEST.MF
===================================================================
--- labs/jbosslabs/branches/identity_integration/trunk/portal-extensions/configuration/to-copy/server/default/deploy/jboss-federation-server-exploded.ear/META-INF/MANIFEST.MF	                        (rev 0)
+++ labs/jbosslabs/branches/identity_integration/trunk/portal-extensions/configuration/to-copy/server/default/deploy/jboss-federation-server-exploded.ear/META-INF/MANIFEST.MF	2007-04-20 22:28:42 UTC (rev 11176)
@@ -0,0 +1,3 @@
+Manifest-Version: 1.0
+Created-By: Apache Ant 1.5.1
+

Added: labs/jbosslabs/branches/identity_integration/trunk/portal-extensions/configuration/to-copy/server/default/deploy/jboss-federation-server-exploded.ear/META-INF/application.xml
===================================================================
--- labs/jbosslabs/branches/identity_integration/trunk/portal-extensions/configuration/to-copy/server/default/deploy/jboss-federation-server-exploded.ear/META-INF/application.xml	                        (rev 0)
+++ labs/jbosslabs/branches/identity_integration/trunk/portal-extensions/configuration/to-copy/server/default/deploy/jboss-federation-server-exploded.ear/META-INF/application.xml	2007-04-20 22:28:42 UTC (rev 11176)
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<jboss-app>
+	<module>
+		<service>jboss-federation-server.sar</service>
+	</module>
+	<module>
+		<web>
+			<web-uri>jboss-federation-server.war</web-uri>
+		</web>
+	</module>
+	<module>
+		<java>jboss-federation-server.jar</java>
+	</module>
+	<module>
+		<java>jboss-saml.jar</java>
+	</module>
+	<module>
+		<java>jboss-security-common.jar</java>
+	</module>		
+</jboss-app>

Added: labs/jbosslabs/branches/identity_integration/trunk/portal-extensions/configuration/to-copy/server/default/deploy/jboss-federation-server-exploded.ear/jboss-federation-server.jar
===================================================================
(Binary files differ)


Property changes on: labs/jbosslabs/branches/identity_integration/trunk/portal-extensions/configuration/to-copy/server/default/deploy/jboss-federation-server-exploded.ear/jboss-federation-server.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: labs/jbosslabs/branches/identity_integration/trunk/portal-extensions/configuration/to-copy/server/default/deploy/jboss-federation-server-exploded.ear/jboss-federation-server.sar/META-INF/MANIFEST.MF
===================================================================
--- labs/jbosslabs/branches/identity_integration/trunk/portal-extensions/configuration/to-copy/server/default/deploy/jboss-federation-server-exploded.ear/jboss-federation-server.sar/META-INF/MANIFEST.MF	                        (rev 0)
+++ labs/jbosslabs/branches/identity_integration/trunk/portal-extensions/configuration/to-copy/server/default/deploy/jboss-federation-server-exploded.ear/jboss-federation-server.sar/META-INF/MANIFEST.MF	2007-04-20 22:28:42 UTC (rev 11176)
@@ -0,0 +1,3 @@
+Manifest-Version: 1.0
+Created-By: Apache Ant 1.5.1
+

Added: labs/jbosslabs/branches/identity_integration/trunk/portal-extensions/configuration/to-copy/server/default/deploy/jboss-federation-server-exploded.ear/jboss-federation-server.sar/META-INF/jboss-service.xml
===================================================================
--- labs/jbosslabs/branches/identity_integration/trunk/portal-extensions/configuration/to-copy/server/default/deploy/jboss-federation-server-exploded.ear/jboss-federation-server.sar/META-INF/jboss-service.xml	                        (rev 0)
+++ labs/jbosslabs/branches/identity_integration/trunk/portal-extensions/configuration/to-copy/server/default/deploy/jboss-federation-server-exploded.ear/jboss-federation-server.sar/META-INF/jboss-service.xml	2007-04-20 22:28:42 UTC (rev 11176)
@@ -0,0 +1,38 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<server>
+	<!-- configure the Federation Server -->
+	<mbean name="jboss.sso:service=FederationServer"
+	code="org.jboss.security.federation.service.Federation" 	
+	xmbean-dd=""
+	>	    
+	    <attribute name="conf">conf/server.cfg.xml</attribute>
+		<xmbean>
+			<class>org.jboss.security.federation.service.Federation</class>
+			<constructor>      				
+      				<name>org.jboss.security.federation.service.Federation</name>
+   			</constructor>
+			<attribute access="write" setMethod="setConf">
+				     <name>conf</name>
+					 <type>java.lang.String</type>					 
+		    </attribute>		    			
+		    <operation>
+		    	<description>The start lifecycle operation</description>
+		    	<name>start</name>
+		    </operation>
+		    <operation>
+		    	<description>The stop lifecycle operation</description>
+		    	<name>stop</name>
+		    </operation>
+		    <operation impact="ACTION_INFO">
+		    	<description>Get Federation Partners</description>
+		    	<name>getPartners</name>		    	
+    			<return-type>java.util.Collection</return-type>		    	
+		    </operation>		    
+		    <operation impact="ACTION_INFO">
+		    	<description>Get Federation Partners Info in XML Format</description>
+		    	<name>getPartnerInfo</name>		    	
+    			<return-type>java.lang.String</return-type>		    	
+		    </operation>		    
+		</xmbean>
+	</mbean>
+</server>

Added: labs/jbosslabs/branches/identity_integration/trunk/portal-extensions/configuration/to-copy/server/default/deploy/jboss-federation-server-exploded.ear/jboss-federation-server.sar/conf/server.cfg.xml
===================================================================
--- labs/jbosslabs/branches/identity_integration/trunk/portal-extensions/configuration/to-copy/server/default/deploy/jboss-federation-server-exploded.ear/jboss-federation-server.sar/conf/server.cfg.xml	                        (rev 0)
+++ labs/jbosslabs/branches/identity_integration/trunk/portal-extensions/configuration/to-copy/server/default/deploy/jboss-federation-server-exploded.ear/jboss-federation-server.sar/conf/server.cfg.xml	2007-04-20 22:28:42 UTC (rev 11176)
@@ -0,0 +1,17 @@
+<?xml version='1.0' encoding='ISO-8859-1'?>
+
+<jboss-sso>
+
+	<!-- 
+		partners configuration of the federation server...
+		partners are the collection of sites which are part of the Single Sign On Federation
+		it lists the web domains and their corresponding federation servers in this domain
+	-->
+	<federation-server>
+		<partners>
+			<partner domain="jboss.com" server="http://bugs.jboss.com:8080/federate"/>
+			<partner domain="jboss.org" server="http://labs.jboss.org:8080/federate"/>
+		</partners>
+	</federation-server>	
+
+</jboss-sso>

Added: labs/jbosslabs/branches/identity_integration/trunk/portal-extensions/configuration/to-copy/server/default/deploy/jboss-federation-server-exploded.ear/jboss-federation-server.war
===================================================================
(Binary files differ)


Property changes on: labs/jbosslabs/branches/identity_integration/trunk/portal-extensions/configuration/to-copy/server/default/deploy/jboss-federation-server-exploded.ear/jboss-federation-server.war
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: labs/jbosslabs/branches/identity_integration/trunk/portal-extensions/configuration/to-copy/server/default/deploy/jboss-federation-server-exploded.ear/jboss-saml.jar
===================================================================
(Binary files differ)


Property changes on: labs/jbosslabs/branches/identity_integration/trunk/portal-extensions/configuration/to-copy/server/default/deploy/jboss-federation-server-exploded.ear/jboss-saml.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: labs/jbosslabs/branches/identity_integration/trunk/portal-extensions/configuration/to-copy/server/default/deploy/jboss-federation-server-exploded.ear/jboss-security-common.jar
===================================================================
(Binary files differ)


Property changes on: labs/jbosslabs/branches/identity_integration/trunk/portal-extensions/configuration/to-copy/server/default/deploy/jboss-federation-server-exploded.ear/jboss-security-common.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Modified: labs/jbosslabs/branches/identity_integration/trunk/portal-extensions/configuration/to-copy/server/default/deploy/jboss-portal.sar/conf/login-config.xml
===================================================================
--- labs/jbosslabs/branches/identity_integration/trunk/portal-extensions/configuration/to-copy/server/default/deploy/jboss-portal.sar/conf/login-config.xml	2007-04-20 21:32:42 UTC (rev 11175)
+++ labs/jbosslabs/branches/identity_integration/trunk/portal-extensions/configuration/to-copy/server/default/deploy/jboss-portal.sar/conf/login-config.xml	2007-04-20 22:28:42 UTC (rev 11176)
@@ -9,8 +9,7 @@
       "http://www.jboss.org/j2ee/dtd/security_config.dtd">
 <policy>
    <application-policy name="portal">
-      <authentication>
-         
+      <authentication>         
          <login-module code="org.jboss.website.user.util.UsernameAndPasswordLoginModule" flag="sufficient">
             <module-option name="unauthenticatedIdentity">guest</module-option>                        
             <module-option name="password-stacking">useFirstPass</module-option>           
@@ -18,6 +17,11 @@
             <module-option name="hashEncoding">HEX</module-option>             
             <module-option name="authenticatedRoles">Authenticated,RegisteredUsers</module-option>
          </login-module>
+         <login-module code="org.jboss.website.user.util.UsernameAndPasswordLoginModule" flag="sufficient">
+            <module-option name="unauthenticatedIdentity">guest</module-option>                        
+            <module-option name="password-stacking">useFirstPass</module-option>                                    
+            <module-option name="authenticatedRoles">Authenticated,RegisteredUsers</module-option>
+         </login-module>
          
          
          <!--
@@ -41,8 +45,7 @@
 		     <module-option name="password-stacking">useFirstPass</module-option>
 		     <module-option name="jbossdb">java:JBossDS</module-option>
          </login-module>
-         -->
-                           
+         -->                           
       </authentication>
    </application-policy>   
 </policy>

Added: labs/jbosslabs/branches/identity_integration/trunk/portal-extensions/configuration/to-copy/server/default/deploy/jboss-portal.sar/portal-server.war/WEB-INF/context.xml
===================================================================
--- labs/jbosslabs/branches/identity_integration/trunk/portal-extensions/configuration/to-copy/server/default/deploy/jboss-portal.sar/portal-server.war/WEB-INF/context.xml	                        (rev 0)
+++ labs/jbosslabs/branches/identity_integration/trunk/portal-extensions/configuration/to-copy/server/default/deploy/jboss-portal.sar/portal-server.war/WEB-INF/context.xml	2007-04-20 22:28:42 UTC (rev 11176)
@@ -0,0 +1,17 @@
+<!-- Add the ExtendedFormAuthenticator to get access to the username/password/exception -->
+<Context cookies="true" crossContext="true">      
+   <!-- 
+   		logoutURL - URL for performing logout/signout function in your application
+   -->	   
+   <Valve className="org.jboss.security.valve.SSOAutoLogout" logoutURL="/signout"/>
+	
+   <!-- 
+   		assertingParty - this is the partnerId of this application as a part of a federation of multiple partner sites
+   -->
+   <Valve className="org.jboss.security.valve.SSOTokenManager" assertingParty="www.jboss.org"/>
+   
+   <!-- 
+		tomcat built-in AuthenticationTypes: FORM,BASIC,DIGEST,CLIENT-CERT
+   -->
+   <Valve className="org.jboss.security.valve.SSOAutoLogin" authType="FORM"/>
+</Context>
\ No newline at end of file

Added: labs/jbosslabs/branches/identity_integration/trunk/portal-extensions/configuration/to-copy/server/default/deploy/jboss-sso.sar/META-INF/MANIFEST.MF
===================================================================
--- labs/jbosslabs/branches/identity_integration/trunk/portal-extensions/configuration/to-copy/server/default/deploy/jboss-sso.sar/META-INF/MANIFEST.MF	                        (rev 0)
+++ labs/jbosslabs/branches/identity_integration/trunk/portal-extensions/configuration/to-copy/server/default/deploy/jboss-sso.sar/META-INF/MANIFEST.MF	2007-04-20 22:28:42 UTC (rev 11176)
@@ -0,0 +1,3 @@
+Manifest-Version: 1.0
+Created-By: Apache Ant 1.5.1
+

Added: labs/jbosslabs/branches/identity_integration/trunk/portal-extensions/configuration/to-copy/server/default/deploy/jboss-sso.sar/META-INF/jboss-service.xml
===================================================================
--- labs/jbosslabs/branches/identity_integration/trunk/portal-extensions/configuration/to-copy/server/default/deploy/jboss-sso.sar/META-INF/jboss-service.xml	                        (rev 0)
+++ labs/jbosslabs/branches/identity_integration/trunk/portal-extensions/configuration/to-copy/server/default/deploy/jboss-sso.sar/META-INF/jboss-service.xml	2007-04-20 22:28:42 UTC (rev 11176)
@@ -0,0 +1,93 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<server>
+	<!-- 
+		configure the IdentityManager 
+	-->
+	<mbean name="jboss.sso:service=IdentityManager"
+	code="org.jboss.security.idm.IdentityManager" 	
+	xmbean-dd=""
+	>	    
+	    <attribute name="conf">conf/sso.cfg.xml</attribute>
+		<xmbean>
+			<class>org.jboss.security.idm.IdentityManager</class>
+			<constructor>      				
+      				<name>org.jboss.security.idm.IdentityManager</name>
+   			</constructor>
+			<attribute access="write" setMethod="setConf">
+				<name>conf</name>
+				<type>java.lang.String</type>					 
+		    </attribute>		    		    
+		    <operation>
+		    	<description>The start lifecycle operation</description>
+		    	<name>start</name>
+		    </operation>
+		    <operation>
+		    	<description>The stop lifecycle operation</description>
+		    	<name>stop</name>
+		    </operation>		    
+		    <operation impact="ACTION_INFO">
+		    	<description>Get a LoginProvider</description>
+		    	<name>getLoginProvider</name>		    	
+    			<return-type>org.jboss.security.idm.LoginProvider</return-type>		    	
+		    </operation>		    
+		    <operation impact="ACTION_INFO">
+		    	<description>Get an LoginProvider</description>
+		    	<name>getLoginProvider</name>
+		    	<parameter>
+			      <description>(no description)</description>
+			      <name>id</name>
+			      <type>java.lang.String</type>
+			    </parameter>
+    			<return-type>org.jboss.security.idm.LoginProvider</return-type>		    	
+		    </operation>		    		    
+		    <operation impact="ACTION_INFO">
+		    	<description>Get a ProvisioningProvider</description>
+		    	<name>getProvisioningProvider</name>		    	
+    			<return-type>org.jboss.security.idm.ProvisioningProvider</return-type>		    	
+		    </operation>		    
+		    <operation impact="ACTION_INFO">
+		    	<description>Get an ProvisioningProvider</description>
+		    	<name>getProvisioningProvider</name>
+		    	<parameter>
+			      <description>(no description)</description>
+			      <name>id</name>
+			      <type>java.lang.String</type>
+			    </parameter>
+    			<return-type>org.jboss.security.idm.ProvisioningProvider</return-type>		    	
+		    </operation>		    		    
+		</xmbean>
+	</mbean>
+	
+	<!-- 
+		configure the SSOTokenManager 
+	-->
+	<mbean name="jboss.sso:service=SSOManager"
+	code="org.jboss.security.saml.SSOManager" 	
+	xmbean-dd=""
+	>	    
+	    <attribute name="conf">conf/sso.cfg.xml</attribute>
+		<xmbean>
+			<class>org.jboss.security.saml.SSOManager</class>
+			<constructor>      				
+      				<name>org.jboss.security.saml.SSOManager</name>
+   			</constructor>
+			<attribute access="write" setMethod="setConf">
+				     <name>conf</name>
+					 <type>java.lang.String</type>					 
+		    </attribute>		    
+		    <operation>
+		    	<description>The start lifecycle operation</description>
+		    	<name>start</name>
+		    </operation>
+		    <operation>
+		    	<description>The stop lifecycle operation</description>
+		    	<name>stop</name>
+		    </operation>		    
+		    <operation impact="ACTION_INFO">
+		    	<description>Get a Token Processor</description>
+		    	<name>getProcessor</name>		    	
+    			<return-type>org.jboss.security.saml.SingleSignOn</return-type>		    	
+		    </operation>		    		    
+		</xmbean>
+	</mbean>
+</server>
\ No newline at end of file

Added: labs/jbosslabs/branches/identity_integration/trunk/portal-extensions/configuration/to-copy/server/default/deploy/jboss-sso.sar/commons-codec-1.3.jar
===================================================================
(Binary files differ)


Property changes on: labs/jbosslabs/branches/identity_integration/trunk/portal-extensions/configuration/to-copy/server/default/deploy/jboss-sso.sar/commons-codec-1.3.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: labs/jbosslabs/branches/identity_integration/trunk/portal-extensions/configuration/to-copy/server/default/deploy/jboss-sso.sar/commons-httpclient-3.0.1.jar
===================================================================
(Binary files differ)


Property changes on: labs/jbosslabs/branches/identity_integration/trunk/portal-extensions/configuration/to-copy/server/default/deploy/jboss-sso.sar/commons-httpclient-3.0.1.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: labs/jbosslabs/branches/identity_integration/trunk/portal-extensions/configuration/to-copy/server/default/deploy/jboss-sso.sar/commons-logging-1.03.jar
===================================================================
(Binary files differ)


Property changes on: labs/jbosslabs/branches/identity_integration/trunk/portal-extensions/configuration/to-copy/server/default/deploy/jboss-sso.sar/commons-logging-1.03.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: labs/jbosslabs/branches/identity_integration/trunk/portal-extensions/configuration/to-copy/server/default/deploy/jboss-sso.sar/conf/sso.cfg.xml
===================================================================
--- labs/jbosslabs/branches/identity_integration/trunk/portal-extensions/configuration/to-copy/server/default/deploy/jboss-sso.sar/conf/sso.cfg.xml	                        (rev 0)
+++ labs/jbosslabs/branches/identity_integration/trunk/portal-extensions/configuration/to-copy/server/default/deploy/jboss-sso.sar/conf/sso.cfg.xml	2007-04-20 22:28:42 UTC (rev 11176)
@@ -0,0 +1,42 @@
+<?xml version='1.0' encoding='ISO-8859-1'?>
+
+<jboss-sso>
+	<!-- 
+		identity management related configuration, this is the LDAP based module
+		Technically, this can be a provider that can integrate with thirdparty identity systems like SiteMinder etc
+	-->
+	<identity-management>		
+		<login>
+			<provider id="si:jboss-sso:ldap:login" class="org.jboss.website.security.JBossCorpIdentityProvider">
+				<property name="connectionURL">
+					jdbc:ldap://localhost:389/dc=jboss,dc=com?SEARCH_SCOPE:=subTreeScope&amp;secure:=false&amp;concat_atts:=true&amp;size_limit:=10000000
+				</property>
+				<property name="username">cn=Admin,dc=jboss,dc=com</property>
+				<property name="password">jbossrocks</property>
+				<property name="identityOu">jbosssso</property>
+				<property name="roleOu">role</property>
+			</provider>
+		</login>		
+		<provisioning>
+			<provider id="si:jboss-sso:ldap:login" class="org.jboss.website.security.JBossCorpIdentityProvider">
+				<property name="connectionURL">
+					jdbc:ldap://localhost:389/dc=jboss,dc=com?SEARCH_SCOPE:=subTreeScope&amp;secure:=false&amp;concat_atts:=true&amp;size_limit:=10000000
+				</property>
+				<property name="username">cn=Admin,dc=jboss,dc=com</property>
+				<property name="password">jbossrocks</property>
+				<property name="identityOu">jbosssso</property>
+				<property name="roleOu">role</property>
+			</provider>
+		</provisioning>
+	</identity-management>
+	
+	
+	<!-- sso processor for SingleSignOn, the default JBossSingleSignOn processor uses OpenSAML-1.0, 
+	the next version of this processor will use the latest SAML specification 
+	-->
+	<sso-processor>
+		<processor class="org.jboss.security.saml.JBossSingleSignOn">
+			<property name="trustServer">http://labs.jboss.org:8080/federate/trust</property>
+		</processor>
+	</sso-processor>
+</jboss-sso>

Added: labs/jbosslabs/branches/identity_integration/trunk/portal-extensions/configuration/to-copy/server/default/deploy/jboss-sso.sar/jboss-identity-management.jar
===================================================================
(Binary files differ)


Property changes on: labs/jbosslabs/branches/identity_integration/trunk/portal-extensions/configuration/to-copy/server/default/deploy/jboss-sso.sar/jboss-identity-management.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: labs/jbosslabs/branches/identity_integration/trunk/portal-extensions/configuration/to-copy/server/default/deploy/jboss-sso.sar/jboss-saml.jar
===================================================================
(Binary files differ)


Property changes on: labs/jbosslabs/branches/identity_integration/trunk/portal-extensions/configuration/to-copy/server/default/deploy/jboss-sso.sar/jboss-saml.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: labs/jbosslabs/branches/identity_integration/trunk/portal-extensions/configuration/to-copy/server/default/deploy/jboss-sso.sar/jboss-security-common.jar
===================================================================
(Binary files differ)


Property changes on: labs/jbosslabs/branches/identity_integration/trunk/portal-extensions/configuration/to-copy/server/default/deploy/jboss-sso.sar/jboss-security-common.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: labs/jbosslabs/branches/identity_integration/trunk/portal-extensions/configuration/to-copy/server/default/deploy/jboss-sso.sar/jboss-sso-tomcat5.jar
===================================================================
(Binary files differ)


Property changes on: labs/jbosslabs/branches/identity_integration/trunk/portal-extensions/configuration/to-copy/server/default/deploy/jboss-sso.sar/jboss-sso-tomcat5.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: labs/jbosslabs/branches/identity_integration/trunk/portal-extensions/configuration/to-copy/server/default/deploy/jboss-sso.sar/jbwebsite-security-1.0.jar
===================================================================
(Binary files differ)


Property changes on: labs/jbosslabs/branches/identity_integration/trunk/portal-extensions/configuration/to-copy/server/default/deploy/jboss-sso.sar/jbwebsite-security-1.0.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: labs/jbosslabs/branches/identity_integration/trunk/portal-extensions/configuration/to-copy/server/default/deploy/jboss-sso.sar/jdbcLdapJldap.jar
===================================================================
(Binary files differ)


Property changes on: labs/jbosslabs/branches/identity_integration/trunk/portal-extensions/configuration/to-copy/server/default/deploy/jboss-sso.sar/jdbcLdapJldap.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: labs/jbosslabs/branches/identity_integration/trunk/portal-extensions/configuration/to-copy/server/default/deploy/jboss-sso.sar/opensaml-1.1.jar
===================================================================
(Binary files differ)


Property changes on: labs/jbosslabs/branches/identity_integration/trunk/portal-extensions/configuration/to-copy/server/default/deploy/jboss-sso.sar/opensaml-1.1.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: labs/jbosslabs/branches/identity_integration/trunk/portal-extensions/configuration/to-copy/server/default/deploy/jboss-sso.sar/xmlsec-20050514.jar
===================================================================
(Binary files differ)


Property changes on: labs/jbosslabs/branches/identity_integration/trunk/portal-extensions/configuration/to-copy/server/default/deploy/jboss-sso.sar/xmlsec-20050514.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: labs/jbosslabs/branches/identity_integration/trunk/portal-extensions/configuration/to-copy/server/default/deploy/jbossweb-tomcat55.sar/tomcat-util.jar
===================================================================
(Binary files differ)


Property changes on: labs/jbosslabs/branches/identity_integration/trunk/portal-extensions/configuration/to-copy/server/default/deploy/jbossweb-tomcat55.sar/tomcat-util.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Modified: labs/jbosslabs/branches/identity_integration/trunk/portal-extensions/jbwebsite-security/src/java/org/jboss/website/security/JBossCorpIdentityProvider.java
===================================================================
--- labs/jbosslabs/branches/identity_integration/trunk/portal-extensions/jbwebsite-security/src/java/org/jboss/website/security/JBossCorpIdentityProvider.java	2007-04-20 21:32:42 UTC (rev 11175)
+++ labs/jbosslabs/branches/identity_integration/trunk/portal-extensions/jbwebsite-security/src/java/org/jboss/website/security/JBossCorpIdentityProvider.java	2007-04-20 22:28:42 UTC (rev 11176)
@@ -22,9 +22,8 @@
 import org.jboss.security.idm.Identity;
 import org.jboss.security.idm.IdentityException;
 import org.jboss.security.idm.ldap.LDAPIdentityProvider;
-import org.jboss.security.idm.util.Tools;
 
-import org.jboss.security.util.Util;
+import org.jboss.security.util.Tools;
 
 
 public class JBossCorpIdentityProvider extends LDAPIdentityProvider 
@@ -59,14 +58,17 @@
     /**
      *
      */
-	public JBossCorpIdentityProvider(String id,Properties properties)
-	{
-		super(id,properties);  
-        env.put(Context.INITIAL_CONTEXT_FACTORY,"com.sun.jndi.ldap.LdapCtxFactory");
-        String ldapURL = properties.getProperty("connectionURL");
-        ldapURL = ldapURL.substring(ldapURL.indexOf(":")+1);
-        env.put(Context.PROVIDER_URL,ldapURL);
+	public JBossCorpIdentityProvider()
+	{        
 	}
+   
+   public void setProperties(Properties properties) throws IdentityException
+   {
+      super.setProperties(properties);
+      env.put(Context.INITIAL_CONTEXT_FACTORY,"com.sun.jndi.ldap.LdapCtxFactory");
+      String ldapURL = properties.getProperty("connectionURL");
+      ldapURL = ldapURL.substring(ldapURL.indexOf(":")+1);      
+   }
     
     //identityProvider interface implementation--------------------------------------------------------------------------------------------
     /**
@@ -415,7 +417,7 @@
             Collection emails = new ArrayList();
             emails.add("primary="+identity.getEmail());
             emails.addAll(identity.getOtherEmails());
-            if(Util.isEmpty(emails))
+            if(Tools.isEmpty(emails))
             {
                 emails.add(Identity.NULL);
             }
@@ -425,7 +427,7 @@
             //get phone multivalues
             Collection phones = new ArrayList();
             phones.addAll(identity.getPhoneNumbers());
-            if(Util.isEmpty(phones))
+            if(Tools.isEmpty(phones))
             {
                 phones.add(Identity.NULL);
             }
@@ -434,7 +436,7 @@
             
             //get postalAddress multivalues
             Collection postalAddress = new ArrayList();
-            if(!Util.isEmpty(identity.getCompanyAddress().getStreet()))
+            if(!Tools.isEmpty(identity.getCompanyAddress().getStreet()))
             {
                 postalAddress.add("street="+identity.getCompanyAddress().getStreet());
             }
@@ -442,7 +444,7 @@
             {
                 postalAddress.add("street="+Identity.NULL);
             }
-            if(!Util.isEmpty(identity.getCompanyAddress().getCity()))
+            if(!Tools.isEmpty(identity.getCompanyAddress().getCity()))
             {
                 postalAddress.add("city="+identity.getCompanyAddress().getCity());
             }
@@ -450,7 +452,7 @@
             {
                 postalAddress.add("city="+Identity.NULL);
             }
-            if(!Util.isEmpty(identity.getCompanyAddress().getState()))
+            if(!Tools.isEmpty(identity.getCompanyAddress().getState()))
             {
                 postalAddress.add("state="+identity.getCompanyAddress().getState());
             }
@@ -458,7 +460,7 @@
             {
                 postalAddress.add("state="+Identity.NULL);
             }
-            if(!Util.isEmpty(identity.getCompanyAddress().getPostalCode()))
+            if(!Tools.isEmpty(identity.getCompanyAddress().getPostalCode()))
             {
                 postalAddress.add("postalCode="+identity.getCompanyAddress().getPostalCode());
             }
@@ -466,7 +468,7 @@
             {
                 postalAddress.add("postalCode="+Identity.NULL);
             }
-            if(!Util.isEmpty(identity.getCompanyAddress().getCountry()))
+            if(!Tools.isEmpty(identity.getCompanyAddress().getCountry()))
             {
                 postalAddress.add("country="+identity.getCompanyAddress().getCountry());
             }
@@ -497,7 +499,7 @@
             st.setBoolean(p.getIndex(),identity.isActive());                
             st.setString(p.getIndex(),password); 
             
-            if(!Util.isEmpty(jbIdentity.getFullName()))
+            if(!Tools.isEmpty(jbIdentity.getFullName()))
             {
                 st.setString(p.getIndex(),jbIdentity.getFullName());
             }
@@ -506,7 +508,7 @@
                 st.setString(p.getIndex(),"null");
             }
             
-            if(!Util.isEmpty(jbIdentity.getFullName()))
+            if(!Tools.isEmpty(jbIdentity.getFullName()))
             {
                 st.setString(p.getIndex(),jbIdentity.getFullName());
             }
@@ -515,7 +517,7 @@
                 st.setString(p.getIndex(),"null");
             }
             
-            if(!Util.isEmpty(jbIdentity.getCompanyName()))
+            if(!Tools.isEmpty(jbIdentity.getCompanyName()))
             {
                 st.setString(p.getIndex(),jbIdentity.getCompanyName());
             }
@@ -524,7 +526,7 @@
                 st.setString(p.getIndex(),"null");
             }
             
-            if(!Util.isEmpty(jbIdentity.getCompanyRole()))
+            if(!Tools.isEmpty(jbIdentity.getCompanyRole()))
             {
                 st.setString(p.getIndex(),jbIdentity.getCompanyRole());
             }
@@ -533,7 +535,7 @@
                 st.setString(p.getIndex(),"null");
             }
             
-            if(!Util.isEmpty(jbIdentity.getCompanyTitle()))
+            if(!Tools.isEmpty(jbIdentity.getCompanyTitle()))
             {
                 st.setString(p.getIndex(),jbIdentity.getCompanyTitle());
             }
@@ -563,7 +565,7 @@
             }
             
             java.util.Date cour = new java.util.Date();                             
-            if(!Util.isEmpty(jbIdentity.getSecretQuestion()))
+            if(!Tools.isEmpty(jbIdentity.getSecretQuestion()))
             {
                 st.setString(p.getIndex(),jbIdentity.getSecretQuestion());
             }
@@ -571,7 +573,7 @@
             {
                 st.setString(p.getIndex(),"null");
             }
-            if(!Util.isEmpty(jbIdentity.getSecretAnswer()))
+            if(!Tools.isEmpty(jbIdentity.getSecretAnswer()))
             {
                 st.setString(p.getIndex(),jbIdentity.getSecretAnswer());
             }
@@ -681,7 +683,7 @@
             Collection allEmails = this.getMultiValues(emails);
             Collection allPhoneNumbers = this.getMultiValues(phoneNumbers);                       
             identity.setPhoneNumbers(getMultiValues(phoneNumbers));
-            if(!Util.isEmpty(allEmails))
+            if(!Tools.isEmpty(allEmails))
             {
                 Object[] emailArray = allEmails.toArray();
                 for(int i=0;i<emailArray.length;i++)

Modified: labs/jbosslabs/branches/identity_integration/trunk/portal-extensions/jbwebsite-user-admin/src/java/org/jboss/website/user/ejb/UserManagerImpl.java
===================================================================
--- labs/jbosslabs/branches/identity_integration/trunk/portal-extensions/jbwebsite-user-admin/src/java/org/jboss/website/user/ejb/UserManagerImpl.java	2007-04-20 21:32:42 UTC (rev 11175)
+++ labs/jbosslabs/branches/identity_integration/trunk/portal-extensions/jbwebsite-user-admin/src/java/org/jboss/website/user/ejb/UserManagerImpl.java	2007-04-20 22:28:42 UTC (rev 11176)
@@ -783,7 +783,7 @@
         String password = user.getPassword();
         if(!isPasswordEncrypted)
         {
-            password = org.jboss.security.idm.util.Tools.getEncodedPassword(user.getPassword(),"MD5");
+            password = org.jboss.security.util.Tools.getEncodedPassword(user.getPassword(),"MD5");
         }
         
         




More information about the jboss-svn-commits mailing list