Sign in with Dropbox
People can now sign in to Apiome with their Dropbox account, and link Dropbox beside any other provider on Linked accounts.
- For administrators. Dropbox is a new entry in System settings → Add Provider. It
needs the App key and App secret of a Dropbox app, entered as the Client ID and
Client secret — no issuer.
Sign-in providers lists what to set on
Dropbox's side. The environment variables are
DROPBOX_CLIENT_IDandDROPBOX_CLIENT_SECRET. - Callback URL.
<BETTER_AUTH_URL>/api/auth/oauth2/callback/dropbox, added under OAuth 2 → Redirect URIs on the app's Settings tab. - Scope. Apiome asks for
account_info.readonly, and uses it to read the name, email address and picture of the person signing in. Apiome reads no files and keeps no Dropbox token, so an App folder app is enough. - Email addresses. Dropbox is a Trusted provider: a sign-in joins the account with the same address, or starts a new one, only when the Dropbox account's email address is verified. An unverified address is refused. To use such an account, verify the address in Dropbox, or sign in another way first and link Dropbox from Linked accounts.
- REST API.
GET /v1/admin/auth-providerslistsdropboxas an available provider, andPUT /v1/admin/auth-providers/dropboxstores its credentials.
