Class SecurityConfig

java.lang.Object
edu.ucsb.cs156.happiercows.config.SecurityConfig

@Configuration @EnableWebSecurity @EnableMethodSecurity public class SecurityConfig extends Object
This class is used to configure Spring Security. Among other things, this class is partially responsible for the implementation of the ADMIN_EMAILS feature.
  • Constructor Details

    • SecurityConfig

      public SecurityConfig()
  • Method Details

    • filterChain

      @Bean public org.springframework.security.web.SecurityFilterChain filterChain(org.springframework.security.config.annotation.web.builders.HttpSecurity http) throws Exception
      Throws:
      Exception
    • isAdmin

      public boolean isAdmin(String email)