java.lang.Object
org.odpi.openmetadata.userinterface.uichassis.springboot.auth.SecurityConfig

@EnableWebSecurity @EnableMethodSecurity @Configuration public class SecurityConfig extends Object
Configuration of HttpSecurity for Spring security
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected String
     
    protected String
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.springframework.security.authentication.AuthenticationManager
    authManager(org.springframework.security.authentication.AuthenticationProvider authProvider)
     
    org.springframework.web.servlet.config.annotation.WebMvcConfigurer
    Returns WebMvcConfigurer for the cors configuration The bean is based on springboot configuration property cors.allowed-origins
    com.nimbusds.jose.jwk.source.JWKSource<com.nimbusds.jose.proc.SecurityContext>
     
    org.springframework.security.web.SecurityFilterChain
    securityFilterChain(org.springframework.security.config.annotation.web.builders.HttpSecurity http)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • userSearchBase

      @Value("${ldap.user.search.base}") protected String userSearchBase
    • userSearchFilter

      @Value("${ldap.user.search.filter}") protected String userSearchFilter
  • 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