ado-npm-auth 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +12 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Azure Devops
|
|
1
|
+
# Azure Devops NPM Auth
|
|
2
2
|
|
|
3
3
|
The `ado-npm-auth` package can automatically use the `azureauth` CLI to fetch tokens and update a user's `.npmrc` file for authenticating to ADO package feeds.
|
|
4
4
|
|
|
@@ -8,6 +8,16 @@ You'll first need an `.npmrc` in your project such as...
|
|
|
8
8
|
registry=https://pkgs.dev.azure.com/org/project/_packaging/feedname/npm/registry/
|
|
9
9
|
```
|
|
10
10
|
|
|
11
|
-
You can run the binary `"ado-npm-auth"`.
|
|
11
|
+
You can run the binary `"ado-npm-auth"` via `yarn ado-npm-auth` or `npm exec ado-npm-auth`.
|
|
12
12
|
|
|
13
13
|
It will then shell out to the `azureauth` package on [npm](https://www.npmjs.com/package/azureauth), retrieve a token, and update your `~/.npmrc`.
|
|
14
|
+
|
|
15
|
+
## ado-npm-auth vs vsts-npm-auth
|
|
16
|
+
|
|
17
|
+
The main difference between the two is how they function, and where they can run. The `vsts-npm-auth` tool is Windows only, and uses MSAL authentication.
|
|
18
|
+
|
|
19
|
+
`ado-npm-auth` uses the `node-azureauth` library, to wrap the [azureauth-cli](https://github.com/AzureAD/microsoft-authentication-cli), which itself is a cross platform MSAL wrapper.
|
|
20
|
+
|
|
21
|
+

|
|
22
|
+
|
|
23
|
+
Since the `azureauth-cli` is cross-platform, `ado-npm-auth` will also run cross-platform as well.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ado-npm-auth",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.2",
|
|
4
4
|
"description": "The ado-npm-auth package can automatically use the azureauth CLI to fetch tokens and update a user's .npmrc file for authenticating to ADO package feeds.",
|
|
5
5
|
"repository": "https://github.com/microsoft/ado-npm-auth",
|
|
6
6
|
"license": "MIT",
|