return new WebAuthenticationDetails(request);
return new WebAuthenticationDetails(request, false);
    private WebAuthenticationDetails createWebDetails(Authentication auth) {        MockHttpSession session = new MockHttpSession();        MockHttpServletRequest request = new MockHttpServletRequest();        request.setSession(session);        request.setUserPrincipal(auth);        return new WebAuthenticationDetails(request);    }