Hello, I’m trying to setup an Apigee proxy with a quota policy. I want the of the quota policy to include both a clientId, which is passed through a JWT, and the client’s IP, for more granularity.
To do this, I use Decode JWT policy + a custom Javascript that does the following:
context.setVariable(“client.identifier”, context.getVariable(“jwt.decode-jwt.claim.clientId”) + context.getVariable(“client.ip”));
Then later, in the quota configuration, I specify
However, when quota limitation kicks in, the fault message has “_default” as identifier (“Rate limit quota violation. Quota limit exceeded. Identifier : _default”). I tried to trace the request, and I can see that the client.identifier is being set properly (see attached screenshot).
Could someone please explain what am I doing wrong?
