Spring Security — OAuth2 — MongoDB

Eric Anicet
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.

Photo by Jon Moore on Unsplash

Prerequisites

  • Spring Boot 2.4
  • Maven 3.6.+
  • Java 11
  • Mongo 4.4

Oauth2 Overview

The OAuth 2.0 authorization…

--

--