@AutoConfiguration(after=GraphQlWebMvcAutoConfiguration.class) @ConditionalOnWebApplication(type=SERVLET) @ConditionalOnClass(value={graphql.GraphQL.class,org.springframework.graphql.server.webmvc.GraphQlHttpHandler.class,org.springframework.security.config.annotation.web.configuration.EnableWebSecurity.class}) @ConditionalOnBean(value=org.springframework.graphql.server.webmvc.GraphQlHttpHandler.class) public class GraphQlWebMvcSecurityAutoConfiguration extends Object
Auto-configuration
for enabling Security support for
Spring GraphQL with MVC.Constructor and Description |
---|
GraphQlWebMvcSecurityAutoConfiguration() |
Modifier and Type | Method and Description |
---|---|
org.springframework.graphql.execution.SecurityContextThreadLocalAccessor |
securityContextThreadLocalAccessor() |
org.springframework.graphql.execution.SecurityDataFetcherExceptionResolver |
securityDataFetcherExceptionResolver() |
public GraphQlWebMvcSecurityAutoConfiguration()
@Bean @ConditionalOnMissingBean public org.springframework.graphql.execution.SecurityDataFetcherExceptionResolver securityDataFetcherExceptionResolver()
@Bean @ConditionalOnMissingBean public org.springframework.graphql.execution.SecurityContextThreadLocalAccessor securityContextThreadLocalAccessor()