changeset 8840:98a3cf810916

Fix client build. Shame on me for having not clean build before commit 2c8259176c46.
author Tom Gottfried <tom@intevation.de>
date Thu, 29 Jun 2017 18:25:20 +0200
parents 2c8259176c46
children e8d2042c9639
files gwt-client/src/main/java/org/dive4elements/river/client/server/SamlServlet.java
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/gwt-client/src/main/java/org/dive4elements/river/client/server/SamlServlet.java	Wed Jun 28 20:09:53 2017 +0200
+++ b/gwt-client/src/main/java/org/dive4elements/river/client/server/SamlServlet.java	Thu Jun 29 18:25:20 2017 +0200
@@ -72,8 +72,10 @@
         try {
             String keyfile =
                 (String)sc.getInitParameter("saml-trusted-public-key");
+            int timeEps = Integer.parseInt(
+                sc.getInitParameter("saml-time-tolerance"));
             TicketValidator validator =
-                new TicketValidator(sc.getRealPath(keyfile));
+                new TicketValidator(sc.getRealPath(keyfile), timeEps);
 
             InputStream in = new StringBufferInputStream(samlTicketXML);
             assertion = validator.checkTicket(new Base64InputStream(in));

http://dive4elements.wald.intevation.org