Mercurial > dive4elements > river
comparison gwt-client/src/main/java/org/dive4elements/river/client/server/SamlServlet.java @ 9577:ca19b7186294
Logging saml group-name in authentication log
author | gernotbelger |
---|---|
date | Tue, 13 Nov 2018 13:02:00 +0100 |
parents | d6d5ca6d4af0 |
children |
comparison
equal
deleted
inserted
replaced
9576:c5c53e52f190 | 9577:ca19b7186294 |
---|---|
48 if (user == null) { | 48 if (user == null) { |
49 log.debug("Authentication not successful"); | 49 log.debug("Authentication not successful"); |
50 this.redirectFailure(resp, req.getContextPath()); | 50 this.redirectFailure(resp, req.getContextPath()); |
51 return; | 51 return; |
52 } | 52 } |
53 | |
54 final String userGroup = user.getUserGroup(); | |
55 log.info(String.format("SAML-Authentication successfull: group = '%s'", userGroup)); | |
56 | |
53 this.performLogin(req, resp, user); | 57 this.performLogin(req, resp, user); |
54 log.info("Authentication with existing SAML ticket."); | |
55 } | 58 } |
56 catch (final AuthenticationException e) { | 59 catch (final AuthenticationException e) { |
57 log.error(e, e); | 60 log.error(e, e); |
58 this.redirectFailure(resp, req.getContextPath(), e); | 61 this.redirectFailure(resp, req.getContextPath(), e); |
59 } | 62 } |