-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Currently, books can be created, updated, or deleted without any authentication or authorization. This should be changed so that only authenticated publishers can manage their own books. Additionally, a Super Admin (User ID 0) should have the ability to manage all books.
Requirements
- Implement JWT authentication
- Use Bearer Tokens for publisher identification
- Publishers can only create, update, and delete their own books
- Super Admin (User ID 0) can manage all books
- Unauthenticated users cannot perform any of the mentioned actions
- Implement Policies to check permissions
- Implement Unit and Feature Tests to ensure functionality and security
Acceptance Criteria
- Authentication
- Authorization for Publishers
- Super Admin Privileges
- Security
- Testing
Additional Information
Affected Endpoints:
POST /booksPUT /books/{id}DELETE /books/{id}
Technologies:
- JWT (JSON Web Token)
- Bearer Authentication
- Policies / FilterScopes
Resources
- JWT.io for token validation
- Laravel documentation for authentication & authorization implementation
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request