Fix the AuthenticationManagerBuilder code snippet

Fix AuthenticationManagerBuilder code snippet to add the missing the
ObjectPostProcessor parameter for the constructor.

Issue: #45
pull/50/head
checketts 11 years ago committed by Phillip Webb
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…
Cancel
Save