Skip to content

Commit

Permalink
chore : directory 명 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
kssumin committed Oct 10, 2023
1 parent 2c7d5eb commit 32c31c7
Show file tree
Hide file tree
Showing 11 changed files with 12 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
import com.econovation.overflow.auth.persistence.converter.AuthInfoEntityConverter;
import com.econovation.overflow.auth.persistence.entity.AuthInfoEntity;
import com.econovation.overflow.auth.persistence.repository.AuthInfoRepository;
import com.econovation.overflow.security.token.TokenProvider;
import com.econovation.overflow.security.token.TokenResolver;
import com.econovation.overflow.support.token.TokenProvider;
import com.econovation.overflow.support.token.TokenResolver;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import com.econovation.overflow.auth.domain.service.CreateTokenService;
import com.econovation.overflow.auth.persistence.entity.AuthInfoEntity;
import com.econovation.overflow.auth.persistence.repository.AuthInfoRepository;
import com.econovation.overflow.security.token.TokenResolver;
import com.econovation.overflow.support.token.TokenResolver;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.econovation.overflow.auth.web.controller;

import com.econovation.overflow.auth.web.support.AuthorizationExtractor;
import com.econovation.overflow.security.token.TokenValidator;
import com.econovation.overflow.support.token.TokenValidator;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import lombok.RequiredArgsConstructor;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.econovation.overflow.auth.web.support;

import com.econovation.overflow.security.token.TokenResolver;
import com.econovation.overflow.support.token.TokenResolver;
import java.util.Objects;
import javax.servlet.http.HttpServletRequest;
import lombok.RequiredArgsConstructor;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import com.econovation.overflow.auth.web.controller.AuthInterceptor;
import com.econovation.overflow.auth.web.support.AuthenticationPrincipalArgumentResolver;
import com.econovation.overflow.security.token.TokenResolver;
import com.econovation.overflow.support.token.TokenResolver;
import java.util.List;
import lombok.RequiredArgsConstructor;
import org.springframework.context.annotation.Bean;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.econovation.overflow.security.exception;
package com.econovation.overflow.support.token;

import com.econovation.overflow.common.exception.BusinessException;
import org.springframework.http.HttpStatus;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.econovation.overflow.security.token;
package com.econovation.overflow.support.token;

import io.jsonwebtoken.Header;
import io.jsonwebtoken.Jwts;
Expand All @@ -13,7 +13,6 @@
public class TokenProvider {

private static final String USER_ID_CLAIM_KEY = "userId";
private static final String USER_ROLE_CLAIM_KEY = "memberRole";
private final SecretKey secretKey;

private final long accessValidTime;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package com.econovation.overflow.security.token;
package com.econovation.overflow.support.token;

import com.econovation.overflow.security.exception.NotValidToken;
import io.jsonwebtoken.Claims;
import io.jsonwebtoken.ExpiredJwtException;
import io.jsonwebtoken.Jwts;
Expand All @@ -11,7 +10,6 @@
import javax.crypto.SecretKey;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Component
public class TokenResolver {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.econovation.overflow.security.token;
package com.econovation.overflow.support.token;

import com.econovation.overflow.auth.domain.exception.AuthorizationException;
import java.util.Date;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.econovation.overflow.security.token;
package com.econovation.overflow.support.token;

import static org.assertj.core.api.Assertions.assertThat;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
package com.econovation.overflow.security.token;
package com.econovation.overflow.support.token;

import static org.assertj.core.api.Assertions.assertThat;
import static org.assertj.core.api.Assertions.assertThatThrownBy;

import com.econovation.overflow.security.exception.NotValidToken;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;

Expand Down

0 comments on commit 32c31c7

Please sign in to comment.