Project

General

Profile

« Previous | Next » 

Revision 58701

opening /stats to all

View differences:

AaiSecurityConfiguration.java
12 12
import org.springframework.security.authentication.AuthenticationManager;
13 13
import org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder;
14 14
import org.springframework.security.config.annotation.web.builders.HttpSecurity;
15
import org.springframework.security.config.annotation.web.builders.WebSecurity;
15 16
import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity;
16 17
import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter;
17 18
import org.springframework.security.web.authentication.LoginUrlAuthenticationEntryPoint;
......
58 59
    }
59 60

  
60 61
    @Override
62
    public void configure(WebSecurity web) throws Exception {
63
        web.ignoring().antMatchers("/stats/**");
64
    }
65

  
66
    @Override
61 67
    protected void configure(HttpSecurity http) throws Exception {
62 68
        http.csrf().disable()
63 69
                .anonymous().disable()
64 70
                .authorizeRequests()
65
		.antMatchers("/stats").permitAll()
66 71
                .anyRequest().authenticated()
67 72
                .and()
68 73
                    .httpBasic()

Also available in: Unified diff