{"version":"2.1.195","anchor":"cloud-gateway-oauth-login","canonical_anchor":"cloud-gateway-oauth-login","heading":"Cloud Gateway OAuth Login","tier":null,"area":null,"scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.195\/e\/cloud-gateway-oauth-login","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.195","markdown":"### Cloud Gateway OAuth Login\n\n**What**\n\nUsers can now authenticate with an enterprise cloud gateway directly from Claude Code using a browser-based device code OAuth flow, complete with TLS certificate pinning.\n\n**Usage**\n\n`claude login # opens the \/login flow; gateway URL is provisioned via managed settings (forceLoginGatewayUrl) \/login # same, from inside a session` **Details** - The gateway URL must use `https:\/\/` (plain `http:\/\/` is only allowed for localhost in development). - On first connection, Claude Code shows the gateway's SHA-256 certificate fingerprint and prompts \"You haven't connected to this gateway before. Once trusted, it can push settings to this machine that execute commands and change your environment. Only continue if this is your organization's gateway.\" - If the certificate changes after a previous trust, a warning is shown: \"The TLS certificate for this gateway has changed since you last connected. Only continue if your administrator has confirmed a certificate rotation.\" - DNS resolution is validated to confirm the gateway host resolves to private-network addresses only. Direct IPs, dual-stack hostnames with a public AAAA record, and HTTP proxy hosts on public networks are all flagged with specific error messages. - The token is persisted via secure storage after the browser flow completes. - If `NODE_EXTRA_CA_CERTS` is needed for a private CA or self-signed certificate, a help message now explains exactly how to set it (both as an environment variable and via `env.NODE_EXTRA_CA_CERTS` in `~\/.claude\/settings.json`). **Evidence** Full browser-based OAuth flow (search for `\"Connecting to gateway\u2026\"`, `\"Certificate fingerprint (SHA-256):\"`, `\"Gateway URL must use https:\/\/\"`)"}