{"id":21518173,"url":"https://github.com/ucloud/ufile-sdk-auth-server","last_synced_at":"2025-04-09T21:45:02.174Z","repository":{"id":39960621,"uuid":"162966667","full_name":"ucloud/ufile-sdk-auth-server","owner":"ucloud","description":null,"archived":false,"fork":false,"pushed_at":"2022-05-20T20:54:42.000Z","size":34,"stargazers_count":4,"open_issues_count":1,"forks_count":4,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-03-23T23:36:07.901Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ucloud.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-12-24T08:06:34.000Z","updated_at":"2022-09-27T10:01:54.000Z","dependencies_parsed_at":"2022-08-24T17:41:08.384Z","dependency_job_id":null,"html_url":"https://github.com/ucloud/ufile-sdk-auth-server","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ucloud%2Fufile-sdk-auth-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ucloud%2Fufile-sdk-auth-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ucloud%2Fufile-sdk-auth-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ucloud%2Fufile-sdk-auth-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ucloud","download_url":"https://codeload.github.com/ucloud/ufile-sdk-auth-server/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248119439,"owners_count":21050754,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-24T00:50:25.316Z","updated_at":"2025-04-09T21:45:02.150Z","avatar_url":"https://github.com/ucloud.png","language":"Java","readme":"# Ufile SDK remote Auth-Server\n\n## 说明\n- 该项目用于Ufile SDK接入远端签名时使用\n- 您需要clone对应语言的源码，在项目中配置public key和private key，避免了部分平台的SDK（特别是android和iOS平台）会将private key放在本地的不安全性。\n\n## 接口说明\n#### 请求对象操作的API签名\n- **URL**: http://your_domain/applyAuth\n- **http method**: POST\n- **Content-Type**: application/json\n- **Request Body**:\n    \n    ``` java\n    {\n        /**\n         * Required\n         * 你请求的Ufile API的Http Method\n         */\n        \"method\":\"PUT\",\n        /**\n         * Required\n         * 你想操作的Bucket名称\n         */\n        \"bucket\":\"bucketName\",\n        /**\n         * Optional\n         * 你想操作的云端对象的名称\n         */\n        \"key\":\"object's key name\"\n        /**\n         * Optional\n         * 你请求Ufile API时的Content-Type\n         */\n        \"content_type\":\"application/octet-stream\",\n         /**\n         * Optional\n         * 你在请求上传类Ufile API时的数据的MD5\n         */\n        \"content_md5\":\"\",\n         /**\n         * Optional\n         * 你请求的时间字符串，格式：yyyyMMddHHmmss\n         */\n        \"date\":\"yyyyMMddHHmmss\"\n         /**\n         * Optional\n         * 签名服务额外可选参数，你可以将你部署的签名服务API的鉴权数据放在该字段，部分语言版本的Ufile SDK可配置签名额外参数。\n         * 格式：Json字符串，注意Json中引号需要转义\n         */\n        \"optional\":\"{\\\"your optional data json\\\":\\\"This is your data value\\\"}\"\n    }\n    ```\n- **Response Body**: 签名结果字符串\n\n#### 请求私有Bucket的对象下载链接签名\n- **URL**: http://your_domain/applyPrivateUrlAuth\n- **http method**: POST\n- **Content-Type**: application/json\n- **Request Body**:\n    \n    ``` java\n    {\n        /**\n         * Required\n         * 你请求的Ufile API的Http Method\n         */\n        \"method\":\"GET\",\n        /**\n         * Required\n         * 你想操作的Bucket名称\n         */\n        \"bucket\":\"bucketName\",\n        /**\n         * Required\n         * 你想操作的云端对象的名称\n         */\n        \"key\":\"object's key name\"\n        /**\n         * Required\n         * 私有Bucket的Object的下载链接的失效时间\n         * 失效时间: 当前时间加上一个有效时间, 单位：Unix time second\n         */\n        \"expires\":123456789,\n        /**\n         * Optional\n         * 签名服务额外可选参数，你可以将你部署的签名服务API的鉴权数据放在该字段，部分语言版本的Ufile SDK可配置签名额外参数。\n         * 格式：Json字符串，注意Json中引号需要转义\n         */\n        \"optional\":\"{\\\"your optional data json\\\":\\\"This is your data value\\\"}\"\n    }\n    ```\n- **Response Body**: 签名结果字符串\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fucloud%2Fufile-sdk-auth-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fucloud%2Fufile-sdk-auth-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fucloud%2Fufile-sdk-auth-server/lists"}