Spring Cloud Gateway :  Resource Server With Keycloak RBAC
Integrate Keycloak’s OAuth2 OIDC for authentication in the API Gateway and perform an RBAC inside the resource server with the JWT token from the API Gateway.
Source: dzone.com