90403 -> 90401
This commit is contained in:
@ -47,7 +47,7 @@ public class UserAuthenticationEntryPoint implements AuthenticationEntryPoint {
|
|||||||
*/
|
*/
|
||||||
private Map<String, Object> adapterException(String code, HttpServletResponse response) {
|
private Map<String, Object> adapterException(String code, HttpServletResponse response) {
|
||||||
switch (code) {
|
switch (code) {
|
||||||
case "90403":
|
case "90401":
|
||||||
return accessDenidedException(code, response);
|
return accessDenidedException(code, response);
|
||||||
case "90500":
|
case "90500":
|
||||||
return remoteTimeoutException(code, response);
|
return remoteTimeoutException(code, response);
|
||||||
|
@ -108,7 +108,7 @@ public class TokenAuthenticationFilter extends OncePerRequestFilter {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (Objects.isNull(securityUser.getUserId())) {// userid 为空则访问山分认证服务返回信息为null
|
if (Objects.isNull(securityUser.getUserId())) {// userid 为空则访问山分认证服务返回信息为null
|
||||||
throw new AccessDeniedException("90403");
|
throw new AccessDeniedException("90401");
|
||||||
}
|
}
|
||||||
|
|
||||||
log.info("TokenAuthenticationFilter: token [{}]", token);
|
log.info("TokenAuthenticationFilter: token [{}]", token);
|
||||||
|
Reference in New Issue
Block a user