ed5e5f64aa184852647d79e66d73c285ff007d47
max
  Mon Jun 25 02:51:36 2018 -0700
Revert "Attempt to allow net.c code to process cdwGetFiles url by passing through the basic auth from the browser. However, even with this change, because cdwGetFiles does not support byte ranges, bigDataUrl customTracks in cirm that use cdwGetFiles will not work."

This reverts commit eb2d2d726825942e7438acabf7db1c6d0e071382.

diff --git src/hg/lib/wikiLink.c src/hg/lib/wikiLink.c
index fcd480d..dbfcd69 100644
--- src/hg/lib/wikiLink.c
+++ src/hg/lib/wikiLink.c
@@ -336,55 +336,45 @@
     exit(0);
 }
 
 boolean isValidUsername(char *s)
 /* Return TRUE if s is a valid username: only contains alpha chars, @, _ or - */
 {
 char c = *s;
 while ((c = *s++) != 0)
     {
     if (!(isalnum(c) || (c == '_') || (c=='@') || (c=='-')))
 	return FALSE;
     }
 return TRUE;
 }
 
-void basicAuthUserPassword(char *token, char **pUser, char **pPassword)
+char *basicAuthUser(char *token)
 /* get the HTTP Header 'Authorization', which is just the b64 encoded username:password,
- * and return the username and password. Results should be freed. */
+ * and return the username. Result has to be freed. */
 {
+
 // username:password is b64 encrypted 
 char *tokenPlain = base64Decode(token, 0);
 
 // plain text is in format username:password
 char *words[2];
 int wordCount = chopString(tokenPlain, ":", words, ArraySize(words));
 if (wordCount!=2)
     errAbort("wikiLink/basicAuthUser: got illegal basic auth token");
-if (pUser)
-    *pUser = cloneString(words[0]);
-if (pPassword)
-    *pPassword = cloneString(words[1]);
-freeMem(tokenPlain);
-}
+char *user = words[0];
 
-char *basicAuthUser(char *token)
-/* get the HTTP Header 'Authorization', which is just the b64 encoded username:password,
- * and return the username. Result should be freed. */
-{
-char *user = NULL;
-basicAuthUserPassword(token, &user, NULL);
 return user;
 }
 
 char *wikiLinkUserName()
 /* Return the user name specified in cookies from the browser, or NULL if 
  * the user doesn't appear to be logged in. */
 {
 if (loginUseBasicAuth())
     {
     char *token = getHttpBasicToken();
     if (!token) 
         printTokenErrorAndExit();
     return basicAuthUser(token);
     }