Skip to content

Identity and Access

Identity and access answers three questions: who is accessing, how they prove identity, and where the access boundary ends.

Capability Boundaries

CapabilityNotesRelated docs
Local account loginUsername/email login, password validation, session cookies, access tokensLogin and Sessions
First administrator setupCreate the first admin when a new instance has no usersQuick Start, First-Start Checklist
MFATOTP, recovery codes, email-code MFA, login-flow expiration and attempt limitsLogin and Sessions
PasskeyUser-managed Passkey registration and loginLogin and Sessions
External authenticationOIDC, generic OAuth2, external identity binding, email verification, automatic user creationExternal Authentication
WebDAV accountsDedicated WebDAV credentials, separate from the web login passwordWebDAV, User Manual
Public accessShare links, public preview, direct links, short-lived streaming ticketsSharing and Public Access, Preview and Processing

Backend Modules

ModuleOwns
auth::localRegistration, passwords, sessions, email verification, login flow
auth::mfaMFA login flow, TOTP, recovery codes, email codes
auth::passkeyPasskey registration, authentication, credential management
auth::externalProviders, login flow, identity resolution, account binding
webdav::accountWebDAV accounts and scoped access
api/request_auth.rs, api/middlewareRequest authentication, admin permissions, auth context

Configuration Entry Points

Entry pointPurpose
Admin -> System Settings -> Authentication and CookiesCookie, security token, and email-code MFA runtime rules
Admin -> External AuthenticationManage OIDC / OAuth2 providers
Settings -> SecurityUser MFA, Passkey, external identities, WebDAV credentials
config.toml [auth]Login signing secret, MFA encryption key, first HTTP bootstrap behavior

Troubleshooting Direction

  • Repeated logout after login: check public site URL, HTTPS Cookie settings, and reverse proxy Host handling.
  • External auth callback failure: check redirect URI, provider settings, and public site URL.
  • WebDAV login works but sees the wrong scope: check the WebDAV account root and workspace permissions.
  • Public share opens but preview or download fails: continue with Files and Workspaces and Preview and Processing.

Released under the MIT License