This tutorial helps you build a Spring Boot + MongoDB: Login & Registration example with HttpOnly Cookie, JWT, Spring Security and Spring Data MongoDB. You’ll know:
- Appropriate Flow for User Login and Registration with JWT
- Spring Boot Rest API Architecture with Spring Security
- How to configure Spring Security to work with JWT
- How to define Data Models and association for User Login and Registration
- Way to get and generate Cookies for Token
- Way to use Spring Data MongoDB to interact with MongoDB Database
More Practice:
– Spring Boot with MongoDB CRUD example using Spring Data
– Spring Boot MongoDB Pagination example with Spring Data
– Spring Boot + GraphQL + MongoDB example
– Spring Boot Unit Test for Rest Controller