From 74bbb81f4dd6c66c22c4392fa1bf91a0a59c679c Mon Sep 17 00:00:00 2001 From: Ross Sullivan Date: Sat, 11 Jan 2025 21:08:41 +0900 Subject: [PATCH] docs: Added note about authentication schemes in registry authentication docs --- src/doc/src/reference/config.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/doc/src/reference/config.md b/src/doc/src/reference/config.md index 11ac2f9a5dc..79890f5e7e7 100644 --- a/src/doc/src/reference/config.md +++ b/src/doc/src/reference/config.md @@ -346,6 +346,10 @@ all capital letters. > extension by default. However, for backward compatibility reason, when both > files exist, Cargo will read and write the file without the extension. +> **Note:** Cargo will use the token as is in the `Authorization` header without modification. +> For registries that require an authentication scheme like (like Bearer) the +> `registry..token` should be prefixed with the scheme name (ie. `Bearer `) by the user. + ## Configuration keys This section documents all configuration keys. The description for keys with