Fix the AuthenticationManagerBuilder code snippet
Fix AuthenticationManagerBuilder code snippet to add the missing the ObjectPostProcessor parameter for the constructor. Issue: #45
This commit is contained in:
parent
191894a16a
commit
7236015a4d
|
@ -293,10 +293,13 @@ entry. If you want to extend or expand that, or point to a database
|
|||
or directory server, you only need to provide a `@Bean` definition for
|
||||
an `AuthenticationManager`, e.g. in your `SampleController`:
|
||||
|
||||
|
||||
|
||||
@Bean
|
||||
public AuthenticationManager authenticationManager() throws Exception {
|
||||
return new AuthenticationBuilder().inMemoryAuthentication().withUser("client")
|
||||
.password("secret").roles("USER").and().and().build();
|
||||
return new AuthenticationManagerBuilder(
|
||||
ObjectPostProcessor.QUIESCENT_POSTPROCESSOR).inMemoryAuthentication().withUser("user")
|
||||
.password("password").roles("USER").and().and().build();
|
||||
}
|
||||
|
||||
Try it out:
|
||||
|
|
Loading…
Reference in New Issue