Does someone know if it's possible to change my YARP cluster destination at runtime based of a value from my current user's claims.
The claim is not the value but rather the key to find the value in a cache. The cache sits on top of my DB so help with performance.
I tried using ConfigFilters but these are singletons and don't have access to the users claims.
Would this have to be done using middleware, if so : How? Or would a better approach be to use the singleton config filter already injected, when authorization happens to the push the correct destination into that singleton?