From 56ed4518d7978c064af5f240494bf587136c93b0 Mon Sep 17 00:00:00 2001 From: rudolf Date: Mon, 15 Mar 2004 16:07:52 +0000 Subject: RSCH git-svn-id: https://joinup.ec.europa.eu/svn/moa-idspss/trunk@99 d688527b-c9ab-4aba-bd8d-4036d912da1d --- id.server/html/auth/WEB-INF/web.xml | 19 +++++++++++++++ id.server/html/auth/errorpage-auth.jsp | 41 ++++++++++++++++++++++++++++++++ id.server/html/auth/errorpage.jsp | 41 -------------------------------- id.server/html/auth/index.jsp | 6 ++--- id.server/html/auth/message-auth.jsp | 20 ++++++++++++++++ id.server/html/proxy/WEB-INF/web.xml | 23 ++++++++++++++++++ id.server/html/proxy/errorpage-proxy.jsp | 41 ++++++++++++++++++++++++++++++++ id.server/html/proxy/message-proxy.jsp | 20 ++++++++++++++++ 8 files changed, 167 insertions(+), 44 deletions(-) create mode 100644 id.server/html/auth/errorpage-auth.jsp delete mode 100644 id.server/html/auth/errorpage.jsp create mode 100644 id.server/html/auth/message-auth.jsp create mode 100644 id.server/html/proxy/errorpage-proxy.jsp create mode 100644 id.server/html/proxy/message-proxy.jsp (limited to 'id.server/html') diff --git a/id.server/html/auth/WEB-INF/web.xml b/id.server/html/auth/WEB-INF/web.xml index 9f713408c..85fc3d87a 100644 --- a/id.server/html/auth/WEB-INF/web.xml +++ b/id.server/html/auth/WEB-INF/web.xml @@ -41,6 +41,25 @@ org.apache.axis.transport.http.AxisServlet + + + + jspservlet + org.apache.jasper.servlet.JspServlet + + + + + + jspservlet + /errorpage-auth.jsp + + + + jspservlet + /message-auth.jsp + + SelectBKU /SelectBKU diff --git a/id.server/html/auth/errorpage-auth.jsp b/id.server/html/auth/errorpage-auth.jsp new file mode 100644 index 000000000..afb4b2281 --- /dev/null +++ b/id.server/html/auth/errorpage-auth.jsp @@ -0,0 +1,41 @@ + +<%@ page contentType="text/html; charset=UTF-8" %> + + +Ein Fehler ist aufgetreten + +<% Throwable exceptionThrown = (Throwable)request.getAttribute("ExceptionThrown"); + String errorMessage = (String)request.getAttribute("ErrorMessage"); + String wrongParameters = (String)request.getAttribute("WrongParameters"); +%> + + +

Fehler bei der Anmeldung

+

Bei der Anmeldung ist ein Fehler aufgetreten.

+ +<% if (errorMessage != null) { %> +

+<%= errorMessage%>
+

+<% } %> +<% if (exceptionThrown != null) { %> +

+<%= exceptionThrown.getMessage()%> +

+<% } %> +<% if (wrongParameters != null) { %> +

Die Angabe der Parameter ist unvollständig.

+ <%= wrongParameters %>
+

+ Beispiele für korrekte Links zur MOA-ID Authentisierung sind: +

+

+<a href="https://<MOA-URL>/StartAuthentication?Target=<Geschäftsbereich>&OA=<OA-URL>&Template=<Template-URL>"> +

+

+<a href="https://<MOA-URL>/SelectBKU?Target=<Geschäftsbereich>&OA=<OA-URL>&Template=<Template-URL>&BKUSelectionTemplate=<BKU-Template-URL>"> +

+

Die Angabe der Parameter "Template" und "BKUSelectionTemplate" ist optional.

+<% } %> + + \ No newline at end of file diff --git a/id.server/html/auth/errorpage.jsp b/id.server/html/auth/errorpage.jsp deleted file mode 100644 index ee8c88028..000000000 --- a/id.server/html/auth/errorpage.jsp +++ /dev/null @@ -1,41 +0,0 @@ - -<%@ page contentType="text/html; charset=UTF-8" %> - - -Fehler - -<% Throwable exceptionThrown = (Throwable)request.getAttribute("ExceptionThrown"); - String errorMessage = (String)request.getAttribute("ErrorMessage"); - String wrongParameters = (String)request.getAttribute("WrongParameters"); -%> - - -

Fehler bei der Anmeldung

-

Bei der Anmeldung ist ein Fehler aufgetreten.

- -<% if (errorMessage != null) { %> -

-<%= errorMessage%>
-

-<% } %> -<% if (exceptionThrown != null) { %> -

-<%= exceptionThrown.getMessage()%> -

-<% } %> -<% if (wrongParameters != null) { %> -

Die Angabe der Parameter ist unvollständig.

- <%= wrongParameters %>
-

- Beispiele für korrekte Links zur MOA-ID Authentisierung sind: -

-

-<a href="https://<MOA-URL>/StartAuthentication?Target=<Geschäftsbereich>&OA=<OA-URL>&Template=<Template-URL>"> -

-

-<a href="https://<MOA-URL>/SelectBKU?Target=<Geschäftsbereich>&OA=<OA-URL>&Template=<Template-URL>&BKUSelectionTemplate=<BKU-Template-URL>"> -

-

Die Angabe der Parameter "Template" und "BKUSelectionTemplate" ist optional.

-<% } %> - - \ No newline at end of file diff --git a/id.server/html/auth/index.jsp b/id.server/html/auth/index.jsp index cb9dde3d9..733ba317f 100644 --- a/id.server/html/auth/index.jsp +++ b/id.server/html/auth/index.jsp @@ -10,13 +10,13 @@ + request.getContextPath() + "/"; String params = "Target=gb&" + - "OA=https://10.16.126.28:9443/moa-id-proxy/index.jsp"; + "OA=https://localhost:8443/moa-id-proxy/index.jsp"; String urlStartAuth = urlPath + "StartAuthentication?" + params; String templateParam = - "&Template=http://10.16.46.108:18080/oa/AuthTemplate.jsp"; + "&Template=http://localhost:18080/oa/AuthTemplate.jsp"; String urlStartAuthCustom = urlStartAuth + templateParam; @@ -27,7 +27,7 @@ String urlSelectBKUCustom = urlSelectBKU + templateParam + - "&BKUSelectionTemplate=http://10.16.46.108:18080/oa/BKUSelectionTemplate.jsp"; + "&BKUSelectionTemplate=http://localhost:18080/oa/BKUSelectionTemplate.jsp"; %> Log in to sample application
diff --git a/id.server/html/auth/message-auth.jsp b/id.server/html/auth/message-auth.jsp new file mode 100644 index 000000000..0c28c1ba7 --- /dev/null +++ b/id.server/html/auth/message-auth.jsp @@ -0,0 +1,20 @@ + +<%@ page contentType="text/html; charset=UTF-8" %> + + +MOA-ID AUTH + +<% String message = (String)request.getAttribute("Message"); +%> + + +

MOA-ID AUTH

+ +<% if (message != null) { %> +

+<%= message%>
+

+<% } %> + + + \ No newline at end of file diff --git a/id.server/html/proxy/WEB-INF/web.xml b/id.server/html/proxy/WEB-INF/web.xml index 9145a48d6..ab67855c2 100644 --- a/id.server/html/proxy/WEB-INF/web.xml +++ b/id.server/html/proxy/WEB-INF/web.xml @@ -16,6 +16,25 @@ Update MOA-ID Proxy configuration from the configuration file at.gv.egovernment.moa.id.proxy.servlet.ConfigurationServlet + + + + jspservlet + org.apache.jasper.servlet.JspServlet + + + + + + jspservlet + /errorpage-proxy.jsp + + + + jspservlet + /message-proxy.jsp + + ConfigurationUpdate /ConfigurationUpdate @@ -27,6 +46,10 @@ 30 + + 500 + /errorpage.jsp + ConfigurationUpdate diff --git a/id.server/html/proxy/errorpage-proxy.jsp b/id.server/html/proxy/errorpage-proxy.jsp new file mode 100644 index 000000000..afb4b2281 --- /dev/null +++ b/id.server/html/proxy/errorpage-proxy.jsp @@ -0,0 +1,41 @@ + +<%@ page contentType="text/html; charset=UTF-8" %> + + +Ein Fehler ist aufgetreten + +<% Throwable exceptionThrown = (Throwable)request.getAttribute("ExceptionThrown"); + String errorMessage = (String)request.getAttribute("ErrorMessage"); + String wrongParameters = (String)request.getAttribute("WrongParameters"); +%> + + +

Fehler bei der Anmeldung

+

Bei der Anmeldung ist ein Fehler aufgetreten.

+ +<% if (errorMessage != null) { %> +

+<%= errorMessage%>
+

+<% } %> +<% if (exceptionThrown != null) { %> +

+<%= exceptionThrown.getMessage()%> +

+<% } %> +<% if (wrongParameters != null) { %> +

Die Angabe der Parameter ist unvollständig.

+ <%= wrongParameters %>
+

+ Beispiele für korrekte Links zur MOA-ID Authentisierung sind: +

+

+<a href="https://<MOA-URL>/StartAuthentication?Target=<Geschäftsbereich>&OA=<OA-URL>&Template=<Template-URL>"> +

+

+<a href="https://<MOA-URL>/SelectBKU?Target=<Geschäftsbereich>&OA=<OA-URL>&Template=<Template-URL>&BKUSelectionTemplate=<BKU-Template-URL>"> +

+

Die Angabe der Parameter "Template" und "BKUSelectionTemplate" ist optional.

+<% } %> + + \ No newline at end of file diff --git a/id.server/html/proxy/message-proxy.jsp b/id.server/html/proxy/message-proxy.jsp new file mode 100644 index 000000000..0d970898a --- /dev/null +++ b/id.server/html/proxy/message-proxy.jsp @@ -0,0 +1,20 @@ + +<%@ page contentType="text/html; charset=UTF-8" %> + + +MOA-ID Proxy + +<% String message = (String)request.getAttribute("Message"); +%> + + +

MOA-ID Proxy

+ +<% if (message != null) { %> +

+<%= message%>
+

+<% } %> + + + \ No newline at end of file -- cgit v1.2.3