-
Notifications
You must be signed in to change notification settings - Fork 6.1k
DelegatingSecurityContextTaskScheduler does not allow to use a specific SecurityContext #9514
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
Labels
Comments
Thanks for the report, @gbaso. I agree that Would you be able to provide a PR with that change? |
gbaso
added a commit
to gbaso/spring-security
that referenced
this issue
Apr 16, 2021
Wrap DelegatingSecurityContextTaskScheduler's Runnable tasks in DelegatingSecurityContextRunnables, allowing to specify a SecurityContext to use for tasks execution. - Renamed private variable taskScheduler to delegate - Removed unused local variable in unit test - Add SecurityContext tests for delegating TaskScheduler Closes spring-projectsgh-9514
akohli96
pushed a commit
to akohli96/spring-security
that referenced
this issue
Aug 25, 2021
Wrap DelegatingSecurityContextTaskScheduler's Runnable tasks in DelegatingSecurityContextRunnables, allowing to specify a SecurityContext to use for tasks execution. - Renamed private variable taskScheduler to delegate - Removed unused local variable in unit test - Add SecurityContext tests for delegating TaskScheduler Closes spring-projectsgh-9514
akohli96
pushed a commit
to akohli96/spring-security
that referenced
this issue
Aug 25, 2021
akohli96
pushed a commit
to akohli96/spring-security
that referenced
this issue
Aug 25, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Uh oh!
There was an error while loading. Please reload this page.
Expected Behavior
DelegatingSecurityContextTaskScheduler
should have a constructor accepting aTaskScheduler
and aSecurityContext
.Current Behavior
Unlike similar classes like
DelegatingSecurityContextAsyncTaskExecutor
andDelegatingSecurityContextScheduledExecutorService
,DelegatingSecurityContextTaskScheduler
does not extendsAbstractDelegatingSecurityContextSupport
and does not contains aSecurityContext
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 #6043The text was updated successfully, but these errors were encountered: