These are chat archives for alvarosanchez/spring-security-rest

7th
Aug 2015
Álvaro Sánchez-Mariscal
@alvarosanchez
Aug 07 2015 06:54
you can use TokenGenerator's AccessToken generateAccessToken(UserDetails principal) method
to get the user details of another user, you can use UserDetailsService's UserDetails loadUserByUsername(String username)
the bean name of the former is tokenGenerator, and the latter is userDetailsService
Inject them in your controller/service and use them
Lawrence Lee
@ChaosWars
Aug 07 2015 08:21
Thanks, I'll try that