feat(auth): implement and verify authorization for all endpoints #71

Merged
chartgerink merged 11 commits from fix/54 into main 2025-08-21 12:26:01 +00:00
Owner
  • add authorization methods (role-based and generic traits for user-based)
  • add Authorizable trait models
  • add role-based access for POST, DELETE, PUT of institutions
  • add self or admin access for users and affiliations
  • add resource-based access for authorships, outputs, invitations, and versions

Fixes #54. All routes with JwtMiddleware need to implement authorization from here on.

- add authorization methods (role-based and generic traits for user-based) - add `Authorizable` trait models - add role-based access for POST, DELETE, PUT of `institutions` - add self or admin access for `users` and `affiliations` - add resource-based access for `authorships`, `outputs`, `invitations`, and `versions` Fixes #54. All routes with `JwtMiddleware` need to implement authorization from here on.
chartgerink deleted branch fix/54 2025-08-21 12:26:01 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: libscie/researchequals-api#71
No description provided.