Cognito User pool with JWT token

0

Hi, I am using Custom Authoriser with Cognito User Pool for securing my API gateway. Using the "client_credentials" grant type to generate the access token. As additional security, I would like to include IP restrictions or IP whitelisting to the Authoriser. Is there is any way that I can include this IP Whitelisting to my custom Cognito Authoriser?

Regards Jo

1 個回答
1
已接受的答案
  • The requester's IP can be read via Enhanced Request Headers on the Custom Authorizer.
  • You can consider the Amazon API Gateway IP Allowlisting with a Resource Policy. See here for an example.
AWS
已回答 2 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南