I have proxy and that proxy is added to Product A and Product B .
I have added Product A to DevApp A and Product B to DevAPP B.
Product A has the below custom Attribute
apiproduct.quotaSpec :10_minute
Product B has the below Custom Attribute
apiproduct.quotaSpec :2_minute
my quota policy config is as below QuotaCount and QuotaTimeUnit are dynamic values
<Quota async="false" continueOnError="false" enabled="true" name="Quota"> <DisplayName>Quota</DisplayName> <Properties/> <Allow countRef="QuotaCount"/> <Interval>1</Interval> <TimeUnit ref="QuotaTimeUnit"/> <Distributed>true</Distributed> <Synchronous>true</Synchronous> </Quota>I am having a javascript just before quota policy to retrieve the Quotaccount and QuotatimeUnit from product custom attribute
When I make call with DevApp A credential the QuotaCount will be set as 10 and QuotaTimeUnit will be set as minute
First I am making 10 calls with devApp A's credentials and 11th calls is failing which is as expected
immediately If I make a call with devApp B's credential the very first is call is failing . Expectation is 3rd call with devApp B should fail. Can some one guide on this @Dino-at-Google @Siddharth Barahalikar
Yes, this is as expected.
You need to add one identifier with client id.
Then it will go for the configuration for each app.
<Identifierref="request.header.clientId"/>
Thank you trying the same
User | Count |
---|---|
1 | |
1 | |
1 | |
1 | |
1 |