GithubHelp home page GithubHelp logo

sr-ssh / sso-react-with-github Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 2 MB

a react application using sso with github OAuth2

JavaScript 6.05% HTML 4.75% CSS 18.13% TypeScript 50.62% Python 20.46%
github-oauth2 github-sso oauth2 single-sign-on sso sso-authentication sso-client sso-login sso-server sso-solution

sso-react-with-github's Introduction

Implementing SSO in React with GitHub OAuth2

Seamless Single Sign-On (SSO) for React Apps using GitHub Authentication (Sample Code)

This repository showcases a sample implementation of Single Sign-On (SSO) with GitHub authentication for React applications. It demonstrates the essential components for integrating SSO functionality using a backend server and GitHub's OAuth flow.

Why SSO with GitHub?

  • Simplified Login: Streamline the user login process, eliminating separate account creation within your application.
  • Enhanced Security: Leverage GitHub's robust security measures to reduce the risk of unauthorized access.
  • Improved User Experience: Offer a familiar and convenient login option for users who already have a GitHub account.

This Repository Provides:

  • Sample React Frontend: Demonstrates integrating GitHub login button and handling redirect logic.
  • Python Backend Server: Illustrates backend handling of authorization code exchange and user data retrieval from GitHub API.
  • Clear Code Structure: Easy-to-follow code examples for both frontend and backend.

Getting Started (Frontend):

  1. Clone the Repository:

    git clone https://github.com/sr-ssh/sso-react-with-github.git
  2. Install Dependencies:

    cd login
    yarn
  3. Configure GitHub App:

  4. Run the Application:

    yarn dev
    

Open http://localhost:3000 in your browser to see the sample login page.

Getting Started (Backend):

  1. Follow Frontend Setup Steps (1-3).
  2. Run the Backend Server :
    cd server
    pip3 install fastapi
    pip3 install uvicorn
    pip3 install requests
    python3 server.py
    

sso-react-with-github's People

Contributors

sr-ssh avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.