Package io.jmix.securityflowui.security
Class FlowuiVaadinWebSecurity
java.lang.Object
io.jmix.securityflowui.security.AbstractFlowuiWebSecurity
io.jmix.securityflowui.security.FlowuiVaadinWebSecurity
- Direct Known Subclasses:
SecurityFlowuiAutoConfiguration.DefaultFlowuiVaadinWebSecurity
Provides default Vaadin and Jmix FlowUI security to the project.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected List<JmixRequestCacheRequestMatcher> protected UiPropertiesprotected ViewRegistryFields inherited from class io.jmix.securityflowui.security.AbstractFlowuiWebSecurity
h2ConsoleProperties, servletContext, webProperties -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidconfigureJmixSpecifics(org.springframework.security.config.annotation.web.builders.HttpSecurity http) Configures theHttpSecurityby adding Jmix-specific settings.protected voidconfigureVaadinSpecifics(org.springframework.security.config.annotation.web.builders.HttpSecurity http) protected org.springframework.security.web.util.matcher.RequestMatchercreateViewPathRequestMatcher(ViewRegistry viewRegistry) protected org.springframework.security.web.savedrequest.RequestCacheprotected Stringprotected voidinitLoginView(com.vaadin.flow.spring.security.VaadinSecurityConfigurer configurer) Configures a login view by finding login view id in application properties.voidsetVaadinDefaultRequestCache(com.vaadin.flow.spring.security.VaadinDefaultRequestCache vaadinDefaultRequestCache, org.springframework.beans.factory.ObjectProvider<List<JmixRequestCacheRequestMatcher>> requestCacheRequestMatchersProvider) Methods inherited from class io.jmix.securityflowui.security.AbstractFlowuiWebSecurity
configureCustomSpecifics, jmixSecurityFilterChain
-
Field Details
-
uiProperties
-
viewRegistry
-
requestCacheRequestMatchers
-
-
Constructor Details
-
FlowuiVaadinWebSecurity
public FlowuiVaadinWebSecurity()
-
-
Method Details
-
setVaadinDefaultRequestCache
@Autowired public void setVaadinDefaultRequestCache(com.vaadin.flow.spring.security.VaadinDefaultRequestCache vaadinDefaultRequestCache, org.springframework.beans.factory.ObjectProvider<List<JmixRequestCacheRequestMatcher>> requestCacheRequestMatchersProvider) -
configureVaadinSpecifics
protected void configureVaadinSpecifics(org.springframework.security.config.annotation.web.builders.HttpSecurity http) - Specified by:
configureVaadinSpecificsin classAbstractFlowuiWebSecurity
-
configureJmixSpecifics
protected void configureJmixSpecifics(org.springframework.security.config.annotation.web.builders.HttpSecurity http) throws Exception Configures theHttpSecurityby adding Jmix-specific settings.- Overrides:
configureJmixSpecificsin classAbstractFlowuiWebSecurity- Throws:
Exception
-
initLoginView
protected void initLoginView(com.vaadin.flow.spring.security.VaadinSecurityConfigurer configurer) Configures a login view by finding login view id in application properties. -
getLogoutSuccessUrl
-
getDelegateRequestCache
protected org.springframework.security.web.savedrequest.RequestCache getDelegateRequestCache() -
createViewPathRequestMatcher
protected org.springframework.security.web.util.matcher.RequestMatcher createViewPathRequestMatcher(ViewRegistry viewRegistry)
-