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

com.codingapi.springboot.security.configurer.WebSecurityConfigurer Maven / Gradle / Ivy

package com.codingapi.springboot.security.configurer;

import com.codingapi.springboot.security.properties.CodingApiSecurityProperties;
import lombok.AllArgsConstructor;
import org.springframework.context.annotation.Configuration;
import org.springframework.security.config.annotation.web.builders.WebSecurity;
import org.springframework.security.config.annotation.web.configuration.WebSecurityCustomizer;

@Configuration
@AllArgsConstructor
public class WebSecurityConfigurer implements WebSecurityCustomizer {

    private final CodingApiSecurityProperties securityJwtProperties;

    @Override
    public void customize(WebSecurity web) {
        //ignoring security filters request url
        web.ignoring().requestMatchers(securityJwtProperties.getIgnoreUrls());
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy