question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Provide a TaskScheduler variant for DelegatingSecurityContextExecutor

See original GitHub issue

Summary

Spring Security provides a DelegatingSecurityContextRunnable abstraction for Runnable that can be used for async and scheduled tasks. The primary contract for task scheduling is TaskScheduler and there’s no such wrapper available at the moment.

Actual Behavior

Users are configuring a DelegatingSecurityContextScheduledExecutorService for support of @EnableScheduling which is not the primary contract that @EnableScheduling expects.

Expected Behavior

Spring Security provides a TaskScheduler variant or the documentation routes users to expose a TaskScheduler bean rather than exposing a ScheduledExecutorService bean.

This relates to https://github.com/spring-projects/spring-boot/issues/15032 - Spring Framework considers ScheduledExecutorService as a fallback of the primary TaskScheduler API. It would be nice if Spring Security aligns to that, either in code or in guiding users in the documentation.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:12 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
richardvaldiviesomaciascommented, Dec 3, 2018

Sure I will give it a try. Thanks @avirekghatia

1reaction
rwinchcommented, Nov 8, 2018

Thank you @avirekghatia! The issue is all yours. Let me know if you need any help working on this issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

spring-projects/spring-security - Gitter
I picked the issue 6043 about Provide a TaskScheduler variant for DelegatingSecurityContextExecutor. I have some questions since it is my very first time...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found