Skip to content

Route based on claims #2767

Answered by Tratcher
Ghostbird asked this question in Q&A

You must be logged in to vote

Nothing built in, though there are manual ways you could do it. See:
https://github.com/dotnet/yarp/blob/5e0bbb4375b1385ff6a7cafe47fb6217854656d2/samples/ReverseProxy.Direct.Sample/README.md
Or

public static void ReassignProxyRequest(this HttpContext context, ClusterState cluster)

Part of the problem is that the type of auth to be performed can be specified per route in aspnetcore, so auth happens after routing.

Do you have auth setup so that it happens before requests and is route independent?

Replies: 1 comment

You must be logged in to vote
0 replies
Answer selected by MihaZupan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants