Skip to content

Commit

Permalink
Added security checking for REST APIs [comixed#413]
Browse files Browse the repository at this point in the history
  • Loading branch information
mcpierce committed Jul 20, 2020
1 parent b5b6bf9 commit bab25b9
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
import lombok.extern.log4j.Log4j2;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.security.authentication.AuthenticationManager;
import org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder;
Expand All @@ -34,6 +35,7 @@
@Configuration
@EnableWebSecurity
@EnableGlobalMethodSecurity(prePostEnabled = true)
@ComponentScan("org.comixed.controller")
@Log4j2
public class ComiXedWebSecurityConfig extends WebSecurityConfigurerAdapter {
@Autowired private ComiXedAuthenticationEntryPoint unauthorizedHandler;
Expand Down

0 comments on commit bab25b9

Please sign in to comment.