dependabot[bot] 60f49cbb2e
Bump gson from 2.8.5 to 2.8.9 in /ufile-auth-server-java
Bumps [gson](https://github.com/google/gson) from 2.8.5 to 2.8.9.
- [Release notes](https://github.com/google/gson/releases)
- [Changelog](https://github.com/google/gson/blob/master/CHANGELOG.md)
- [Commits](https://github.com/google/gson/compare/gson-parent-2.8.5...gson-parent-2.8.9)

---
updated-dependencies:
- dependency-name: com.google.code.gson:gson
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-05-20 20:54:41 +00:00
2019-01-09 15:56:43 +08:00
2019-01-09 15:58:42 +08:00

Ufile SDK remote Auth-Server

说明

  • 该项目用于Ufile SDK接入远端签名时使用
  • 您需要clone对应语言的源码在项目中配置public key和private key避免了部分平台的SDK特别是android和iOS平台会将private key放在本地的不安全性。

接口说明

请求对象操作的API签名

  • URL: http://your_domain/applyAuth

  • http method: POST

  • Content-Type: application/json

  • Request Body:

    {
        /**
         * Required
         * 你请求的Ufile API的Http Method
         */
        "method":"PUT",
        /**
         * Required
         * 你想操作的Bucket名称
         */
        "bucket":"bucketName",
        /**
         * Optional
         * 你想操作的云端对象的名称
         */
        "key":"object's key name"
        /**
         * Optional
         * 你请求Ufile API时的Content-Type
         */
        "content_type":"application/octet-stream",
         /**
         * Optional
         * 你在请求上传类Ufile API时的数据的MD5
         */
        "content_md5":"",
         /**
         * Optional
         * 你请求的时间字符串格式yyyyMMddHHmmss
         */
        "date":"yyyyMMddHHmmss"
         /**
         * Optional
         * 签名服务额外可选参数你可以将你部署的签名服务API的鉴权数据放在该字段部分语言版本的Ufile SDK可配置签名额外参数。
         * 格式Json字符串注意Json中引号需要转义
         */
        "optional":"{\"your optional data json\":\"This is your data value\"}"
    }
    
  • Response Body: 签名结果字符串

请求私有Bucket的对象下载链接签名

  • URL: http://your_domain/applyPrivateUrlAuth

  • http method: POST

  • Content-Type: application/json

  • Request Body:

    {
        /**
         * Required
         * 你请求的Ufile API的Http Method
         */
        "method":"GET",
        /**
         * Required
         * 你想操作的Bucket名称
         */
        "bucket":"bucketName",
        /**
         * Required
         * 你想操作的云端对象的名称
         */
        "key":"object's key name"
        /**
         * Required
         * 私有Bucket的Object的下载链接的失效时间
         * 失效时间: 当前时间加上一个有效时间, 单位Unix time second
         */
        "expires":123456789,
        /**
         * Optional
         * 签名服务额外可选参数你可以将你部署的签名服务API的鉴权数据放在该字段部分语言版本的Ufile SDK可配置签名额外参数。
         * 格式Json字符串注意Json中引号需要转义
         */
        "optional":"{\"your optional data json\":\"This is your data value\"}"
    }
    
  • Response Body: 签名结果字符串

Description
No description provided
Readme 65 KiB
Languages
Java 59.5%
Python 21.3%
PHP 19.2%