提交 eeee13d9 编写于 作者: Tyl666's avatar Tyl666

【JWT鉴权续期接口】补齐reflashToken逻辑

上级 0b47c272
...@@ -78,7 +78,7 @@ public class ClientAuthenticationResource ...@@ -78,7 +78,7 @@ public class ClientAuthenticationResource
@PostMapping(value = "v7/refreshToken") @PostMapping(value = "v7/refreshToken")
public String refreshToken(@Validated @RequestBody @NotNull(message = "token不能为空") String oldToken) { public String refreshToken(@Validated @RequestBody @NotNull(message = "token不能为空") String oldToken) {
String username = null; String username = null;
String newToken = null; String newToken = uaaCoreService.getToken(oldToken) == null ? "" : uaaCoreService.getToken(oldToken).getNewToken();
try { try {
username = jwtTokenUtil.getUsernameFromToken(oldToken); username = jwtTokenUtil.getUsernameFromToken(oldToken);
} catch (ExpiredJwtException e) { } catch (ExpiredJwtException e) {
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册