Subversion Repositories SmartDukaan

Rev

Rev 34554 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 34554 Rev 35609
Line 10... Line 10...
10
public class SecurityConfig extends WebSecurityConfigurerAdapter {
10
public class SecurityConfig extends WebSecurityConfigurerAdapter {
11
    @Override
11
    @Override
12
    protected void configure(HttpSecurity http) throws Exception {
12
    protected void configure(HttpSecurity http) throws Exception {
13
        http
13
        http
14
                .authorizeRequests()
14
                .authorizeRequests()
15
                .antMatchers("/expose", "/actuator/prometheus", "/public").permitAll()  // Allow access to specific URLs
15
                .antMatchers("/expose", "/actuator/prometheus", "/public", "/resolveOldEscalationTickets").permitAll()  // Allow access to specific URLs
16
                .anyRequest().authenticated()  // Secure all other requests
16
                .anyRequest().authenticated()  // Secure all other requests
17
                .and()
17
                .and()
18
                .csrf().disable();  // Disable CSRF protection if necessary
18
                .csrf().disable();  // Disable CSRF protection if necessary
19
    }
19
    }
20
}
20
}