|
@ -88,7 +88,7 @@ public class BasicZuulFilter extends ZuulFilter {
|
|
}
|
|
}
|
|
OAuth2AccessToken oAuth2AccessToken = tokenStore.readAccessToken(accessToken);
|
|
OAuth2AccessToken oAuth2AccessToken = tokenStore.readAccessToken(accessToken);
|
|
if (null == oAuth2AccessToken) {
|
|
if (null == oAuth2AccessToken) {
|
|
return this.forbidden(ctx, ResultStatus.INVALID_GRANT, "invalid token");
|
|
|
|
|
|
return this.forbidden(ctx, ResultStatus.ERROR_TOKEN, "invalid token");
|
|
}
|
|
}
|
|
if (oAuth2AccessToken.isExpired()) {
|
|
if (oAuth2AccessToken.isExpired()) {
|
|
return this.forbidden(ctx, ResultStatus.ERROR_TOKEN, "expired token");
|
|
return this.forbidden(ctx, ResultStatus.ERROR_TOKEN, "expired token");
|