Project

General

Profile

« Previous | Next » 

Revision 61450

created prometheus reports and /metrics

View differences:

AaiSecurityConfiguration.java
60 60

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

Also available in: Unified diff