title: Route an Istio Virtual Service based off the user claim in a JWT
body: <p>Istio can route traffic based off headers and such.  There are <a href="https://istio.io/latest/docs/reference/config/networking/virtual-service/" rel="nofollow noreferrer">great examples</a> of how to do this in the Istio docs.</p>
  <p>Istio can also validate your JWT.  The Istio docs also <a href="https://istio.io/latest/docs/tasks/security/authorization/authz-jwt/" rel="nofollow noreferrer">cover that</a>.</p>
  <p>But I can't seem to find a way to get my JWT Validated, then use the user claim found in the JWT Json to route traffic.  The example I linked to just expects the user to be plain text in a header.</p>
  <p>How can an Istio Virtual Service be setup to route based on a claim in a JWT (preferably one it validated).</p>