From 43e57a42832ea8b4ceb0317f3c9028a4174ffa7b Mon Sep 17 00:00:00 2001
From: mcentner
Date: Wed, 8 Aug 2007 07:25:32 +0000
Subject: Adapted project directory structure to suit the new maven based build
process.
git-svn-id: https://joinup.ec.europa.eu/svn/moa-idspss/trunk@909 d688527b-c9ab-4aba-bd8d-4036d912da1d
---
id/oa/src/main/webapp/WEB-INF/web.xml | 9 +++++
id/oa/src/main/webapp/auth.jsp | 48 +++++++++++++++++++++++++
id/oa/src/main/webapp/chooseBKU.jsp | 19 ++++++++++
id/oa/src/main/webapp/form.jsp | 20 +++++++++++
id/oa/src/main/webapp/getBKUSelectTag.jsp | 6 ++++
id/oa/src/main/webapp/index.jsp | 60 +++++++++++++++++++++++++++++++
id/oa/src/main/webapp/stateful_login.jsp | 29 +++++++++++++++
7 files changed, 191 insertions(+)
create mode 100644 id/oa/src/main/webapp/WEB-INF/web.xml
create mode 100644 id/oa/src/main/webapp/auth.jsp
create mode 100644 id/oa/src/main/webapp/chooseBKU.jsp
create mode 100644 id/oa/src/main/webapp/form.jsp
create mode 100644 id/oa/src/main/webapp/getBKUSelectTag.jsp
create mode 100644 id/oa/src/main/webapp/index.jsp
create mode 100644 id/oa/src/main/webapp/stateful_login.jsp
(limited to 'id/oa')
diff --git a/id/oa/src/main/webapp/WEB-INF/web.xml b/id/oa/src/main/webapp/WEB-INF/web.xml
new file mode 100644
index 000000000..13158fdaa
--- /dev/null
+++ b/id/oa/src/main/webapp/WEB-INF/web.xml
@@ -0,0 +1,9 @@
+
+
+
+
+
+ Sample OA
+ MOA Sample OA
+
+
diff --git a/id/oa/src/main/webapp/auth.jsp b/id/oa/src/main/webapp/auth.jsp
new file mode 100644
index 000000000..0b563a83e
--- /dev/null
+++ b/id/oa/src/main/webapp/auth.jsp
@@ -0,0 +1,48 @@
+
+
+MOA ID Auth Sample Login
+
+
+<% /** assumes moa-id-auth and oa in the same servlet container,
+ and moa-id-proxy on a different fixed location */
+ String authUrlPath =
+ request.getScheme() + "://"
+ + request.getServerName() + ":" + request.getServerPort()
+ + "/moa-id-auth/";
+ String proxyUrlPath = "http://10.16.126.28:9080/moa-id-proxy/";
+ String oaUrlPath =
+ request.getScheme() + "://"
+ + request.getServerName() + ":" + request.getServerPort()
+ + "/oa/";
+ String params =
+ "Target=gb&" +
+ "OA=" + proxyUrlPath + "index.jsp";
+ String urlStartAuth =
+ authUrlPath +
+ "StartAuthentication?" +
+ params;
+ String templateParam =
+ "&Template=" + oaUrlPath + "AuthTemplate.jsp";
+ String urlStartAuthCustom =
+ urlStartAuth +
+ templateParam;
+ String urlSelectBKU =
+ authUrlPath +
+ "SelectBKU?" +
+ params;
+ String urlSelectBKUCustom =
+ urlSelectBKU +
+ templateParam +
+ "&BKUSelectionTemplate=" + oaUrlPath + "BKUSelectionTemplate.jsp";
+%>
+Log in to sample application
+
+Log in to sample application using custom form
+
+Choose BKU (HTMLComplete or HTMLSelect) and log in
+
+Choose BKU (HTMLSelect) using custom form and log in
+
+">Wrong parameters example
+
+
\ No newline at end of file
diff --git a/id/oa/src/main/webapp/chooseBKU.jsp b/id/oa/src/main/webapp/chooseBKU.jsp
new file mode 100644
index 000000000..0135b6fdf
--- /dev/null
+++ b/id/oa/src/main/webapp/chooseBKU.jsp
@@ -0,0 +1,19 @@
+
+
+BKU Auswahl
+
+
+BKU Auswahl
+
+
+
+
+
\ No newline at end of file
diff --git a/id/oa/src/main/webapp/form.jsp b/id/oa/src/main/webapp/form.jsp
new file mode 100644
index 000000000..d439fa84d
--- /dev/null
+++ b/id/oa/src/main/webapp/form.jsp
@@ -0,0 +1,20 @@
+<%@ page import="java.util.*" %>
+
+
+Sample Online Application
+
+
+Sample Form
+
+
+
+Back
+
+
\ No newline at end of file
diff --git a/id/oa/src/main/webapp/getBKUSelectTag.jsp b/id/oa/src/main/webapp/getBKUSelectTag.jsp
new file mode 100644
index 000000000..028dbd348
--- /dev/null
+++ b/id/oa/src/main/webapp/getBKUSelectTag.jsp
@@ -0,0 +1,6 @@
+
diff --git a/id/oa/src/main/webapp/index.jsp b/id/oa/src/main/webapp/index.jsp
new file mode 100644
index 000000000..35e49d743
--- /dev/null
+++ b/id/oa/src/main/webapp/index.jsp
@@ -0,0 +1,60 @@
+<%@ page import="java.util.*,javax.servlet.http.*,sun.misc.BASE64Decoder" %>
+
+
+Sample Online Application
+
+
+Sample Online Application
+
+Request headers:
+
+ <%
+ /* collect parameters from request */
+ for (Enumeration headers = request.getHeaderNames(); headers.hasMoreElements(); ) {
+ String key = (String) headers.nextElement();
+ String value = request.getHeader(key); %>
+ <%=key%> | <%=value%> |
+ <% } %>
+
+
+
+<% String query=request.getQueryString(); %>
+QueryString: "<%=query%>"
+
+
+Request parameters:
+
+ <%
+ /* collect parameters from request */
+ for (Enumeration params = request.getParameterNames(); params.hasMoreElements(); ) {
+ String name = (String) params.nextElement();
+ String value = request.getParameter(name); %>
+ <%=name%> | <%=value%> |
+ <% } %>
+
+
+
+Cookies:
+
+ <%
+ /* collect attributes from request */
+ Cookie[] cookies = request.getCookies();
+ if (cookies != null) {
+ for (int i = 0; i < cookies.length; i++) {
+ Cookie cookie = cookies[i]; %>
+ <%=cookie.getName()%> | <%=cookie.getValue()%> |
+ <% }
+ } %>
+
+
+
+<% String authHeader = request.getHeader("Authorization");
+ if (authHeader != null) {
+ authHeader = authHeader.substring(authHeader.indexOf(" ")+1);
+ String decAuthHeader = new String(new BASE64Decoder().decodeBuffer(authHeader));
+%>
+Basic authentication credentials: <%=decAuthHeader%>
+<% } %>
+Form sample
+
+
\ No newline at end of file
diff --git a/id/oa/src/main/webapp/stateful_login.jsp b/id/oa/src/main/webapp/stateful_login.jsp
new file mode 100644
index 000000000..eaede507f
--- /dev/null
+++ b/id/oa/src/main/webapp/stateful_login.jsp
@@ -0,0 +1,29 @@
+<%@ page import="javax.servlet.http.*" %>
+<%
+ /* check request's remote IP address - must be moa-id-proxy's address */
+ String remoteIPAddress = request.getRemoteAddr();
+ if (! "127.0.0.1".equals(remoteIPAddress)) { /* Substitute "127.0.0.1" for moa-id-proxy's IP address */
+ response.setStatus(403);
+ return;
+ }
+
+ /* store authentication data in cookies */
+ String fn = request.getParameter("FamilyName");
+ String gn = request.getParameter("GivenName");
+ /* set cookie domain and cookie path ! */
+ String cookieDomain = ".test.test"; /* Set this to the common domain of moa-id-proxy and of the online application */
+ String cookiePath = request.getContextPath(); /* Set this to the context path of the online application */
+
+ Cookie cfn = new Cookie("familyname", fn);
+ cfn.setDomain(cookieDomain);
+ cfn.setPath(cookiePath);
+ response.addCookie(cfn);
+
+ Cookie cgn = new Cookie("givenname", gn);
+ cgn.setDomain(cookieDomain);
+ cgn.setPath(cookiePath);
+ response.addCookie(cgn);
+
+ /* redirect to online application's start page */
+ response.sendRedirect("http://oa.test.test:8080/oa/index.jsp"); /* Substitute for URL in online application */
+%>
--
cgit v1.2.3
From bb444223c1b737319f473f6816566fa28b658cf5 Mon Sep 17 00:00:00 2001
From: mcentner
Date: Wed, 8 Aug 2007 14:06:55 +0000
Subject: id mavenized
git-svn-id: https://joinup.ec.europa.eu/svn/moa-idspss/trunk@917 d688527b-c9ab-4aba-bd8d-4036d912da1d
---
id/oa/pom.xml | 27 +++++++++++++++++++++++++++
1 file changed, 27 insertions(+)
create mode 100644 id/oa/pom.xml
(limited to 'id/oa')
diff --git a/id/oa/pom.xml b/id/oa/pom.xml
new file mode 100644
index 000000000..fec2e709b
--- /dev/null
+++ b/id/oa/pom.xml
@@ -0,0 +1,27 @@
+
+ 4.0.0
+ MOA
+ oa
+ war
+ 1.4.0
+ MOA Sample OA
+
+
+ oa
+
+
+ org.apache.maven.plugins
+ maven-compiler-plugin
+
+ true
+ true
+ ${env.BUILD_EXECUTEABLE}
+ ${env.BUILD_VERSION}
+ 1.3
+ 1.3
+
+
+
+
+
--
cgit v1.2.3
From 9b787d3409e629f292a98d0b5a0aad036b7421c7 Mon Sep 17 00:00:00 2001
From: mcentner
Date: Fri, 17 Aug 2007 08:47:35 +0000
Subject: Improved and updated maven build process.
git-svn-id: https://joinup.ec.europa.eu/svn/moa-idspss/trunk@919 d688527b-c9ab-4aba-bd8d-4036d912da1d
---
id/oa/pom.xml | 43 +++++++++++++++++--------------------------
1 file changed, 17 insertions(+), 26 deletions(-)
(limited to 'id/oa')
diff --git a/id/oa/pom.xml b/id/oa/pom.xml
index fec2e709b..4f6d64b66 100644
--- a/id/oa/pom.xml
+++ b/id/oa/pom.xml
@@ -1,27 +1,18 @@
-
- 4.0.0
- MOA
- oa
- war
- 1.4.0
- MOA Sample OA
-
-
- oa
-
-
- org.apache.maven.plugins
- maven-compiler-plugin
-
- true
- true
- ${env.BUILD_EXECUTEABLE}
- ${env.BUILD_VERSION}
- 1.3
- 1.3
-
-
-
-
+
+ 4.0.0
+ MOA
+ oa
+ war
+ 1.4.0
+ MOA Sample OA
+
+
+ ${basedir}/../../repository
+
+
+
+ oa
+
--
cgit v1.2.3
From 74a6925a47adaac292b3e2da326b08adc0239235 Mon Sep 17 00:00:00 2001
From: pdanner
Date: Tue, 4 Sep 2007 13:55:12 +0000
Subject: version change to 1.4.1
git-svn-id: https://joinup.ec.europa.eu/svn/moa-idspss/trunk@985 d688527b-c9ab-4aba-bd8d-4036d912da1d
---
id/oa/pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
(limited to 'id/oa')
diff --git a/id/oa/pom.xml b/id/oa/pom.xml
index 4f6d64b66..b712c5dde 100644
--- a/id/oa/pom.xml
+++ b/id/oa/pom.xml
@@ -5,7 +5,7 @@
MOA
oa
war
- 1.4.0
+ 1.4.1
MOA Sample OA
--
cgit v1.2.3
From 4e12d1df5daab1f7600fa3a58e6fc535375224ff Mon Sep 17 00:00:00 2001
From: pdanner
Date: Mon, 10 Sep 2007 15:16:34 +0000
Subject: moved test classes, cashing of resolved entities
git-svn-id: https://joinup.ec.europa.eu/svn/moa-idspss/trunk@1002 d688527b-c9ab-4aba-bd8d-4036d912da1d
---
id/oa/pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
(limited to 'id/oa')
diff --git a/id/oa/pom.xml b/id/oa/pom.xml
index b712c5dde..bfd4a2931 100644
--- a/id/oa/pom.xml
+++ b/id/oa/pom.xml
@@ -5,7 +5,7 @@
MOA
oa
war
- 1.4.1
+ 1.0
MOA Sample OA
--
cgit v1.2.3
From 18222e4c26ece81621f04ba090b0345da5dcac2a Mon Sep 17 00:00:00 2001
From: pdanner
Date: Fri, 14 Sep 2007 12:44:18 +0000
Subject: documented changes
git-svn-id: https://joinup.ec.europa.eu/svn/moa-idspss/trunk@1009 d688527b-c9ab-4aba-bd8d-4036d912da1d
---
id/oa/pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
(limited to 'id/oa')
diff --git a/id/oa/pom.xml b/id/oa/pom.xml
index bfd4a2931..c7fe67540 100644
--- a/id/oa/pom.xml
+++ b/id/oa/pom.xml
@@ -3,7 +3,7 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
4.0.0
MOA
- oa
+ moa-id-oa
war
1.0
MOA Sample OA
--
cgit v1.2.3
From 83f01ddf24d98dbb5df41fb627a14edee2d57df7 Mon Sep 17 00:00:00 2001
From: pdanner
Date: Wed, 17 Oct 2007 16:18:44 +0000
Subject: Implemented and integrated party representation and integrated
mandates as per default available Now Eclipse projects are available. The Web
Tools Platform can be used to run the web applications
git-svn-id: https://joinup.ec.europa.eu/svn/moa-idspss/trunk@1014 d688527b-c9ab-4aba-bd8d-4036d912da1d
---
id/oa/.classpath | 4 ++++
id/oa/.project | 14 ++++++++++++++
2 files changed, 18 insertions(+)
create mode 100644 id/oa/.classpath
create mode 100644 id/oa/.project
(limited to 'id/oa')
diff --git a/id/oa/.classpath b/id/oa/.classpath
new file mode 100644
index 000000000..5d93de69c
--- /dev/null
+++ b/id/oa/.classpath
@@ -0,0 +1,4 @@
+
+
+
+
\ No newline at end of file
diff --git a/id/oa/.project b/id/oa/.project
new file mode 100644
index 000000000..cf4d83eff
--- /dev/null
+++ b/id/oa/.project
@@ -0,0 +1,14 @@
+
+ moa-id-oa
+
+
+
+
+ org.eclipse.jdt.core.javabuilder
+
+
+
+
+ org.eclipse.jdt.core.javanature
+
+
--
cgit v1.2.3
From aebb5cd04d43b25b8d65237ba49fddf5f5dd1a8c Mon Sep 17 00:00:00 2001
From: kstranacher
Date: Tue, 7 Jul 2009 14:27:40 +0000
Subject: git-svn-id: https://joinup.ec.europa.eu/svn/moa-idspss/trunk@1114
d688527b-c9ab-4aba-bd8d-4036d912da1d
---
id/oa/.classpath | 16 ++++++++++++----
id/oa/.project | 56 ++++++++++++++++++++++++++++++++++++++++++--------------
2 files changed, 54 insertions(+), 18 deletions(-)
(limited to 'id/oa')
diff --git a/id/oa/.classpath b/id/oa/.classpath
index 5d93de69c..ed2412886 100644
--- a/id/oa/.classpath
+++ b/id/oa/.classpath
@@ -1,4 +1,12 @@
-
-
-
-
\ No newline at end of file
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/id/oa/.project b/id/oa/.project
index cf4d83eff..8513e00a3 100644
--- a/id/oa/.project
+++ b/id/oa/.project
@@ -1,14 +1,42 @@
-
- moa-id-oa
-
-
-
-
- org.eclipse.jdt.core.javabuilder
-
-
-
-
- org.eclipse.jdt.core.javanature
-
-
+
+
+ moa-id-oa
+
+
+
+
+
+ org.eclipse.wst.jsdt.core.javascriptValidator
+
+
+
+
+ org.eclipse.wst.common.project.facet.core.builder
+
+
+
+
+ org.eclipse.jdt.core.javabuilder
+
+
+
+
+ org.eclipse.wst.validation.validationbuilder
+
+
+
+
+ org.maven.ide.eclipse.maven2Builder
+
+
+
+
+
+ org.eclipse.jem.workbench.JavaEMFNature
+ org.eclipse.wst.common.modulecore.ModuleCoreNature
+ org.maven.ide.eclipse.maven2Nature
+ org.eclipse.jdt.core.javanature
+ org.eclipse.wst.common.project.facet.core.nature
+ org.eclipse.wst.jsdt.core.jsNature
+
+
--
cgit v1.2.3
From b96b2ef653f6bc62ca8a7880dde525dc44d9a8b7 Mon Sep 17 00:00:00 2001
From: kstranacher
Date: Mon, 10 Aug 2009 09:23:17 +0000
Subject: git-svn-id: https://joinup.ec.europa.eu/svn/moa-idspss/trunk@1123
d688527b-c9ab-4aba-bd8d-4036d912da1d
---
id/oa/.settings/.jsdtscope | 11 +++++++++++
id/oa/.settings/org.eclipse.jdt.core.prefs | 7 +++++++
id/oa/.settings/org.eclipse.wst.common.component | 8 ++++++++
id/oa/.settings/org.eclipse.wst.common.project.facet.core.xml | 5 +++++
id/oa/.settings/org.eclipse.wst.jsdt.ui.superType.container | 1 +
id/oa/.settings/org.eclipse.wst.jsdt.ui.superType.name | 1 +
id/oa/.settings/org.maven.ide.eclipse.prefs | 9 +++++++++
id/oa/src/main/webapp/META-INF/MANIFEST.MF | 3 +++
8 files changed, 45 insertions(+)
create mode 100644 id/oa/.settings/.jsdtscope
create mode 100644 id/oa/.settings/org.eclipse.jdt.core.prefs
create mode 100644 id/oa/.settings/org.eclipse.wst.common.component
create mode 100644 id/oa/.settings/org.eclipse.wst.common.project.facet.core.xml
create mode 100644 id/oa/.settings/org.eclipse.wst.jsdt.ui.superType.container
create mode 100644 id/oa/.settings/org.eclipse.wst.jsdt.ui.superType.name
create mode 100644 id/oa/.settings/org.maven.ide.eclipse.prefs
create mode 100644 id/oa/src/main/webapp/META-INF/MANIFEST.MF
(limited to 'id/oa')
diff --git a/id/oa/.settings/.jsdtscope b/id/oa/.settings/.jsdtscope
new file mode 100644
index 000000000..f40dd98e2
--- /dev/null
+++ b/id/oa/.settings/.jsdtscope
@@ -0,0 +1,11 @@
+
+
+
+
+
+
+
+
+
+
+
diff --git a/id/oa/.settings/org.eclipse.jdt.core.prefs b/id/oa/.settings/org.eclipse.jdt.core.prefs
new file mode 100644
index 000000000..fe7479929
--- /dev/null
+++ b/id/oa/.settings/org.eclipse.jdt.core.prefs
@@ -0,0 +1,7 @@
+#Tue Jul 07 16:07:19 CEST 2009
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.2
+org.eclipse.jdt.core.compiler.compliance=1.4
+org.eclipse.jdt.core.compiler.problem.assertIdentifier=warning
+org.eclipse.jdt.core.compiler.problem.enumIdentifier=warning
+org.eclipse.jdt.core.compiler.source=1.3
diff --git a/id/oa/.settings/org.eclipse.wst.common.component b/id/oa/.settings/org.eclipse.wst.common.component
new file mode 100644
index 000000000..10e0ef1df
--- /dev/null
+++ b/id/oa/.settings/org.eclipse.wst.common.component
@@ -0,0 +1,8 @@
+
+
+
+
+
+
+
+
diff --git a/id/oa/.settings/org.eclipse.wst.common.project.facet.core.xml b/id/oa/.settings/org.eclipse.wst.common.project.facet.core.xml
new file mode 100644
index 000000000..f30a1de6e
--- /dev/null
+++ b/id/oa/.settings/org.eclipse.wst.common.project.facet.core.xml
@@ -0,0 +1,5 @@
+
+
+
+
+
diff --git a/id/oa/.settings/org.eclipse.wst.jsdt.ui.superType.container b/id/oa/.settings/org.eclipse.wst.jsdt.ui.superType.container
new file mode 100644
index 000000000..3bd5d0a48
--- /dev/null
+++ b/id/oa/.settings/org.eclipse.wst.jsdt.ui.superType.container
@@ -0,0 +1 @@
+org.eclipse.wst.jsdt.launching.baseBrowserLibrary
\ No newline at end of file
diff --git a/id/oa/.settings/org.eclipse.wst.jsdt.ui.superType.name b/id/oa/.settings/org.eclipse.wst.jsdt.ui.superType.name
new file mode 100644
index 000000000..05bd71b6e
--- /dev/null
+++ b/id/oa/.settings/org.eclipse.wst.jsdt.ui.superType.name
@@ -0,0 +1 @@
+Window
\ No newline at end of file
diff --git a/id/oa/.settings/org.maven.ide.eclipse.prefs b/id/oa/.settings/org.maven.ide.eclipse.prefs
new file mode 100644
index 000000000..b6ca61b99
--- /dev/null
+++ b/id/oa/.settings/org.maven.ide.eclipse.prefs
@@ -0,0 +1,9 @@
+#Tue Jul 07 16:06:56 CEST 2009
+activeProfiles=
+eclipse.preferences.version=1
+fullBuildGoals=process-test-resources
+includeModules=false
+resolveWorkspaceProjects=true
+resourceFilterGoals=process-resources resources\:testResources
+skipCompilerPlugin=true
+version=1
diff --git a/id/oa/src/main/webapp/META-INF/MANIFEST.MF b/id/oa/src/main/webapp/META-INF/MANIFEST.MF
new file mode 100644
index 000000000..5e9495128
--- /dev/null
+++ b/id/oa/src/main/webapp/META-INF/MANIFEST.MF
@@ -0,0 +1,3 @@
+Manifest-Version: 1.0
+Class-Path:
+
--
cgit v1.2.3
From 27be7994027944015c290e41e688e8723965bd48 Mon Sep 17 00:00:00 2001
From: kstranacher
Date: Wed, 26 Aug 2009 11:00:54 +0000
Subject: git-svn-id: https://joinup.ec.europa.eu/svn/moa-idspss/trunk@1139
d688527b-c9ab-4aba-bd8d-4036d912da1d
---
id/oa/.project | 5 -----
1 file changed, 5 deletions(-)
(limited to 'id/oa')
diff --git a/id/oa/.project b/id/oa/.project
index 8513e00a3..4624cabc7 100644
--- a/id/oa/.project
+++ b/id/oa/.project
@@ -5,11 +5,6 @@
-
- org.eclipse.wst.jsdt.core.javascriptValidator
-
-
-
org.eclipse.wst.common.project.facet.core.builder
--
cgit v1.2.3