Gravitee manager can be configured with keycloak authentication as described here.
They state in their documentation, that role mapping could be addressed on their gravitee.yml configuration:
security:
providers:
- type: oidc
roleMapping:
- condition: "{#jsonPath(#profile, '$.job_id') != 'API_MANAGER'}"
roles:
- "PORTAL:PARTNER"
- "MANAGEMENT:API_CONSUMER"
How can I map the #profile jonPath correctly? I tried with java exceptions the next SpEl configuration:
"{#jsonPath(#profile, 'gravitee-admin' in '$.realm_access.roles')}"