diff --git a/jans-fido2/server/src/main/java/io/jans/fido2/service/sg/converter/AssertionSuperGluuController.java b/jans-fido2/server/src/main/java/io/jans/fido2/service/sg/converter/AssertionSuperGluuController.java index f7ae97d054f..52afbaa0432 100644 --- a/jans-fido2/server/src/main/java/io/jans/fido2/service/sg/converter/AssertionSuperGluuController.java +++ b/jans-fido2/server/src/main/java/io/jans/fido2/service/sg/converter/AssertionSuperGluuController.java @@ -209,7 +209,7 @@ public JsonNode finishAuthentication(String userName, String authenticateRespons try { byte[] authData = generateAuthData(authenticateResponse.getClientData(), rawAuthenticateResponse); - response.put("authenticatorData", authData); + response.put("authenticatorData", base64Service.urlEncodeToString(authData)); response.put("attestationObject", base64Service.urlEncodeToString(dataMapperService.cborWriteAsBytes(attestationObject))); } catch (IOException e) { throw new Fido2RuntimeException("Failed to prepare attestationObject");