You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
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
11 years ago
..
spring-boot-sample-actuator Add Tld scanning exceptions to Tomcat startup 11 years ago
spring-boot-sample-actuator-log4j Upgrade version to 1.0.0.BUILD-SNAPSHOT 11 years ago
spring-boot-sample-actuator-noweb Apply latest eclipse cleanup rules 11 years ago
spring-boot-sample-actuator-ui Remove unneeded explicit versions in sample 11 years ago
spring-boot-sample-amqp Upgrade version to 1.0.0.BUILD-SNAPSHOT 11 years ago
spring-boot-sample-aop Apply latest eclipse cleanup rules 11 years ago
spring-boot-sample-batch Update copyright header for files changed in 2014 11 years ago
spring-boot-sample-data-jpa Make fields private where possible 11 years ago
spring-boot-sample-data-mongodb Apply latest eclipse cleanup rules 11 years ago
spring-boot-sample-data-redis Update copyright header for files changed in 2014 11 years ago
spring-boot-sample-integration Apply latest eclipse cleanup rules 11 years ago
spring-boot-sample-jetty Apply latest eclipse cleanup rules 11 years ago
spring-boot-sample-profile Apply latest eclipse cleanup rules 11 years ago
spring-boot-sample-secure Support for AuthenticationManagerBuilder injection into user code 11 years ago
spring-boot-sample-servlet Apply latest eclipse cleanup rules 11 years ago
spring-boot-sample-simple Apply latest eclipse cleanup rules 11 years ago
spring-boot-sample-tomcat Apply latest eclipse cleanup rules 11 years ago
spring-boot-sample-traditional Upgrade version to 1.0.0.BUILD-SNAPSHOT 11 years ago
spring-boot-sample-web-jsp Apply latest eclipse cleanup rules 11 years ago
spring-boot-sample-web-secure Add thymeleaf starter 11 years ago
spring-boot-sample-web-static Apply latest eclipse cleanup rules 11 years ago
spring-boot-sample-web-ui Add thymeleaf starter 11 years ago
spring-boot-sample-websocket Make fields private where possible 11 years ago
spring-boot-sample-xml Apply latest eclipse cleanup rules 11 years ago
README.md Documentation 11 years ago
pom.xml Upgrade version to 1.0.0.BUILD-SNAPSHOT 11 years ago

README.md

Spring Boot - Samples

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