Cognito用户池与JWT令牌。

0

【以下的问题经过翻译处理】 我正在使用Cognito用户池的自定义认证器来保护我的API网关。使用“client_credentials”生成访问令牌。除此以外,我还希望将IP限制或IP白名单包含到认证器中。有没有办法将这个IP白名单包含到我的自定义Cognito认证器中呢?

1 Answer
0

【以下的回答经过翻译处理】 * 请求的IP地址可以通过自定义认证器中的增强请求头获取。

  • 同时也可以考虑在资源策略中使用Amazon API Gateway IP白名单。有一个示例,请参见此处。
profile picture
EXPERT
answered 5 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions