}
private static Authentication createAuthentication(SecurityContext sc) {
List<GrantedAuthority> authorities = new ArrayList<GrantedAuthority>();
authorities.add(new GrantedAuthorityImpl("ROLE_USER"));
OAuthAuthenticationToken newAuthToken =
new OAuthAuthenticationToken(new ForceUserPrincipal(sc.getUserName(), sc.getSessionId()), null, authorities);
newAuthToken.setDetails(sc);
return newAuthToken;
}