@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(); }
.logout() .requiresLogout(ServerWebExchangeMatchers.pathMatchers("/custom-logout")) .and() .build();
/** * Disables log out * @return the {@link ServerHttpSecurity} to continue configuring */ public ServerHttpSecurity disable() { ServerHttpSecurity.this.logout = null; return and(); }
@Bean(HTTPSECURITY_BEAN_NAME) @Scope("prototype") public ServerHttpSecurity httpSecurity() { ContextAwareServerHttpSecurity http = new ContextAwareServerHttpSecurity(); return http .authenticationManager(authenticationManager()) .headers().and() .logout().and(); }
/** * Disables log out * @return the {@link ServerHttpSecurity} to continue configuring */ public ServerHttpSecurity disable() { ServerHttpSecurity.this.logout = null; return and(); }
/** * Disables log out * @return the {@link ServerHttpSecurity} to continue configuring */ public ServerHttpSecurity disable() { ServerHttpSecurity.this.logout = null; return and(); }