git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[RFC PATCH 3/3] Allow empty user name in HTTP authentication

From
simon.richter@hogyros.de <simon.richter@hogyros.de>
Date
May 13, 2022, 07:04 UTC
Message-ID
<20220513070416.37235-4-Simon.Richter@hogyros.de>
In-Reply-To
<20220513070416.37235-1-Simon.Richter@hogyros.de>
From: Simon Richter <Simon.Richter@hogyros.de>
When using a Personal Access Token in Microsoft DevOps server, the username
can be empty, so users might expect that pressing return on an username
prompt will work.
---
 http.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/http.c b/http.c
index c5af90b1b8..dc71fb75ea 100644
--- a/http.c
+++ b/http.c
@@ -433,7 +433,7 @@ static int curl_empty_auth_enabled(void)
 
 static void init_curl_http_auth(CURL *result)
 {
-	if (!http_auth.username || !*http_auth.username) {
+	if (!http_auth.username) {
 		if (curl_empty_auth_enabled())
 			curl_easy_setopt(result, CURLOPT_USERPWD, ":");
 		return;
-- 
2.30.2
Previous: simon.richter@hogyros.deNext: brian m. carlson
Message 2 of 7 in “Allow configuration of HTTP authentication method”
  1. 0/3 Allow configuration of HTTP authentication methodsimon.richter@hogyros.de, May 13, 2022
  2. 3/3 Allow empty user name in HTTP authenticationsimon.richter@hogyros.de, May 13, 2022
  3. brian m. carlsonMay 13, 2022
  4. 1/3 Rename proxy_authmethods -> authmethodssimon.richter@hogyros.de, May 13, 2022
  5. Junio C HamanoMay 13, 2022
  6. 2/3 Add config option/env var to limit HTTP auth methodssimon.richter@hogyros.de, May 13, 2022
  7. Junio C HamanoMay 13, 2022

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.