如何 AWS API Gateway 服务代理身份验证 |无服务器框架

问题描述

最近我尝试绕过 Lambda 并使用 API 网关服务代理直接将对象保存到 s3。我能够管理那部分,但我很难验证来自 API 网关的 Rest API 调用。感谢您指导实施身份验证部分。

我的无服务器实现

apiGatewayServiceProxies:
- s3:
    path: /s3
    method: post
    action: PutObject
    pathOverride: '{file}.xml'
    bucket: 'docusign-temp'
    cors: true

    requestParameters:
      'integration.request.path.file': 'context.requestId'
      'integration.request.path.object': 'context.requestId'
      'integration.request.header.X-DocuSign-Signature-1': "'WV/YmpqEAHgWC86WACTJiiY='"

AWS API 网关

enter image description here

请求标头与集成请求阶段映射,但不允许进行身份验证部分。我需要将这些标头传递给方法请求阶段,在那里我可以执行身份验证部分。

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)