/oauth2-social-login

This repository contains a Spring Boot 3 project that demonstrates how to secure an API with OAuth 2.0 and provide social login using GitHub, Google, and Facebook.

Primary LanguageJava

Spring boot OAuth2 Social Login

A sample project that shows how to implement OAuth2 login using Github as a resource server

Application diagram

Diagram

OAuth2.0 flow (How things really work in action)

Diagram

Steps to create a gitHub application

Update the application.yml file

After creating a new application, you will a client ID and a client secret. Copy this two information and paste the in the application.yml file

spring:
  security:
    oauth2:
      client:
        registration:
          github:
            clientId: github-app-client-id-here
            clientSecret: github-app-client-secret-here

Start the application and enjoy your Social-login