Replies: 1 comment
-
hi |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello! I'm moving some logic from the rest endpoint to a background job.
I managed to get the background job working fine, and I see that in the AbpBackgroundJobs table there is a column that holds the user Id that created it, which matches mine.
The problem is that the AbpSession appears to be null on dependencies that I import in the BackgroundJob, thus I'm having trouble porting some logic.
What would be the best way of authorizing as the user that queued the background job so all other services that you depend on (which are not singletons) use that session?
Beta Was this translation helpful? Give feedback.
All reactions