OAuth
Last updated
This section explains how to set up an OAuth 2.0 authorization flow with Ellipsis Drive.
OAuth allows your application to obtain delegated access to a userβs account without handling their credentials directly.
The flow results in:
an access token (used to make API requests)
a refresh token (used to obtain new access tokens over time)
Ellipsis Drive supports the Authorization Code grant type, with optional PKCE for enhanced security.
PKCE is recommended for:
single-page applications
mobile apps
native applications
Go to Account settings β Developer settings and register a new OAuth client.
You will need to provide:
a callback URL (redirect URI)
After registration, store your:
client ID
client secret

In your application, direct the user to the authorization endpoint.
This will redirect the user to Ellipsis Drive, where they can grant access to your application.
After the user grants access, they are redirected back to your callback URL.
The callback request will include an authorization code as a parameter.
Your backend should exchange the authorization code for:
an access token
a refresh token
Store the refresh token securely in your backend so you can create another access token for the user at a later time if needed.
Use the access token to make authenticated requests to the Ellipsis Drive API.
When the access token expires, use the refresh token to obtain a new access token.
This allows users to stay connected without re-authorizing.
Last updated