Expected Behavior
DelegatingSecurityContextTaskScheduler should have a constructor accepting a TaskScheduler and a SecurityContext.
Current Behavior
Unlike similar classes like DelegatingSecurityContextAsyncTaskExecutor and DelegatingSecurityContextScheduledExecutorService, DelegatingSecurityContextTaskScheduler does not extends AbstractDelegatingSecurityContextSupport and does not contains a SecurityContext field. As of now, it's just a plain wrapper.
Looking at past issues, it looks like DelegatingSecurityContextTaskScheduler was requested in #3125 and introduced in #6043
Comment From: jzheaux
Thanks for the report, @gbaso. I agree that DelegatingSecurityContextTaskScheduler should wrap the Runnable instances it receives in DelegatingSecurityContextRunnables.
Would you be able to provide a PR with that change?
Comment From: gbaso
@jzheaux I submitted #9532 to fix the issue