I have the following setup in Azure API Management:
Two products: Internal
and Starter
.
One api: Finance
, that is included in both the above products. The Finance
api also has the Subscription required
checkbox cleared, so a subscription is not required.
The Internal
product has a policy that does JWT validation. The Starter
product does not.
In the test tab of APIs, I can choose a product scope via the Apply Product Scope
dropdown. Presumably this decides which product policies are applied.
When calling the API, if I don't supply a valid token, the JWT validation kicks in and rejects my request. However, since I have no subscription key to identify the product, it could be either the Internal
or Starter
product - how does the system determine it should apply the Internal
policy containing the jwt-validation rule rather than the Starter
policy which doesn't?