What OzVault Connect does
#OzVault Connect is an OAuth 2.0 authorization server with OpenID Connect sign-in. Your website, app or Discord bot sends a user to OzVault; the user signs in, reviews exactly what your app is asking for and chooses Authorize or Cancel. Your server then receives tokens that can call the OzVault API within those permissions only.
Every user keeps their own allocation: 15 GB on the free plan, or their paid capacity. Your app writes into an isolated storage area inside the user's account and can never see the user's other files. You do not pay for the storage your users bring.
1. Create an application
#Sign in at OzVault with Discord, open Developers → Create application and enter the name and description users will see on the authorization screen. Names cannot contain the word OzVault. Add your website and, before launch, your privacy policy and terms; the authorization screen links to them.
Choose the client type once. A server-side (confidential) application runs code you control: a website backend, an API or a Discord bot. It receives a client secret. A browser, mobile or desktop (public) application runs on the user's device; it has no secret and relies on PKCE alone.
2. Your client ID
#Registration returns a client ID such as ovc_8fJ2kL0qWm3nYp6sTa1bCd. It identifies your application in authorization URLs and token requests. It is not a secret and can appear in front-end code.
3. Register exact redirect URLs
#A redirect URL is where OzVault sends the user back with an authorization code. Register every callback address your app uses (up to ten). They are compared as exact strings: scheme, host, port, path, trailing slash and query must match the redirect_uri in your request character for character. Wildcards and fragments are refused.
Use HTTPS in production. http://localhost and http://127.0.0.1 are accepted for local development. If a request names an unregistered address, OzVault shows an error page and never redirects.
https://example.com/auth/ozvault/callback
http://localhost:3000/auth/ozvault/callback4. Generate and store the client secret
#Confidential applications receive a client secret (ovs_…) when they are created. It is displayed exactly once: OzVault stores only a SHA-256 hash. Put it in your server's secret manager or environment variables, never in browser JavaScript, a mobile app, a public repository or a bot that users download.
To rotate, open the application, choose Generate new secret and pick how long the previous secret keeps working (immediately, 1 hour, 24 hours or 7 days). Deploy the new secret, confirm token requests succeed, then revoke the old one. Generating a secret requires a Discord sign-in from the last ten minutes.
# .env (server only)
OZVAULT_CLIENT_ID=ovc_8fJ2kL0qWm3nYp6sTa1bCd
OZVAULT_CLIENT_SECRET=ovs_...5. Choose the smallest set of permissions
#Enable only the scopes your app needs; each authorization request must ask for a subset of them. Users see plain-language descriptions, never "full access". Removing a scope later applies immediately, including to tokens already issued.
| Scope | Grants | Endpoints |
|---|---|---|
| openid | OpenID Connect sign-in: an ES256 id_token with a pairwise subject | /oauth/userinfo |
| profile:read | Display name | GET /v1/account/profile |
| email:read | Email address and verification state | profile and userinfo |
| storage:quota:read | Account capacity, usage and availability in bytes | GET /v1/storage/quota |
| storage:app:read | List and download files your app stored | GET /v1/app/files… |
| storage:app:write | Upload files into your app's storage area | POST /v1/app/files, /v1/app/uploads |
| storage:app:delete | Move app files to the user's trash; replace on upload | DELETE /v1/app/files/{id} |
| offline_access | A rotating refresh token | POST /oauth/token |
Clear documentation is part of the product.