Mercurial > dive4elements > river
changeset 9577:ca19b7186294
Logging saml group-name in authentication log
author | gernotbelger |
---|---|
date | Tue, 13 Nov 2018 13:02:00 +0100 |
parents | c5c53e52f190 |
children | 3dfcb6e1c4d6 |
files | gwt-client/src/main/java/org/dive4elements/river/client/server/LoginServlet.java gwt-client/src/main/java/org/dive4elements/river/client/server/SamlServlet.java |
diffstat | 2 files changed, 6 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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) {
--- 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);