@Bean SecurityWebFilterChain springWebFilterChain() { return HttpSecurity.http() .securityContextRepository( new WebSessionSecurityContextRepository()) .authorizeExchange() .anyExchange().authenticated() .and() .build(); }
@Bean SecurityWebFilterChain springWebFilterChain() { return HttpSecurity.http() .securityContextRepository(new WebSessionSecurityContextRepository()) .authorizeExchange() .anyExchange().authenticated() .and() .build(); }
public void setSecurityContextRepository(WebSessionSecurityContextRepository securityContextRepository) { this.securityContextRepository = securityContextRepository; }