I have a couple of Products in my API Management instance, let's call them Product 1
and Product 2
.
Both of these products have an API added called Inventory
.
For Product 1
I have set Subscription required
to true
.
For Product 2
I have set Subscription required
to false
.
So far, this works great.
Now, I have set the Subscription required
flag to true
on my Inventory
API also. I want to enforce people specify a valid subscription key when calling this API.
What I'm noticing though, this flag on API-level isn't enforced (properly?).
I'm still able to invoke the
Inventory
API without a subscription key.
My guess is, the Product 2
policy is overruling the Subscription required
setting which is set on the API level. Is this correct?
And my actual question is, how to enforce a specific API that always requires a valid subscription key while still having an 'open' Product?
Subscription required
, the url need subscription key while no need the key when not check. i.stack.imgur.com/zwbpM.png Did I ignore something important? – Tiny Wang