Class SpringSecurityAutoConfiguration

java.lang.Object
com.vaadin.flow.spring.SpringSecurityAutoConfiguration

@Configuration(proxyBeanMethods=false) @ConditionalOnClass(org.springframework.security.config.annotation.web.configuration.WebSecurityCustomizer.class) @EnableConfigurationProperties(VaadinConfigurationProperties.class) public class SpringSecurityAutoConfiguration extends Object
Spring boot auto-configuration class for Flow.
Author:
Vaadin Ltd
  • Constructor Details

    • SpringSecurityAutoConfiguration

      public SpringSecurityAutoConfiguration()
  • Method Details

    • vaadinDefaultRequestCache

      @Bean public VaadinDefaultRequestCache vaadinDefaultRequestCache()
      Makes the default request cache available for security configuration.
      Returns:
      the default request cache
    • annotatedViewAccessChecker

      @Bean public AnnotatedViewAccessChecker annotatedViewAccessChecker(AccessAnnotationChecker accessAnnotationChecker)
      Makes the default annotation based view access checker available for security configuration.
      Parameters:
      accessAnnotationChecker - the AccessAnnotationChecker bean to use
      Returns:
      the default view access checker
    • routePathAccessChecker

      @Bean public RoutePathAccessChecker routePathAccessChecker(AccessPathChecker accessPathChecker)
      Makes the default route path access checker available for security configuration.
      Parameters:
      accessPathChecker - the AccessPathChecker bean to use
      Returns:
      the default route path access checker
    • accessPatchChecker

      @Bean @ConditionalOnMissingBean public AccessPathChecker accessPatchChecker(VaadinConfigurationProperties vaadinProperties, @Lazy org.springframework.security.web.access.WebInvocationPrivilegeEvaluator evaluator)
      Makes the default route path access checker available for security configuration.
      Parameters:
      vaadinProperties - vaadin configuration properties
      evaluator - URI privileges evaluator
      Returns:
      the default route path access checker
    • accessAnnotationChecker

      @Bean @ConditionalOnMissingBean public AccessAnnotationChecker accessAnnotationChecker()
      Makes the default access annotation checker available for security configuration.

      Fusion makes this bean available by default but if Fusion is excluded from the project, we make it available here

      Returns:
      the default access annotation checker
    • requestUtil

      @Bean public RequestUtil requestUtil()
      Makes the request util available.
      Returns:
      the request util
    • vaadinRolePrefixHolder

      @Bean @ConditionalOnMissingBean public VaadinRolePrefixHolder vaadinRolePrefixHolder(Optional<org.springframework.security.config.core.GrantedAuthorityDefaults> grantedAuthorityDefaults)
      Makes role prefix holder available for security configuration.
      Parameters:
      grantedAuthorityDefaults - Optional granted authority defaults bean for the default role prefix
      Returns:
      the role prefix holder