Skip to content

Commit

Permalink
fix: Added declaration of the deserializer. (#176)
Browse files Browse the repository at this point in the history
  • Loading branch information
antoniotarricone authored Jan 8, 2025
1 parent 75d06c2 commit b860e49
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,12 @@
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.nimbusds.jwt.SignedJWT;

import io.quarkus.runtime.annotations.RegisterForReflection;
import it.pagopa.swclient.mil.auth.util.SignedJWTDeserializer;
import it.pagopa.swclient.mil.auth.util.SignedJWTSerializer;
import lombok.AllArgsConstructor;
import lombok.Data;
Expand All @@ -35,6 +37,7 @@ public class GetAccessTokenResponse {
@JsonProperty(AuthJsonPropertyName.ACCESS_TOKEN)
@ToString.Exclude
@JsonSerialize(using = SignedJWTSerializer.class)
@JsonDeserialize(using = SignedJWTDeserializer.class)
private SignedJWT accessToken;

/*
Expand All @@ -43,6 +46,7 @@ public class GetAccessTokenResponse {
@JsonProperty(AuthJsonPropertyName.REFRESH_TOKEN)
@ToString.Exclude
@JsonSerialize(using = SignedJWTSerializer.class)
@JsonDeserialize(using = SignedJWTDeserializer.class)
private SignedJWT refreshToken;

/*
Expand Down

0 comments on commit b860e49

Please sign in to comment.