You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Observe that the request is processed and a cell is created — no authentication required.
Expected Behavior
The endpoint should return 401 Unauthorized for any request missing a valid Authorization: Bearer <token> header.
Screenshots
{"message": "Successfully added cell", "id": 9, "name": "NEW CELL"}
bug1.mp4
Response above is returned with no auth token. A real user's email is all that is needed.
Environment
OS: Windows
Affected file: backend/api/resources/cell.py
Additional Context
Other endpoints like PUT /api/cell/<id> and DELETE /api/cell/<id> correctly use the @authenticate decorator. The POST handler is missing it. Adding @authenticate to the post() method should fix this.
If this Issue looks legit then I would like to work on it
Describe the Bug
POST /api/cell/has no authentication check. Any unauthenticated request with a valid user email can create a cell without being logged in./api/cell/with noAuthorizationheader successfully reaches the cell creation logic.401 Unauthorizedimmediately if no valid token is provided.To Reproduce
Expected Behavior
The endpoint should return
401 Unauthorizedfor any request missing a validAuthorization: Bearer <token>header.Screenshots
{"message": "Successfully added cell", "id": 9, "name": "NEW CELL"}bug1.mp4
Response above is returned with no auth token. A real user's email is all that is needed.
Environment
backend/api/resources/cell.pyAdditional Context
Other endpoints like
PUT /api/cell/<id>andDELETE /api/cell/<id>correctly use the@authenticatedecorator. ThePOSThandler is missing it. Adding@authenticateto thepost()method should fix this.If this Issue looks legit then I would like to work on it