skip to Main Content

Redis – OAuth2 Share Principal Object with Multiple Gateway Instances

I have integrated Spring Cloud Gateway with OAuth2 server. It works well with single instance gateway. here is my security config. @EnableWebFluxSecurity public class GatewaySecurityConfiguration { @Bean public SecurityWebFilterChain securityWebFilterChain(ServerHttpSecurity http) { http .authorizeExchange().pathMatchers("/user/v3/api-docs", "/actuator/**").permitAll() .anyExchange().authenticated() .and() .oauth2Login() .and() .csrf().disable();…

VIEW QUESTION
Back To Top
Search