Hi,
I am using task executor in controller while using current authentication in task executor we are getting null values. Is there any way to fetch current login user details.
Hi,
I am using task executor in controller while using current authentication in task executor we are getting null values. Is there any way to fetch current login user details.
Hi,
Background tasks are executed in separate threads. These threads have no access to the current authentication, which is stored in a ThreadLocal variable.
You should obtain the current authentication in your screen controller and pass it as a parameter in a constructor to your BackgroundTask instance. This is similar to how users are passed to the EmailTask
in the documentation example.