@Bean(HTTPSECURITY_BEAN_NAME) @Scope("prototype") public ServerHttpSecurity httpSecurity() { ContextAwareServerHttpSecurity http = new ContextAwareServerHttpSecurity(); return http .authenticationManager(authenticationManager()) .headers().and() .logout().and(); }
@Bean(HTTPSECURITY_BEAN_NAME) @Scope("prototype") public ServerHttpSecurity httpSecurity() { ContextAwareServerHttpSecurity http = new ContextAwareServerHttpSecurity(); return http .authenticationManager(authenticationManager()) .headers().and() .logout().and(); }
@Bean(HTTPSECURITY_BEAN_NAME) @Scope("prototype") public ServerHttpSecurity httpSecurity() { ContextAwareServerHttpSecurity http = new ContextAwareServerHttpSecurity(); return http .authenticationManager(authenticationManager()) .headers().and() .logout().and(); }
private WebTestClient buildClient() { return WebTestClientBuilder.bindToWebFilters(this.headers.and().build()).build(); } }