# SECURITY NOTE: It is recommended to set the 'client_secret' via an environment# variable rather than hardcoding it here.[plugins.oauth2.providers.dropbox]enabled = trueclient_id = "your-app-key"client_secret = "your-app-secret"redirect_url = "http://localhost:8080/api/auth/oauth2/callback/dropbox"
You can also provide the credentials through environment variables:
.env
DROPBOX_CLIENT_ID=DROPBOX_CLIENT_SECRET=
Environment values override client_id and client_secret only. An explicit redirect_url always wins. When redirect_url is omitted, Authula builds it from base_url and base_path as /oauth2/callback/dropbox.
After exchanging the authorization code, Authula calls Dropbox's OIDC user info endpoint and maps the response into its normalized user information:
Authula field
Dropbox field
ProviderAccountID
sub (for example, dbid:AAH4f99...)
Email
email (normalized to lowercase)
EmailVerified
email_verified (always true for OIDC)
Name
given_name + family_name
Picture
Not provided (empty)
Raw
Raw JSON payload
sub is the stable Dropbox account identifier and is used for account linking. Email addresses can change, so they are not used as the account identity.
Dropbox OIDC guarantees that returned email addresses are verified.
The display name is built from given_name and family_name. Either field can be missing; Authula trims the result.
Dropbox OIDC does not return an avatar, so Picture is empty.
PKCE is enabled by default.
Refresh tokens are supported as the authorization URL includes token_access_type=offline query parameter but this can be overridden via config to remove this parameter if you don't want refresh tokens generated.