spring-boot/spring-boot-samples
Dave Syer 4d608f20e9 Support for AuthenticationManagerBuilder injection into user code
Spring Boot provides a default AuthenticatiomManager for getting
started quickly with security and never exposing insecure
endpoints. To override that feature as users move to the next
stage in their project, they may have to do something slightly
different depending on whether it is a webapp or not.

In any app (web or not), providing a @Bean of type
AuthenticationManager always works, but you don't get the benefit of
the builder features.

In a webapp the user can also extend WebSecurityConfigurerAdapter
to provides a custom AuthenticationManager, and the preferred
way of doing that is via a void method that is autowired with an
AuthenticationManagerBuilder. The default AuthenticationManager is
built in a configurer with @Order(LOWEST_PRECEDENCE - 3) so
to override it the user's confugrer must have higher precedence
(lower @Order).

@EnableGlobalMethodSecurity can also be used in a non-webapp, and
Spring Boot will still provide a default AuthenticationManager.
To override it the user has to either extend
GlobalMethodSecurityConfiguration or provide a @Bean of type
AuthenticationManager (there's no other way to
capture the AuthenticationManagerBuilder that doesn't happen too late
in the beans lifecyle).

Fixes gh-244
2014-01-29 15:47:46 +00:00
..
spring-boot-sample-actuator Add Tld scanning exceptions to Tomcat startup 2014-01-27 13:21:29 +00:00
spring-boot-sample-actuator-log4j Upgrade version to 1.0.0.BUILD-SNAPSHOT 2014-01-21 00:43:54 -08:00
spring-boot-sample-actuator-noweb Apply latest eclipse cleanup rules 2014-01-21 16:28:26 -08:00
spring-boot-sample-actuator-ui Remove unneeded explicit versions in sample 2014-01-28 15:19:24 +00:00
spring-boot-sample-amqp Upgrade version to 1.0.0.BUILD-SNAPSHOT 2014-01-21 00:43:54 -08:00
spring-boot-sample-aop Apply latest eclipse cleanup rules 2014-01-21 16:28:26 -08:00
spring-boot-sample-batch Update copyright header for files changed in 2014 2014-01-21 10:27:10 -08:00
spring-boot-sample-data-jpa Make fields private where possible 2014-01-21 16:29:07 -08:00
spring-boot-sample-data-mongodb Apply latest eclipse cleanup rules 2014-01-21 16:28:26 -08:00
spring-boot-sample-data-redis Update copyright header for files changed in 2014 2014-01-21 10:27:10 -08:00
spring-boot-sample-integration Apply latest eclipse cleanup rules 2014-01-21 16:28:26 -08:00
spring-boot-sample-jetty Apply latest eclipse cleanup rules 2014-01-21 16:28:26 -08:00
spring-boot-sample-profile Apply latest eclipse cleanup rules 2014-01-21 16:28:26 -08:00
spring-boot-sample-secure Support for AuthenticationManagerBuilder injection into user code 2014-01-29 15:47:46 +00:00
spring-boot-sample-servlet Apply latest eclipse cleanup rules 2014-01-21 16:28:26 -08:00
spring-boot-sample-simple Apply latest eclipse cleanup rules 2014-01-21 16:28:26 -08:00
spring-boot-sample-tomcat Apply latest eclipse cleanup rules 2014-01-21 16:28:26 -08:00
spring-boot-sample-traditional Upgrade version to 1.0.0.BUILD-SNAPSHOT 2014-01-21 00:43:54 -08:00
spring-boot-sample-web-jsp Apply latest eclipse cleanup rules 2014-01-21 16:28:26 -08:00
spring-boot-sample-web-secure Add thymeleaf starter 2014-01-24 09:28:45 +00:00
spring-boot-sample-web-static Apply latest eclipse cleanup rules 2014-01-21 16:28:26 -08:00
spring-boot-sample-web-ui Add thymeleaf starter 2014-01-24 09:28:45 +00:00
spring-boot-sample-websocket Make fields private where possible 2014-01-21 16:29:07 -08:00
spring-boot-sample-xml Apply latest eclipse cleanup rules 2014-01-21 16:28:26 -08:00
pom.xml Upgrade version to 1.0.0.BUILD-SNAPSHOT 2014-01-21 00:43:54 -08:00
README.md Documentation 2013-08-05 22:36:22 -07:00

Spring Boot - Samples

We are currently still working on documentation for Spring Boot. Please check back in the future.