From f0af419ab11c170013612b561adb510b82d411e7 Mon Sep 17 00:00:00 2001 From: devxb Date: Sat, 9 Mar 2024 13:18:38 +0900 Subject: [PATCH] =?UTF-8?q?test:=20test=20interceptor=EC=97=90=20tokenValu?= =?UTF-8?q?e,=20tokenType=EC=9D=84=20=EC=B6=94=EA=B0=80=ED=95=9C=EB=8B=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../me/nalab/auth/mock/interceptor/MockAuthInterceptor.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/auth/auth-mock/src/main/java/me/nalab/auth/mock/interceptor/MockAuthInterceptor.java b/auth/auth-mock/src/main/java/me/nalab/auth/mock/interceptor/MockAuthInterceptor.java index 3c1c0827..d5afc9c7 100644 --- a/auth/auth-mock/src/main/java/me/nalab/auth/mock/interceptor/MockAuthInterceptor.java +++ b/auth/auth-mock/src/main/java/me/nalab/auth/mock/interceptor/MockAuthInterceptor.java @@ -26,6 +26,8 @@ public boolean preHandle(HttpServletRequest request, HttpServletResponse respons String token = request.getHeader("Authorization"); throwIfCannotValidToken(token); request.setAttribute("logined", expectedId); + request.setAttribute("tokenType", token.split(" ")[0]); + request.setAttribute("tokenValue", token.split(" ")[1]); } return true; }