BAEL-1489: Explicitely handing in empty authorities list

This commit is contained in:
Holger Steinhauer 2018-03-30 22:20:20 +01:00
parent bed25cd0da
commit 75a6a41356
1 changed files with 2 additions and 0 deletions

View File

@ -14,6 +14,7 @@ import org.springframework.security.crypto.password.StandardPasswordEncoder;
import org.springframework.security.crypto.scrypt.SCryptPasswordEncoder;
import org.springframework.security.provisioning.InMemoryUserDetailsManager;
import java.util.Collections;
import java.util.HashMap;
import java.util.Map;
@ -32,6 +33,7 @@ public class PasswordStorageWebSecurityConfigurer extends WebSecurityConfigurerA
return new InMemoryUserDetailsManager(User
.withUsername("baeldung")
.password("{noop}SpringSecurity5")
.authorities(Collections.emptyList())
.build());
}