|
|
1
3
经过大量挖掘,问题似乎与以下所述有关: https://github.com/facebook/react-native/issues/14445 . android okHttp库(react native内部使用)向请求中添加了字符集=utf=8。因此,解决方案是使用如下标题计算sig4值:
|
|
2
1
新的AWS放大库( https://github.com/aws/aws-amplify )在官方AWS上,repo支持自动签名到API网关。这是API模块的一部分: https://github.com/aws/aws-amplify/blob/master/media/api_guide.md
https://github.com/aws/aws-amplify/blob/master/media/quick_start.md#react-native-development
然后,使用用户的凭据对API网关请求进行签名:
|
|
|
3
1
|