Author: anil.saldhana(a)jboss.com
Date: 2009-04-29 13:44:23 -0400 (Wed, 29 Apr 2009)
New Revision: 465
Added:
identity-federation/trunk/jboss-identity-samples/circleoftrust/
identity-federation/trunk/jboss-identity-samples/circleoftrust/pom.xml
identity-federation/trunk/jboss-identity-samples/circleoftrust/resources/
identity-federation/trunk/jboss-identity-samples/circleoftrust/resources/META-INF/
identity-federation/trunk/jboss-identity-samples/circleoftrust/resources/WEB-INF/
identity-federation/trunk/jboss-identity-samples/circleoftrust/resources/WEB-INF/web.xml
identity-federation/trunk/jboss-identity-samples/circleoftrust/resources/addedIDP.jsp
identity-federation/trunk/jboss-identity-samples/circleoftrust/resources/index.jsp
identity-federation/trunk/jboss-identity-samples/circleoftrust/resources/sp.jsp
Log:
JBID-88: circle of trust web app as a start
Added: identity-federation/trunk/jboss-identity-samples/circleoftrust/pom.xml
===================================================================
--- identity-federation/trunk/jboss-identity-samples/circleoftrust/pom.xml
(rev 0)
+++ identity-federation/trunk/jboss-identity-samples/circleoftrust/pom.xml 2009-04-29
17:44:23 UTC (rev 465)
@@ -0,0 +1,35 @@
+<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>
+ <groupId>org.jboss.identity.federation</groupId>
+ <artifactId>jboss-identity-samples-employee</artifactId>
+ <version>1.0.0-SNAPSHOT</version>
+ <packaging>war</packaging>
+ <name>JBoss Identity Federation Circle Of Trust</name>
+ <
url>http://labs.jboss.org/portal/jbosssecurity/</url>
+ <description>JBoss Identity 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>circleoftrust</warName>
+ <webappDirectory>${basedir}/resources/</webappDirectory>
+ <warSourceExcludes>WEB-INF/lib/*.jar</warSourceExcludes>
+ </configuration>
+ </plugin>
+
+ </plugins>
+ </build>
+</project>
Added:
identity-federation/trunk/jboss-identity-samples/circleoftrust/resources/WEB-INF/web.xml
===================================================================
---
identity-federation/trunk/jboss-identity-samples/circleoftrust/resources/WEB-INF/web.xml
(rev 0)
+++
identity-federation/trunk/jboss-identity-samples/circleoftrust/resources/WEB-INF/web.xml 2009-04-29
17:44:23 UTC (rev 465)
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<web-app version="2.4"
+
xmlns="http://java.sun.com/xml/ns/j2ee"
+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
+
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
+
+ <description>Circle Of Trust</description>
+
+ <servlet>
+ <servlet-name>COTServlet</servlet-name>
+
<servlet-class>org.jboss.identity.federation.bindings.servlets.CircleOfTrustServlet</servlet-class>
+ <init-param>
+ <param-name>issuer</param-name>
+ <param-value>redhatPdpEntity</param-value>
+ </init-param>
+ </servlet>
+
+ <servlet-mapping>
+ <servlet-name>COTServlet</servlet-name>
+ <url-pattern>/COTServlet</url-pattern>
+ </servlet-mapping>
+
+</web-app>
Added:
identity-federation/trunk/jboss-identity-samples/circleoftrust/resources/addedIDP.jsp
===================================================================
--- identity-federation/trunk/jboss-identity-samples/circleoftrust/resources/addedIDP.jsp
(rev 0)
+++
identity-federation/trunk/jboss-identity-samples/circleoftrust/resources/addedIDP.jsp 2009-04-29
17:44:23 UTC (rev 465)
@@ -0,0 +1,16 @@
+<%@ page
import="org.jboss.identity.federation.saml.v2.metadata.*,org.jboss.identity.federation.api.saml.v2.metadata.*"
%>
+
+An IDP has been added as a trusted provider.<br/>
+
+Information on the IDP: <br/>
+
+<%
+ EntityDescriptorType edt =
(EntityDescriptorType)session.getAttribute("idp");
+
+ out.println(MetaDataExtractor.toString(edt));
+
+ session.removeAttribute("idp");
+%>
+<br/>
+<br/>
+<a href="<%=request.getContextPath()%>/index.jsp">Back</a>
Added: identity-federation/trunk/jboss-identity-samples/circleoftrust/resources/index.jsp
===================================================================
--- identity-federation/trunk/jboss-identity-samples/circleoftrust/resources/index.jsp
(rev 0)
+++
identity-federation/trunk/jboss-identity-samples/circleoftrust/resources/index.jsp 2009-04-29
17:44:23 UTC (rev 465)
@@ -0,0 +1,2 @@
+<a href="sp.jsp">Configure a SP</a> <br/>
+<a href="idp.jsp">Configure an IDP</a>
Added: identity-federation/trunk/jboss-identity-samples/circleoftrust/resources/sp.jsp
===================================================================
--- identity-federation/trunk/jboss-identity-samples/circleoftrust/resources/sp.jsp
(rev 0)
+++
identity-federation/trunk/jboss-identity-samples/circleoftrust/resources/sp.jsp 2009-04-29
17:44:23 UTC (rev 465)
@@ -0,0 +1,13 @@
+Configure a Service Provider <br/>
+
+<form name="add_idp" action="/circleoftrust/COTServlet"
method="post">
+Name of the Service Provider:
+<input type="text" name="spname" value="ENTER SP NAME"
/> <br/>
+IDPName:
+<input type="text" name="idpname" value="ENTER IDP
NAME" /> <br/>
+Metadata URL:
+<input type="text" name="metadataURL" value="ENTER Metadata
URL" /> <br/>
+<input type="hidden" name="type" value="sp" />
<br/>
+<input type="hidden" name="action" value="add" />
<br/>
+<input type="submit" value="Submit" /> <br/>
+</form>