Class FlowuiSecurityConfiguration

java.lang.Object
io.jmix.securityflowui.FlowuiSecurityConfiguration

@Deprecated(since="2.3", forRemoval=true) public class FlowuiSecurityConfiguration extends Object
Deprecated, for removal: This API element is subject to removal in a future version.
FlowuiVaadinWebSecurity is used instead.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    protected static class 
    Deprecated, for removal: This API element is subject to removal in a future version.
     
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected org.springframework.context.ApplicationContext
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    protected com.vaadin.flow.spring.VaadinConfigurationProperties
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    static final String
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    static final String
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    protected com.vaadin.flow.spring.security.RequestUtil
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    static final String
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    protected org.springframework.boot.autoconfigure.web.ServerProperties
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    protected UiProperties
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    protected com.vaadin.flow.spring.security.VaadinDefaultRequestCache
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    protected ViewRegistry
    Deprecated, for removal: This API element is subject to removal in a future version.
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated, for removal: This API element is subject to removal in a future version.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Deprecated, for removal: This API element is subject to removal in a future version.
    Prepends to the given path with the configured url mapping.
    static String
    applyUrlMapping(String urlMapping, String path)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Prepends to the given path with the servlet path prefix from input url mapping.
    protected void
    configure(org.springframework.security.config.annotation.web.builders.HttpSecurity http)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    protected org.springframework.security.web.access.AccessDeniedHandler
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    protected org.springframework.security.web.util.matcher.RequestMatcher
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    protected org.springframework.security.web.util.matcher.RequestMatcher
    createLogoutRequestMatcher(String logoutUrl, String httpMethod)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    protected com.vaadin.flow.spring.security.VaadinSavedRequestAwareAuthenticationSuccessHandler
    createSuccessHandler(org.springframework.security.config.annotation.web.builders.HttpSecurity http)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    static org.springframework.security.web.util.matcher.RequestMatcher
    Deprecated, for removal: This API element is subject to removal in a future version.
    Matcher for framework internal requests, with Vaadin servlet mapped on the given path.
    static org.springframework.security.web.util.matcher.RequestMatcher
    Deprecated, for removal: This API element is subject to removal in a future version.
    Matcher for Vaadin static (public) resources, with Vaadin servlet mapped on the given path.
    protected String
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    protected void
    initLoginView(org.springframework.security.config.annotation.web.builders.HttpSecurity http)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    org.springframework.security.web.SecurityFilterChain
    securityFilterChain(org.springframework.security.config.annotation.web.builders.HttpSecurity http)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    void
    setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    void
    setConfigurationProperties(com.vaadin.flow.spring.VaadinConfigurationProperties configurationProperties)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    protected void
    setLoginView(org.springframework.security.config.annotation.web.builders.HttpSecurity http, Class<? extends com.vaadin.flow.component.Component> viewClass)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    protected void
    setLoginView(org.springframework.security.config.annotation.web.builders.HttpSecurity http, Class<? extends com.vaadin.flow.component.Component> loginViewClass, String logoutUrl)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    protected void
    setLoginView(org.springframework.security.config.annotation.web.builders.HttpSecurity http, String viewId)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    protected void
    setLoginView(org.springframework.security.config.annotation.web.builders.HttpSecurity http, String viewId, String logoutUrl)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    void
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    void
    setRequestUtil(com.vaadin.flow.spring.security.RequestUtil requestUtil)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    void
    setServerProperties(org.springframework.boot.autoconfigure.web.ServerProperties serverProperties)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    void
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    void
    setVaadinDefaultRequestCache(com.vaadin.flow.spring.security.VaadinDefaultRequestCache vaadinDefaultRequestCache)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    void
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    void
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    org.springframework.security.config.annotation.web.configuration.WebSecurityCustomizer
    Deprecated, for removal: This API element is subject to removal in a future version.
    The paths listed as "ignoring" in this method are handled without any Spring Security involvement.

    Methods inherited from class java.lang.Object

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

    • LOGOUT_URL

      public static final String LOGOUT_URL
      Deprecated, for removal: This API element is subject to removal in a future version.
      See Also:
    • LOGOUT_SUCCESS_URL

      public static final String LOGOUT_SUCCESS_URL
      Deprecated, for removal: This API element is subject to removal in a future version.
      See Also:
    • SECURITY_CONFIGURER_QUALIFIER

      public static final String SECURITY_CONFIGURER_QUALIFIER
      Deprecated, for removal: This API element is subject to removal in a future version.
      See Also:
    • applicationContext

      protected org.springframework.context.ApplicationContext applicationContext
      Deprecated, for removal: This API element is subject to removal in a future version.
    • vaadinDefaultRequestCache

      protected com.vaadin.flow.spring.security.VaadinDefaultRequestCache vaadinDefaultRequestCache
      Deprecated, for removal: This API element is subject to removal in a future version.
    • configurationProperties

      protected com.vaadin.flow.spring.VaadinConfigurationProperties configurationProperties
      Deprecated, for removal: This API element is subject to removal in a future version.
    • requestUtil

      protected com.vaadin.flow.spring.security.RequestUtil requestUtil
      Deprecated, for removal: This API element is subject to removal in a future version.
    • viewAccessChecker

      protected UiViewAccessChecker viewAccessChecker
      Deprecated, for removal: This API element is subject to removal in a future version.
    • uiProperties

      protected UiProperties uiProperties
      Deprecated, for removal: This API element is subject to removal in a future version.
    • viewRegistry

      protected ViewRegistry viewRegistry
      Deprecated, for removal: This API element is subject to removal in a future version.
    • serverProperties

      protected org.springframework.boot.autoconfigure.web.ServerProperties serverProperties
      Deprecated, for removal: This API element is subject to removal in a future version.
    • prevVaadinRequestUtil

      protected PrevVaadinRequestUtil prevVaadinRequestUtil
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Constructor Details

    • FlowuiSecurityConfiguration

      public FlowuiSecurityConfiguration()
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Method Details

    • setPrevVaadinRequestUtil

      @Autowired public void setPrevVaadinRequestUtil(PrevVaadinRequestUtil prevVaadinRequestUtil)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • setApplicationContext

      @Autowired public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • setVaadinDefaultRequestCache

      @Autowired public void setVaadinDefaultRequestCache(com.vaadin.flow.spring.security.VaadinDefaultRequestCache vaadinDefaultRequestCache)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • setConfigurationProperties

      @Autowired public void setConfigurationProperties(com.vaadin.flow.spring.VaadinConfigurationProperties configurationProperties)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • setRequestUtil

      @Autowired public void setRequestUtil(com.vaadin.flow.spring.security.RequestUtil requestUtil)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • setViewAccessChecker

      @Autowired public void setViewAccessChecker(UiViewAccessChecker viewAccessChecker)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • setUiProperties

      @Autowired public void setUiProperties(UiProperties uiProperties)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • setViewRegistry

      @Autowired public void setViewRegistry(ViewRegistry viewRegistry)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • setServerProperties

      @Autowired public void setServerProperties(org.springframework.boot.autoconfigure.web.ServerProperties serverProperties)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • webSecurityCustomizer

      @Bean public org.springframework.security.config.annotation.web.configuration.WebSecurityCustomizer webSecurityCustomizer()
      Deprecated, for removal: This API element is subject to removal in a future version.
      The paths listed as "ignoring" in this method are handled without any Spring Security involvement. They have no access to any security context etc.

    • securityFilterChain

      @Bean("sec_UiSecurityFilterChain") @Order(400) public org.springframework.security.web.SecurityFilterChain securityFilterChain(org.springframework.security.config.annotation.web.builders.HttpSecurity http) throws Exception
      Deprecated, for removal: This API element is subject to removal in a future version.
      Throws:
      Exception
    • configure

      protected void configure(org.springframework.security.config.annotation.web.builders.HttpSecurity http) throws Exception
      Deprecated, for removal: This API element is subject to removal in a future version.
      Throws:
      Exception
    • initLoginView

      protected void initLoginView(org.springframework.security.config.annotation.web.builders.HttpSecurity http) throws Exception
      Deprecated, for removal: This API element is subject to removal in a future version.
      Throws:
      Exception
    • getDefaultHttpSecurityPermitMatcher

      public static org.springframework.security.web.util.matcher.RequestMatcher getDefaultHttpSecurityPermitMatcher(String urlMapping)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Matcher for framework internal requests, with Vaadin servlet mapped on the given path.
      Parameters:
      urlMapping - url mapping for the Vaadin servlet.
      Returns:
      default HttpSecurity bypass matcher
    • getDefaultWebSecurityIgnoreMatcher

      public static org.springframework.security.web.util.matcher.RequestMatcher getDefaultWebSecurityIgnoreMatcher(String urlMapping)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Matcher for Vaadin static (public) resources, with Vaadin servlet mapped on the given path.

      Assumes Vaadin servlet to be mapped on root path (/*).

      Parameters:
      urlMapping - the url mapping for the Vaadin servlet
      Returns:
      default WebSecurity ignore matcher
    • setLoginView

      protected void setLoginView(org.springframework.security.config.annotation.web.builders.HttpSecurity http, String viewId) throws Exception
      Deprecated, for removal: This API element is subject to removal in a future version.
      Throws:
      Exception
    • setLoginView

      protected void setLoginView(org.springframework.security.config.annotation.web.builders.HttpSecurity http, String viewId, String logoutUrl) throws Exception
      Deprecated, for removal: This API element is subject to removal in a future version.
      Throws:
      Exception
    • setLoginView

      protected void setLoginView(org.springframework.security.config.annotation.web.builders.HttpSecurity http, Class<? extends com.vaadin.flow.component.Component> viewClass) throws Exception
      Deprecated, for removal: This API element is subject to removal in a future version.
      Throws:
      Exception
    • setLoginView

      protected void setLoginView(org.springframework.security.config.annotation.web.builders.HttpSecurity http, Class<? extends com.vaadin.flow.component.Component> loginViewClass, String logoutUrl) throws Exception
      Deprecated, for removal: This API element is subject to removal in a future version.
      Throws:
      Exception
    • createLogoutRequestMatcher

      protected org.springframework.security.web.util.matcher.RequestMatcher createLogoutRequestMatcher(String logoutUrl)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • createLogoutRequestMatcher

      protected org.springframework.security.web.util.matcher.RequestMatcher createLogoutRequestMatcher(String logoutUrl, String httpMethod)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • createSuccessHandler

      protected com.vaadin.flow.spring.security.VaadinSavedRequestAwareAuthenticationSuccessHandler createSuccessHandler(org.springframework.security.config.annotation.web.builders.HttpSecurity http)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • createAccessDeniedHandler

      protected org.springframework.security.web.access.AccessDeniedHandler createAccessDeniedHandler()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getUrlMapping

      public String getUrlMapping()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • applyUrlMapping

      public String applyUrlMapping(String path)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Prepends to the given path with the configured url mapping.

      A null path is treated as empty string; the same applies for url mapping.

      Parameters:
      path - a path
      Returns:
      the path with prepended url mapping.
      See Also:
      • VaadinConfigurationProperties.getUrlMapping()
    • applyUrlMapping

      public static String applyUrlMapping(@Nullable String urlMapping, @Nullable String path)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Prepends to the given path with the servlet path prefix from input url mapping.

      A null path is treated as empty string; the same applies for url mapping.

      Parameters:
      path - a path
      urlMapping - url mapping
      Returns:
      the path with prepended url mapping.
      See Also:
      • VaadinConfigurationProperties.getUrlMapping()
    • getLoginPath

      protected String getLoginPath()
      Deprecated, for removal: This API element is subject to removal in a future version.