Is it possible in Front Door to route to an origin based on a claim in a jwt?

Alan Durkin 25 Reputation points
2023-06-14T16:12:20.54+00:00

I have an application which will have instances in different global regions (for data residency reasons). I want to have one url that will be used globally and I want to route to the correct region based on a country field in the jwt. Is it possible to do this within Front Door?

Azure Front Door
Azure Front Door
An Azure service that provides a cloud content delivery network with threat protection.
863 questions
0 comments No comments
{count} votes

Accepted answer
  1. Rubens Guimarães 175 Reputation points Microsoft Regional Director
    2023-06-14T16:46:57.06+00:00

    In this case, it will be necessary to integrate with APIM. If Front Door is above APIM then it can route based on user proximity sending some additional parameter to APIM which in turn will have final settings and JWT. It would also be possible to do the opposite, with APIM responding to requests from the Internet, defining the user's region based on the JWT and later forwarding the route to the final endpoint or to Azure Front Door, which in turn performs the filters with WAF and can complete the route. It can also be performed with CloudFlare.


1 additional answer

Sort by: Most helpful
  1. Rubens Guimarães 0 Reputation points
    2023-06-14T16:45:20.38+00:00

    In this case, it will be necessary to integrate with APIM. If Front Door is above APIM then it can route based on user proximity sending some additional parameter to APIM which in turn will have final settings and JWT. It would also be possible to do the opposite, with APIM responding to requests from the Internet, defining the user's region based on the JWT and later forwarding the route to the final endpoint or to Azure Front Door, which in turn performs the filters with WAF and can complete the route. It can also be performed with CloudFlare.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.