Class SecurityConfig
java.lang.Object
springboot.bg.harisauto.common.config.security.SecurityConfig
SecurityConfig.java - Security configuration for the application.
- Author:
- Kristian Popov
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.security.crypto.password.PasswordEncoderPassword encoder bean using BCrypt hashing algorithm.org.springframework.security.web.SecurityFilterChainsecurityFilterChain(org.springframework.security.config.annotation.web.builders.HttpSecurity http, CustomOAuth2UserService oauth2Service, CustomAccessDeniedHandler accessDeniedHandler, TwoFactorAuthenticationSuccessHandler twoFactorSuccessHandler) Security filter chain for all requests.
-
Constructor Details
-
SecurityConfig
public SecurityConfig()
-
-
Method Details
-
securityFilterChain
@Bean @Order(4) public org.springframework.security.web.SecurityFilterChain securityFilterChain(org.springframework.security.config.annotation.web.builders.HttpSecurity http, CustomOAuth2UserService oauth2Service, CustomAccessDeniedHandler accessDeniedHandler, TwoFactorAuthenticationSuccessHandler twoFactorSuccessHandler) throws Exception Security filter chain for all requests.- Throws:
Exception
-
passwordEncoder
@Bean public org.springframework.security.crypto.password.PasswordEncoder passwordEncoder()Password encoder bean using BCrypt hashing algorithm.
-