Files
aliyun-oss-react-native/script/sts-app-server-node/README.md
2018-06-18 12:11:01 +08:00

31 lines
832 B
Markdown
Executable File
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# A simple app server using STS
App Server一般作为一个企业的应用服务器它管理着OSS的
AccessKeyId/AccessKeySecret服务于众多的客户端。当客户端移动端
/Web/Client等需要访问OSS时它们向App Server请求一个临时的token
利用这个token从OSS下载或者向OSS上传文件。
App Server可以实现更复杂的策略为不同的客户端提供不同权限的token
离不同的客户端的存储路径等。
使用参考https://help.aliyun.com/document_detail/oss/practice/ram_guide_dir/no_user_accout.html
## Run
### Checkout code
git clone https://github.com/rockuw/node-sts-app-server.git
cd node-sts-app-server
### Install dependencies
npm install
### Start server
node index.js
### Open in your browser
http://localhost:3000/