Follow Discord
Sweep 20 Nov 2026 · 19:55Z Build v2.1.330 547 read Stable v2.1.323 Latest v2.1.330 Next v2.1.330 Feeds RSS JSON llms.txt llms-full.txt Unofficial
One change · claude-docs

Sign in through the OS identity broker changedthird-party/claude-desktop/entra-broker

Nearest release: v2.1.329, published 2 hours after upstream edited the page. Shown because the two are within 24 hours of each other. Nothing here says the release caused the edit.

Upstream edited this page at 19 Nov 2026 15:49 UTC, give or take a minute or two: the time comes from Anthropic’s own sitemap rather than from a commit. This site recorded the change at 19 Nov 2026 16:07 UTC.

Upstream edited
Recorded here
Lines+26added
Lines−0removed
From line 63 where the diff opens
First seen 14 Aug 2026 this site's first read of the page
Recorded edits11to this page, all time

## Allow browser sign-in where your gateway uses the Entra broker

The whole hunk

from line 63, old and new numbered
/
lines
from line 63
6363 
6464The operating system's broker holds the credential and renews it silently from the device's primary refresh token. The app stores only a reference to the signed-in account, not a refresh token. When the broker can no longer renew silently (for example, the device falls out of compliance or the user's sessions are revoked in Entra), the app prompts the user to sign in again.
6565 
66Claude Code in the terminal doesn't use the broker. If you let it sign in to your gateway with the browser, it can store a refresh token on the computer. See [Allow browser sign-in where your gateway uses the Entra broker](#allow-browser-sign-in-where-your-gateway-uses-the-entra-broker).
67 
68## Allow browser sign-in where your gateway uses the Entra broker
69 
70If you [manage Claude Code in the terminal from the Enterprise Admin Console](https://claude.com/docs/third-party/claude-desktop/admin-console-claude-code.md), Claude Code in the terminal can't use the OS identity broker. If your gateway's sign-in flow is `broker`, Claude Code can't use your gateway, and after a developer signs in, it doesn't start unless their computer sets a provider itself. You can turn on a switch so that Claude Code signs in with the browser instead, while Claude Desktop still uses the broker. The switch changes the following:
71 
72* **Provider settings**: the next time a signed-in developer starts Claude Code, your gateway replaces their own provider settings and `apiKeyHelper`
73* **Gateway sign-in**: the developer approves the gateway's address and then signs in to the gateway, with `/login` in Claude Code. Until then, Claude Code refuses each prompt.
74* **Stored sign-in**: the browser sign-in stays on the developer's computer, with a refresh token if Entra returns one. On Linux and Windows, the sign-in is in the plain file `.credentials.json`. Some Windows computers use Windows Credential Manager instead.
75 
76**1. Add the redirect URI**
77 
78In your Entra app registration, add `http://127.0.0.1/gateway-sign-in/callback` under **Mobile and desktop applications**. If your **Redirect host** is `localhost`, add the `localhost` form. If the portal refuses the address, add it in the app manifest as a redirect URI for a public client (mobile and desktop).
79 
80**2. Check consent and Conditional Access**
81 
82If your tenant requires it, grant consent for `offline_access`. If your Conditional Access policies check the device, set up developers' browsers to identify it, as described in [Why use the broker](#why-use-the-broker). A browser can't meet a policy that requires token protection.
83 
84**3. Turn on both switches**
85 
86Go to **Organization settings > Products > Claude Code**, and turn on the **Allow sign-in from Claude Code in terminals and IDEs** switch. Then turn on the **Allow Claude Code to sign in with the browser instead of the Entra broker** switch, which appears when the first switch is on, and click **Save changes**. To test with one group first, if your organization has a parent organization, turn on both switches in the **Claude Code** section of that group's policy instead.
87 
88To store no refresh token, fill in **Scopes** without `offline_access`. If **Bearer token** is **Access token**, also turn off **Append offline\_access**. Developers then sign in again each time the token expires. **Scopes** also applies to Claude Desktop.
89 
90If you turn the browser sign-in switch off, the change applies the next time each developer starts Claude Code. It revokes nothing. The token stays on the computer until the developer runs `claude auth logout` in their terminal. To stop the stored refresh tokens from working, revoke the developers' sessions in Entra. This also ends their other Microsoft sign-ins, and Claude Desktop asks them to sign in again.
91 
6692## Troubleshoot
6793 
6894If sign-in fails with error code `AADSTS7000218`, **Allow public client flows** is set to No on the app registration. Set it to **Yes** under **Authentication**.
Feedback