A Full Stack Role Based Authentication System built using Spring Boot, React, JWT Authentication and MySQL. The system provides secure authentication, authorization, protected routes and role-based access control.
✅ User Registration
✅ JWT Authentication
✅ Login / Logout Functionality
✅ Role Based Access Control (RBAC)
✅ Protected Routes
✅ Admin Route Protection
✅ Responsive UI (Mobile / Tablet / Desktop)
✅ Swagger API Documentation
✅ Dashboard with User Information
✅ Admin Dashboard Access Control
- React
- TypeScript
- Tailwind CSS
- Axios
- React Router DOM
- Spring Boot
- Spring Security
- JWT Authentication
- MySQL
- Swagger OpenAPI
- Maven
https://rbac-auth-system.vercel.app/
https://rbac-auth-system-u5m9.onrender.com/
https://rbac-auth-system-u5m9.onrender.com/swagger-ui/index.html
frontend/
├── src/
│ ├── pages/
│ ├── components/
│ ├── services/
backend/
├── src/
├── pom.xml
Open backend folder:
cd backendRun backend:
.\mvnw.cmd spring-boot:runBackend URL:
http://localhost:8080
Open frontend folder:
cd frontendInstall dependencies:
npm installRun frontend:
npm run devFrontend URL:
http://localhost:5173
| Method | Endpoint | Description |
|---|---|---|
| POST | /auth/register | Register User |
| POST | /auth/login | Login User |
| GET | /auth/me | Current User |
| GET | /admin/* | Admin Protected APIs |
| GET | /user/* | User Protected APIs |
Register User
↓
Login
↓
JWT Token Generated
↓
Store Token in LocalStorage
↓
Protected API Access
Name: Sunidhi Shinde
GitHub:
https://github.com/soniyaritgithub
LinkedIn:






