Skip to content

Commit

Permalink
Added security checking for REST APIs [#413]
Browse files Browse the repository at this point in the history
  • Loading branch information
mcpierce authored and BRUCELLA2 committed Jul 22, 2020
1 parent 7bdd1ec commit 9664afd
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 9664afd

Please sign in to comment.