Package com.networknt.aws.lambda.handler.middleware.limit.key
package com.networknt.aws.lambda.handler.middleware.limit.key
-
ClassDescriptionWhen native-lambda is used for external clients and all external requests go through the Akamai cloud proxy, the real client IP can be retrieved from the header as True-Client-IPWhen the rate limit handler is located after the JwtVerifierHandler in the request/response chain, we can get the client_id claim from the JWT token from the auditInfo object from the exchange attachment.This is a customized KeyResolver for one of our customers on the external gateway in the DMZ.When user is selected as the key, we can get the user_id from the JWT claim.When rate limit is used, we need to define a key to identify a unique client or a unique IP address.When address is used as the key, we can get the IP address from the header of the request.