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.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
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.
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:
- Cap your app’s own session cookie to no longer than the token response’s
expires_in(10 minutes at most). - When the app session expires, send the browser through a full-page redirect to
https://identity.fluid.app/c/<company-slug>/authorizewithprompt=noneand fresh PKCE,state, andnoncevalues. - While the person’s Fluid session is still active and valid for your company, Fluid redirects immediately to your
redirect_uriwith a newcodeand no sign-in screen. - If the person signed out of Fluid, their Fluid session expired, or their membership ended, Fluid redirects to your
redirect_uriwitherror=login_required. Treat the person as signed out.
Sign-out behavior
- 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
/userinfowith an access token from that session immediately returns401 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
/userinfoor renews atprompt=none. Capping your app session atexpires_inbounds this window to 10 minutes at most. - Planned:
end_session_endpointand sign-out notifications to apps are planned before outside (non-company-owned) apps are supported.
Errors
Discovery errors
Authorization endpoint errors
Whenclient_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_challengeor unsupportedcode_challenge_method(anything other thanS256)
client_id and redirect_uri are verified, errors redirect to redirect_uri?error=<code>&error_description=...&state=<state>: