Skip to content

Question: how access context / req data in Processors and apply global scopes? #331

Answered by joelalejandro
renanwilliam asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @renanwilliam!

  • You could implement your own jsonApiKoa middleware in your own project. Unfortunately the current version doesn't expose http-utils, which you'd need to create your own processor. We can export those.
  • Scoping data is possible through the UserManagementAddon, using the IfUser helpers as described in the docs: https://kurier.readthedocs.io/en/latest/#authentication-and-authorization. Basically what it does is to apply conditional checks over this.appInstance.user.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by joelalejandro
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #328 on December 27, 2022 22:53.