Package edu.ucsb.cs156.organic.config
Class SecurityConfig
java.lang.Object
org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter
edu.ucsb.cs156.organic.config.SecurityConfig
- All Implemented Interfaces:
org.springframework.security.config.annotation.SecurityConfigurer<javax.servlet.Filter,
,org.springframework.security.config.annotation.web.builders.WebSecurity> org.springframework.security.config.annotation.web.WebSecurityConfigurer<org.springframework.security.config.annotation.web.builders.WebSecurity>
@Configuration
@EnableWebSecurity
@EnableGlobalMethodSecurity(prePostEnabled=true)
public class SecurityConfig
extends org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter
This class is used to configure Spring Security.
Among other things, this class is partially responsible for
the implementation of the ADMIN_GITHUB_LOGINS feature.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
configure
(org.springframework.security.config.annotation.web.builders.HttpSecurity http) void
configure
(org.springframework.security.config.annotation.web.builders.WebSecurity web) boolean
getInstructor
(String githubLogin) boolean
updateAdmin
(String githubLogin) Methods inherited from class org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter
authenticationManager, authenticationManagerBean, configure, getApplicationContext, getHttp, init, setApplicationContext, setAuthenticationConfiguration, setContentNegotationStrategy, setObjectPostProcessor, setTrustResolver, userDetailsService, userDetailsServiceBean
-
Constructor Details
-
SecurityConfig
public SecurityConfig()
-
-
Method Details
-
configure
protected void configure(org.springframework.security.config.annotation.web.builders.HttpSecurity http) throws Exception - Overrides:
configure
in classorg.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter
- Throws:
Exception
-
configure
public void configure(org.springframework.security.config.annotation.web.builders.WebSecurity web) throws Exception - Specified by:
configure
in interfaceorg.springframework.security.config.annotation.SecurityConfigurer<javax.servlet.Filter,
org.springframework.security.config.annotation.web.builders.WebSecurity> - Overrides:
configure
in classorg.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter
- Throws:
Exception
-
updateAdmin
-
getInstructor
-