GithubHelp home page GithubHelp logo

ompals / react-is4-auth-demo Goto Github PK

View Code? Open in Web Editor NEW

This project forked from tappyy/react-is4-auth-demo

0.0 0.0 0.0 4.87 MB

Web API authentication using React and Identity Server 4. Repo for blog post.

Home Page: https://www.onewiththebeard.dev/post/oidc-react-auth

License: MIT License

JavaScript 8.43% C# 61.06% PowerShell 9.24% CSS 0.40% HTML 20.39% SCSS 0.48%

react-is4-auth-demo's Introduction

Project Bebop

Introduction

Project Bebop is a small demo of using oidc-client to authenticate a React app user via Identity Server 4 to access a web API.

Running Instructions

  1. Run Identity and Web API from Visual Studio.
  2. Navigate to Bebop.WebApp
  3. Install dependencies with npm install
  4. Run the React app with npm start
  • Identity will run on https://localhost:5001.
  • Web API will run on https://localhost:5002.
  • React App will run on https://localhost:3000.

Project Components

The project consists of 3 parts:

  • Bebop.WebApp: A lightweight React app that implements oidc-client and Redux to handle user authentication via Identity Server 4.
  • Bebop.Identity: Identity Server 4. Handles user authentication via OpenID Connect along with configuration of clients, users and resources.
  • Bebop.WebAPI: A .Net Core Web API to be accessed by authenticated users from the React app.

react-is4-auth-demo's People

Contributors

tappyy avatar ablyler avatar dependabot[bot] 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.