Skip to content

Signing in

The sign-in window appears at startup. It asks for the Server URL, the Organization — the tenant code — and, depending on the Sign-in method, either a username and password or an API key.

Sign-in method What for Limit
With username and password Everything a person does at the screen; watched folders for as long as the application runs The session ends with the program
With API key (unattended operation) Watched folders, scheduled exports, the Linux service None; the key does not expire
  1. Enter the Server URL, for example https://docuflair.example.org. The default for a local installation is http://localhost:5050.
  2. Enter the Organization — the tenant code, not the display name.
  3. Enter the Username (email or username) and the Password.
  4. Optionally tick “Save credentials”.
  5. Select Sign in.

If the account requires a second factor, the Verification code field only appears at that point. Revealing it up front would tell anyone which accounts have one.

The server address, tenant and username are remembered for the next start even when “Save credentials” is not ticked. They are not secrets, and without that they would have to be retyped at every start.

An API key of the tenant (in the form vk_…) is the only credential that lasts without a person. Create one in the tenant administration or on the command line:

Terminal window
vk apikey create --name "Import & Export, mail room" --user-id <user id>

See the command line reference. The key is shown exactly once and never again.

This is the question that decides whether a watched folder works overnight.

  • A sign-in with a password yields a session token that expires after roughly an hour. The application renews it by itself for as long as it runs; the password stays in memory and nothing is written to disk for it. Watched folders therefore work all day, but not across a restart.
  • A sign-in with an API key does not expire. It is the only credential that carries a machine which restarts unattended.
  • A sign-in with a second factor cannot be renewed: the verification code is single-use. The schedule does not start in that case, and the watched-folders view states why at the top. “Run now” still works — a person is watching the result there.

If a renewal fails for good, the schedule is stopped and the message “The sign-in could not be renewed” appears. A server that is merely unreachable for a while does not end the session; the renewal is retried later.

Ticking “Save credentials” creates a connection.json in the data folder. It holds the server, tenant and username in clear text — the secret (password or API key) never. The secret is handed to the best store the system offers:

Platform Protection
Windows DPAPI, bound to the Windows account
macOS macOS keychain
Linux with a desktop session Secret Service (GNOME Keyring, KWallet) through secret-tool
Any, as a fallback Environment key from DOCUFLAIR_IMPORTEXPORT_KEY (Base64, at least 32 bytes)

There is no fallback to clear text. Where no store can protect the secret, it is not stored, and the sign-in window says so: the key will not survive a restart. For that case the message names the two ways out — the environment key, or handing the credentials directly to the service through environment variables.

Every stored secret carries a marker for the store that wrote it. One machine can therefore hold entries from several stores, and an environment key set later does not render keyring entries unreadable.

System → Sign out … removes the stored credentials and ends the running session: watched folders are stopped and the sign-in window returns. The prompt offers three paths:

  • Sign out — back to the sign-in window
  • Sign out and exit
  • Just exit — the stored credentials are kept
Message Meaning
“The server does not know how to sign in with an API key.” The server version is older than the tool. Check the server address too; a wrong path looks the same.
“This API key is not associated with a user …” Associate the key with a user in the tenant administration
“This account requires a second factor.” Enter the code from the authenticator app; for unattended operation, use an API key instead
“The code is wrong, expired or has already been used.” Wait for the next code
“A password must be set for this account first.” Sign in to the web interface once and change the password; the interface cannot do it
“Account locked: …” The tenant administration lifts the lock
“The configured key is unusable: …” DOCUFLAIR_IMPORTEXPORT_KEY is set but is not valid Base64 of at least 32 bytes