Add authenticated API endpoints for assigning, updating, and removing member roles within a community.
POST /v1/communities/:communityId/members/:wallet/roles(assign)DELETE /v1/communities/:communityId/members/:wallet/roles/:role(remove)
GET /v1/communities/:communityId/members- Now denies with 403 when requester is not an admin (requester wallet derived from
x-wallet/x-user-wallet/x-requester-walletheaders).
- Now denies with 403 when requester is not an admin (requester wallet derived from
-
apps/access-api/src/routes.ts- Enforced admin authorization for the members listing route using the requester wallet identity.
-
apps/access-api/test/routes.integration.test.ts- Updated the test app mock wiring to include
assignMemberRoleandremoveMemberRole. - Added integration tests for:
- Assign role endpoint (POST)
- Remove role endpoint (DELETE)
- Updated the test app mock wiring to include
- Route integration tests for assign/remove success paths.
- Running Jest is blocked in this environment due to Windows PowerShell execution policy restrictions that prevent
npm/pnpm/npxfrom running ps1 scripts. attempt_completiontool calls were also failing in-session, so this report file is provided as a completion artifact.