@Configuration(proxyBeanMethods=false) @ConditionalOnWebApplication(type=SERVLET) @ConditionalOnClass(value={graphql.GraphQL.class,org.springframework.graphql.web.webmvc.GraphQlHttpHandler.class,org.springframework.security.config.annotation.web.configuration.EnableWebSecurity.class}) @ConditionalOnBean(value=org.springframework.graphql.web.webmvc.GraphQlHttpHandler.class) @AutoConfigureAfter(value=GraphQlWebMvcAutoConfiguration.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.security.SecurityContextThreadLocalAccessor |
securityContextThreadLocalAccessor() |
org.springframework.graphql.security.SecurityDataFetcherExceptionResolver |
securityDataFetcherExceptionResolver() |
public GraphQlWebMvcSecurityAutoConfiguration()
@Bean @ConditionalOnMissingBean public org.springframework.graphql.security.SecurityDataFetcherExceptionResolver securityDataFetcherExceptionResolver()
@Bean @ConditionalOnMissingBean public org.springframework.graphql.security.SecurityContextThreadLocalAccessor securityContextThreadLocalAccessor()