All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.anaptecs.spring.impl.WebSecurityConfigurer Maven / Gradle / Ivy

There is a newer version: 1.24.1
Show newest version
package com.anaptecs.spring.impl;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.security.config.annotation.web.builders.HttpSecurity;
import org.springframework.security.config.annotation.web.configurers.AbstractHttpConfigurer;
import org.springframework.security.web.SecurityFilterChain;

@Configuration
public class WebSecurityConfigurer {
  @Bean
  public SecurityFilterChain filterChain( HttpSecurity http ) throws Exception {
    http.authorizeRequests().antMatchers("**").permitAll().and().anonymous();
    http.csrf(AbstractHttpConfigurer::disable);
    return http.build();
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy