mirror of
https://github.com/jeecgboot/jeecg-boot.git
synced 2025-09-10 13:11:46 +00:00
sas 兼容shiro处理
This commit is contained in:
@@ -176,6 +176,13 @@ public class SelfAuthenticationProvider implements AuthenticationProvider {
|
|||||||
addition.put("multi_depart", 2);
|
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以及其它信息给到前端
|
// 返回access_token、refresh_token以及其它信息给到前端
|
||||||
return new OAuth2AccessTokenAuthenticationToken(registeredClient, clientPrincipal, accessToken, refreshToken, map);
|
return new OAuth2AccessTokenAuthenticationToken(registeredClient, clientPrincipal, accessToken, refreshToken, map);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user