An open API service indexing awesome lists of open source software.

https://github.com/najafali786110/role-based-securit

A Node.js Role-Based Access Control app with JWT for authentication, MongoDB for data storage, and role-specific access to secure routes.
https://github.com/najafali786110/role-based-securit

Last synced: 4 months ago
JSON representation

A Node.js Role-Based Access Control app with JWT for authentication, MongoDB for data storage, and role-specific access to secure routes.

Awesome Lists containing this project

README

        

# Role-Based Access Control (RBAC) Application

## Description
This project implements a **Role-Based Access Control (RBAC)** system using Node.js, Express, and MongoDB. It enables role-specific access to application routes and features, ensuring secure and organized user interaction.

Users are assigned roles like `Admin`, `Manager`, or `User`, and can only access functionalities designated for their role. JWT is used for secure authentication, and bcrypt is implemented for password hashing.

## Features
- **User Authentication**: Login and registration system with password hashing.
- **Role-Based Authorization**: Protect routes based on user roles.
- **Secure Token Management**: JSON Web Tokens (JWT) for authentication.
- **Reusable Middleware**: Centralized logic for authentication and authorization.
- **Extensible Design**: Easily add new roles and permissions.

## Technologies Used
- **Backend**: Node.js, Express.js
- **Database**: MongoDB
- **Authentication**: JWT (JSON Web Tokens), bcrypt.js
- **Environment Variables**: dotenv