Skip to content

Instantly share code, notes, and snippets.

@JacobASeverson
Last active August 29, 2015 14:01
Show Gist options
  • Save JacobASeverson/04f7a64c5de3ca2f12b1 to your computer and use it in GitHub Desktop.
Save JacobASeverson/04f7a64c5de3ca2f12b1 to your computer and use it in GitHub Desktop.
public class TestCasAuthenticationUserDetailsService implements AuthenticationUserDetailsService {
@Override
public UserDetails loadUserDetails(Authentication token) throws UsernameNotFoundException {
List<GrantedAuthority> authorities = new ArrayList<>();
authorities.add(new SimpleGrantedAuthority("ROLE_USER"));
return new User("joe", "joe", authorities);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment