Skip to content

Add admin authentication for community member listing #2

@Lakes41

Description

@Lakes41

The admin member listing service includes a TODO to ensure the requester is an admin. Implement authentication and authorisation for GET /v1/communities/:communityId/members so member data is not exposed publicly.

Suggested tasks

  • Define the authentication mechanism for admin API access
  • Check that the requester has an active admin role for the community
  • Return 401 for unauthenticated requests
  • Return 403 for authenticated users without admin access
  • Add tests for admin, non-admin, and unauthenticated access
  • Document the required headers or auth flow

Acceptance criteria

  • Community member listing requires admin access
  • Non-admin users cannot list community members
  • Authentication and authorisation failures return clear responses
  • Tests cover allowed and denied cases

Metadata

Metadata

Assignees

No one assigned

    Labels

    GrantFox OSSIssue tracked in GrantFox OSSMaybe RewardedIssue may be eligible for a GrantFox rewardOfficial CampaignCampaign: Official Campaign

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions