Skip to content

Commit

Permalink
sas 兼容shiro处理
Browse files Browse the repository at this point in the history
  • Loading branch information
EightMonth committed May 31, 2024
1 parent 70a3730 commit cddf23c
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,13 @@ public Authentication authenticate(Authentication authentication) throws Authent
addition.put("multi_depart", 2);
}

// 兼容原有shiro登录结果处理
Map<String, Object> map = new HashMap<>();
map.put("result", addition);
map.put("code", 200);
map.put("success", true);
map.put("timestamp", System.currentTimeMillis());

// 返回access_token、refresh_token以及其它信息给到前端
return new OAuth2AccessTokenAuthenticationToken(registeredClient, clientPrincipal, accessToken, refreshToken, map);
}
Expand Down

0 comments on commit cddf23c

Please sign in to comment.