Skip to content
This repository was archived by the owner on Oct 14, 2020. It is now read-only.

Discussion about security #7

@eddyystop

Description

@eddyystop

The server needs to approve the publication requested by the client. The docs talk about additional service filters doing this, however they don't have much info available.

@marshall is likely the go-to person for this.

Idea #1:

// In addition to
serverPublications(app, commonPublications, ['messages', 'channels']);
// allow the signature
serverPublications(app, commonPublications, { messages: fcn1, channels: fcn2 });

The fcn* would be called when a publication is requested by the client. Its param would be derived from the options object in

clientPublications.addPublication(feathersClient, 'messages', {
  module: commonPublications,
  name: 'query',
  params: { username },
});

Any additional props in there would also be passed to fcn*

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions