From dfd1a56545a4099ae1a38fb51d62058b0e252135 Mon Sep 17 00:00:00 2001 From: Thomas Lenz Date: Mon, 9 Sep 2013 15:22:52 +0200 Subject: MOA-ID 1.9.95 --change BKU selection templates and SendAssertion Templates to responsive design. Therefore, OA parameter "useIframe" is not required anymore. --- id/ConfigWebTool/pom.xml | 6 +- .../main/resources/applicationResources.properties | 2 +- .../.settings/org.eclipse.wst.common.component | 4 +- id/server/auth/pom.xml | 2 +- id/server/auth/src/main/webapp/css/index.css | 220 +++++++++----- id/server/auth/src/main/webapp/index.html | 330 +-------------------- .../auth/src/main/webapp/template_onlineBKU.html | 4 +- id/server/idserverlib/pom.xml | 22 +- .../moa/id/auth/builder/LoginFormBuilder.java | 3 +- .../id/auth/builder/SendAssertionFormBuilder.java | 3 +- .../moa/id/auth/servlet/MonitoringServlet.java | 1 + .../protocols/pvp2x/binding/ArtifactBinding.java | 3 + .../resources/templates/loginFormFull.html | 269 +++++++++++++++++ .../resources/templates/sendAssertionFormFull.html | 56 +--- .../templates/sendAssertionFormIFrame.html | 44 --- id/server/moa-id-commons/pom.xml | 4 +- id/server/pom.xml | 2 +- .../.settings/org.eclipse.wst.common.component | 4 +- id/server/proxy/pom.xml | 4 +- 19 files changed, 456 insertions(+), 527 deletions(-) create mode 100644 id/server/idserverlib/src/main/resources/resources/templates/loginFormFull.html delete mode 100644 id/server/idserverlib/src/main/resources/resources/templates/sendAssertionFormIFrame.html diff --git a/id/ConfigWebTool/pom.xml b/id/ConfigWebTool/pom.xml index 411ef55e6..85f0f05ef 100644 --- a/id/ConfigWebTool/pom.xml +++ b/id/ConfigWebTool/pom.xml @@ -2,7 +2,7 @@ 4.0.0 MOA.id ConfigurationInterface - 0.9 + 0.9.1 war MOA-ID 2.0 Configuration Tool Web based Configuration Tool for MOA-ID 2.x @@ -25,12 +25,12 @@ MOA.id.server moa-id-commons - 1.5.2 + 1.9.95-SNAPSHOT MOA.id.server moa-id-lib - 1.9.90-SNAPSHOT + 1.9.95-SNAPSHOT diff --git a/id/ConfigWebTool/src/main/resources/applicationResources.properties b/id/ConfigWebTool/src/main/resources/applicationResources.properties index 0effc6961..b12c82b9e 100644 --- a/id/ConfigWebTool/src/main/resources/applicationResources.properties +++ b/id/ConfigWebTool/src/main/resources/applicationResources.properties @@ -141,7 +141,7 @@ webpages.oaconfig.general.bku.online=Online BKU webpages.oaconfig.general.bku.handy=Handy BKU webpages.oaconfig.general.bku.slversion=SecurityLayer Version webpages.oaconfig.general.bku.keyboxidentifier=KeyBoxIdentifier -webpages.oaconfig.general.bku.legacy=Legacy Modus +webpages.oaconfig.general.bku.legacy=SecurityLayerTemplates (Legacy Request) webpages.oaconfig.general.bku.sltemplate.first=1. SecurityLayer Template webpages.oaconfig.general.bku.sltemplate.second=2. SecurityLayer Template webpages.oaconfig.general.bku.sltemplate.third=3. SecurityLayer Template diff --git a/id/server/auth/.settings/org.eclipse.wst.common.component b/id/server/auth/.settings/org.eclipse.wst.common.component index 9725f5b61..26d55725b 100644 --- a/id/server/auth/.settings/org.eclipse.wst.common.component +++ b/id/server/auth/.settings/org.eclipse.wst.common.component @@ -6,13 +6,13 @@ uses - + uses uses - + uses diff --git a/id/server/auth/pom.xml b/id/server/auth/pom.xml index c68236e0e..bd29cde26 100644 --- a/id/server/auth/pom.xml +++ b/id/server/auth/pom.xml @@ -9,7 +9,7 @@ MOA.id.server moa-id-auth war - 1.9.90-SNAPSHOT + 1.9.95-SNAPSHOT MOA ID-Auth WebService diff --git a/id/server/auth/src/main/webapp/css/index.css b/id/server/auth/src/main/webapp/css/index.css index 2af88f24a..e57bcc99a 100644 --- a/id/server/auth/src/main/webapp/css/index.css +++ b/id/server/auth/src/main/webapp/css/index.css @@ -1,19 +1,158 @@ @charset "utf-8"; +@media screen and (min-width: 650px) { + + body { + margin:0; + padding:0; + color : #000; + background-color : #fff; + font-family : Verdana, Geneva, Arial, sans-serif; + font-size:76%; + text-align: center; + background-color: #6B7B8B; + } + + #page { + display: block; + border: 2px solid rgb(0,0,0); + width: 650px; + height: 440px; + margin: 0 auto; + margin-top: 5%; + position: relative; + border-radius: 25px; + background: rgb(255,255,255); + } + + #page1 { + text-align: center; + } + + #main { + /* clear:both; */ + position:relative; + margin: 0 auto; + width: 250px; + text-align: center; + } + + .OA_header { +/* background-color: white;*/ + font-size: 20pt; + margin-bottom: 25px; + margin-top: 25px; + } + + #leftcontent { + /*float:left; */ + width:250px; + margin-bottom: 25px; + text-align: left; + border: 1px solid rgb(0,0,0); + } + + h2#tabheader.full { + padding:5px; + font-size:20px; + color:#fff; + border-bottom:2px solid #fff; + } + + #selectArea.full { + font-size: 15px; + padding-bottom: 65px; + } + + #leftcontent.full { + width: 400px; + margin-top: 30px; + } + + #main.full { + width: 400px; + } + + .setAssertionButton_full { + background: #efefef; + cursor: pointer; + margin-top: 15px; + width: 100px; + height: 30px + } + + #leftbutton.full { + width: 30%; + float:left; + margin-left: 40px; + } + + #rightbutton.full { + width: 30%; + float:right; + margin-right: 45px; + text-align: right; + } + +} + +@media screen and (max-width: 649px) { + + body { + margin:0; + padding:0; + color : #000; + background-color : #fff; + font-family : Verdana, Geneva, Arial, sans-serif; + font-size:76%; + text-align: center; + background-color: #FFFFFF; + } + + #page { + visibility: hidden; + margin-top: 0%; + + } + + #page1 { + visibility: hidden; + } + + #main { + visibility: hidden; + } + + .OA_header { + margin-bottom: 0px; + margin-top: 0px; + font-size: 0pt; + visibility: hidden; + } + + #leftcontent { + visibility: visible; + margin-bottom: 0px; + text-align: left; + border:none; + width:250px; + } + + .setAssertionButton_full { + background: #efefef; + cursor: pointer; + margin-top: 15px; + width: 70px; + height: 25px; + } +} + * { margin:0; padding:0; border:0; } -body { - margin:0; - padding:0; - color : #000; - background-color : #fff; - font-family : Verdana, Geneva, Arial, sans-serif; - font-size:76%; -} /* skiplink */ @@ -73,20 +212,8 @@ p#skiplinks a:active { float:right; } -#main { - clear:both; - position:relative; - margin-left: 45%; -} - /* left */ -#leftcontent { - float:left; - width:250px; - margin-bottom: 25px; -} - .iframebkuselection { text-align: center; padding-bottom: 25px; @@ -103,33 +230,12 @@ h2#tabheader, h2#contentheader { border-bottom:2px solid #fff; } -h2#tabheader.full { - padding:5px; - font-size:20px; - color:#fff; - border-bottom:2px solid #fff; -} - #selectArea { padding-top: 10px; padding-bottom: 55px; padding-left: 10px; } -#selectArea.full { - font-size: 15px; - padding-bottom: 65px; -} - -#leftcontent.full { - width: 400px; - margin-top: 30px; -} - -#main.full { - margin-left: 35%; -} - .setAssertionButton { background: #efefef; cursor: pointer; @@ -138,14 +244,6 @@ h2#tabheader.full { height: 25px; } -.setAssertionButton_full { - background: #efefef; - cursor: pointer; - margin-top: 15px; - width: 100px; - height: 30px -} - #leftbutton { width: 35%; float:left; @@ -159,19 +257,6 @@ h2#tabheader.full { text-align: right; } -#leftbutton.full { - width: 30%; - float:left; - margin-left: 40px; -} - -#rightbutton.full { - width: 30%; - float:right; - margin-right: 45px; - text-align: right; -} - #stork { margin-bottom: 10px; margin-top: 5px; @@ -273,7 +358,8 @@ input { } iframe { - width:220px; + width:250px; + height: 180px } /* right */ @@ -347,14 +433,6 @@ p { color: white; } -.OA_header { - background-color: white; - font-size: 20pt; - margin-bottom: 25px; - margin-left: 25%; - margin-top: 25px; -} - .main_header { color: black; font-size: 32pt; diff --git a/id/server/auth/src/main/webapp/index.html b/id/server/auth/src/main/webapp/index.html index 83b4ee418..eee3cd69a 100644 --- a/id/server/auth/src/main/webapp/index.html +++ b/id/server/auth/src/main/webapp/index.html @@ -3,340 +3,12 @@ - MOA-Template zur Bürgerkartenauswahl (Musterseite) + MOA-ID 2.0 Mainpage - - -
- - -
-
-

- Login mit Bürgerkarte -

-
- - - - -
- - - -s - - - - - -
- -
-

- B6uuml;rgerkarte aktivieren -

-
- -
- -

- Hinweise zum MOA-Template -

- -
-

- Eine Anleitung zur Nutzung des MOA-Template finden Sie hier: BKAuswahl-MOA-Template-Howto.pdf (PDF, 190B). - So müssen vor einem Login noch die Parameter für den MOA-ID Aufruf angegeben werden.

-

- Diese Musterseite erfüllt die Richtlinie für barrierefreie Webinhalte 2.0 (WCAG 2.0 des W3C) Stufe AA. Das Prüfprotokoll hierzu finden Sie hier: Pruefprotokoll.pdf (PDF, 705kB). -

-
-
-
-
\ No newline at end of file diff --git a/id/server/auth/src/main/webapp/template_onlineBKU.html b/id/server/auth/src/main/webapp/template_onlineBKU.html index dceae1a75..7e3fbc99c 100644 --- a/id/server/auth/src/main/webapp/template_onlineBKU.html +++ b/id/server/auth/src/main/webapp/template_onlineBKU.html @@ -19,8 +19,8 @@ - - + + diff --git a/id/server/idserverlib/pom.xml b/id/server/idserverlib/pom.xml index 69e1c8c18..37663c08b 100644 --- a/id/server/idserverlib/pom.xml +++ b/id/server/idserverlib/pom.xml @@ -9,7 +9,7 @@ MOA.id.server moa-id-lib jar - 1.9.90-SNAPSHOT + 1.9.95-SNAPSHOT MOA ID API @@ -17,6 +17,16 @@ + + MOA.id + stork-saml-engine + 1.5.2 + + + MOA.id.server + moa-id-commons + ${project.version} + MOA moa-common @@ -147,16 +157,6 @@ commons-lang 2.6 - - MOA.id - stork-saml-engine - 1.5.2 - - - MOA.id.server - moa-id-commons - 1.5.2 - diff --git a/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/auth/builder/LoginFormBuilder.java b/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/auth/builder/LoginFormBuilder.java index a80fcfa25..ee5afa5dc 100644 --- a/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/auth/builder/LoginFormBuilder.java +++ b/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/auth/builder/LoginFormBuilder.java @@ -20,7 +20,8 @@ public class LoginFormBuilder { private static final String HTMLTEMPLATESDIR = "htmlTemplates/"; private static final String HTMLTEMPLATEFULL = "loginFormFull.html"; - private static final String HTMLTEMPLATEIFRAME = "loginFormIFrame.html"; + private static final String HTMLTEMPLATEIFRAME = "loginFormFull.html"; + //private static final String HTMLTEMPLATEIFRAME = "loginFormIFrame.html"; private static String AUTH_URL = "#AUTH_URL#"; private static String MODUL = "#MODUL#"; diff --git a/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/auth/builder/SendAssertionFormBuilder.java b/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/auth/builder/SendAssertionFormBuilder.java index 956593237..59cbbe25e 100644 --- a/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/auth/builder/SendAssertionFormBuilder.java +++ b/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/auth/builder/SendAssertionFormBuilder.java @@ -20,7 +20,8 @@ public class SendAssertionFormBuilder { private static final String HTMLTEMPLATESDIR = "htmlTemplates/"; private static final String HTMLTEMPLATEFULL = "sendAssertionFormFull.html"; - private static final String HTMLTEMPLATEIFRAME = "sendAssertionFormIFrame.html"; + private static final String HTMLTEMPLATEIFRAME = "sendAssertionFormFull.html"; + //private static final String HTMLTEMPLATEIFRAME = "sendAssertionFormIFrame.html"; private static String URL = "#URL#"; private static String MODUL = "#MODUL#"; diff --git a/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/auth/servlet/MonitoringServlet.java b/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/auth/servlet/MonitoringServlet.java index 4ba282dc1..4cd471db0 100644 --- a/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/auth/servlet/MonitoringServlet.java +++ b/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/auth/servlet/MonitoringServlet.java @@ -38,6 +38,7 @@ public class MonitoringServlet extends AuthServlet { } else { resp.setStatus(HttpServletResponse.SC_OK); + resp.setContentType("text/html;charset=UTF-8"); Logger.info("Monitoring Servlet finished without errors"); } diff --git a/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/protocols/pvp2x/binding/ArtifactBinding.java b/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/protocols/pvp2x/binding/ArtifactBinding.java index 1d51d91f1..baea32f28 100644 --- a/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/protocols/pvp2x/binding/ArtifactBinding.java +++ b/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/protocols/pvp2x/binding/ArtifactBinding.java @@ -73,6 +73,9 @@ public class ArtifactBinding implements IDecoder, IEncoder { } catch (CredentialsNotAvailableException e) { e.printStackTrace(); throw new SecurityException(e); + + } catch (Exception e) { + throw new SecurityException(e); } } diff --git a/id/server/idserverlib/src/main/resources/resources/templates/loginFormFull.html b/id/server/idserverlib/src/main/resources/resources/templates/loginFormFull.html new file mode 100644 index 000000000..c6b98dc85 --- /dev/null +++ b/id/server/idserverlib/src/main/resources/resources/templates/loginFormFull.html @@ -0,0 +1,269 @@ + + + + + + + + + + + + +
+ +
+ +

Anmeldung an: #OAName#

+ +
+
+

+ Login mit Bürgerkarte +

+
+ +
+ + + + + + + +
i
+
+ +
+ +
+ +
+ +
+ + + +
+
+
+ + + + + + + + +
+

+ Alternativ können Sie eine lokal installierte BKU verwenden. +

+
+ +
+
+

+ Home Country Selection +

+
+

+ + + i +

+
+
+ + + +
+
+
+
+ + diff --git a/id/server/idserverlib/src/main/resources/resources/templates/sendAssertionFormFull.html b/id/server/idserverlib/src/main/resources/resources/templates/sendAssertionFormFull.html index f4377ace4..f977b1d2e 100644 --- a/id/server/idserverlib/src/main/resources/resources/templates/sendAssertionFormFull.html +++ b/id/server/idserverlib/src/main/resources/resources/templates/sendAssertionFormFull.html @@ -3,47 +3,13 @@ - - - - -
- -
- - - -
- -
-
@@ -65,7 +31,7 @@ - +
@@ -74,7 +40,7 @@ - +
@@ -82,24 +48,6 @@
-
- - -
- - - - diff --git a/id/server/idserverlib/src/main/resources/resources/templates/sendAssertionFormIFrame.html b/id/server/idserverlib/src/main/resources/resources/templates/sendAssertionFormIFrame.html deleted file mode 100644 index a30bbfa9a..000000000 --- a/id/server/idserverlib/src/main/resources/resources/templates/sendAssertionFormIFrame.html +++ /dev/null @@ -1,44 +0,0 @@ - - - - - - - - - -
-

- Anmeldeinformationen: - -

- -
- Anmeldung an: -

#OAName#

- - - -
-
- - - - - -
-
-
-
- - - - - -
-
- -
-
- - diff --git a/id/server/moa-id-commons/pom.xml b/id/server/moa-id-commons/pom.xml index f04de3ad8..4bf57d743 100644 --- a/id/server/moa-id-commons/pom.xml +++ b/id/server/moa-id-commons/pom.xml @@ -3,11 +3,12 @@ MOA.id moa-id - 1.5.2 + 1.9.95-SNAPSHOT moa-id-commons moa-id-commons MOA.id.server + 1.9.95-SNAPSHOT @@ -179,5 +180,4 @@
- 1.5.2 \ No newline at end of file diff --git a/id/server/pom.xml b/id/server/pom.xml index 777715c3b..b3d467294 100644 --- a/id/server/pom.xml +++ b/id/server/pom.xml @@ -11,7 +11,7 @@ MOA.id moa-id pom - 1.5.2 + 1.9.95-SNAPSHOT MOA ID Server diff --git a/id/server/proxy/.settings/org.eclipse.wst.common.component b/id/server/proxy/.settings/org.eclipse.wst.common.component index 4fc6832e5..ed42e9405 100644 --- a/id/server/proxy/.settings/org.eclipse.wst.common.component +++ b/id/server/proxy/.settings/org.eclipse.wst.common.component @@ -6,13 +6,13 @@ uses - + uses uses - + uses diff --git a/id/server/proxy/pom.xml b/id/server/proxy/pom.xml index 3cf7a3316..fad47450b 100644 --- a/id/server/proxy/pom.xml +++ b/id/server/proxy/pom.xml @@ -13,7 +13,7 @@ MOA.id.server moa-id-proxy war - 1.9.90-SNAPSHOT + 1.9.95-SNAPSHOT MOA ID-Proxy WebService @@ -63,7 +63,7 @@ MOA.id.server moa-id-lib - 1.9.90-SNAPSHOT + 1.9.95-SNAPSHOT -- cgit v1.2.3