#825 3.7 token 刷新空指针问题 & 修复方案

This commit is contained in:
冷冷 committed 2020-03-10 11:10:04 +08:00
1 parent af19ac7baf
commit 95028e8f52
1 file changed
+6
@@ -80,6 +80,12 @@ public class PasswordDecoderFilter extends AbstractGatewayFilterFactory {
return chain.filter(exchange);
}
// 刷新token,直接向下执行
String grantType = request.getQueryParams().getFirst("grant_type");
if (StrUtil.equals(SecurityConstants.REFRESH_TOKEN, grantType)) {
return chain.filter(exchange);
}
Class inClass = String.class;
Class outClass = String.class;
ServerRequest serverRequest = ServerRequest.create(exchange,