Skip to content

React Admin authentication provider example using OpenID Connect (OIDC).

License

Notifications You must be signed in to change notification settings

bwgz/ra-example-oidc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

React Admin Example: Authentication using OIDC.

License: MIT FOSSA Status TypeScript React

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

yarn start

Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.

About the app

This project was bootstrapped with Create React App. And then modified to use react-admin

FOSSA Status

About

React Admin authentication provider example using OpenID Connect (OIDC).

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published