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.
- Host: GitHub
- URL: https://github.com/najafali786110/role-based-securit
- Owner: NajafAli786110
- Created: 2024-11-29T10:45:17.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-11-29T10:53:19.000Z (7 months ago)
- Last Synced: 2025-01-08T01:10:24.931Z (5 months ago)
- Language: JavaScript
- Homepage:
- Size: 20.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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