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
FieldsModifier and TypeFieldDescriptionprotected org.springframework.context.ApplicationContextprotected org.springframework.boot.autoconfigure.web.ServerPropertiesprotected jakarta.servlet.ServletContextprotected UiPropertiesprotected ViewRegistry -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidconfigure(org.springframework.security.config.annotation.web.builders.HttpSecurity http) protected voidconfigure(org.springframework.security.config.annotation.web.builders.WebSecurity web) Temporary workaround until https://github.com/vaadin/flow/issues/19075 is fixedprotected voidconfigureJmixSpecifics(org.springframework.security.config.annotation.web.builders.HttpSecurity http) Configures theHttpSecurityby adding Jmix-specific settings.protected org.springframework.security.web.util.matcher.RequestMatchercreateViewPathRequestMatcher(ViewRegistry viewRegistry) protected org.springframework.security.web.savedrequest.RequestCacheprotected Stringprotected Stringprotected voidinitLoginView(org.springframework.security.config.annotation.web.builders.HttpSecurity http) Configures login view by finding login view id in application properties.voidsetApplicationContext(org.springframework.context.ApplicationContext applicationContext) voidsetServerProperties(org.springframework.boot.autoconfigure.web.ServerProperties serverProperties) voidsetServletContext(jakarta.servlet.ServletContext servletContext) voidsetUiProperties(UiProperties uiProperties) voidsetVaadinDefaultRequestCache(com.vaadin.flow.spring.security.VaadinDefaultRequestCache vaadinDefaultRequestCache) voidsetViewRegistry(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) -
setVaadinDefaultRequestCache
@Autowired public void setVaadinDefaultRequestCache(com.vaadin.flow.spring.security.VaadinDefaultRequestCache vaadinDefaultRequestCache) -
configure
protected void configure(org.springframework.security.config.annotation.web.builders.HttpSecurity http) throws Exception - Overrides:
configurein classcom.vaadin.flow.spring.security.VaadinWebSecurity- Throws:
Exception
-
configureJmixSpecifics
protected void configureJmixSpecifics(org.springframework.security.config.annotation.web.builders.HttpSecurity http) throws Exception Configures theHttpSecurityby 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:
configurein classcom.vaadin.flow.spring.security.VaadinWebSecurity- Throws:
Exception
-
getDelegateRequestCache
protected org.springframework.security.web.savedrequest.RequestCache getDelegateRequestCache() -
createViewPathRequestMatcher
protected org.springframework.security.web.util.matcher.RequestMatcher createViewPathRequestMatcher(ViewRegistry viewRegistry)
-