Spring Security — OAuth2 — MongoDB
5 min readJun 7, 2021
The main purpose of this story is to show how to secure a spring boot microservice using spring security,Oauth2 and MongoDB.
Prerequisites
- Spring Boot 2.4
- Maven 3.6.+
- Java 11
- Mongo 4.4
Oauth2 Overview
The OAuth 2.0 authorization…