Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

API Authentication

GraphQL HTTP and WebSocket requests use named-user browser sessions. The configured sign-in mode determines how those sessions are created.

Without browser OIDC, /api/auth/login accepts the local username and password. Keep its returned fluxomni_session cookie and send it with GraphQL HTTP and WebSocket subscription requests.

With browser OIDC configured, sign in through the configured issuer in the operator UI. /api/auth/login cannot create a password session in that mode. See unified sign-in and account enrollment. The verified callback creates an opaque Fluxomni browser cookie; issuer email and role claims do not choose the local account or its permissions.

MCP OAuth credentials work only at the configured MCP resource. They cannot authorize ordinary GraphQL or WebSocket requests. This feature does not add a service-account credential or writable MCP tools.

Login

This password login example applies only when browser OIDC is not configured.

curl -i \
  -H 'content-type: application/json' \
  -d '{"username":"admin","password":"your-password"}' \
  http://<your-server>/api/auth/login

The response sets a fluxomni_session cookie when the credentials are valid.

Use /api/auth/status to check the current session:

curl -b "fluxomni_session=$SESSION" \
  http://<your-server>/api/auth/status

Roles

Automation uses the same role permissions as the UI:

  • Admin — full access to routes, artifacts, Fleet, settings, user management, export/import, and ownership assignment.
  • Operator — can manage visible routes, sources, outputs, playlists, and artifacts, plus self-service settings.
  • Viewer — read-only access to visible routes and system surfaces.

Session Expiry

Session lifetime is controlled by the server sessionTtlSeconds setting. From 26.4.0, the default is 24 hours. Installations that already saved a TTL keep that value. A value of 0 or null disables expiry. Other values set the number of seconds from login until the in-memory session expires.

Treat HTTP 401 or GraphQL extensions.code: "UNAUTHORIZED" as a signal to authenticate again using the configured mode. Issuer sessions and browser cookies have separate lifetimes; an expired cookie needs a new verified browser sign-in. Provider account changes do not independently revoke an already issued Fluxomni cookie; local revision changes, configured expiry or explicit local sign-out do.

Use explicit MCP client approval for read-only automation on an issuer-configured instance. Browser sign-in never creates that approval automatically.

Internal Credentials

Loopback bearer authentication is for internal control-plane and media-node traffic only. Do not use Authorization: Bearer as a public automation credential.