Warning
This is a Beta service. The API is subject to change and should not be used in production implementations.
Obtain scoped, temporary Amazon S3-compatible credentials for a private, isolated storage bucket on Cleverbase infrastructure. Each client–user pair gets its own dedicated bucket. Credentials are short-lived and restricted to that single bucket, so one user can never access another user's files.
Technical overview
Host
| Service | Host |
|---|---|
| Storage Authorization API | https://storage-authorization.cleverbase.com |
| Storage Resource Server | https://storage.cleverbase.com |
Authentication
The API is an OAuth 2.0 resource server. Every request must include a valid Bearer access token obtained from Cleverbase Identification API (see Identification API).
| Requirement | Value |
|---|---|
| Grant type | Authorization Code |
| Scope | com.cleverbase.storage |
Sequence diagram
- The client application initiates an OAuth 2.0 authorization code flow, requesting the
com.cleverbase.storagescope from Cleverbase Identity. - After the user authenticates, the client exchanges the authorization code for an
access_token. - The client calls
POST /v1/credentialswith the token to receive a bucket name, an S3-compatible endpoint URL, and a set of short-lived credentials. - The client uses any S3-compatible SDK or tool to perform file operations directly against Cleverbase Storage API, using the received credentials.
Credential lifetime
Temporary credentials expire after 1 hour. Call POST /v1/credentials again to obtain a fresh set; the bucket name does not change between refreshes.