Class JwtUserIdKeyResolver

java.lang.Object
com.networknt.aws.lambda.handler.middleware.limit.key.JwtUserIdKeyResolver
All Implemented Interfaces:
KeyResolver

public class JwtUserIdKeyResolver extends Object implements KeyResolver
When user is selected as the key, we can get the user_id from the JWT claim. In this way, we can limit a number of requests for a user to prevent abuse from a single page application that is using the backend APIs.
Author:
Steve Hu
  • Constructor Details

    • JwtUserIdKeyResolver

      public JwtUserIdKeyResolver()
  • Method Details