This application implements a react-admin authentication provider for OIDC.
See the react-admin documentation of details on Auth Providers.
It uses oidc-client-ts to interface with a OAuth 2.0 Authorization Server.
This example was written to use Google OAuth 2.0 Authorization Server. It can be modified to use any OAuth 2.0.
Before running the application you'll need to establish an OAuth 2.0 Client ID using the Google Cloud Platform. If you plan to use another OAuth 2.0 Authorization Server then you'll need to do the equivalent.
Before running the application set the following environment variables using values supplied by the vendor (i.e. Google).
- REACT_APP_CLIENT_ID
- REACT_APP_CLIENT_SECRET
Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.
This project was bootstrapped with Create React App. And then modified to use react-admin