Lets say I have an Admin API where I want to use Cognito to authenticate the user is in a specific group + from a whitelisted IP, how should I do that?
Am I right to say:
- I cannot use a Cognito authorizer since it only checks if the user is in a userpool and nothing more
- If I need to write a custom authorizer, I will need to follow https://aws.amazon.com/blogs/compute/using-enhanced-request-authorizers-in-amazon-api-gateway/ correct? I cannot use the IAM way to do IP whitelisting https://lobster1234.github.io/2018/04/14/amazon-api-gateway-ip-whitelisting/