Open adityasarfare opened 1 month ago
Name | Link |
---|---|
Latest commit | 6203898ce3090955bd49c61f1a27c0c3dbee1e11 |
Latest deploy log | https://app.netlify.com/sites/tenant-rental-app/deploys/66e21806f57a5d0008ac5d1e |
Deploy Preview | https://deploy-preview-19--tenant-rental-app.netlify.app |
Preview on mobile | Toggle QR Code...Use your smartphone camera to open QR code link. |
To edit notification comments on pull requests, go to your Netlify site configuration.
User Management back-end created with Spring Security and JWT
Overview: This pull request introduces a robust User Management back-end system built with Spring Security and JWT (JSON Web Tokens). The system includes functionality for user registration, login, token refreshing, and secure role-based access to resources. Key features include the use of JWT for authentication and authorization, password encryption using BCrypt, and role-based access control for users and admins.
Key Features Implemented: User Registration and Login:
API endpoints for user registration (/auth/register) and login (/auth/login).
Passwords are encrypted using BCrypt before storing in the database.
JWT tokens are generated upon successful login and used for authenticating subsequent requests.
JWT Token Management:
Token-based authentication using JWT.
Refresh token endpoint (/auth/refresh) for renewing tokens without re-authentication.
Role-Based Access Control:
Admin-only endpoints:
User/Admin shared endpoint:
Security:
Stateless session management with JWT tokens.
Controller Code Overview (UserManagementController):
Endpoints:
Next Steps / Future Improvements:
Testing: