Last active
August 29, 2015 14:01
-
-
Save JacobASeverson/04f7a64c5de3ca2f12b1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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