AWS SDK for .NET的API网关签名请求(API Gateway sign request with AWS SDK for .NET)

系统教程 行业动态 更新时间:2024-06-14 16:59:17
AWS SDK for .NET的API网关签名请求(API Gateway sign request with AWS SDK for .NET)

我在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/

更多推荐

本文发布于:2023-04-16 14:31:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/dzcp/c8576678887e3c4aaab374473c69722e.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:网关   NET   AWS   SDK   API

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!