JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 9263
  • Score
    100M100P100Q149473F
  • License ISC

node-azure auth wrapps the AzureAuth CLI wrapper for performing AAD Authentication

Package Exports

    This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (azureauth) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    node-azureauth

    This package wraps the https://github.com/AzureAD/microsoft-authentication-cli with a node.js exec wrapper.

    That way the azureauth CLI can be downloaded automatically, and therefore scoped to the ./node_modules/.bin allowing for multiple versions of the AzureAuth CLI to exist on one machine at once.

    Usage

    Install the package wiwth

    > npm i azureauth

    Use the azureauth CLI by calling it from NPM scripts.

    "scripts": {
      "authcli": "azureauth --version"
    }
    > npm run authcli

    Use it as a node module by importing azureauth.

    import { adoPat } from "azureauth";
    
    const pat = await adoPat({
      displayName: "test",
      organization: "test",
      promptHint: "test",
      scope: ["test"],
    });