我在API网关中有一个API,其授权类型I已设置为AWS_IAM,以便API Gateway验证请求的签名。
并将API端点限制为仅限特定的IAM用户。
现在的问题是我如何从.NET使用这个API? 我不能自己创建/计算签名。 AWS SDK for .NET是否提供任何帮助程序或实用程序方法/类来计算签名,我可以将其作为HTTP标头附加到我的HTTP请求中?
或者,API Gateway SDK for .NET是否可以向受限制的API网关端点发出签名请求?
I have an API in API Gateway whose Authorization type I have set to AWS_IAM to have API Gateway verify the signature on requests.
And restrict the API endpoint to only specific IAM users.
Now the problem is how can I consume this API from .NET? I cannot create/compute the signature by myself. Does the AWS SDK for .NET offer any helper or utility method/class to have the signature computed which I can attach as the HTTP header to my HTTP request?
Or can the API Gateway SDK for .NET make signed requests to my restricted API Gateway endpoint?
最满意答案
API Gateway尚不支持为.NET生成的SDK,因此目前您的选项仅限于:
查找用于.NET的SigV4签名者库 根据http://docs.aws.amazon.com/general/latest/gr/sigv4_signing.html编写自己的SigV4签名者 尝试利用AWS SDK for .NET中的现有签名代码http://aws.amazon.com/documentation/sdk-for-net/API Gateway doesn't yet support generated SDKs for .NET, so at this time your options are limited to:
Find a SigV4 signer library for .NET Write your own SigV4 signer based on http://docs.aws.amazon.com/general/latest/gr/sigv4_signing.html Try to leverage the existing signing code in the AWS SDK for .NET http://aws.amazon.com/documentation/sdk-for-net/更多推荐
发布评论