org.nhindirect.config.boot.WebSecurityConfiguration Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of config-service Show documentation
Show all versions of config-service Show documentation
NHIN Direct Java RI config service spring boot application
package org.nhindirect.config.boot;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.security.config.web.server.ServerHttpSecurity;
import org.springframework.security.web.server.SecurityWebFilterChain;
@Configuration
public class WebSecurityConfiguration
{
@Bean
public SecurityWebFilterChain springSecurityFilterChain(ServerHttpSecurity http)
{
http.csrf().disable()
.authorizeExchange()
.pathMatchers("/domains/**", "/address/**", "/anchor/**",
"/certificate/**", "/certpolicy/**", "/dns/**",
"/setting/**", "/trustbundle/**").permitAll()
.anyExchange().authenticated()
.and()
.httpBasic()
.and()
.formLogin().disable();
return http.build();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy