mirror of
https://github.com/jeecgboot/JeecgBoot.git
synced 2025-12-17 00:42:48 +00:00
sas 兼容shiro处理
This commit is contained in:
parent
70a37309dd
commit
cddf23c787
@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user