Author: anil.saldhana(a)jboss.com
Date: 2011-07-26 12:37:51 -0400 (Tue, 26 Jul 2011)
New Revision: 1128
Added:
integration-tests/trunk/picketlink-int-webapps/
integration-tests/trunk/picketlink-int-webapps/claims/
integration-tests/trunk/picketlink-int-webapps/claims/pom.xml
integration-tests/trunk/picketlink-int-webapps/claims/src/
integration-tests/trunk/picketlink-int-webapps/claims/src/main/
integration-tests/trunk/picketlink-int-webapps/claims/src/main/webapp/
integration-tests/trunk/picketlink-int-webapps/claims/src/main/webapp/WEB-INF/
integration-tests/trunk/picketlink-int-webapps/claims/src/main/webapp/WEB-INF/web.xml
integration-tests/trunk/picketlink-int-webapps/claims/src/main/webapp/claimsprocess.jsp
integration-tests/trunk/picketlink-int-webapps/claims/src/main/webapp/saml2-response-adfs-claims.xml
integration-tests/trunk/picketlink-int-webapps/pom.xml
Modified:
integration-tests/trunk/pom.xml
Log:
add webapps module
Added: integration-tests/trunk/picketlink-int-webapps/claims/pom.xml
===================================================================
--- integration-tests/trunk/picketlink-int-webapps/claims/pom.xml
(rev 0)
+++ integration-tests/trunk/picketlink-int-webapps/claims/pom.xml 2011-07-26 16:37:51 UTC
(rev 1128)
@@ -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-integration-tests-parent</artifactId>
+ <version>2.0.0-SNAPSHOT</version>
+ <relativePath>../</relativePath>
+ </parent>
+
+ <modelVersion>4.0.0</modelVersion>
+ <artifactId>claims</artifactId>
+ <packaging>war</packaging>
+ <name>PicketLink Federation Claims</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>claims</warName>
+ <warSourceExcludes>WEB-INF/lib/*.jar</warSourceExcludes>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+</project>
Property changes on: integration-tests/trunk/picketlink-int-webapps/claims/pom.xml
___________________________________________________________________
Added: svn:executable
+ *
Added:
integration-tests/trunk/picketlink-int-webapps/claims/src/main/webapp/WEB-INF/web.xml
===================================================================
--- integration-tests/trunk/picketlink-int-webapps/claims/src/main/webapp/WEB-INF/web.xml
(rev 0)
+++
integration-tests/trunk/picketlink-int-webapps/claims/src/main/webapp/WEB-INF/web.xml 2011-07-26
16:37:51 UTC (rev 1128)
@@ -0,0 +1,8 @@
+<?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">
+
+
+</web-app>
Added:
integration-tests/trunk/picketlink-int-webapps/claims/src/main/webapp/claimsprocess.jsp
===================================================================
---
integration-tests/trunk/picketlink-int-webapps/claims/src/main/webapp/claimsprocess.jsp
(rev 0)
+++
integration-tests/trunk/picketlink-int-webapps/claims/src/main/webapp/claimsprocess.jsp 2011-07-26
16:37:51 UTC (rev 1128)
@@ -0,0 +1,12 @@
+<%@ page
import="java.io.*,org.picketlink.identity.federation.api.saml.v2.response.SAML2Response,org.picketlink.identity.federation.saml.v2.SAML2Object"
%>
+
+<%
+InputStream configStream =
application.getResourceAsStream("/saml2-response-adfs-claims.xml");
+SAML2Response samlResponse = new SAML2Response();
+SAML2Object samlObject = samlResponse.getSAML2ObjectFromStream(configStream);
+
+if(samlObject == null)
+ throw new RuntimeException("SAML Object is null");
+
+out.println("OK");
+%>
Added:
integration-tests/trunk/picketlink-int-webapps/claims/src/main/webapp/saml2-response-adfs-claims.xml
===================================================================
---
integration-tests/trunk/picketlink-int-webapps/claims/src/main/webapp/saml2-response-adfs-claims.xml
(rev 0)
+++
integration-tests/trunk/picketlink-int-webapps/claims/src/main/webapp/saml2-response-adfs-claims.xml 2011-07-26
16:37:51 UTC (rev 1128)
@@ -0,0 +1,66 @@
+<samlp:Response xmlns:samlp="urn:oasis:names:tc:SAML:2.0:protocol"
+ Consent="urn:oasis:names:tc:SAML:2.0:consent:unspecified"
+ Destination="https://something"
+ ID="_48db7f2f-a2d2-4e45-94bc-bb680a47d073"
InResponseTo="CPSID_47811a63-caf3-4e4e-84cb-fa872cafff05"
+ IssueInstant="2011-07-19T21:23:42.077Z" Version="2.0">
+ <Issuer
xmlns="urn:oasis:names:tc:SAML:2.0:assertion">urn:adfs:services:trust
+ </Issuer>
+ <samlp:Status>
+ <samlp:StatusCode Value="urn:oasis:names:tc:SAML:2.0:status:Success"
/>
+ </samlp:Status>
+ <Assertion xmlns="urn:oasis:names:tc:SAML:2.0:assertion"
ID="_334b1e3d-8783-4ea6-b5a9-0dd6317999d2"
+ IssueInstant="2011-07-19T21:23:42.077Z" Version="2.0">
+ <Issuer>urn:adfs:services:trust</Issuer>
+ <ds:Signature
xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
+ <ds:SignedInfo>
+ <ds:CanonicalizationMethod
Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#" />
+ <ds:SignatureMethod
+
Algorithm="http://www.w3.org/2001/04/xmldsig-more#rsa-sha256" />
+ <ds:Reference URI="#_334b1e3d-8783-4ea6-b5a9-0dd6317999d2">
+ <ds:Transforms>
+ <ds:Transform
+
Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature" />
+ <ds:Transform
Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"
/>
+ </ds:Transforms>
+ <ds:DigestMethod
Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"
/>
+ <ds:DigestValue>6UvO3uhEz2ErtcrijZ4WfvhrPGEoP+fdmiMOg0mOeMQ=
+ </ds:DigestValue>
+ </ds:Reference>
+ </ds:SignedInfo>
+ <ds:SignatureValue>JGR4KOgUKksRKGn0c2OvyVhCIbOX5rafDiaXezTyGPsQJnVhbYUa6xDnDEb1kMXefL3IxAWL2o1PgYlnrrGfuP3QgAeF1B+w9JlO4/H7DTeumMWz7ZvpsmUMARrcFBJjsOXgIZxDU3UY1yzn6IMZonQRz2CO6kVo2q3zemlb8TAssZttj71Wl/fceRDlkV/+suQChaaXeDWVW2T+ITnt2JSJY2GL6PpT8K+hHAyfS0PgC9o3RedAwIZT73ZiCQugZYxBgjQbZXT72x6arh8phWVtENCr6JEcXFUrAGnYzOn3/48M6w9MQ2GhHB4XqgWAQrrpcG6nw47q+Z4zn+9Wig==
+ </ds:SignatureValue>
+ <KeyInfo
xmlns="http://www.w3.org/2000/09/xmldsig#">
+ <ds:X509Data>
+ <ds:X509Certificate>MIIC7jCCAdagAwIBAgIQXp/JPRE5SaJCiQcYG8wqBzANBgkqhkiG9w0BAQsFADAzMTEwLwYDVQQDEyhBREZTIFNpZ25pbmcgLSBDUFMtRVhULUZTLmV4dC5zdy5yaW0ubmV0MB4XDTExMDUwODIyMDQ1OVoXDTEyMDUwNzIyMDQ1OVowMzExMC8GA1UEAxMoQURGUyBTaWduaW5nIC0gQ1BTLUVYVC1GUy5leHQuc3cucmltLm5ldDCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBANN57C+4eyqeB44BiUB4xmyTcUMhJR55yjnJWWse8KllXJYnFzZzJPvVC1SPlACz2EzuATT5gWFhHyhqolgqAR5a0pke1wXVN4aHKOkUzmDhdd2JfOGFoJRIV9wgkX1bbA2FS+kJMl0ewdgxKdjOlKM+LXNmFteqRYZq2+0ss7vtZJ8/ls9t6cRNd2qI+7zJvPqvs1Beaiia9P45oXn7YPK4TJKIR3aq4vmI1q2cSFK1a1b76YDvzYYAASCpeGJ+20lh3j81/5D408MrjaDb1pMXWhK01okcypQeNwaGoEQwlFm8M5eQCRgnJbHzASE8NMdV+2NW2vn+GNbp327gOk0CAwEAATANBgkqhkiG9w0BAQsFAAOCAQEAkYq2FmFTkP9NRXJn/J3XU+9Idv4h76vNdIT4hvfnzhlKGqVZANgIVgXk6aIzSv22x3vxkjSvMDQkhINHLEcKzabWdpAtwUUiqBUykwg+MvzolLkuG6yNT59KrUPbteqxQrhK5O+VCsDIaxjWjvSW0O7ACuPgQFPcnDZDcVXJWOCy6sUmnMSuD1kMmCJ6ubu72IrlnPKWp1obfVl1EV1GOWwx6LSn/WyZ0+ca4bkOLhMku5v+7myQLMWxS5sqb9578ZG51qrfJRde3wCOGAfRBCUa/8H/6xvkp7T6j0Fx4uH!
j8XBn8wjL8epgWSyH381owGepLRJ+evRIjtbYVEAs7w==
+ </ds:X509Certificate>
+ </ds:X509Data>
+ </KeyInfo>
+ </ds:Signature>
+ <Subject>
+ <SubjectConfirmation Method="urn:oasis:names:tc:SAML:2.0:cm:bearer">
+ <SubjectConfirmationData
+ InResponseTo="CPSID_47811a63-caf3-4e4e-84cb-fa872cafff05"
+ NotOnOrAfter="2011-07-19T21:28:42.077Z"
Recipient="https://somebody" />
+ </SubjectConfirmation>
+ </Subject>
+ <Conditions NotBefore="2011-07-19T21:23:42.077Z"
+ NotOnOrAfter="2011-07-19T22:23:42.077Z">
+ <AudienceRestriction>
+ <Audience>https://somebody</Audience>
+ </AudienceRestriction>
+ </Conditions>
+ <AttributeStatement>
+ <Attribute
Name="http://schemas.xmlsoap.org/claims/EmailAddress">
+ <AttributeValue>admin(a)test.net</AttributeValue>
+ </Attribute>
+ <Attribute
Name="http://schemas.xmlsoap.org/claims/PUID">
+ <AttributeValue>1004567899</AttributeValue>
+ </Attribute>
+ </AttributeStatement>
+ <AuthnStatement AuthnInstant="2011-07-19T21:10:57.923Z">
+ <AuthnContext>
+ <AuthnContextClassRef>urn:federation:authentication:windows</AuthnContextClassRef>
+ </AuthnContext>
+ </AuthnStatement>
+ </Assertion>
+</samlp:Response>
\ No newline at end of file
Added: integration-tests/trunk/picketlink-int-webapps/pom.xml
===================================================================
--- integration-tests/trunk/picketlink-int-webapps/pom.xml (rev
0)
+++ integration-tests/trunk/picketlink-int-webapps/pom.xml 2011-07-26 16:37:51 UTC (rev
1128)
@@ -0,0 +1,28 @@
+<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-integration-tests-parent</artifactId>
+ <version>2.0.0-SNAPSHOT</version>
+ <relativePath>../parent</relativePath>
+ </parent>
+ <modelVersion>4.0.0</modelVersion>
+ <artifactId>picketlink-int-webapps</artifactId>
+ <packaging>pom</packaging>
+ <name>PicketLink Federation Web Applications</name>
+ <
url>http://labs.jboss.org/portal/jbosssecurity/</url>
+ <description>PicketLink Web Applications contains the web
+ applications 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>
+ <modules>
+ <module>claims</module>
+ </modules>
+</project>
Property changes on: integration-tests/trunk/picketlink-int-webapps/pom.xml
___________________________________________________________________
Added: svn:executable
+ *
Modified: integration-tests/trunk/pom.xml
===================================================================
--- integration-tests/trunk/pom.xml 2011-07-26 15:21:12 UTC (rev 1127)
+++ integration-tests/trunk/pom.xml 2011-07-26 16:37:51 UTC (rev 1128)
@@ -15,6 +15,7 @@
<modules>
<module>parent</module>
+ <module>picketlink-int-webapps</module>
<module>picketlink-saml-tests</module>
<module>picketlink-saml-jbas51</module>
<module>picketlink-saml-jbas6</module>
@@ -25,5 +26,6 @@
<module>picketlink-sts-jbas6-cxf</module>
<!-- <module>picketlink-openid-tests</module> -->
<module>picketlink-pdp-tests</module>
+
</modules>
</project>