Skip to content

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.

Notifications You must be signed in to change notification settings

khalil-bouali/oauth2-social-login

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages