Skip to content

AvinashDalvi89/react-cerbos-demo

Repository files navigation

Screenshot 2024-04-02 at 10 50 22 PM

Cerbos integration with React app for authorisation

license last-commit repo-top-language repo-language-count

Developed with the software and tools below.

HTML5 YAML React TypeScript JSON


Quick Links


Overview

HTTP error 401 for prompt overview

Getting Started

Requirements

Ensure you have the following dependencies installed on your system:

  • TypeScript: version x.y.z

Installation

  1. Clone the repository:
git clone https://github.com/AvinashDalvi89/react-cerbos-demo/
  1. Change to the project directory:
cd react-cerbos-demo
  1. Install the dependencies:
npm install

Running

Use the following command to run :

npm start
  • Go to /login page user login details are given there.
  • Admin and contact page is developed for testing access control using Cerbos API. After login can go to /admin or /contact page to see the access.
  • If you wish to test using Cerbos playground then just open /src/lib/Cerbos.tsx change let usePlayground = true; it will use playground code. You can use either Cerbos playground API or Cerbos Hub PDP instance or Cerbos local policy API.

Demo

Cerbos Links

About

Cerbos integration with React demo application

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published