Skip to content

Commit

Permalink
Ignore unknown fields of json body from webauthn server response
Browse files Browse the repository at this point in the history
  • Loading branch information
Kieun committed Dec 18, 2023
1 parent 91d3e30 commit c184126
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
package com.sktelecom.authentication.passkey.passkeyrpsample.configuration;

import com.fasterxml.jackson.annotation.JsonInclude.Include;
import com.fasterxml.jackson.databind.DeserializationFeature;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.cfg.ConstructorDetector;
import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule;
Expand Down Expand Up @@ -49,7 +50,8 @@ ObjectMapper objectMapper() {
.registerModule(new ParameterNamesModule())
.registerModule(new JavaTimeModule())
.setSerializationInclusion(Include.NON_NULL)
.setConstructorDetector(ConstructorDetector.USE_PROPERTIES_BASED);
.setConstructorDetector(ConstructorDetector.USE_PROPERTIES_BASED)
.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false);
}

@Bean
Expand Down

0 comments on commit c184126

Please sign in to comment.