From c98e48c48bb49536f81e8e501583f726835164a2 Mon Sep 17 00:00:00 2001 From: Marco Amann Date: Thu, 1 Jul 2021 09:47:33 +0200 Subject: [PATCH] Changed MPA sample to use username instead of user to store authenticator --- .../webauthn/sample/app/web/WebAuthnSampleController.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/mpa/src/main/java/com/webauthn4j/springframework/security/webauthn/sample/app/web/WebAuthnSampleController.java b/samples/mpa/src/main/java/com/webauthn4j/springframework/security/webauthn/sample/app/web/WebAuthnSampleController.java index 44bd3746c..7ed680844 100644 --- a/samples/mpa/src/main/java/com/webauthn4j/springframework/security/webauthn/sample/app/web/WebAuthnSampleController.java +++ b/samples/mpa/src/main/java/com/webauthn4j/springframework/security/webauthn/sample/app/web/WebAuthnSampleController.java @@ -154,7 +154,7 @@ public String create(HttpServletRequest request, @Valid @ModelAttribute("userFor WebAuthnAuthenticator authenticator = new WebAuthnAuthenticatorImpl( "authenticator", - user, + user.getUsername(), registrationRequestValidationResponse.getAttestationObject().getAuthenticatorData().getAttestedCredentialData(), registrationRequestValidationResponse.getAttestationObject().getAttestationStatement(), registrationRequestValidationResponse.getAttestationObject().getAuthenticatorData().getSignCount(),