java.lang.Object
com.erudika.para.server.security.SecurityConfig
@Configuration
@EnableWebSecurity
@DeclareRoles({"ROLE_USER","ROLE_MOD","ROLE_ADMIN","ROLE_APP"})
public class SecurityConfig
extends Object
Programmatic configuration for Spring Security.
- Author:
- Alex Bogdanovski [[email protected]]
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.security.web.SecurityFilterChain
filterChain
(org.springframework.security.config.annotation.web.builders.HttpSecurity http) Configures the protected private resources.org.springframework.security.config.annotation.web.configuration.WebSecurityCustomizer
Configures the unsecured public resources.
-
Constructor Details
-
SecurityConfig
public SecurityConfig()No-args constructor.
-
-
Method Details
-
webSecurityCustomizer
@Bean public org.springframework.security.config.annotation.web.configuration.WebSecurityCustomizer webSecurityCustomizer()Configures the unsecured public resources.- Returns:
- web
-
filterChain
-