Skip to main content
Early access: Company Sign-In is not live in production yet. Fluid enables it per company. Until it is enabled for your company, discovery and app registration return 404. Contact your Fluid representative or Fluid support to request early access.
This page documents the OpenID Connect contract for Company Sign-In: issuer and discovery metadata, endpoints, scopes and claims, token lifetimes, silent renewal, sign-out behavior, and error codes.

Issuer and discovery

Every company enabled for Company Sign-In has its own path-based OpenID Connect issuer:
<company-slug> is created once, when your company registers its first Company Sign-In app. By default it is your company’s Fluid subdomain in lowercase, or an optional lowercase DNS label (1 to 63 characters: a-z, 0-9, and inner hyphens -) supplied on that first registration. Once created, the slug never changes. Issuer matching is case-sensitive.

Discovery URL

Always configure your OpenID Connect library with the issuer URL so it discovers endpoints automatically. Discovery responses are cached for 5 minutes (Cache-Control: public, max-age=300) and return 404 for an unknown slug or a company where Company Sign-In is not enabled.

Endpoints

Discovery metadata

Discovery does not advertise refresh_token, end_session_endpoint, or revocation_endpoint in early access.

Authorization request parameters

login_hint is always ignored for company apps. Each app is bound to one company at registration, so do not send an org query parameter; if an org value is sent and does not match the app’s company UUID, /authorize redirects with invalid_request.

Scopes and claims

Claims are released according to the scopes requested and granted:

Claim definitions

Optional claims (nonce, name, and fluid_rep_id for customers) are omitted when absent rather than returned as null or "". ID tokens never include sid.

Example ID token payload

Example /userinfo response

email_verified rules

email_verified is true only when the current sign-in session proved ownership of the exact email address returned in email with an emailed one-time code and the account’s email address has not changed since that sign-in. email_verified is false when:
  • The session was opened with a method that did not prove the email address (such as a password, passkey, Google sign-in, or SMS code).
  • A customer signed in with an emailed code sent to a member email address that differs from their account email.
  • The account’s email address changed after the session signed in.
Do not automatically link an incoming sign-in to an existing local account by email when email_verified is false.

Token lifetimes and silent renewal

Renewing with prompt=none

A 10-minute token lifetime does not mean people have to re-enter their credentials every 10 minutes:
  1. Cap your app’s own session cookie to no longer than the token response’s expires_in (10 minutes at most).
  2. When the app session expires, send the browser through a full-page redirect to https://identity.fluid.app/c/<company-slug>/authorize with prompt=none and fresh PKCE, state, and nonce values.
  3. While the person’s Fluid session is still active and valid for your company, Fluid redirects immediately to your redirect_uri with a new code and no sign-in screen.
  4. If the person signed out of Fluid, their Fluid session expired, or their membership ended, Fluid redirects to your redirect_uri with error=login_required. Treat the person as signed out.

Sign-out behavior

Current sign-out limitation: Early access does not include end_session_endpoint, front-channel logout, or back-channel logout notifications. Keep your app’s session cookie capped at expires_in (10 minutes at most) so a Fluid sign-out ends your app’s session at the next prompt=none renewal.
  • Signing out of your app clears your app’s own session cookie. It does not end the person’s Fluid session.
  • Signing out of Fluid (or deactivating a member) ends their Fluid session immediately. Any call to /userinfo with an access token from that session immediately returns 401 invalid_token.
  • The sign-out window: If your app checks only its own session cookie between requests, that session can remain valid after a Fluid sign-out until your app next calls /userinfo or renews at prompt=none. Capping your app session at expires_in bounds this window to 10 minutes at most.
  • Planned: end_session_endpoint and sign-out notifications to apps are planned before outside (non-company-owned) apps are supported.

Errors

Discovery errors

Authorization endpoint errors

When client_id or redirect_uri cannot be verified, or when required request security parameters are missing, Fluid returns a direct HTTP 400 page and never redirects:
  • Unknown or revoked client_id
  • Company Sign-In disabled for the app’s company
  • Unregistered or mismatched redirect_uri
  • Missing state
  • Missing code_challenge or unsupported code_challenge_method (anything other than S256)
Once client_id and redirect_uri are verified, errors redirect to redirect_uri?error=<code>&error_description=...&state=<state>:

Token endpoint errors

Userinfo endpoint errors

App registration API errors