© Marten Deinum 2018
Marten DeinumSpring Boot 2 Recipeshttps://doi.org/10.1007/978-1-4842-3963-6_6

6. Spring Security

Marten Deinum1 
(1)
Meppel, Drenthe, The Netherlands
 

In this chapter we will take a look at the Spring Security1 integration for Spring Boot. Spring Security can be used for both authentication and authorization of users for your application. Spring Security has a plugable mechanism for both the authentication and authorization process and by default, supports different mechanisms. For authentication, Spring Security out-of-the-box has support for JDBC, LDAP, and property files.

6.1 Enable Security in Your Spring Boot Application

Problem

You have a Spring Boot-based application and you want to enable security in this application.

Solution ...

Get Spring Boot 2 Recipes: A Problem-Solution Approach now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.