deploy.login-gate.delete

Stop requiring sign-in on an app

DELETE /deploy/api/apps/{id}/login-gateIAM deploy:DeleteLoginGateChanges stateDestructive

Request syntax

DELETE /deploy/api/apps/{id}/login-gate

Path parameters

  • idRequired

    string

    Constraints: uuid

Response

200 with `data`: the gate, enabled false. Every hostname is public again on the machines’ next poll; sessions signed before never work again.

A JSON response is wrapped as { "success": true, "data": … }; the CLI prints the whole body with --json.

Fields of data

  • appIdAlways

    string

    The app
  • enabledAlways

    boolean

    Whether the app requires sign-in on every hostname
  • providerAlways

    one of console, oidc, token, may be null

    console accounts, your OpenID Connect provider, or tokens your own keys sign; null while off
  • tokenJwksAlways

    string, may be null

    provider token: the registered public keys (JWKS)
  • tokenCookieAlways

    string, may be null

    provider token: the cookie the token is read from
  • tokenIssuerAlways

    string, may be null

    provider token: the required iss; null = any
  • tokenAudienceAlways

    string, may be null

    provider token: the required aud; null = any
  • redirectUrlAlways

    string, may be null

    provider token: where a browser without a valid token is sent (with return_to)
  • oidcIssuerAlways

    string, may be null

    provider oidc: the issuer URL
  • oidcClientIdAlways

    string, may be null

    provider oidc: the client ID
  • oidcClientSecretSetAlways

    boolean

    A client secret is stored (it is never returned)
  • allowedEmailDomainsAlways

    array of string

    Admitted email domains, exact; empty = any
  • webhookUrlAlways

    string, may be null

    The access webhook, if any
  • webhookSecretSetAlways

    boolean

    A webhook secret is stored (it is never returned)
  • sessionHoursAlways

    number, may be null

    How long a sign-in lasts
  • exceptionsAlways

    array of string

    Path prefixes served without sign-in
  • epochAlways

    number

    Raised by revoke-sessions and by changes of who may sign in; older sessions end
  • updatedAtAlways

    string, may be null

    When the gate was last changed; null for never
  • redirectUriAlways

    string

    The redirect URI to register at your identity provider (the same for every app)
  • issuerAlways

    string

    The `iss` of the identity token
  • jwksUrlAlways

    string

    Where the keys that verify the identity token are published
  • identityHeaderAlways

    string

    The request header the app receives the token in
  • emailHeaderAlways

    string

    The request header with the signed-in email, for convenience
  • signOutPathAlways

    string

    Open this path on any hostname of the app to sign out

Checked against the handlers: every route test validates their answers against this schema.

Errors

  • 400The request does not pass the schema above. The body is { "error": …, "issues": […] }, one issue per field.
  • 401No credentials, or an access key that is unknown, revoked or expired.
  • 403The caller's policies do not allow deploy:DeleteLoginGate on this resource. The body names the action and the resource, and the refusal is recorded in the audit log.
  • 404The resource does not exist in your organization.

Examples

The required parameters only, with example values. Replace id and the other placeholders with your own.

dcloud deploy login-gate delete id

Generated from the API description, the same one the API checks requests against and the CLI is built from. MCP tool: dcloud_deploy_login-gate_delete.