package nl.flamingostyle.voornaaminliedje.springconfig;

import org.springframework.context.annotation.Configuration;
import org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder;
import org.springframework.security.config.annotation.web.builders.HttpSecurity;
import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity;
import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter;

@EnableWebSecurity
@Configuration
public class SecurityConfig extends WebSecurityConfigurerAdapter {
/*
  @Override
  protected void registerAuthentication(AuthenticationManagerBuilder auth) throws Exception {
    auth.inMemoryAuthentication()
        .withUser("letsnosh").password("noshing").roles("USER");
  }

  @Override
  protected void configure(HttpSecurity http) throws Exception {
    http.authorizeUrls()
        .antMatchers("/aggregators/**").hasRole("USER")
        .anyRequest().anonymous()
        .and()
        .httpBasic();
  }*/
}
@@ -50,16 +50,79 @@
 onfig;%0A%0A
+import org.springframework.beans.factory.annotation.Autowired;%0A
 import o
@@ -662,62 +662,51 @@
 r %7B%0A
-/*
 %0A  @
-Override%0A  protected void registerAuthentication
+Autowired%0A  public void configureGlobal
 (Aut
@@ -959,11 +959,15 @@
 rize
-Url
+Request
 s()%0A
@@ -1100,8 +1100,6 @@
 %0A  %7D
-*/
 %0A%7D

Update SecurityConfig.