diff --git a/src/main/java/com/startlion/startlionserver/config/SecurityConfig.java b/src/main/java/com/startlion/startlionserver/config/SecurityConfig.java index c7b6b96..c2485d4 100644 --- a/src/main/java/com/startlion/startlionserver/config/SecurityConfig.java +++ b/src/main/java/com/startlion/startlionserver/config/SecurityConfig.java @@ -28,6 +28,7 @@ public class SecurityConfig { private static final String[] AUTH_WHITE_LIST = { "", + "sign-in", "/", "/health", "/login/oauth2/code/google", diff --git a/src/main/java/com/startlion/startlionserver/controller/AuthApiController.java b/src/main/java/com/startlion/startlionserver/controller/AuthApiController.java index 3691d8d..47c7aac 100644 --- a/src/main/java/com/startlion/startlionserver/controller/AuthApiController.java +++ b/src/main/java/com/startlion/startlionserver/controller/AuthApiController.java @@ -25,7 +25,7 @@ public class AuthApiController implements AuthApi { private final AuthValueConfig valueConfig; @Override - @GetMapping("/login") + @GetMapping("/sign-in") public ResponseEntity getGoogleAuthUrl(HttpServletResponse response) throws Exception { val reqUrl = valueConfig.getGoogleLoginUrl() diff --git a/src/main/java/com/startlion/startlionserver/domain/entity/User.java b/src/main/java/com/startlion/startlionserver/domain/entity/User.java index e7a92b4..d950043 100644 --- a/src/main/java/com/startlion/startlionserver/domain/entity/User.java +++ b/src/main/java/com/startlion/startlionserver/domain/entity/User.java @@ -23,13 +23,14 @@ public class User extends BaseTimeEntity { private String password; // 단방향 암호화 필요 - @Column(length = 30) private String username; private String socialId; + @Column(columnDefinition = "TEXT") private String imageUrl; + @Column(columnDefinition = "TEXT") private String refreshToken; private LocalDateTime expiredIn;