Skip to content

Commit

Permalink
[BE] JWT 파싱 VO에서 존재하지 않는 필드가 들어오면 무시하도록 변경 (@JsonIgnoreProperties)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jinwook94 committed Jan 30, 2024
1 parent d760210 commit fd6a240
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions backend/src/main/java/com/bootme/auth/dto/JwtVo.java
@@ -1,5 +1,6 @@
package com.bootme.auth.dto;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Getter;
Expand Down Expand Up @@ -30,6 +31,7 @@ public Header(String kid, String typ, String alg) {
}

@Getter
@JsonIgnoreProperties(ignoreUnknown = true)
public static class Body implements UserInfo {
private String oAuthProvider;
private String iss;
Expand Down

0 comments on commit fd6a240

Please sign in to comment.