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.
- Run Identity and Web API from Visual Studio.
- Navigate to
Bebop.WebApp
- Install dependencies with
npm install
- 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
.
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.