[PATCH] Logging saml group-name in authentication log
Wald Commits
scm-commit at wald.intevation.org
Tue Nov 13 13:02:08 CET 2018
# HG changeset patch
# User gernotbelger
# Date 1542110520 -3600
# Node ID ca19b718629455bf16747541dcac59433b53e91d
# Parent c5c53e52f19039ee5965f4b2a89e96923474b2e1
Logging saml group-name in authentication log
diff -r c5c53e52f190 -r ca19b7186294 gwt-client/src/main/java/org/dive4elements/river/client/server/LoginServlet.java
--- a/gwt-client/src/main/java/org/dive4elements/river/client/server/LoginServlet.java Wed Nov 07 14:23:47 2018 +0100
+++ b/gwt-client/src/main/java/org/dive4elements/river/client/server/LoginServlet.java Tue Nov 13 13:02:00 2018 +0100
@@ -49,9 +49,10 @@
}
final User user = aresp.getUser();
+
final String userGroup = user.getUserGroup();
+ log.info(String.format("Login-Authentication successfull: group = '%s'", userGroup));
- log.info(String.format("Authentication successfull: group = '%s'", userGroup));
this.performLogin(req, resp, user);
}
catch (final AuthenticationException e) {
diff -r c5c53e52f190 -r ca19b7186294 gwt-client/src/main/java/org/dive4elements/river/client/server/SamlServlet.java
--- a/gwt-client/src/main/java/org/dive4elements/river/client/server/SamlServlet.java Wed Nov 07 14:23:47 2018 +0100
+++ b/gwt-client/src/main/java/org/dive4elements/river/client/server/SamlServlet.java Tue Nov 13 13:02:00 2018 +0100
@@ -50,8 +50,11 @@
this.redirectFailure(resp, req.getContextPath());
return;
}
+
+ final String userGroup = user.getUserGroup();
+ log.info(String.format("SAML-Authentication successfull: group = '%s'", userGroup));
+
this.performLogin(req, resp, user);
- log.info("Authentication with existing SAML ticket.");
}
catch (final AuthenticationException e) {
log.error(e, e);
More information about the Dive4Elements-commits
mailing list