Package io.jmix.securityflowui.security
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
Modifier and TypeFieldDescriptionprotected org.springframework.context.ApplicationContext
protected org.springframework.boot.autoconfigure.web.ServerProperties
protected jakarta.servlet.ServletContext
protected UiProperties
protected ViewRegistry
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected 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 fixedprotected void
configureJmixSpecifics
(org.springframework.security.config.annotation.web.builders.HttpSecurity http) Configures theHttpSecurity
by adding Jmix-specific settings.protected String
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
setServletContext
(jakarta.servlet.ServletContext servletContext) void
setUiProperties
(UiProperties uiProperties) void
setViewRegistry
(ViewRegistry viewRegistry) 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
-
Field Details
-
uiProperties
-
viewRegistry
-
applicationContext
protected org.springframework.context.ApplicationContext applicationContext -
serverProperties
protected org.springframework.boot.autoconfigure.web.ServerProperties serverProperties -
servletContext
protected jakarta.servlet.ServletContext servletContext
-
-
Constructor Details
-
FlowuiVaadinWebSecurity
public FlowuiVaadinWebSecurity()
-
-
Method Details
-
setApplicationContext
@Autowired public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) -
setUiProperties
-
setViewRegistry
-
setServerProperties
@Autowired public void setServerProperties(org.springframework.boot.autoconfigure.web.ServerProperties serverProperties) -
setServletContext
@Autowired public void setServletContext(jakarta.servlet.ServletContext servletContext) -
configure
protected void configure(org.springframework.security.config.annotation.web.builders.HttpSecurity http) throws Exception - Overrides:
configure
in classcom.vaadin.flow.spring.security.VaadinWebSecurity
- Throws:
Exception
-
configureJmixSpecifics
protected void configureJmixSpecifics(org.springframework.security.config.annotation.web.builders.HttpSecurity http) throws Exception Configures theHttpSecurity
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
-
getLogoutSuccessUrl
-
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 classcom.vaadin.flow.spring.security.VaadinWebSecurity
- Throws:
Exception
-