-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[EVOLUTION] - Store auth information on CrudRequest object #11
Comments
What is the use case for that? Isn't it enough getting the user from the request object? |
Sorry i think my issue is not very clear, i think there is 2 linkeds subjects :
This feature give a usefulll "helper" for développer.
This feature give more flexibility on request process. |
I see, it makes sense yes. If you are willing to make a PR I will review and merge it. Else we might introduce when we need it, right now we have no immediate need for this functionality but I can see it ( especially the extra parameters) being very useful. |
Hi, the PR is here for your code review #13 thx. |
#11 Store auth information on CrudRequest object
Feature is implemented on v5.2.3 |
Hi.
First of all : thinks you for your fork ! ;-)
Subject :
CrudRequest
object is pass between Controller and Service. But on this object we dont store any context informations as authenticate user for exemple : (this is nice to have auth user object on service (stored on nativeRequest
object))Do you think it's possible to store extra informations on
CrudRequest
object and in particular auth. user?Request
object is not possible : risk of producing strange case with singleton service (switch to Scope=Request by nestJs), but store auth user information seen to be possible.Request
object with nesths-crud configurationauth
. sample configuration ;The text was updated successfully, but these errors were encountered: