summaryrefslogtreecommitdiff
path: root/tests/specs/npm
diff options
context:
space:
mode:
authorMarvin Hagemeister <marvin@deno.com>2024-10-28 12:08:51 +0100
committerGitHub <noreply@github.com>2024-10-28 12:08:51 +0100
commit5389972ba5037b1ed48da11506f6798deec2b48e (patch)
tree1b6616ed84b041e95fb8313233d9b7df1dfb3ed1 /tests/specs/npm
parent3a306c450ce99067c4322720792d909afaf78841 (diff)
fix(npm): match npm bearer token generation (#26544)
Spend some time stepping through the npm client code and noticed that the bearer token was different from ours. They do some double encoding and @dsherret helped me in matching the encoding behavior. Fixes https://github.com/denoland/deno/issues/26033
Diffstat (limited to 'tests/specs/npm')
-rw-r--r--tests/specs/npm/npmrc_username_password/.npmrc6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/specs/npm/npmrc_username_password/.npmrc b/tests/specs/npm/npmrc_username_password/.npmrc
index c318678ae..9e1ded96a 100644
--- a/tests/specs/npm/npmrc_username_password/.npmrc
+++ b/tests/specs/npm/npmrc_username_password/.npmrc
@@ -1,6 +1,8 @@
@denotest:registry=http://localhost:4261/
//localhost:4261/:username=deno
-//localhost:4261/:_password=land
+# base64 of land
+//localhost:4261/:_password=bGFuZA==
@denotest2:registry=http://localhost:4262/
//localhost:4262/:username=deno
-//localhost:4262/:_password=land2
+# base64 of land2
+//localhost:4262/:_password=bGFuZDI=