ObjectOS
Configure

Authentication

Configure sign-in, sessions, OAuth, OIDC/SSO, and device flow.

Authentication

ObjectOS uses the ObjectStack authentication plugin, powered by Better Auth. Authentication is project-local: each project has its own identity tables and session scope.

What is supported

Depending on the packaged application and enabled settings, ObjectOS can support:

  • email/password sign-in;
  • session management;
  • password reset and email verification;
  • social OAuth providers such as Google, GitHub, Microsoft, and Apple;
  • enterprise OIDC/SSO such as Okta, Entra ID, Keycloak, and Ping;
  • two-factor authentication;
  • passkeys/WebAuthn;
  • magic links;
  • CLI/browser device flow.

Required secret

Set:

OS_AUTH_SECRET=replace-with-a-strong-random-secret

ObjectOS derives a stable per-project secret from this value and the project environment id. This means:

  • sessions survive container restarts;
  • tokens from one project cannot be reused on another project;
  • rotating OS_AUTH_SECRET invalidates sessions.

Session isolation

In multi-project deployments, cookies are scoped to the project hostname. ObjectOS intentionally avoids broad root-domain cookies for project sessions. This prevents a session from leaking across customer projects.

Social login

Configure provider credentials through environment variables or system settings, depending on how the application package exposes auth configuration.

Provider callback URLs depend on the provider type. ObjectStack exposes two distinct callback paths and they are not interchangeable:

Provider typeCallback path
Built-in social (Google, GitHub, Microsoft, Apple, …)/api/v1/auth/callback/<provider>
Generic OIDC / OAuth2 (Okta, Entra ID, Keycloak, Ping, …)/api/v1/auth/oauth2/callback/<provider>

Examples:

https://crm.example.com/api/v1/auth/callback/google
https://crm.example.com/api/v1/auth/callback/microsoft
https://crm.example.com/api/v1/auth/oauth2/callback/okta
https://crm.example.com/api/v1/auth/oauth2/callback/entra

Configure the matching redirect URI in the identity provider's application registration before enabling the provider in ObjectOS.

Enterprise OIDC/SSO

OIDC providers are registered as generic OAuth2 providers and use the /oauth2/callback/<provider> path. A typical configuration requires:

FieldDescription
Provider idStable id such as okta or entra (used in the callback URL)
Display nameButton label shown to users
Discovery URL.well-known/openid-configuration endpoint
Client idApplication client id from the identity provider
Client secretSecret stored in environment or encrypted settings
ScopesUsually openid email profile

For customer deployments, prefer OIDC discovery URLs over manually configured authorization/token/userinfo endpoints.

Platform SSO

In cloud-connected deployments, ObjectOS can use the control-plane login as a platform SSO provider. A builder who is already signed in to the control plane can be provisioned into a project runtime without creating a separate project-local account.

This requires the control plane and ObjectOS to share the same OS_AUTH_SECRET base secret. Disable platform SSO only when the customer wants every project to own a completely separate login boundary.

Operational checks

Before production:

  • confirm expired tokens return 401;
  • confirm logout revokes the active session;
  • confirm password reset revokes other sessions if required by policy;
  • confirm callback URLs match the public project domain;
  • confirm trusted origins include only approved domains;
  • confirm OS_AUTH_SECRET is stored in a secret manager, not in source.

On this page