[java-idp-plugin-webauthn] branch main updated: Improve log level

Phil Smart philip.smart at jisc.ac.uk
Fri Aug 16 09:56:48 UTC 2024


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

philsmart pushed a commit to branch main
in repository java-idp-plugin-webauthn.

View the commit online:
http://git.shibboleth.net/view/?p=java-idp-plugin-webauthn.git;a=commit;h=511cf4ade1eec8c67efba7b6cc7a89697697f4a0

The following commit(s) were added to refs/heads/main by this push:
     new 511cf4a  Improve log level
511cf4a is described below

commit 511cf4ade1eec8c67efba7b6cc7a89697697f4a0
Author: Phil Smart <philip.smart at jisc.ac.uk>
AuthorDate: Fri Aug 16 10:56:45 2024 +0100

    Improve log level
---
 .../plugin/authn/webauthn/context/logic/IsSecondFactor.java  | 12 ++++++------
 .../webauthn/context/logic/UsernamelessFlowEnabled.java      |  2 +-
 2 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/webauthn-api/src/main/java/net/shibboleth/idp/plugin/authn/webauthn/context/logic/IsSecondFactor.java b/webauthn-api/src/main/java/net/shibboleth/idp/plugin/authn/webauthn/context/logic/IsSecondFactor.java
index 687c853..a0ca388 100644
--- a/webauthn-api/src/main/java/net/shibboleth/idp/plugin/authn/webauthn/context/logic/IsSecondFactor.java
+++ b/webauthn-api/src/main/java/net/shibboleth/idp/plugin/authn/webauthn/context/logic/IsSecondFactor.java
@@ -148,24 +148,24 @@ public class IsSecondFactor extends AbstractInitializableComponent implements Pr
         }
         
         if (!enabled.test(input)) {
-            log.debug("Use as a second factor authentication flow disabled, assuming first factor usage");
+            log.trace("Use as a second factor authentication flow disabled, assuming first factor usage");
             return false;
         }
         
         if (secondFactorOverride.test(input)){
-            log.debug("Second factor authentication flow forced by configuration");
+            log.trace("Second factor authentication flow forced by configuration");
             return true;
         }
         
         final AuthenticationContext authnContext = input.getSubcontext(AuthenticationContext.class);
         if (authnContext == null) {
-            log.debug("Authentication context was null, assuming first factor usage");
+            log.trace("Authentication context was null, assuming first factor usage");
             return false;
         }
         final MultiFactorAuthenticationContext mfaContext = 
                 authnContext.getSubcontext(MultiFactorAuthenticationContext.class);
         if (mfaContext == null) {
-            log.debug("No MFA context available, assuming first factor usage");
+            log.trace("No MFA context available, assuming first factor usage");
             return false;
         }
         
@@ -180,11 +180,11 @@ public class IsSecondFactor extends AbstractInitializableComponent implements Pr
         foundFactor.ifPresent(factor -> log.trace("Found acceptable previous factor '{}'", factor));
         
         if (username != null && foundFactor.isPresent()) {
-            log.debug("Principal name '{}' found, and previous factor '{}' accepted, assuming second factor usage", 
+            log.trace("Principal name '{}' found, and previous factor '{}' accepted, assuming second factor usage", 
                     username, foundFactor.get());
             return true;
         } else {
-            log.debug("Request did not contain an acceptable previous factor, assuming first factor usage");
+            log.trace("Request did not contain an acceptable previous factor, assuming first factor usage");
             return false;
         }
 
diff --git a/webauthn-api/src/main/java/net/shibboleth/idp/plugin/authn/webauthn/context/logic/UsernamelessFlowEnabled.java b/webauthn-api/src/main/java/net/shibboleth/idp/plugin/authn/webauthn/context/logic/UsernamelessFlowEnabled.java
index fed84b3..50c864f 100644
--- a/webauthn-api/src/main/java/net/shibboleth/idp/plugin/authn/webauthn/context/logic/UsernamelessFlowEnabled.java
+++ b/webauthn-api/src/main/java/net/shibboleth/idp/plugin/authn/webauthn/context/logic/UsernamelessFlowEnabled.java
@@ -76,7 +76,7 @@ public class UsernamelessFlowEnabled extends AbstractInitializableComponent
             return false;
         }
         final boolean usernamelessEnabled = enabled.test(input);
-        log.debug("{}", usernamelessEnabled ? "Usernameless authentication flow initiated" : 
+        log.trace("{}", usernamelessEnabled ? "Usernameless authentication flow initiated" : 
             "Passwordless authentication flow initiated");
         return usernamelessEnabled;
     }

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


More information about the commits mailing list