最佳實踐:快速搭建移動應用直傳服務
參考文檔:
https://help.aliyun.com/document_detail/31920.html?spm=a2c4g.11186623.6.1678.2a9f960djRrqDt
備注
文檔是新增Accesskey,如果原本有在用的Accesskey,可以直接使用原有的AccessKey,并且為該Key的用戶添加權限
自定義權限策略名稱:AliyunOSSTokenGeneratorUserPolicy,策略內(nèi)容如下
{
"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