Author: marcelkolsteren
Date: 2009-08-16 12:38:39 -0400 (Sun, 16 Aug 2009)
New Revision: 714
Added:
identity-federation/trunk/jboss-identity-webapps/fed-example/
identity-federation/trunk/jboss-identity-webapps/fed-example/pom.xml
identity-federation/trunk/jboss-identity-webapps/fed-example/src/
identity-federation/trunk/jboss-identity-webapps/fed-example/src/main/
identity-federation/trunk/jboss-identity-webapps/fed-example/src/main/application/
identity-federation/trunk/jboss-identity-webapps/fed-example/src/main/application/META-INF/
identity-federation/trunk/jboss-identity-webapps/seam-sp/
identity-federation/trunk/jboss-identity-webapps/seam-sp/pom.xml
identity-federation/trunk/jboss-identity-webapps/seam-sp/src/
identity-federation/trunk/jboss-identity-webapps/seam-sp/src/main/
identity-federation/trunk/jboss-identity-webapps/seam-sp/src/main/java/
identity-federation/trunk/jboss-identity-webapps/seam-sp/src/main/java/org/
identity-federation/trunk/jboss-identity-webapps/seam-sp/src/main/java/org/jboss/
identity-federation/trunk/jboss-identity-webapps/seam-sp/src/main/java/org/jboss/identity/
identity-federation/trunk/jboss-identity-webapps/seam-sp/src/main/java/org/jboss/identity/seam/
identity-federation/trunk/jboss-identity-webapps/seam-sp/src/main/java/org/jboss/identity/seam/federation/
identity-federation/trunk/jboss-identity-webapps/seam-sp/src/main/java/org/jboss/identity/seam/federation/Authenticator.java
identity-federation/trunk/jboss-identity-webapps/seam-sp/src/main/resources/
identity-federation/trunk/jboss-identity-webapps/seam-sp/src/main/resources/seam.properties
identity-federation/trunk/jboss-identity-webapps/seam-sp/src/main/webapp/
identity-federation/trunk/jboss-identity-webapps/seam-sp/src/main/webapp/META-INF/
identity-federation/trunk/jboss-identity-webapps/seam-sp/src/main/webapp/META-INF/MANIFEST.MF
identity-federation/trunk/jboss-identity-webapps/seam-sp/src/main/webapp/PrivatePage1.xhtml
identity-federation/trunk/jboss-identity-webapps/seam-sp/src/main/webapp/PrivatePage2.xhtml
identity-federation/trunk/jboss-identity-webapps/seam-sp/src/main/webapp/PublicPage.xhtml
identity-federation/trunk/jboss-identity-webapps/seam-sp/src/main/webapp/WEB-INF/
identity-federation/trunk/jboss-identity-webapps/seam-sp/src/main/webapp/WEB-INF/components.xml
identity-federation/trunk/jboss-identity-webapps/seam-sp/src/main/webapp/WEB-INF/context.xml
identity-federation/trunk/jboss-identity-webapps/seam-sp/src/main/webapp/WEB-INF/faces-config.xml
identity-federation/trunk/jboss-identity-webapps/seam-sp/src/main/webapp/WEB-INF/jboss-web.xml
identity-federation/trunk/jboss-identity-webapps/seam-sp/src/main/webapp/WEB-INF/pages.xml
identity-federation/trunk/jboss-identity-webapps/seam-sp/src/main/webapp/WEB-INF/web.xml
Modified:
identity-federation/trunk/jboss-identity-webapps/pom.xml
Log:
JBID-168: improve and extend the sample SAMLv2 IDP and SP applications
Property changes on: identity-federation/trunk/jboss-identity-webapps/fed-example
___________________________________________________________________
Name: svn:ignore
+ target
.classpath
.project
.settings
Added: identity-federation/trunk/jboss-identity-webapps/fed-example/pom.xml
===================================================================
--- identity-federation/trunk/jboss-identity-webapps/fed-example/pom.xml
(rev 0)
+++ identity-federation/trunk/jboss-identity-webapps/fed-example/pom.xml 2009-08-16
16:38:39 UTC (rev 714)
@@ -0,0 +1,52 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<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">
+ <modelVersion>4.0.0</modelVersion>
+ <parent>
+ <artifactId>jboss-identity-federation-webapps</artifactId>
+ <groupId>org.jboss.identity</groupId>
+ <version>1.0.0.alpha5-SNAPSHOT</version>
+ </parent>
+ <groupId>org.jboss.identity</groupId>
+ <artifactId>fed-example</artifactId>
+ <packaging>ear</packaging>
+ <version>1.0.0.alpha5-SNAPSHOT</version>
+ <name>fed-example JEE5 Assembly</name>
+ <url>http://maven.apache.org</url>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <version>2.0.2</version>
+ <configuration>
+ <source>1.5</source>
+ <target>1.5</target>
+ </configuration>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-ear-plugin</artifactId>
+ <version>2.3.2</version>
+ <configuration>
+ <version>5</version>
+ </configuration>
+ </plugin>
+ </plugins>
+ <finalName>fed-example</finalName>
+ </build>
+ <dependencies>
+ <dependency>
+ <groupId>org.jboss.identity</groupId>
+ <artifactId>idp-sig</artifactId>
+ <version>1.0.0.alpha5-SNAPSHOT</version>
+ <type>war</type>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss.identity</groupId>
+ <artifactId>seam-sp</artifactId>
+ <version>1.0.0.alpha5-SNAPSHOT</version>
+ <type>war</type>
+ </dependency>
+ </dependencies>
+</project>
\ No newline at end of file
Modified: identity-federation/trunk/jboss-identity-webapps/pom.xml
===================================================================
--- identity-federation/trunk/jboss-identity-webapps/pom.xml 2009-08-16 16:23:21 UTC (rev
713)
+++ identity-federation/trunk/jboss-identity-webapps/pom.xml 2009-08-16 16:38:39 UTC (rev
714)
@@ -1,38 +1,42 @@
-<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.jboss.identity</groupId>
- <artifactId>jboss-identity-fed-parent</artifactId>
- <version>1.0.0.alpha5-SNAPSHOT</version>
- <relativePath>../parent</relativePath>
- </parent>
- <modelVersion>4.0.0</modelVersion>
- <artifactId>jboss-identity-federation-webapps</artifactId>
- <packaging>pom</packaging>
- <name>JBoss Identity Federation Web Applications</name>
- <
url>http://labs.jboss.org/portal/jbosssecurity/</url>
- <description>JBoss Identity 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>sales</module>
- <module>sales-sig</module>
- <module>sales-post-sig</module>
- <module>employee</module>
- <module>circleoftrust</module>
- <module>idp</module>
- <module>idp-sig</module>
- <module>metadata</module>
- <module>openid-provider</module>
- <module>openid-consumer</module>
- <module>jboss-sts</module>
- <module>pdp</module>
- </modules>
-</project>
+<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.jboss.identity</groupId>
+ <artifactId>jboss-identity-fed-parent</artifactId>
+ <version>1.0.0.alpha5-SNAPSHOT</version>
+ <relativePath>../parent</relativePath>
+ </parent>
+ <modelVersion>4.0.0</modelVersion>
+ <artifactId>jboss-identity-federation-webapps</artifactId>
+ <packaging>pom</packaging>
+ <name>JBoss Identity Federation Web Applications</name>
+ <
url>http://labs.jboss.org/portal/jbosssecurity/</url>
+ <description>JBoss Identity 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>sales</module>
+ <module>sales-sig</module>
+ <module>sales-post-sig</module>
+ <module>employee</module>
+ <module>circleoftrust</module>
+ <module>idp</module>
+ <module>idp-sig</module>
+ <module>metadata</module>
+ <module>openid-provider</module>
+ <module>openid-consumer</module>
+ <module>jboss-sts</module>
+ <module>pdp</module>
+ <module>seam-sp</module>
+ <module>fed-example</module>
+ </modules>
+</project>
\ No newline at end of file
Property changes on: identity-federation/trunk/jboss-identity-webapps/seam-sp
___________________________________________________________________
Name: svn:ignore
+ target
.classpath
.project
.settings
Added: identity-federation/trunk/jboss-identity-webapps/seam-sp/pom.xml
===================================================================
--- identity-federation/trunk/jboss-identity-webapps/seam-sp/pom.xml
(rev 0)
+++ identity-federation/trunk/jboss-identity-webapps/seam-sp/pom.xml 2009-08-16 16:38:39
UTC (rev 714)
@@ -0,0 +1,88 @@
+<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.jboss.identity</groupId>
+ <artifactId>jboss-identity-federation-webapps</artifactId>
+ <version>1.0.0.alpha5-SNAPSHOT</version>
+ <relativePath>../</relativePath>
+ </parent>
+ <modelVersion>4.0.0</modelVersion>
+ <artifactId>seam-sp</artifactId>
+ <packaging>war</packaging>
+ <name>Seam Service Provider</name>
+ <dependencyManagement>
+ <dependencies>
+ <dependency>
+ <groupId>org.jboss.identity</groupId>
+ <artifactId>jboss-identity-fed-model</artifactId>
+ <version>1.0.0.alpha5-SNAPSHOT</version>
+ <scope>provided</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss.identity</groupId>
+ <artifactId>jboss-identity-fed-api</artifactId>
+ <version>1.0.0.alpha5-SNAPSHOT</version>
+ <scope>provided</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss.identity</groupId>
+ <artifactId>jboss-identity-bindings</artifactId>
+ <version>1.0.0.alpha5-SNAPSHOT</version>
+ <scope>provided</scope>
+ </dependency>
+ </dependencies>
+ </dependencyManagement>
+ <dependencies>
+ <dependency>
+ <groupId>org.jboss.identity</groupId>
+ <artifactId>jboss-identity-seam</artifactId>
+ <version>${project.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss.seam</groupId>
+ <artifactId>jboss-seam</artifactId>
+ <version>2.1.2</version>
+ <type>ejb</type>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss.seam</groupId>
+ <artifactId>jboss-seam-ui</artifactId>
+ <version>2.1.2</version>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss.seam</groupId>
+ <artifactId>jboss-seam-debug</artifactId>
+ <version>2.1.2</version>
+ </dependency>
+ <dependency>
+ <groupId>javax.faces</groupId>
+ <artifactId>jsf-api</artifactId>
+ <version>1.2</version>
+ <scope>provided</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss.javaee</groupId>
+ <artifactId>jboss-javaee</artifactId>
+ <version>5.0.0.CR1</version>
+ <scope>provided</scope>
+ </dependency>
+ <dependency>
+ <groupId>javax.el</groupId>
+ <artifactId>el-api</artifactId>
+ <version>1.0</version>
+ <scope>provided</scope>
+ </dependency>
+ </dependencies>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-war-plugin</artifactId>
+ <version>2.0.2</version>
+ <configuration>
+ <warName>seam-sp</warName>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+</project>
\ No newline at end of file
Added:
identity-federation/trunk/jboss-identity-webapps/seam-sp/src/main/java/org/jboss/identity/seam/federation/Authenticator.java
===================================================================
---
identity-federation/trunk/jboss-identity-webapps/seam-sp/src/main/java/org/jboss/identity/seam/federation/Authenticator.java
(rev 0)
+++
identity-federation/trunk/jboss-identity-webapps/seam-sp/src/main/java/org/jboss/identity/seam/federation/Authenticator.java 2009-08-16
16:38:39 UTC (rev 714)
@@ -0,0 +1,55 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2008, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY 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 along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+package org.jboss.identity.seam.federation;
+
+import java.util.List;
+
+import org.jboss.identity.seam.federation.SamlIdentity;
+import org.jboss.seam.annotations.In;
+import org.jboss.seam.annotations.Name;
+
+/**
+* @author Marcel Kolsteren
+*/
+@Name("authenticator")
+public class Authenticator
+{
+
+ @In
+ SamlIdentity identity;
+
+ public boolean authenticate()
+ {
+ /* User has already been authenticated. Only thing we need to do here is the
translation of attribute values to roles. */
+
+ List<String> roles = identity.getAttributeValues("role");
+ if (roles != null)
+ {
+ for (String role : roles)
+ {
+ identity.addRole(role);
+ }
+ }
+
+ return true;
+ }
+}
Added:
identity-federation/trunk/jboss-identity-webapps/seam-sp/src/main/resources/seam.properties
===================================================================
---
identity-federation/trunk/jboss-identity-webapps/seam-sp/src/main/resources/seam.properties
(rev 0)
+++
identity-federation/trunk/jboss-identity-webapps/seam-sp/src/main/resources/seam.properties 2009-08-16
16:38:39 UTC (rev 714)
@@ -0,0 +1 @@
+org.jboss.seam.core.init.jndiPattern=frrry/#{ejbName}/local
\ No newline at end of file
Added:
identity-federation/trunk/jboss-identity-webapps/seam-sp/src/main/webapp/META-INF/MANIFEST.MF
===================================================================
---
identity-federation/trunk/jboss-identity-webapps/seam-sp/src/main/webapp/META-INF/MANIFEST.MF
(rev 0)
+++
identity-federation/trunk/jboss-identity-webapps/seam-sp/src/main/webapp/META-INF/MANIFEST.MF 2009-08-16
16:38:39 UTC (rev 714)
@@ -0,0 +1,3 @@
+Manifest-Version: 1.0
+Class-Path:
+
Added:
identity-federation/trunk/jboss-identity-webapps/seam-sp/src/main/webapp/PrivatePage1.xhtml
===================================================================
---
identity-federation/trunk/jboss-identity-webapps/seam-sp/src/main/webapp/PrivatePage1.xhtml
(rev 0)
+++
identity-federation/trunk/jboss-identity-webapps/seam-sp/src/main/webapp/PrivatePage1.xhtml 2009-08-16
16:38:39 UTC (rev 714)
@@ -0,0 +1,13 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html
xmlns="http://www.w3.org/1999/xhtml"
+
xmlns:h="http://java.sun.com/jsf/html"
+
xmlns:f="http://java.sun.com/jsf/core">
+
+<body>
+<h1>Service provider: private page 1</h1>
+<p>You have been authenticated as user #{identity.username}.</p>
+<p>Roles: #{identity.attributes}.</p>
+<p>All SAMLv2 properties: #{identity.attributes}.</p>
+</body>
+
+</html>
\ No newline at end of file
Added:
identity-federation/trunk/jboss-identity-webapps/seam-sp/src/main/webapp/PrivatePage2.xhtml
===================================================================
---
identity-federation/trunk/jboss-identity-webapps/seam-sp/src/main/webapp/PrivatePage2.xhtml
(rev 0)
+++
identity-federation/trunk/jboss-identity-webapps/seam-sp/src/main/webapp/PrivatePage2.xhtml 2009-08-16
16:38:39 UTC (rev 714)
@@ -0,0 +1,13 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html
xmlns="http://www.w3.org/1999/xhtml"
+
xmlns:h="http://java.sun.com/jsf/html"
+
xmlns:f="http://java.sun.com/jsf/core">
+
+<body>
+<h1>Service provider: private page 2</h1>
+<p>You have been authenticated as user #{identity.username}.</p>
+<p>Roles: #{identity.attributes}.</p>
+<p>All SAMLv2 properties: #{identity.attributes}.</p>
+</body>
+
+</html>
\ No newline at end of file
Added:
identity-federation/trunk/jboss-identity-webapps/seam-sp/src/main/webapp/PublicPage.xhtml
===================================================================
---
identity-federation/trunk/jboss-identity-webapps/seam-sp/src/main/webapp/PublicPage.xhtml
(rev 0)
+++
identity-federation/trunk/jboss-identity-webapps/seam-sp/src/main/webapp/PublicPage.xhtml 2009-08-16
16:38:39 UTC (rev 714)
@@ -0,0 +1,16 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html
xmlns="http://www.w3.org/1999/xhtml"
+
xmlns:h="http://java.sun.com/jsf/html"
+
xmlns:f="http://java.sun.com/jsf/core">
+
+<body>
+<h1>Seam Service Provider: public page</h1>
+<h:form>
+ <p><h:commandLink action="/PrivatePage1.xhtml"
+ value="Click here to view private page 1." /></p>
+ <p><h:commandLink action="/PrivatePage2.xhtml"
+ value="Click here to view private page 2." /></p>
+</h:form>
+</body>
+
+</html>
\ No newline at end of file
Added:
identity-federation/trunk/jboss-identity-webapps/seam-sp/src/main/webapp/WEB-INF/components.xml
===================================================================
---
identity-federation/trunk/jboss-identity-webapps/seam-sp/src/main/webapp/WEB-INF/components.xml
(rev 0)
+++
identity-federation/trunk/jboss-identity-webapps/seam-sp/src/main/webapp/WEB-INF/components.xml 2009-08-16
16:38:39 UTC (rev 714)
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<components
xmlns="http://jboss.com/products/seam/components"
+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:security="http://jboss.com/products/seam/security"
+
xmlns:core="http://jboss.com/products/seam/core"
+
xsi:schemaLocation="http://jboss.com/products/seam/components
http://jboss.com/products/seam/components-2.1.xsd
+
http://jboss.com/products/seam/core http://jboss.com/products/seam/core-2.1.xsd
+
http://jboss.com/products/seam/security
http://jboss.com/products/seam/security-2.1.xsd">
+ <core:init debug="false" />
+ <security:identity authenticate-method="#{authenticator.authenticate}"
/>
+ <!-- JBID IDP -->
+ <component
+ name="org.jboss.identity.seam.federation.samlAuthenticationFilter">
+ <property
name="identityProviderURL">http://localhost:8080/idp-sig</property>
+ <property
name="singleSignOnServiceURL">http://localhost:8080/idp-sig/</property>
+ <property
name="keyStoreURL">file:/etc/keystores/samlkeystore</property>
+ <property name="keyStorePass">jajaja</property>
+ <property name="idpCertificateAlias">saml</property>
+ <property name="binding">HTTP_Post</property>
+ <property name="signatureRequired">false</property>
+ </component>
+</components>
\ No newline at end of file
Added:
identity-federation/trunk/jboss-identity-webapps/seam-sp/src/main/webapp/WEB-INF/context.xml
===================================================================
---
identity-federation/trunk/jboss-identity-webapps/seam-sp/src/main/webapp/WEB-INF/context.xml
(rev 0)
+++
identity-federation/trunk/jboss-identity-webapps/seam-sp/src/main/webapp/WEB-INF/context.xml 2009-08-16
16:38:39 UTC (rev 714)
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<Context>
+ <!-- log all incoming and outgoing messages. -->
+ <Valve className="org.apache.catalina.valves.RequestDumperValve" />
+</Context>
\ No newline at end of file
Added:
identity-federation/trunk/jboss-identity-webapps/seam-sp/src/main/webapp/WEB-INF/faces-config.xml
===================================================================
---
identity-federation/trunk/jboss-identity-webapps/seam-sp/src/main/webapp/WEB-INF/faces-config.xml
(rev 0)
+++
identity-federation/trunk/jboss-identity-webapps/seam-sp/src/main/webapp/WEB-INF/faces-config.xml 2009-08-16
16:38:39 UTC (rev 714)
@@ -0,0 +1,9 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<faces-config
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-facesconfig_1_2.xsd"
+ version="1.2">
+ <application>
+ <view-handler>com.sun.facelets.FaceletViewHandler</view-handler>
+ </application>
+</faces-config>
\ No newline at end of file
Added:
identity-federation/trunk/jboss-identity-webapps/seam-sp/src/main/webapp/WEB-INF/jboss-web.xml
===================================================================
---
identity-federation/trunk/jboss-identity-webapps/seam-sp/src/main/webapp/WEB-INF/jboss-web.xml
(rev 0)
+++
identity-federation/trunk/jboss-identity-webapps/seam-sp/src/main/webapp/WEB-INF/jboss-web.xml 2009-08-16
16:38:39 UTC (rev 714)
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!DOCTYPE jboss-web PUBLIC
+ "-//JBoss//DTD Web Application 2.3V2//EN"
+ "http://www.jboss.org/j2ee/dtd/jboss-web_3_2.dtd">
+<jboss-web>
+ <class-loading>
+ <loader-repository>seam-sp:loader=seam-sp</loader-repository>
+ </class-loading>
+ <context-root>seam-sp</context-root>
+</jboss-web>
\ No newline at end of file
Added:
identity-federation/trunk/jboss-identity-webapps/seam-sp/src/main/webapp/WEB-INF/pages.xml
===================================================================
---
identity-federation/trunk/jboss-identity-webapps/seam-sp/src/main/webapp/WEB-INF/pages.xml
(rev 0)
+++
identity-federation/trunk/jboss-identity-webapps/seam-sp/src/main/webapp/WEB-INF/pages.xml 2009-08-16
16:38:39 UTC (rev 714)
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<pages
xmlns="http://jboss.com/products/seam/pages"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+
xsi:schemaLocation="http://jboss.com/products/seam/pages
http://jboss.com/products/seam/pages-2.1.xsd">
+ <page view-id="/PrivatePage1.xhtml" login-required="true" />
+ <page view-id="/PrivatePage2.xhtml" login-required="true" />
+</pages>
\ No newline at end of file
Added:
identity-federation/trunk/jboss-identity-webapps/seam-sp/src/main/webapp/WEB-INF/web.xml
===================================================================
---
identity-federation/trunk/jboss-identity-webapps/seam-sp/src/main/webapp/WEB-INF/web.xml
(rev 0)
+++
identity-federation/trunk/jboss-identity-webapps/seam-sp/src/main/webapp/WEB-INF/web.xml 2009-08-16
16:38:39 UTC (rev 714)
@@ -0,0 +1,30 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<web-app
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+
xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
+
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
+ version="2.5">
+ <listener>
+ <listener-class>org.jboss.seam.servlet.SeamListener</listener-class>
+ </listener>
+ <filter>
+ <filter-name>Seam Filter</filter-name>
+ <filter-class>org.jboss.seam.servlet.SeamFilter</filter-class>
+ </filter>
+ <filter-mapping>
+ <filter-name>Seam Filter</filter-name>
+ <url-pattern>/*</url-pattern>
+ </filter-mapping>
+ <context-param>
+ <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
+ <param-value>.xhtml</param-value>
+ </context-param>
+ <servlet>
+ <servlet-name>Faces Servlet</servlet-name>
+ <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
+ <load-on-startup>1</load-on-startup>
+ </servlet>
+ <servlet-mapping>
+ <servlet-name>Faces Servlet</servlet-name>
+ <url-pattern>*.seam</url-pattern>
+ </servlet-mapping>
+</web-app>
\ No newline at end of file