Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 

Spring Security: Obtaining current username (i.e. SecurityContext) information in a bean?

Instead of calling static method inside the controller like below: @RequestMapping(value="/welcome", method = RequestMethod.GET) public String getUserDetails(ModelMap model) { Authentication authentication = SecurityContextHolder.getCont...

Sprint Security: Getting Active user's UserDetails

We can easily get active user's UserDetails in Spring Security. Spring Security provides "org.springframework.security.core.Authentication" which provides the required API for retrieving the logged in user details. The methods of this class are g...

Spring Security - UserDetailsService vs. AuthenticationProvider

We can use Custome UserDetailsService and custom AuthenticationProvider for user authentication in Spring Security. Here I'm taking example of custom UserDetailsService. UserDetailsService is a Core interface which loads user-specific data. I...
Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: