2 Hello Spring Security

 

This chapter covers

  • Creating your first project with Spring Security

  • Designing simple functionalities using the basic actors for authentication and authorization

  • Applying the basic contracts to understand how these actors relate to each other

  • Writing your implementations for the primary responsibilities

  • Overriding Spring Boot’s default configurations

Spring Boot appeared as an evolutionary stage for application development with the Spring Framework. Instead of you needing to write all the configurations, Spring Boot comes with some preconfigured, so you can override only the configurations that don’t match your implementations. We also call this approach convention-over-configuration.

2.1 Starting with the first project

2.2 Which are the default configurations?

2.3 Overriding default configurations

2.3.1 Overriding the UserDetailsService component

2.3.2 Overriding the endpoint authorization configuration

2.3.3 Setting the configuration in different ways

2.3.4 Overriding the AuthenticationProvider implementation

2.3.5 Using multiple configuration classes in your project

Summary

sitemap