パスの下にないすべての URL と/cobrands
パスワード/fdt
の要求に対してそれを希望します。たとえば/fdt/name
、http 認証を求められるべきではありません。
public class SecurityConfiguration extends WebSecurityConfigurerAdapter {
/** code **/
@Override
protected void configure(HttpSecurity http) throws Exception {
http.exceptionHandling().authenticationEntryPoint(entryPoint()).and()
.authorizeUrls()
.antMatchers("/**").hasAnyAuthority("wf_cobrand_lettura", "wf_cobrand_fdt")
.antMatchers("/cobrands/*").permitAll()
.antMatchers("/fdt/*").permitAll()
.and()
.httpBasic();
}
}