From the course: Spring Boot 2.0 Essential Training

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Introduction to Spring Security

Introduction to Spring Security

From the course: Spring Boot 2.0 Essential Training

Start my 1-month free trial

Introduction to Spring Security

- [Educator] As we get into some of the other topics of Spring Boot, the next one we're going to address is Spring Security. Now implementing security in Spring Boot applications is a little bit more complex than some of the other stuff that we've seen. And that's because well, it's security, which by its nature tends to be more complex. But that being said, Spring Security in a Spring Boot application is about as straightforward as can be done in the security realm. In its simplest form, Spring Security provides HTTP basic auth. When you bring in the Spring Security starter, just introducing that gives you basic authentication on all of your endpoints, with the exception of some of the commonly ignored ones that are in the static directory, like JavaScript or CSS. Now you get basic auth, but the username and password are actually generated at startup time, and spit out into the info messages of the log. So if you just…

Contents