From 7916c117627db0411b35f202f88b2ab6e115361a Mon Sep 17 00:00:00 2001 From: "(no author)" <(no author)@d688527b-c9ab-4aba-bd8d-4036d912da1d> Date: Fri, 28 Jan 2005 14:10:50 +0000 Subject: This commit was manufactured by cvs2svn to create tag 'MOA-ID-1_20d09'. git-svn-id: https://joinup.ec.europa.eu/svn/moa-idspss/tags/MOA-ID-1_20d09@264 d688527b-c9ab-4aba-bd8d-4036d912da1d --- id.oa/.classpath | 6 ----- id.oa/.cvsignore | 1 - id.oa/.project | 23 ----------------- id.oa/build.xml | 32 ------------------------ id.oa/html/auth.jsp | 48 ------------------------------------ id.oa/html/chooseBKU.jsp | 19 -------------- id.oa/html/form.jsp | 20 --------------- id.oa/html/getBKUSelectTag.jsp | 6 ----- id.oa/html/index.jsp | 56 ------------------------------------------ id.oa/html/stateful_login.jsp | 29 ---------------------- id.oa/web.xml | 9 ------- 11 files changed, 249 deletions(-) delete mode 100644 id.oa/.classpath delete mode 100644 id.oa/.cvsignore delete mode 100644 id.oa/.project delete mode 100644 id.oa/build.xml delete mode 100644 id.oa/html/auth.jsp delete mode 100644 id.oa/html/chooseBKU.jsp delete mode 100644 id.oa/html/form.jsp delete mode 100644 id.oa/html/getBKUSelectTag.jsp delete mode 100644 id.oa/html/index.jsp delete mode 100644 id.oa/html/stateful_login.jsp delete mode 100644 id.oa/web.xml (limited to 'id.oa') diff --git a/id.oa/.classpath b/id.oa/.classpath deleted file mode 100644 index 5af765a17..000000000 --- a/id.oa/.classpath +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - diff --git a/id.oa/.cvsignore b/id.oa/.cvsignore deleted file mode 100644 index a9a5aecf4..000000000 --- a/id.oa/.cvsignore +++ /dev/null @@ -1 +0,0 @@ -tmp diff --git a/id.oa/.project b/id.oa/.project deleted file mode 100644 index e49130a5f..000000000 --- a/id.oa/.project +++ /dev/null @@ -1,23 +0,0 @@ - - - id.oa - - - - - - org.eclipse.jdt.core.javabuilder - - - - - com.ibm.etools.ctc.serviceprojectbuilder - - - - - - org.eclipse.jdt.core.javanature - com.ibm.etools.ctc.javaprojectnature - - diff --git a/id.oa/build.xml b/id.oa/build.xml deleted file mode 100644 index adb191e76..000000000 --- a/id.oa/build.xml +++ /dev/null @@ -1,32 +0,0 @@ - - - - - - - - - - Time (hhmm): ${TSTAMP} - - - - - - - - - - - - - - - - diff --git a/id.oa/html/auth.jsp b/id.oa/html/auth.jsp deleted file mode 100644 index 0b563a83e..000000000 --- a/id.oa/html/auth.jsp +++ /dev/null @@ -1,48 +0,0 @@ - - -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/html/chooseBKU.jsp b/id.oa/html/chooseBKU.jsp deleted file mode 100644 index 0135b6fdf..000000000 --- a/id.oa/html/chooseBKU.jsp +++ /dev/null @@ -1,19 +0,0 @@ - - -BKU Auswahl - - -

BKU Auswahl

-

-

"> - - -
-

- - \ No newline at end of file diff --git a/id.oa/html/form.jsp b/id.oa/html/form.jsp deleted file mode 100644 index d439fa84d..000000000 --- a/id.oa/html/form.jsp +++ /dev/null @@ -1,20 +0,0 @@ -<%@ page import="java.util.*" %> - - -Sample Online Application - - -

Sample Form

-

-

-<% String param1 = request.getParameter("param1"); - if (param1 == null) param1 = ""; %> -Input some text: - -
Previous text input: <%=param1%>
- -
-

-

Back

- - \ No newline at end of file diff --git a/id.oa/html/getBKUSelectTag.jsp b/id.oa/html/getBKUSelectTag.jsp deleted file mode 100644 index 028dbd348..000000000 --- a/id.oa/html/getBKUSelectTag.jsp +++ /dev/null @@ -1,6 +0,0 @@ - diff --git a/id.oa/html/index.jsp b/id.oa/html/index.jsp deleted file mode 100644 index 5111e5103..000000000 --- a/id.oa/html/index.jsp +++ /dev/null @@ -1,56 +0,0 @@ -<%@ page import="java.util.*,javax.servlet.http.*,sun.misc.BASE64Decoder" %> - - -Sample Online Application - - -

Sample Online Application

- -

Request headers: - - <% - /* collect parameters from request */ - for (Enumeration enum = request.getHeaderNames(); enum.hasMoreElements(); ) { - String key = (String) enum.nextElement(); - String value = request.getHeader(key); %> - - <% } %> -
<%=key%><%=value%>
-

- -

Request parameters: - - <% - /* collect parameters from request */ - for (Enumeration enum = request.getParameterNames(); enum.hasMoreElements(); ) { - String name = (String) enum.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/html/stateful_login.jsp b/id.oa/html/stateful_login.jsp deleted file mode 100644 index eaede507f..000000000 --- a/id.oa/html/stateful_login.jsp +++ /dev/null @@ -1,29 +0,0 @@ -<%@ 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 */ -%> diff --git a/id.oa/web.xml b/id.oa/web.xml deleted file mode 100644 index 13158fdaa..000000000 --- a/id.oa/web.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - Sample OA - MOA Sample OA - - -- cgit v1.2.3