Class SecurityConfig
java.lang.Object
org.odpi.openmetadata.userinterface.uichassis.springboot.auth.SecurityConfig
Configuration of HttpSecurity for Spring security
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.security.authentication.AuthenticationManagerauthManager(org.springframework.security.authentication.AuthenticationProvider authProvider) org.springframework.web.servlet.config.annotation.WebMvcConfigurerReturns WebMvcConfigurer for the cors configuration The bean is based on springboot configuration property cors.allowed-originscom.nimbusds.jose.jwk.source.JWKSource<com.nimbusds.jose.proc.SecurityContext>org.springframework.security.web.SecurityFilterChainsecurityFilterChain(org.springframework.security.config.annotation.web.builders.HttpSecurity http)
-
Constructor Details
-
SecurityConfig
public SecurityConfig()
-
-
Method Details
-
authManager
@Bean public org.springframework.security.authentication.AuthenticationManager authManager(org.springframework.security.authentication.AuthenticationProvider authProvider) -
jwkSource
@Bean public com.nimbusds.jose.jwk.source.JWKSource<com.nimbusds.jose.proc.SecurityContext> jwkSource() -
corsConfigurer
@Bean @ConditionalOnProperty("cors.allowed-origins") public org.springframework.web.servlet.config.annotation.WebMvcConfigurer corsConfigurer()Returns WebMvcConfigurer for the cors configuration The bean is based on springboot configuration property cors.allowed-origins -
securityFilterChain
@Bean public org.springframework.security.web.SecurityFilterChain securityFilterChain(org.springframework.security.config.annotation.web.builders.HttpSecurity http) throws Exception - Throws:
Exception
-