Class FlowuiVaadinWebSecurity

java.lang.Object
com.vaadin.flow.spring.security.VaadinWebSecurity
io.jmix.securityflowui.security.FlowuiVaadinWebSecurity
Direct Known Subclasses:
SecurityFlowuiAutoConfiguration.DefaultFlowuiVaadinWebSecurity

public class FlowuiVaadinWebSecurity extends com.vaadin.flow.spring.security.VaadinWebSecurity
Provides default Vaadin and Jmix FlowUI security to the project.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected org.springframework.context.ApplicationContext
     
    protected org.springframework.boot.autoconfigure.web.ServerProperties
     
    protected UiProperties
     
    protected ViewRegistry
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    configure(org.springframework.security.config.annotation.web.builders.HttpSecurity http)
     
    protected void
    configure(org.springframework.security.config.annotation.web.builders.WebSecurity web)
    Temporary workaround until https://github.com/vaadin/flow/issues/19075 is fixed
    protected void
    configureJmixSpecifics(org.springframework.security.config.annotation.web.builders.HttpSecurity http)
    Configures the HttpSecurity by adding Jmix-specific settings.
    protected String
     
    protected void
    initLoginView(org.springframework.security.config.annotation.web.builders.HttpSecurity http)
    Configures login view by finding login view id in application properties.
    void
    setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
     
    void
    setServerProperties(org.springframework.boot.autoconfigure.web.ServerProperties serverProperties)
     
    void
     
    void
     

    Methods inherited from class com.vaadin.flow.spring.security.VaadinWebSecurity

    addLogoutHandlers, antMatchers, applyUrlMapping, enableNavigationAccessControl, filterChain, getAuthenticationContext, getDefaultHttpSecurityPermitMatcher, getDefaultHttpSecurityPermitMatcher, getDefaultWebSecurityIgnoreMatcher, getDefaultWebSecurityIgnoreMatcher, getNavigationAccessControl, getViewAccessChecker, routeMatchers, setLoginView, setLoginView, setLoginView, setLoginView, setOAuth2LoginPage, setStatelessAuthentication, setStatelessAuthentication, webSecurityCustomizer

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • uiProperties

      protected UiProperties uiProperties
    • viewRegistry

      protected ViewRegistry viewRegistry
    • applicationContext

      protected org.springframework.context.ApplicationContext applicationContext
    • serverProperties

      protected org.springframework.boot.autoconfigure.web.ServerProperties serverProperties
  • Constructor Details

    • FlowuiVaadinWebSecurity

      public FlowuiVaadinWebSecurity()
  • Method Details

    • setApplicationContext

      @Autowired public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
    • setUiProperties

      @Autowired public void setUiProperties(UiProperties uiProperties)
    • setViewRegistry

      @Autowired public void setViewRegistry(ViewRegistry viewRegistry)
    • setServerProperties

      @Autowired public void setServerProperties(org.springframework.boot.autoconfigure.web.ServerProperties serverProperties)
    • configure

      protected void configure(org.springframework.security.config.annotation.web.builders.HttpSecurity http) throws Exception
      Overrides:
      configure in class com.vaadin.flow.spring.security.VaadinWebSecurity
      Throws:
      Exception
    • configureJmixSpecifics

      protected void configureJmixSpecifics(org.springframework.security.config.annotation.web.builders.HttpSecurity http) throws Exception
      Configures the HttpSecurity by adding Jmix-specific settings.
      Throws:
      Exception
    • initLoginView

      protected void initLoginView(org.springframework.security.config.annotation.web.builders.HttpSecurity http) throws Exception
      Configures login view by finding login view id in application properties.
      Throws:
      Exception
    • getLoginPath

      protected String getLoginPath()
    • configure

      protected void configure(org.springframework.security.config.annotation.web.builders.WebSecurity web) throws Exception
      Temporary workaround until https://github.com/vaadin/flow/issues/19075 is fixed
      Overrides:
      configure in class com.vaadin.flow.spring.security.VaadinWebSecurity
      Throws:
      Exception