最佳实践:快速搭建移动应用直传服务
参考文档:
https://help.aliyun.com/document_detail/31920.html?spm=a2c4g.11186623.6.1678.2a9f960djRrqDt
备注
文档是新增Accesskey,如果原本有在用的Accesskey,可以直接使用原有的AccessKey,并且为该Key的用户添加权限
自定义权限策略名称:AliyunOSSTokenGeneratorUserPolicy,策略内容如下
{
"Statement": [
{
"Action": "sts:AssumeRole",
"Effect": "Allow",
"Resource": "acs:ram::1234275437515389:role/aliyunosstokengeneratorrole"
}
],
"Version": "1"
}
JAVA STS SDK
参考文档:
https://helpcdn.aliyun.com/document_detail/28786.html
AssumeRole说明
https://www.alibabacloud.com/help/zh/doc-detail/28763.htm
移动端集成OSS SDK
Android
参考文档:
https://help.aliyun.com/document_detail/32043.html?spm=a2c4g.11186623.6.1445.4399435270htyt
IOS:
参考文档:
https://help.aliyun.com/document_detail/32056.html?spm=a2c4g.11174283.6.1487.25897da2aRr6Z0