Skip to content

Commit

Permalink
fix: fix authenticatorData encoding (#3815)
Browse files Browse the repository at this point in the history
  • Loading branch information
yurem committed Feb 9, 2023
1 parent d3bcf2a commit 687cb2a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit 687cb2a

Please sign in to comment.