Skip to content

kindgi sso

View as Markdown

Synopsis

Terminal window
kindgi sso <command>
Signature

Sign-in with your organization's identity provider (single sign-on).

Commands

Command Description
kindgi sso providers Your organization's identity providers (Google, Entra ID, Okta, Keycloak, SAML…).

See also

Synopsis

Terminal window
kindgi sso providers <command>
Signature

Your organization's identity providers (Google, Entra ID, Okta, Keycloak, SAML…).

Commands

Command Description
kindgi sso providers start Get the URLs to give your identity provider, before registering anything, and a message to send IT.
kindgi sso providers finish Register the provider with what your identity provider gave back.
kindgi sso providers update Change a provider; its URLs (on your identity provider's side) don't change.
kindgi sso providers get Show one provider, with the URLs your identity provider has.
kindgi sso providers list List this workspace's sign-in providers.
kindgi sso providers test The link to try signing in with a provider, as a person at one of its domains.
kindgi sso providers remove Stop signing in with a provider.

See also

Synopsis

Terminal window
kindgi sso providers start <provider-id> [--kind=oidc|saml] [--idp=google|entra|okta|keycloak]
Signature

Get the URLs to give your identity provider, before registering anything, and a message to send IT.

Options

Option Default Description
--idp <value> none Add the click-by-click steps for google, entra, okta or keycloak (OIDC).
--kind <value> none: the --idp preset's kind if given, else the registered provider's own (required before it's registered) oidc (OpenID Connect) or saml. Needed until the provider is registered, unless --idp gives it; after that, the registered provider's kind.

Every command also takes the global flags.

Examples

From Microsoft Entra ID:

Terminal window
npx --yes @kindgi/cli@0.7 sso providers start acme-entra --idp=entra

From Google Workspace:

Terminal window
npx --yes @kindgi/cli@0.7 sso providers start acme-google --idp=google

See also

Synopsis

Terminal window
kindgi sso providers finish <provider-id> --domains=<d> (--kind=oidc --issuer=<url> --client-id=<id> --client-secret-ref=<NAME> | --kind=saml --idp-metadata=@<file>) [--name=<text>] [--join=invite|domain] [--join-role=viewer|runner|none] [...]
Signature

Register the provider with what your identity provider gave back.

Options

Option Default Description
--client-id <value> none OIDC: the client ID.
--client-secret-ref <value> none OIDC: the NAME of the client secret in Kindgi's secret store (kindgi secrets set <NAME>), never the secret. Sign-in's only: if the same app registration also serves a connection, give the connection a second client secret under its own name.
--domains <value> required An email domain whose people sign in with it (acme.com); repeatable or comma-separated. Repeatable.
--idp-metadata <value> none SAML: the identity provider's metadata XML, as @<file>.
--issuer <value> none OIDC: the issuer URL.
--join <value> invite Who may sign in the first time: invite (the default: only people you add) or domain (also anyone it says has a verified email at its domains).
--join-role <value> viewer What someone who joins by domain gets: viewer (the default) or runner (who also runs its agents and flows) on the default project, or none. Needs --join=domain, or a provider already set to it.
--kind <value> required oidc (OpenID Connect: Google, Entra ID, Okta, Keycloak…) or saml.
--name <value> none What the sign-in button says ("Sign in with …").
--sp-decryption-certificate <value> none SAML: the decryption key's certificate (PEM), as @<file>, published in the metadata your identity provider imports; repeatable. Repeatable.
--sp-decryption-key-ref <value> none SAML: the NAME of the decryption key, for identity providers that encrypt assertions.
--sp-signing-certificate <value> none SAML: the signing key's certificate (PEM), as @<file>, published in the metadata your identity provider imports; repeatable (a new key's beside the old). Repeatable.
--sp-signing-key-ref <value> none SAML: the NAME of the signing key, for identity providers that want signed requests.
--spec <value> none Any other provider fields, as inline JSON or @<file> (flags win).

Every command also takes the global flags.

Examples

From Microsoft Entra ID:

Terminal window
npx --yes @kindgi/cli@0.7 sso providers finish acme-entra --kind=oidc \

From Google Workspace:

Terminal window
npx --yes @kindgi/cli@0.7 sso providers finish acme-google --kind=oidc --issuer=https://accounts.google.com \

See also

Synopsis

Terminal window
kindgi sso providers update <provider-id> [--client-id=<id>] [--client-secret-ref=<NAME>] [--domains=<d>] [--name=<text>] [--join=invite|domain] [--join-role=viewer|runner|none] [--remove=<field>] [...]
Signature

Change a provider; its URLs (on your identity provider's side) don't change.

Options

Option Default Description
--client-id <value> none OIDC: the client ID.
--client-secret-ref <value> none OIDC: the NAME of the client secret in Kindgi's secret store (kindgi secrets set <NAME>), never the secret. Sign-in's only: if the same app registration also serves a connection, give the connection a second client secret under its own name.
--domains <value> none An email domain whose people sign in with it (acme.com); repeatable or comma-separated. Repeatable.
--idp-metadata <value> none SAML: the identity provider's metadata XML, as @<file>.
--issuer <value> none OIDC: the issuer URL.
--join <value> none: the provider keeps its own Who may sign in the first time: invite (the default: only people you add) or domain (also anyone it says has a verified email at its domains).
--join-role <value> none: the provider keeps its own What someone who joins by domain gets: viewer (the default) or runner (who also runs its agents and flows) on the default project, or none. Needs --join=domain, or a provider already set to it.
--kind <value> none oidc (OpenID Connect: Google, Entra ID, Okta, Keycloak…) or saml.
--name <value> none What the sign-in button says ("Sign in with …").
--remove <value> none An optional field to remove (e.g. displayName, domains); repeatable. Repeatable.
--sp-decryption-certificate <value> none SAML: the decryption key's certificate (PEM), as @<file>, published in the metadata your identity provider imports; repeatable. Repeatable.
--sp-decryption-key-ref <value> none SAML: the NAME of the decryption key, for identity providers that encrypt assertions.
--sp-signing-certificate <value> none SAML: the signing key's certificate (PEM), as @<file>, published in the metadata your identity provider imports; repeatable (a new key's beside the old). Repeatable.
--sp-signing-key-ref <value> none SAML: the NAME of the signing key, for identity providers that want signed requests.
--spec <value> none Any other provider fields, as inline JSON or @<file> (flags win).

Every command also takes the global flags.

Examples

Point a provider at a rotated client secret.

Terminal window
kindgi sso providers update acme-okta --client-secret-ref=ACME_OKTA_SECRET_V2

Add a second sign-in domain and drop the display name.

Terminal window
kindgi sso providers update acme-okta --domains=acme.com,acme-ops.com --remove=displayName

Let colleagues at its domains join by signing in, as viewers of the default project.

Terminal window
kindgi sso providers update acme-okta --join=domain --join-role=viewer

From Set up SSO:

Terminal window
npx --yes @kindgi/cli@0.7 sso providers update acme-kc --join=domain --join-role=viewer

See also

Synopsis

Terminal window
kindgi sso providers get <provider-id>
Signature

Show one provider, with the URLs your identity provider has.

Options

Every command also takes the global flags.

Examples

Show a provider and the URLs to give your identity provider.

Terminal window
kindgi sso providers get acme-okta

See also

Synopsis

Terminal window
kindgi sso providers list
Signature

List this workspace's sign-in providers.

Options

Every command also takes the global flags.

Examples

From Set up SSO:

Terminal window
npx --yes @kindgi/cli@0.7 sso providers list --table

See also

Synopsis

Terminal window
kindgi sso providers test <provider-id> [--email=<someone@your-domain>]
Signature

The link to try signing in with a provider, as a person at one of its domains.

Options

Option Default Description
--email <value> someone@ the provider's first domain Whose sign-in to try; default: someone at the provider's first domain.

Every command also takes the global flags.

Examples

From Set up SSO:

Terminal window
npx --yes @kindgi/cli@0.7 sso providers test acme-kc

See also

Synopsis

Terminal window
kindgi sso providers remove <provider-id>
Signature

Stop signing in with a provider. Registering the same id again gives it the same URLs, but nobody's earlier sign-in carries over.

Options

Every command also takes the global flags.

Examples

Stop signing in with a provider.

Terminal window
kindgi sso providers remove acme-okta

See also