Heiko W. Rupp
1 min readFeb 21, 2020

--

Hey Ivan,

I have asked Sebi from the Keycloak folks to chime in. Meanwhile I would suggest to implement a ClientRequestFilter which does the adding for you.

You can see an example of such a filter here: https://github.com/RedHatInsights/custom-policies-ui-backend/blob/master/src/main/java/com/redhat/cloud/custompolicies/app/RbacRestClientRequestFilter.java#L29

You need to register that filter on your interfaces though: https://github.com/RedHatInsights/custom-policies-ui-backend/blob/master/src/main/java/com/redhat/cloud/custompolicies/app/RbacServer.java#L34

Let me know if that helps

--

--

Heiko W. Rupp
Heiko W. Rupp

Written by Heiko W. Rupp

Long time Open Source developer, currently working at Red Hat. Find me also at https://mastodon.social/@pilhuhn

Responses (1)