First of all, thanks for sharing the lib; it's incredible!
I'm setting my first project using it with Knex default processor, and I have two situations challenging me:
I need to inject user information to apply filters based on account. But my authentication is not with JWT, it is using cookies (ory.sh). I understand that the built-in method is only for JWT, and it won't work for me. I understand that I can rewrite the jsonApiKoa middleware as a local middleware and adapt to inject using my cookies/session approach. Rewriting this file in my project makes sense, or is it not made to be changed/extended, and the library is not designed for that?
I need to apply a scope in my CustomProcessor extended from KnexProcessor based on user tenant ID (user only can see your data - so a filter needs to be applied in all queries). Is there an example of something like that? The only way to get user information is with this.appInstance.user ? Access requests headers or other information is possible inside a CustomProcessor?
Thanks in advance, and sorry if I created duplicated questions.
First of all, thanks for sharing the lib; it's incredible!
I'm setting my first project using it with Knex default processor, and I have two situations challenging me:
this.appInstance.user
? Access requests headers or other information is possible inside a CustomProcessor?Thanks in advance, and sorry if I created duplicated questions.