chore: 记录apikeyfilter 报错日志,方便查询

This commit is contained in:
CaptainB 2023-06-20 16:07:55 +08:00 committed by 刘瑞斌
parent 16870484bc
commit be701555d0
1 changed files with 2 additions and 3 deletions

View File

@ -21,8 +21,7 @@ public class SSOSessionHandler {
if (StringUtils.isNotBlank(v)) {
return validate(v);
}
} catch (Exception e) {
LogUtil.error("failed to validate", e);
} catch (Exception ignore) {
}
return null;
@ -32,7 +31,7 @@ public class SSOSessionHandler {
csrfToken = CodingUtil.aesDecrypt(csrfToken, SessionUser.secret, SessionUser.iv);
String[] signatureArray = StringUtils.split(StringUtils.trimToNull(csrfToken), "|");
if (signatureArray.length != 4) {
LogUtil.error("invalid token: {}", signatureArray);
LogUtil.error("invalid token: {}, csrfToken: {}", signatureArray, csrfToken);
throw new RuntimeException("invalid token");
}
return signatureArray[0];