Package io.jmix.security.util
Class JmixHttpSecurityUtils
java.lang.Object
io.jmix.security.util.JmixHttpSecurityUtils
Utility class for Jmix-specific configuration of
HttpSecurity.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidconfigureAnonymous(org.springframework.security.config.annotation.web.builders.HttpSecurity http) Configures anonymous access to the application for the givenHttpSecurityinstance.static voidconfigureAuthorizedUrls(org.springframework.security.config.annotation.web.builders.HttpSecurity http) Deprecated, for removal: This API element is subject to removal in a future version.static voidconfigureFrameOptions(org.springframework.security.config.annotation.web.builders.HttpSecurity http) Configures frame options to use the same origin.static voidconfigureRememberMe(org.springframework.security.config.annotation.web.builders.HttpSecurity http) Configures default remember me functionality.static voidconfigureSessionManagement(org.springframework.security.config.annotation.web.builders.HttpSecurity http) Configures session management using settings defined in theSessionPropertiesfor the givenHttpSecurityinstance.
-
Constructor Details
-
JmixHttpSecurityUtils
public JmixHttpSecurityUtils()
-
-
Method Details
-
configureFrameOptions
public static void configureFrameOptions(org.springframework.security.config.annotation.web.builders.HttpSecurity http) throws Exception Configures frame options to use the same origin.- Throws:
Exception
-
configureAnonymous
public static void configureAnonymous(org.springframework.security.config.annotation.web.builders.HttpSecurity http) throws Exception Configures anonymous access to the application for the givenHttpSecurityinstance. Anonymous user is taken from theUserRepository.getAnonymousUser().- Throws:
Exception
-
configureSessionManagement
public static void configureSessionManagement(org.springframework.security.config.annotation.web.builders.HttpSecurity http) Configures session management using settings defined in theSessionPropertiesfor the givenHttpSecurityinstance. -
configureRememberMe
public static void configureRememberMe(org.springframework.security.config.annotation.web.builders.HttpSecurity http) Configures default remember me functionality. -
configureAuthorizedUrls
@Deprecated(since="2.4", forRemoval=true) public static void configureAuthorizedUrls(org.springframework.security.config.annotation.web.builders.HttpSecurity http) Deprecated, for removal: This API element is subject to removal in a future version.Configures public and protected access to endpoints using URL patterns returned by instances of theAuthorizedUrlsProviderfor the givenHttpSecurityinstance.
-