MCPcopy Index your code
hub / github.com/ali-bouali/oauth2-social-login

github.com/ali-bouali/oauth2-social-login @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
8 symbols 13 edges 4 files 0 documented · 0% updated 2y ago★ 871 open issues
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

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

  • Go to GitHub developer portal
  • Create a new application and provide the required information
  • Set the homepage URL to http://localhost:8080
  • Authorization callback URL to http://localhost:8080/login/oauth2/code/github.

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

Core symbols most depended-on inside this repo

main
called by 0
src/main/java/com/alibou/oauth2/social/SocialApplication.java
securityFilterChain
called by 0
src/main/java/com/alibou/oauth2/social/security/SecurityConfig.java
sayHello
called by 0
src/main/java/com/alibou/oauth2/social/demo/DemoController.java

Shape

Class 4
Method 4

Languages

Java100%

Modules by API surface

src/test/java/com/alibou/oauth2/social/SocialApplicationTests.java2 symbols
src/main/java/com/alibou/oauth2/social/security/SecurityConfig.java2 symbols
src/main/java/com/alibou/oauth2/social/demo/DemoController.java2 symbols
src/main/java/com/alibou/oauth2/social/SocialApplication.java2 symbols

For agents

$ claude mcp add oauth2-social-login \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page