Skip to content

Commit

Permalink
MOA-510: 캐시 지워보기
Browse files Browse the repository at this point in the history
  • Loading branch information
shin-mallang committed Mar 4, 2024
1 parent a053dac commit 98743d6
Showing 1 changed file with 0 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

import static moa.client.exception.ExternalApiExceptionType.EXTERNAL_API_EXCEPTION;
import static moa.client.wincube.auth.Aes256Iv.generateIv;
import static moa.global.config.cache.CacheConfig.WINCUBE_ACCESS_TOKEN_CACHE_MANAGER_NAME;
import static moa.global.config.cache.CacheConfig.WINCUBE_ACCESS_TOKEN_CACHE_NAME;

import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
Expand All @@ -18,7 +16,6 @@
import moa.client.wincube.dto.WincubeIssueAuthTokenResponse;
import moa.client.wincube.dto.WincubeTokenSignature;
import moa.global.jwt.JwtService;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.http.HttpStatus;
import org.springframework.stereotype.Component;

Expand All @@ -37,10 +34,6 @@ public class WincubeAuthClient {
private final Rsa rsa;
private final JwtService jwtService;

@Cacheable(
cacheNames = WINCUBE_ACCESS_TOKEN_CACHE_NAME,
cacheManager = WINCUBE_ACCESS_TOKEN_CACHE_MANAGER_NAME
)
public String getAuthToken() {
String aesIv = generateIv(AES_IV_BYTE);
String codeId = getAuthCode(aesIv);
Expand Down

0 comments on commit 98743d6

Please sign in to comment.