3

He has been trying to connect s-c-gateway and s-c-security with Keycloak for a couple of days. I want the modules that are located behind the gateway not to have a keycloak configuration. Is Spring Cloud Gateway not supported by Spring Cloud Security?

3 Answers3

1

There's an issue on the spring cloud gateway github about this - a short summary is that there's currently no official support but I'd suggest reading the full github comments

Ryan Dawson
  • 11,832
  • 5
  • 38
  • 61
0

You could use @EnableWebFluxSecurity in cloud gateway, since it's reactive project.

Valchev
  • 1,490
  • 14
  • 17
0

I know this is an old question with an answer but now it is possible and very common to integrate Spring cloud Gateway, Spring cloud Security and Keycloak. You can find a good tutorial here:
https://kunkkali.blogspot.com/2020/10/build-j2ee-micro-services-architecture.html
Source code: https://github.com/liqili/spring-microservice-oauth2-keycloak-starter

Ali Behzadian Nejad
  • 8,804
  • 8
  • 56
  • 106