https://github.com/diogosouza/passport-casl-example
Authenticating with Passport and authorizing with CASL.
https://github.com/diogosouza/passport-casl-example
Last synced: 3 months ago
JSON representation
Authenticating with Passport and authorizing with CASL.
- Host: GitHub
- URL: https://github.com/diogosouza/passport-casl-example
- Owner: diogosouza
- Created: 2021-04-03T17:41:51.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2021-04-03T17:43:38.000Z (about 4 years ago)
- Last Synced: 2025-01-28T05:14:56.960Z (5 months ago)
- Language: JavaScript
- Homepage:
- Size: 14.6 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
That's a simple example on how to authenticate users with [Passport](http://passportjs.org/) and authorize resources with [CASL](https://github.com/stalniy/casl).
The project is created with Node and Express as the server.
## Setup
To run locally, simply clone the project and download the npm dependencies:
```bash
$ npm install
```Then, start the server:
```bash
$ npm run start
```The app will start up at [http://localhost:3000/](http://localhost:3000/).
Take a look at the db/users.js file to check for some valid usernames and passwords, or create yours.