aboutsummaryrefslogtreecommitdiff
path: root/id.oa/html/auth.jsp
diff options
context:
space:
mode:
authorrudolf <rudolf@d688527b-c9ab-4aba-bd8d-4036d912da1d>2003-10-24 08:18:40 +0000
committerrudolf <rudolf@d688527b-c9ab-4aba-bd8d-4036d912da1d>2003-10-24 08:18:40 +0000
commit59f78a67d7357fd31de68fc2b623f95b3d654ebc (patch)
tree9cd5d6ca30ca8a8559a99c4de8935b0947cff76b /id.oa/html/auth.jsp
parent850123b3a6832c69e282b495058308fce7691554 (diff)
downloadmoa-id-spss-59f78a67d7357fd31de68fc2b623f95b3d654ebc.tar.gz
moa-id-spss-59f78a67d7357fd31de68fc2b623f95b3d654ebc.tar.bz2
moa-id-spss-59f78a67d7357fd31de68fc2b623f95b3d654ebc.zip
MOA-ID version 1.1 (initial)
git-svn-id: https://joinup.ec.europa.eu/svn/moa-idspss/trunk@18 d688527b-c9ab-4aba-bd8d-4036d912da1d
Diffstat (limited to 'id.oa/html/auth.jsp')
-rw-r--r--id.oa/html/auth.jsp48
1 files changed, 48 insertions, 0 deletions
diff --git a/id.oa/html/auth.jsp b/id.oa/html/auth.jsp
new file mode 100644
index 000000000..0b563a83e
--- /dev/null
+++ b/id.oa/html/auth.jsp
@@ -0,0 +1,48 @@
+<html>
+<head>
+<title>MOA ID Auth Sample Login</title>
+</head>
+<body>
+<% /** 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";
+%>
+<a href="<%=urlStartAuth%>">Log in to sample application</a>
+<br>
+<a href="<%=urlStartAuthCustom%>">Log in to sample application using custom form</a>
+<br>
+<a href="<%=urlSelectBKU%>">Choose BKU (HTMLComplete or HTMLSelect) and log in</a>
+<br>
+<a href="<%=urlSelectBKUCustom%>">Choose BKU (HTMLSelect) using custom form and log in</a>
+<br>
+<a href="<%=authUrlPath+"StartAuthentication"%>">Wrong parameters example</a>
+</body>
+</html> \ No newline at end of file