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.
4d608f20e9
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 | 11 years ago | |
spring-boot-sample-actuator-log4j | 11 years ago | |
spring-boot-sample-actuator-noweb | 11 years ago | |
spring-boot-sample-actuator-ui | 11 years ago | |
spring-boot-sample-amqp | 11 years ago | |
spring-boot-sample-aop | 11 years ago | |
spring-boot-sample-batch | 11 years ago | |
spring-boot-sample-data-jpa | 11 years ago | |
spring-boot-sample-data-mongodb | 11 years ago | |
spring-boot-sample-data-redis | 11 years ago | |
spring-boot-sample-integration | 11 years ago | |
spring-boot-sample-jetty | 11 years ago | |
spring-boot-sample-profile | 11 years ago | |
spring-boot-sample-secure | 11 years ago | |
spring-boot-sample-servlet | 11 years ago | |
spring-boot-sample-simple | 11 years ago | |
spring-boot-sample-tomcat | 11 years ago | |
spring-boot-sample-traditional | 11 years ago | |
spring-boot-sample-web-jsp | 11 years ago | |
spring-boot-sample-web-secure | 11 years ago | |
spring-boot-sample-web-static | 11 years ago | |
spring-boot-sample-web-ui | 11 years ago | |
spring-boot-sample-websocket | 11 years ago | |
spring-boot-sample-xml | 11 years ago | |
README.md | 11 years ago | |
pom.xml | 11 years ago |
README.md
Spring Boot - Samples
We are currently still working on documentation for Spring Boot. Please check back in the future.