From 7236015a4d1aa0e526df6b020aa7e16ad24ae375 Mon Sep 17 00:00:00 2001 From: checketts Date: Tue, 10 Sep 2013 21:38:46 -0700 Subject: [PATCH] Fix the AuthenticationManagerBuilder code snippet Fix AuthenticationManagerBuilder code snippet to add the missing the ObjectPostProcessor parameter for the constructor. Issue: #45 --- spring-boot-actuator/README.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/spring-boot-actuator/README.md b/spring-boot-actuator/README.md index 086432a4cd..d9a14bb0b3 100644 --- a/spring-boot-actuator/README.md +++ b/spring-boot-actuator/README.md @@ -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: