BAEL-1489: Explicitely handing in empty authorities list
This commit is contained in:
parent
bed25cd0da
commit
75a6a41356
|
@ -14,6 +14,7 @@ import org.springframework.security.crypto.password.StandardPasswordEncoder;
|
||||||
import org.springframework.security.crypto.scrypt.SCryptPasswordEncoder;
|
import org.springframework.security.crypto.scrypt.SCryptPasswordEncoder;
|
||||||
import org.springframework.security.provisioning.InMemoryUserDetailsManager;
|
import org.springframework.security.provisioning.InMemoryUserDetailsManager;
|
||||||
|
|
||||||
|
import java.util.Collections;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
|
@ -32,6 +33,7 @@ public class PasswordStorageWebSecurityConfigurer extends WebSecurityConfigurerA
|
||||||
return new InMemoryUserDetailsManager(User
|
return new InMemoryUserDetailsManager(User
|
||||||
.withUsername("baeldung")
|
.withUsername("baeldung")
|
||||||
.password("{noop}SpringSecurity5")
|
.password("{noop}SpringSecurity5")
|
||||||
|
.authorities(Collections.emptyList())
|
||||||
.build());
|
.build());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue