ajaynegi45 / LibraryMan-API

Revolutionize book management with LibraryMan! Easily track stock, borrowers, and due dates, streamlining operations for schools, companies, and libraries worldwide, ensuring efficient and organized book lending.
MIT License
42 stars 48 forks source link

[FEATURE] Add Authentication and Authorization #93

Open Ishratnoori opened 1 hour ago

Ishratnoori commented 1 hour ago

Is this feature already requested?

Problem or Missing Functionality

Currently, there’s no authentication or authorization to control access based on user roles. Adding this will improve security and help manage actions specific to roles (e.g., admin, librarian, and member).

Feature Description

I suggest implementing authentication with role-based access control. This feature will restrict certain actions based on user roles, ensuring that only authorized users can perform specific tasks. Using Spring Security, we can set up roles and permissions to add a layer of security and enhance user management.

Screenshots

No response

Would you like to work on this feature?

Yes

Implementation Plan

I plan to use Spring Security to implement login, registration, and role-based access control. I'll define roles (e.g., admin, librarian, member) and set permissions accordingly to secure relevant endpoints.

github-actions[bot] commented 1 hour ago

👋 Thank you @Ishratnoori for raising an issue! We’re thrilled to have your input as we work to make this project even better. Our team will review it shortly, so stay tuned! Meanwhile, make sure your issue gets noticed, don’t forget to star the repo 🌟 and follow @ajaynegi45 for even more project insights!