Class SecurityContextUtil

  • All Implemented Interfaces:

    
    public class SecurityContextUtil
    
                        
    Wrapper fo SecurityContextHolder.
    
    Try to use it in controller layer, if in async thread, the context will fail.
    Because spring's threadlocal only supports manual inheritance.
    
    In wings, the Authentication is UsernamePasswordAuthenticationToken;
    details is WingsAuthDetails; principal is WingsUserDetails
    
    Since:

    2019-07-09

    Author:

    trydofor