Skip to content

Commit 952a110

Browse files
sunbryeCopilot
andcommitted
Remove HMAC key authentication method from public SDK auth docs
The HMAC key auth method (CAPI_HMAC_KEY / COPILOT_HMAC_KEY) should not be documented publicly; it was re-added by doc automation. Removes it from the authentication priority list in authenticate.md and the summary in README.md. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 6e3893c commit 952a110

2 files changed

Lines changed: 1 addition & 2 deletions

File tree

docs/auth/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ Choose the authentication method that best fits your deployment scenario for the
77

88
## Authentication priority
99

10-
When multiple credentials are configured, an explicit SDK token takes priority, followed by HMAC or direct Copilot API environment authentication, environment variable GitHub tokens, stored Copilot CLI credentials, and then GitHub CLI credentials. See [Authenticate Copilot SDK](authenticate.md#authentication-priority) for details.
10+
When multiple credentials are configured, an explicit SDK token takes priority, followed by direct Copilot API environment authentication, environment variable GitHub tokens, stored Copilot CLI credentials, and then GitHub CLI credentials. See [Authenticate Copilot SDK](authenticate.md#authentication-priority) for details.
1111

1212
For multi-user server mode, pass a per-session `gitHubToken` so each session runs with the correct GitHub identity; see [Multi-user and server deployments](../setup/multi-tenancy.md).

docs/auth/authenticate.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,6 @@ BYOK allows you to use your own API keys from model providers like Azure AI Foun
301301
When multiple authentication methods are available, the SDK uses them in this priority order:
302302

303303
1. **Explicit `gitHubToken`** - Token passed directly to the SDK client or session configuration
304-
1. **HMAC key** - `CAPI_HMAC_KEY` or `COPILOT_HMAC_KEY` environment variables
305304
1. **Direct API token** - `GITHUB_COPILOT_API_TOKEN` with `COPILOT_API_URL`
306305
1. **Environment variable tokens** - `COPILOT_GITHUB_TOKEN``GH_TOKEN``GITHUB_TOKEN`
307306
1. **Stored OAuth credentials** - From previous `copilot` CLI login

0 commit comments

Comments
 (0)