Skip to main content
Configure Single Sign-On (SSO) so end users can sign in to your app through an external identity provider. Supported providers are Google, Microsoft, GitHub, Okta, and any custom OIDC-compliant provider. SSO and social login are mutually exclusive. Enabling SSO disables any active social login providers, and enabling a social login provider disables SSO. This command updates your local auth config and immediately saves the provider credentials to Base44’s secrets store. The SSO toggle itself is applied to your deployed app only after you run auth push or deploy.

Usage

Enable SSO with a provider’s OAuth credentials:
Disable SSO:

Arguments

Flags

All flags below apply to enable. disable takes no flags. Required flags depend on the provider, see Per-provider requirements. If you omit --client-secret, --client-secret-stdin, and --env-file, and the sso_client_secret environment variable isn’t set, the CLI prompts for the secret interactively.

Per-provider requirements

All providers require --provider, --client-id, and a client secret, provided through --client-secret, --client-secret-stdin, --env-file, the sso_client_secret environment variable, or the interactive prompt. Some providers need additional flags: Microsoft Entra example:
Okta example:
Custom OIDC example:

Config file format

Instead of passing every value as a flag, provide a JSON file with --file. Fields match their flag counterparts in camelCase, and flag values take precedence over file values when both are provided.

See also