Skip to content

Implement "hidden" collection filtering for access control #862

@philvarner

Description

@philvarner

For endpoints:

  • GET /collections
  • GET /collections/{collectionId}
  • GET /collections/{collectionId}/items

Add a "hidden" query parameter _ids that is a csv of collection IDs. This should filter the collections returned from the endpoint. The parameter should not be included in pagination parameters. The intention of this parameter is to allow an auth proxy (e.g., only implemented using the pre-hook lambda) to add an extra hidden parameter that restricts a user's visible collections.

GET /collections

Should return the same collection object, just with only the allowed collections included.

GET /collections/{collectionId}

Should return a 404 if the requested {collectionId} is not in the list

GET /collections/{collectionId}/items

Should return a 404 if the requested {collectionId} is not in the list

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions