Currently our backend separates customer accounts into different url paths in the general form: http://example.com/foo/{accountName}/api/login
I'd like to tie this together in Apigee, and route to the appropriate account's endpoint based on, for instance, a claim in a JWT. However, I can't find a good generalized way to go about this that doesn't involve adding multiple policies at different points on each endpoint.
Any suggestions?