Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ado-pat

Package Overview
Dependencies
Maintainers
0
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ado-pat

`ado-pat` is a CLI and a library to help tool authors get a functioning user PAT for Azure DevOps. The package wraps the `msal-node` and `msal-node-extension` packages to do its work of retrieving an Entra ID access token with cached persistence.

  • 1.0.10
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
decreased by-80%
Maintainers
0
Weekly downloads
 
Created
Source

ado-pat

ado-pat is a CLI and a library to help tool authors get a functioning user PAT for Azure DevOps. The package wraps the msal-node and msal-node-extension packages to do its work of retrieving an Entra ID access token with cached persistence.

Installation

Globally

$ npm install --global ado-pat

Locally

$ npm install ado-pat

Usage as CLI

Get help from the tool

$ ado-pat --help

Usage: ado-pat [options]

Options:
  -t, --tenant-id <tenant id>        Azure AD tenant ID
  -d, --display-name <display name>  Display name for the PAT
  -o, --organization <org>           Azure DevOps organization name
  -h, --help                         display help for command

Usage as Node.js API

(for now, this is a CommonJS package)

const { getPAT, acquireEntraIdToken } = require("ado-pat");
const token = await acquireEntraIdToken();
const pat = await getPAT({
  organization: "your org",
  token: token.accessToken,
});

FAQs

Package last updated on 02 Dec 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc