forceLoginOrgUUID と forceLoginMethod が、サーバー管理の設定によって隠されたり上書きされたりする問題を修正した英語原文を表示
forceLoginOrgUUID and forceLoginMethod from MDM or the managed-settings file being hidden or replaced by server-managed settingsstring記述場所どの設定ファイルでも可"claudeai" で Claude.ai アカウントのみ、"console" で Claude Console アカウントのみ、"gateway" でクラウドゲートウェイ経由のログインのみに制限する。
既定値: 未設定の場合、ユーザーはログイン方法を選択できる
claudeai | claude.ai アカウントのみログインできる |
|---|---|
console | Claude Console アカウントのみログインできる |
gateway | Claude Code がファーストパーティのログインの代わりにクラウドゲートウェイへ誘導する |
{
"forceLoginMethod": "claudeai"
}~/.claude/settings.json に設定しても効果はないforceLoginGatewayUrl でゲートウェイ URL を指定する必要があるclaude setup-token・/install-github-app を含むすべてのファーストパーティログイン経路に適用される(それ以前はターミナルログインのみ)forceLoginOrgUUID と組み合わせるUse "claudeai" to restrict login to Claude.ai accounts, "console" to restrict login to Claude Console accounts, or "gateway" to restrict login to a cloud gateway. On Claude Code v2.1.212 or later, every first-party login path enforces the restriction, including the VS Code extension, the Agent SDK, claude setup-token, and /install-github-app; before v2.1.212, only terminal logins enforced it. See https://code.claude.com/docs/en/authentication#restrict-login-to-your-organization
forceLoginOrgUUID と forceLoginMethod が、サーバー管理の設定によって隠されたり上書きされたりする問題を修正したforceLoginOrgUUID and forceLoginMethod from MDM or the managed-settings file being hidden or replaced by server-managed settingsforceLoginMethod が gateway に設定され、forceLoginGatewayUrl が指定されていないマシンにおいて、保存済みの Claude アプリゲートウェイのサインインが無視される問題を修正した(2.1.295 でのリグレッション)forceLoginMethod to gateway with no forceLoginGatewayUrl (regression in 2.1.295)forceLoginMethod: 'gateway' と forceLoginGatewayUrl をサポート:/login がその Claude apps gateway で開くforceLoginMethod: "gateway" and forceLoginGatewayUrl in your own user settings on machines with no managed settings, so /login opens on that Claude apps gateway変更後
管理設定が配布されていないマシンでも、各自の ~/.claude/settings.json に forceLoginMethod: 'gateway' と forceLoginGatewayUrl を設定できるようになり、/login を実行するとそのまま Claude アプリのゲートウェイ画面にURL入力済みの状態でアクセスできる。
forceLoginMethod または forceLoginOrgUUID)と API キー・トークン・apiKeyHelper の設定を要求する場合の起動時の拒否を改善した。現在使用中の認証情報、その設定場所、削除方法を示すようになったforceLoginMethod or forceLoginOrgUUID) and an API key, token or apiKeyHelper is configured: it now names the credential in use, where it is set, and how to remove it変更後
組織のポリシーでサインインが強制されている環境で API キーやトークンなどの資格情報が原因で起動できなかったとき、どの資格情報がどこで設定されていて、どう削除すればよいかがエラーメッセージから分かるようになり、問題を素早く解消して起動できる。
forceLoginGatewayUrl があるマシンを、起動時から forceLoginMethod: 'gateway' と同様に Claude アプリのゲートウェイセッションとして扱うよう変更した。残存する claude.ai ログインや API キーは使用されないforceLoginGatewayUrl in managed settings to be Claude apps gateway sessions from startup, like forceLoginMethod: "gateway"; a leftover claude.ai login or API key is not used変更後
管理者が forceLoginGatewayUrl を設定したマシンでも、起動時から必ず Claude アプリのゲートウェイで認証されるようになり、以前の claude.ai ログインや API キーが残っていてもそれが使われなくなるため、組織のポリシーどおりのログイン状態を確実に保てる。
forceLoginMethod: 'gateway' が固定されているマシンでは、残存する API キーや claude.ai のログインを無視して /login を要求するようにした。Bedrock・Vertex AI・Foundry のセッションには影響しない。forceLoginMethod: "gateway" to ignore a leftover API key or claude.ai login and ask for /login; Bedrock, Vertex AI, and Foundry sessions are unaffected変更後
管理者が forceLoginMethod: 'gateway' を設定したマシンで、以前のログイン情報が残っていても無視され、必ず /login によるゲートウェイ認証を求められるため、古い認証情報を使わずにゲートウェイ経由で確実にログインできる。
forceLoginMethod to be enforced for VS Code extension, SDK, setup-token, and install-github-app logins, not just the terminal変更後
全社的な認証ポリシーを確実に適用でき、セキュリティリスクを低減します。
forceLoginOrgUUID/forceLoginMethod managed-settings policies blocking third-party provider sessions (Bedrock, Vertex, Foundry, Mantle) alongside the org pin (regression in 2.1.146)変更後
エンタープライズ環境のセキュリティ設定を維持したまま、業務に必要な様々な AI インフラを柔軟に活用できるようになります。
forceLoginOrgUUIDおよびforceLoginMethod)が、サードパーティプロバイダーやAPIキーを使用したセッションでも正しく適用されるよう修正されました。forceLoginOrgUUID and forceLoginMethod managed-settings) not being enforced against third-party-provider and API-key sessions変更後
組織全体のセキュリティポリシーが一貫して適用されるため、管理者はアクセス権限をより確実に制御でき、企業のコンプライアンス維持に役立ちます。
forceLoginOrgUUID と forceLoginMethod が、サードパーティプロバイダーや API キーによる接続時にも強制適用されるよう修正されました。forceLoginOrgUUID and forceLoginMethod managed-settings policies not being enforced against third-party-provider and API-key sessions変更後
企業の管理者は、認証経路を問わず特定の組織アカウントへの利用を確実に制限でき、組織全体のセキュリティとコンプライアンスを維持しやすくなります。
forceLoginMethod と forceLoginOrgUUID が設定されている場合に、リモートセッションへのログインが「Can't access this organization」で失敗する問題を修正しましたforceLoginMethod and forceLoginOrgUUID set変更後
エンタープライズユーザーが会社のガバナンスを維持したまま、全ての Claude Code 機能を利用できるようになります。