[java-identity-provider] branch master updated: Include JAAS config name in success/failure logging.

Scott Cantor cantor.2 at osu.edu
Wed May 31 15:12:35 EDT 2017


This is an automated email from the git hooks/post-receive script.

scantor pushed a commit to branch master
in repository java-identity-provider.

View the commit online:
http://git.shibboleth.net/view/?p=java-identity-provider.git;a=commit;h=087df8f37fc601b16df7097e0e36ca21fd720af9

The following commit(s) were added to refs/heads/master by this push:
       new  087df8f   Include JAAS config name in success/failure logging.
087df8f is described below

commit 087df8f37fc601b16df7097e0e36ca21fd720af9
Author: Scott Cantor <cantor.2 at osu.edu>
AuthorDate: Wed May 31 15:12:32 2017 -0400

    Include JAAS config name in success/failure logging.
---
 .../idp/authn/impl/ValidateUsernamePasswordAgainstJAAS.java    | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/idp-authn-impl/src/main/java/net/shibboleth/idp/authn/impl/ValidateUsernamePasswordAgainstJAAS.java b/idp-authn-impl/src/main/java/net/shibboleth/idp/authn/impl/ValidateUsernamePasswordAgainstJAAS.java
index b07e2fb..a189933 100644
--- a/idp-authn-impl/src/main/java/net/shibboleth/idp/authn/impl/ValidateUsernamePasswordAgainstJAAS.java
+++ b/idp-authn-impl/src/main/java/net/shibboleth/idp/authn/impl/ValidateUsernamePasswordAgainstJAAS.java
@@ -243,20 +243,22 @@ public class ValidateUsernamePasswordAgainstJAAS extends AbstractUsernamePasswor
                 log.debug("{} Attempting to authenticate user '{}' via '{}'", getLogPrefix(),
                         getUsernamePasswordContext().getUsername(), currentLoginConfigName);
                 authenticate(currentLoginConfigName);
-                log.info("{} Login by '{}' succeeded", getLogPrefix(), getUsernamePasswordContext().getUsername());
+                log.info("{} Login by '{}' via '{}' succeeded", getLogPrefix(),
+                        getUsernamePasswordContext().getUsername(), currentLoginConfigName);
                 recordSuccess(profileRequestContext);
                 derivedSubject = loginConfig.getSecond();
                 buildAuthenticationResult(profileRequestContext, authenticationContext);
                 ActionSupport.buildProceedEvent(profileRequestContext);
                 return;
             } catch (final LoginException e){ 
-                log.info("{} Login by '{}' failed", getLogPrefix(), getUsernamePasswordContext().getUsername(), e);
+                log.info("{} Login by '{}' via '{}' failed", getLogPrefix(), getUsernamePasswordContext().getUsername(),
+                        currentLoginConfigName, e);
                 handleError(profileRequestContext, authenticationContext, e, AuthnEventIds.INVALID_CREDENTIALS);
                 recordFailure(profileRequestContext, true);
                 eventSignaled = true;
             } catch (final Exception e) {
-                log.warn("{} Login by '{}' produced exception", getLogPrefix(),
-                        getUsernamePasswordContext().getUsername(), e);
+                log.warn("{} Login by '{}' via '{}' produced exception", getLogPrefix(),
+                        getUsernamePasswordContext().getUsername(), currentLoginConfigName, e);
                 handleError(profileRequestContext, authenticationContext, e, AuthnEventIds.AUTHN_EXCEPTION);
                 recordFailure(profileRequestContext, false);
                 eventSignaled = true;

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the commits mailing list