[java-idp-plugin-webauthn] branch main updated: Fix uv method name

Phil Smart philip.smart at jisc.ac.uk
Tue Sep 3 11:29:41 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=d7ff412c7b649de9d955447de7304afac7637050

The following commit(s) were added to refs/heads/main by this push:
     new d7ff412  Fix uv method name
d7ff412 is described below

commit d7ff412c7b649de9d955447de7304afac7637050
Author: Phil Smart <philip.smart at jisc.ac.uk>
AuthorDate: Tue Sep 3 12:29:39 2024 +0100

    Fix uv method name
---
 .../shibboleth/idp/plugin/authn/webauthn/authn/AssertionResult.java   | 4 ++--
 .../webauthn/client/impl/YubicoWebAuthnAuthenticationClient.java      | 2 +-
 .../idp/plugin/authn/webauthn/client/impl/MockWebAuthnClient.java     | 1 +
 3 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/webauthn-api/src/main/java/net/shibboleth/idp/plugin/authn/webauthn/authn/AssertionResult.java b/webauthn-api/src/main/java/net/shibboleth/idp/plugin/authn/webauthn/authn/AssertionResult.java
index bbf221d..663af9a 100644
--- a/webauthn-api/src/main/java/net/shibboleth/idp/plugin/authn/webauthn/authn/AssertionResult.java
+++ b/webauthn-api/src/main/java/net/shibboleth/idp/plugin/authn/webauthn/authn/AssertionResult.java
@@ -176,7 +176,7 @@ public final class AssertionResult {
          * @param uv the user verified flag
          * @return the next stage
          */
-        public IBuildStage withUserId(boolean uv);
+        public IBuildStage withUserVerified(boolean uv);
     }
 
     /**
@@ -243,7 +243,7 @@ public final class AssertionResult {
         
         /** {@inheritDoc} */
         @Override
-        public IBuildStage withUserId(final boolean uv) {
+        public IBuildStage withUserVerified(final boolean uv) {
             userVerified = uv;
             return this;
         }
diff --git a/webauthn-impl/src/main/java/net/shibboleth/idp/plugin/authn/webauthn/client/impl/YubicoWebAuthnAuthenticationClient.java b/webauthn-impl/src/main/java/net/shibboleth/idp/plugin/authn/webauthn/client/impl/YubicoWebAuthnAuthenticationClient.java
index df5832d..152b737 100644
--- a/webauthn-impl/src/main/java/net/shibboleth/idp/plugin/authn/webauthn/client/impl/YubicoWebAuthnAuthenticationClient.java
+++ b/webauthn-impl/src/main/java/net/shibboleth/idp/plugin/authn/webauthn/client/impl/YubicoWebAuthnAuthenticationClient.java
@@ -188,7 +188,7 @@ public class YubicoWebAuthnAuthenticationClient implements WebAuthnAuthenticatio
                     .withUsername(result.getUsername())
                     .withSignatureCounterValid(result.isSignatureCounterValid())
                     .withUserId(result.getCredential().getUserHandle().getBytes())
-                    .withUserId(result.isUserVerified())
+                    .withUserVerified(result.isUserVerified())
                     .build();
             assert assertionResult != null;
             return assertionResult;
diff --git a/webauthn-impl/src/test/java/net/shibboleth/idp/plugin/authn/webauthn/client/impl/MockWebAuthnClient.java b/webauthn-impl/src/test/java/net/shibboleth/idp/plugin/authn/webauthn/client/impl/MockWebAuthnClient.java
index 5c0e239..3b958c0 100644
--- a/webauthn-impl/src/test/java/net/shibboleth/idp/plugin/authn/webauthn/client/impl/MockWebAuthnClient.java
+++ b/webauthn-impl/src/test/java/net/shibboleth/idp/plugin/authn/webauthn/client/impl/MockWebAuthnClient.java
@@ -156,6 +156,7 @@ public class MockWebAuthnClient implements WebAuthnAuthenticationClient {
                 .withUsername(username)
                 .withSignatureCounterValid(signatureCount)                
                 .withUserId(userId)
+                .withUserVerified(true)
                 .build();
         assert assertionResult != null;
         return assertionResult;

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


More information about the commits mailing list