90403 -> 90401

This commit is contained in:
ajaxfan
2021-05-17 11:06:12 +08:00
parent e1d8fef83f
commit 633dd32231
2 changed files with 2 additions and 2 deletions

View File

@ -47,7 +47,7 @@ public class UserAuthenticationEntryPoint implements AuthenticationEntryPoint {
*/
private Map<String, Object> adapterException(String code, HttpServletResponse response) {
switch (code) {
case "90403":
case "90401":
return accessDenidedException(code, response);
case "90500":
return remoteTimeoutException(code, response);

View File

@ -108,7 +108,7 @@ public class TokenAuthenticationFilter extends OncePerRequestFilter {
}
if (Objects.isNull(securityUser.getUserId())) {// userid 为空则访问山分认证服务返回信息为null
throw new AccessDeniedException("90403");
throw new AccessDeniedException("90401");
}
log.info("TokenAuthenticationFilter: token [{}]", token);