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
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
configureAnonymous
(org.springframework.security.config.annotation.web.builders.HttpSecurity http) Configures anonymous access to the application for the givenHttpSecurity
instance.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.static void
configureFrameOptions
(org.springframework.security.config.annotation.web.builders.HttpSecurity http) Configures frame options to use the same origin.static void
configureRememberMe
(org.springframework.security.config.annotation.web.builders.HttpSecurity http) Configures default remember me functionality.static void
configureSessionManagement
(org.springframework.security.config.annotation.web.builders.HttpSecurity http) Configures session management using settings defined in theSessionProperties
for the givenHttpSecurity
instance.
-
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 givenHttpSecurity
instance. 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 theSessionProperties
for the givenHttpSecurity
instance. -
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 theAuthorizedUrlsProvider
for the givenHttpSecurity
instance.
-