This enables simple role based routing.
So far we did not find a good approach to do this.
It would be a good addition to this tool and it saves us a lot of trouble.
The only other option we see, is to write our own service or use NGINX and a lua module.
How
Authenticate
Check if user has a specific role and redirect. If not, redirect to a default location or return an error.
Role-Based Proxy Pass
Summary
We protect a web service using Gatekeeper.
We want to be able to redirect users to different locations, based on their Keycloak roles.
Example:
We now want that:
Why?
This enables simple role based routing. So far we did not find a good approach to do this. It would be a good addition to this tool and it saves us a lot of trouble. The only other option we see, is to write our own service or use NGINX and a lua module.
How
define rules like this:
or directly in the resources