ado-auth
TypeScript icon, indicating that this package has built-in type declarations

0.2.13 • Public • Published

ADO Authenticator

This package ado-auth aims to help in authenticating with Azure DevOps npm feeds. This supports npm, yarn, pnpm and yarn2.

This tool asks the user to authorize themselves with ADO and once accepted, creates two files, .npmrc and .yarnrc.yml to their respective specifications with the user's auth token. It also decides not to run if process.env.CI is truthy.

npm version Node.js Package

How to use?

Simplest way is to run this -

npx ado-auth@latest

If that doesnt work (probably because your token is expired or token doesnt exist) use this -

npx ado-auth@latest --registry https://registry.npmjs.org/

Options

--host

Default: https://ado-auth.vercel.app

You can install the ado-auth web application (or something that behaves similarly at api/auth and api/refresh paths) on your own cloud for more security.

Use this option when you have a custom host for the web app.

-p, --port

Default: 35287

Use this option to specify which port to listen on from the host.

-c, -clientid

use this along with custom --host option to pass a different vistualstudio.com app client ID to use for authentication. This requires a custom host since the public host at ado-auth.vercel.app does not work with custom client ID.

-d, --debug

This option enables some logging in the CLI to help identify any issues.

-v, --version

Displays the current version of the application

-h, --help

Displays the help information

Package Sidebar

Install

npm i ado-auth

Weekly Downloads

26

Version

0.2.13

License

MIT

Unpacked Size

23.2 kB

Total Files

5

Last publish

Collaborators

  • sushruth