@Component public class AuthSuccessHandler extends Object implements org.springframework.security.web.authentication.AuthenticationSuccessHandler
| 构造器和说明 |
|---|
AuthSuccessHandler() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
onAuthenticationSuccess(javax.servlet.http.HttpServletRequest httpServletRequest,
javax.servlet.http.HttpServletResponse httpServletResponse,
org.springframework.security.core.Authentication authentication) |
protected List<ComponentVo> |
returnComponentVos(List<ShodownRole> roles)
用户前端组件权限列表
|
protected List<MenuVo> |
returnMenuVos(List<ShodownRole> roles)
获取用户菜单vo
|
protected List<OrgVo> |
returnOrgVos(ShodownUser user)
用户所属机构
|
protected UserInfoVo |
wrapReturn(org.springframework.security.core.Authentication auth)
完善返回内容
|
@Transactional @IgnoreGeneralCrypto public void onAuthenticationSuccess(javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse, org.springframework.security.core.Authentication authentication) throws IOException, javax.servlet.ServletException
onAuthenticationSuccess 在接口中 org.springframework.security.web.authentication.AuthenticationSuccessHandlerIOExceptionjavax.servlet.ServletExceptionprotected UserInfoVo wrapReturn(org.springframework.security.core.Authentication auth)
auth - 认证@Transactional protected List<MenuVo> returnMenuVos(List<ShodownRole> roles)
roles - 角色po@Transactional protected List<ComponentVo> returnComponentVos(List<ShodownRole> roles)
roles - 用户角色@Transactional protected List<OrgVo> returnOrgVos(ShodownUser user)
user - Copyright © 2022. All rights reserved.