This project is a sample application that demonstrates how to use Spring Security 6 and Angular to implement login, logout, CSRF protection, and authentication guards.
The Session Management a CSRF protection went through a big change in Spring Security 6, the goal of this project is not to replace the official documentation but to provide a straightforward example to such use case.
Please refer to the Preparing for 6.0 guide for more details.
Run ./mvnw spring-boot:run
inside the backend
folder. Or just use your favorite IDE.
The application runs on http://localhost:8080
by default.
Run ng serve
or npm start
on the frontend
folder. Note that you need to have node
, npm
and optionally @angular/cli
installed.
The application runs on http://localhost:4200
by default.