Skip to content
This repository was archived by the owner on Dec 19, 2023. It is now read-only.

Commit 9d1779b

Browse files
committed
chore: remove unnecessary spring security props
1 parent b442a52 commit 9d1779b

File tree

3 files changed

+3
-18
lines changed

3 files changed

+3
-18
lines changed

graphql-spring-boot-autoconfigure/src/main/java/graphql/kickstart/autoconfigure/web/servlet/AsyncServletProperties.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ public class AsyncServletProperties {
99

1010
private boolean enabled = true;
1111
private long timeout = 30000;
12+
private boolean delegateSecurityContext = true;
1213
private Threads threads = new Threads();
1314

1415
@Data

graphql-spring-boot-autoconfigure/src/main/java/graphql/kickstart/autoconfigure/web/servlet/GraphQLSpringSecurityProperties.java

Lines changed: 0 additions & 11 deletions
This file was deleted.

graphql-spring-boot-autoconfigure/src/main/java/graphql/kickstart/autoconfigure/web/servlet/GraphQLWebSecurityAutoConfiguration.java

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,21 +28,16 @@
2828
matchIfMissing = true)
2929
@AutoConfigureBefore(GraphQLWebAutoConfiguration.class)
3030
@ConditionalOnClass({DispatcherServlet.class, DefaultAuthenticationEventPublisher.class})
31-
@EnableConfigurationProperties({
32-
GraphQLServletProperties.class,
33-
AsyncServletProperties.class,
34-
GraphQLSpringSecurityProperties.class
35-
})
31+
@EnableConfigurationProperties({GraphQLServletProperties.class, AsyncServletProperties.class})
3632
public class GraphQLWebSecurityAutoConfiguration {
3733

3834
private final GraphQLServletProperties graphqlServletProperties;
3935
private final AsyncServletProperties asyncServletProperties;
40-
private final GraphQLSpringSecurityProperties securityProperties;
4136

4237
@Bean("graphqlAsyncTaskExecutor")
4338
@ConditionalOnMissingBean(name = "graphqlAsyncTaskExecutor")
4439
public Executor threadPoolTaskExecutor() {
45-
if (isAsyncModeEnabled() && securityProperties.isDelegateSecurityContext()) {
40+
if (isAsyncModeEnabled() && asyncServletProperties.isDelegateSecurityContext()) {
4641
ThreadPoolTaskExecutor executor = new ThreadPoolTaskExecutor();
4742
executor.setCorePoolSize(asyncServletProperties.getThreads().getMin());
4843
executor.setMaxPoolSize(asyncServletProperties.getThreads().getMax());

0 commit comments

Comments
 (0)