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.
Keycloak Oauth Product Service Cloud Gateway Keycloak Spring Cloud Custom Keycloak Role Role Mappings
Source: dzone.com