Using verdaccio with a private Azure Feed #3307
-
Hi there, I'm trying to use verdaccio as a proxy for a private azure feed. I found a resource that describes authentication for uplinks with a Bearer token here, but Azure doesn't seem to support that according to this link. The .npmrc of my project looks like this:
How can I write the uplink section on verdaccio config file? Has anyone done this?
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
It's done with basic authentication. You need to take your personal access token from the Azure settings page and convert it to the basic auth header like this: echo -n 'VssSessionToken:<YOUR_PAT>'|base64 -w 0 and then insert the output of that into the uplinks:
private:
url: https://private-registry.domain.com/registry
auth:
type: basic
token: "<THE_BASIC_AUTH_BASE64>" |
Beta Was this translation helpful? Give feedback.
-
I have pored over the verdaccio documentation over and over looking for this. Thank you, @gentoo90 :) |
Beta Was this translation helpful? Give feedback.
It's done with basic authentication. You need to take your personal access token from the Azure settings page and convert it to the basic auth header like this:
and then insert the output of that into the
token
field of the Verdaccio config: