aboutsummaryrefslogtreecommitdiff
path: root/id.oa/html/stateful_login.jsp
diff options
context:
space:
mode:
author(no author) <(no author)@d688527b-c9ab-4aba-bd8d-4036d912da1d>2004-06-28 20:46:16 +0000
committer(no author) <(no author)@d688527b-c9ab-4aba-bd8d-4036d912da1d>2004-06-28 20:46:16 +0000
commitda5f70c20ef4bfea21c9d228e1d6891616887958 (patch)
treed05130206e29d13c6fd42003896afb2b31320999 /id.oa/html/stateful_login.jsp
parent4dd1877ef3771633e096509dae7b8c99fee9ce4b (diff)
downloadmoa-id-spss-da5f70c20ef4bfea21c9d228e1d6891616887958.tar.gz
moa-id-spss-da5f70c20ef4bfea21c9d228e1d6891616887958.tar.bz2
moa-id-spss-da5f70c20ef4bfea21c9d228e1d6891616887958.zip
This commit was manufactured by cvs2svn to create tag 'MOA-ID1_2d05'.tags/MOA-ID1_2d05
git-svn-id: https://joinup.ec.europa.eu/svn/moa-idspss/tags/MOA-ID1_2d05@145 d688527b-c9ab-4aba-bd8d-4036d912da1d
Diffstat (limited to 'id.oa/html/stateful_login.jsp')
-rw-r--r--id.oa/html/stateful_login.jsp29
1 files changed, 0 insertions, 29 deletions
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 */
-%>