s.Anteros-Generator-Core.1.0.10.source-code.securityConfiguration.ftl Maven / Gradle / Ivy
package ${packageName};
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import br.com.anteros.security.spring.config.AnterosSpringSecurityConfiguration;
import org.springframework.security.config.annotation.web.builders.HttpSecurity;
@Configuration
@ComponentScan(basePackages = { "br.com.anteros.security" })
public class SecurityConfiguration extends AnterosSpringSecurityConfiguration {
@Override
public String systemName() {
return "** INFORME AQUI O NOME DO SISTEMA **";
}
@Override
public String description() {
return "** INFORME AQUI A DESCRIÇÃO DO SISTEMA **" ;
}
@Override
public String version() {
return "1.0.0";
}
@Override
public Boolean adminNeedsPermission() {
return false;
}
@Override
public String packageToScanSecurity() {
return "** INFORME AQUI OS PACOTES PARA PROCURAR RECURSOS/AÇÕES DE SEGURANÇA **";
}
@Override
protected void configure(HttpSecurity http) throws Exception {
http.authorizeRequests().antMatchers("/resources/**").permitAll()
.antMatchers("/login*").permitAll()
.anyRequest().authenticated().and()
.formLogin().and()
.httpBasic();
}
}