JWT and Social Authentication using Spring Boot
This article is a guide on how to implement JSON Web Token (JWT) authentication and integrate it with Facebook authentication using Spring Boot and Facebook Graph API.
In this article, we focus on Facebook authentication, but the same concept can apply on other social platforms like Google, LinkedIn, and Twitter.
A grasp on the following is recommended:
The below video shows what will be implemented by the end of this article.
You can find the source code here.
JWT authentication
The first part of the article will focus on implementing JWT authentication using Spring security.
To understand the JWT authentication flow, let’s look at the below diagram.