{"name":"@azure/core-auth","version":"1.0.0-preview.1","keywords":["azure","authentication"],"author":{"name":"Microsoft Corporation"},"license":"MIT","_id":"@azure/core-auth@1.0.0-preview.1","maintainers":[{"name":"mikeharder","email":"mharder@microsoft.com"},{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"}],"homepage":"https://github.com/azure/azure-sdk-for-js/tree/master/sdk/core/core-auth","bugs":{"url":"https://github.com/azure/azure-sdk-for-js/issues"},"dist":{"shasum":"853727d33012f4edeb961cae7f7d50667a5de068","tarball":"http://registry-npm.ywwl.com/@azure/core-auth/download/@azure/core-auth-1.0.0-preview.1.tgz","fileCount":18,"integrity":"sha512-47pHpL+9g4m/cwi1+SplZ0eZfIevwt4F6peD7/t3kK4wa8Q8fOMKcQX967vZ3gpRPvon7/ox8EM+tm1l4UiXbg==","signatures":[{"sig":"MEUCIGdhfFunjJkKniIQH0GPMLBc1hswtLwBfxENI7MFQouyAiEA6EDXpnuLHieW8cRVqupUAueeTN6tpdokHml53fwGxgo=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":64350,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdO4XBCRA9TVsSAnZWagAADKAP/3L1DuClMipFDRh3ZcbS\nWZyfnsWkgQwTCewI+9DbtF2/c5Y1LcVm4WH22hJWz32OH2q3S7iLU8mNTx6a\nMvW7vSFAw1Iunl23kx3fiOOeE9kZmA43tuV+srntSpH7UdUh3MZgiEslbwLo\nWcXkpIbVa/JdiDvNjWa0G5bhkADp8ivqBVwA4gwSXCO6166ZJKgVQei6VSno\nK7fi+pOEhE2ugLfV1N1bOZgb8DIZ9gXzkmtP2SFe9YlD2A+Jx7q9drD2EF2q\nKHLZJprBsXWaNl8BiwjXdBcmJByEswe8mBGxUu4dOiB5FysuTkb+cF0B66mp\n1V6m5s3kllj0vx4u0W/EWE6LfKj4i5hhM3aFjFAj8ycqmJczjdJ1zj93WNTo\n/b40o0HjEGL/K6/bwEg6j0mm9JetKje0J2Y/MIOdEYK6ZHy0oJT7Rbm8rfWm\ng04qQa2gZEbC0cDmgF7ym3U6ZEwVErtwqbOPjiS5wYXW4K5/EEY05Ld0LLdN\n/pnBGtDwZD+7x/ONVBoPFC6G4vzI/hxZvAbY4u1ZpPO2DlifCkVPxPdeXV8Q\npnwtMd4peguNPL/k8fy/bTtNlPcrWoXDxlOo2Hl3rz42xrFc1rskDaR6JaxI\nHhwYCFLymfXHtr9rYjuyt29DNgUAhxMBlw7gT3OPdQ1dtdT67lUv/InjEcCl\n2zRj\r\n=N72I\r\n-----END PGP SIGNATURE-----\r\n","size":12646,"noattachment":false,"key":"/@azure/core-auth/-/@azure/core-auth-1.0.0-preview.1.tgz"},"main":"dist/index.js","_from":"file:/home/vsts/work/r1/a/_publishArtifacts/packages/azure-core-auth-1.0.0-preview.1.tgz","types":"types/core-auth.d.ts","engine":{"node":">=6.0.0"},"module":"dist-esm/src/index.js","browser":{"./dist/index.js":"./browser/core-auth.js"},"scripts":{"lint":"eslint -c ../../.eslintrc.json src test --ext .ts -f node_modules/eslint-detailed-reporter/lib/detailed.js -o template-lintReport.html || exit 0","pack":"npm pack 2>&1","test":"npm run build:test && npm run unit-test && npm run integration-test","audit":"node ../../../common/scripts/rush-audit.js && rimraf node_modules package-lock.json && npm i --package-lock-only 2>&1 && npm audit","build":"tsc -p . && rollup -c 2>&1 && api-extractor run --local","clean":"rimraf dist dist-esm test-dist types *.tgz *.log","format":"prettier --write --config ../../.prettierrc.json \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"","lint:fix":"eslint \"src/**/*.ts\" \"test/**/*.ts\" -c ../../.eslintrc.json --fix --fix-type [problem,suggestion]","prebuild":"npm run clean","test:node":"npm run build:test && npm run unit-test:node && npm run integration-test:node","unit-test":"npm run unit-test:node && npm run unit-test:browser","build:node":"tsc -p . && cross-env ONLY_NODE=true rollup -c 2>&1","build:test":"tsc -p . && rollup -c rollup.test.config.js 2>&1","extract-api":"tsc -p . && api-extractor run --local","check-format":"prettier --list-different --config ../../.prettierrc.json \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"","test:browser":"npm run build:test && npm run unit-test:browser && npm run integration-test:browser","build:browser":"tsc -p . && cross-env ONLY_BROWSER=true rollup -c 2>&1","build:samples":"cd samples && tsc -p .","unit-test:node":"mocha test-dist/**/*.js --reporter mocha-multi --reporter-options spec=-,mocha-junit-reporter=-","integration-test":"npm run integration-test:node && npm run integration-test:browser","unit-test:browser":"echo skipped","integration-test:node":"echo skipped","integration-test:browser":"echo skipped"},"_npmUser":{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"},"sdk-type":"client","_resolved":"","_integrity":"","repository":{"url":"git+https://github.com/Azure/azure-sdk-for-js.git","type":"git"},"_npmVersion":"6.9.0","description":"Provides low-level interfaces and helper methods for authentication in Azure SDK","directories":{},"sideEffects":false,"_nodeVersion":"10.16.0","dependencies":{"tslib":"^1.9.3"},"_hasShrinkwrap":false,"devDependencies":{"util":"^0.11.1","mocha":"^5.2.0","assert":"^1.4.1","eslint":"^5.16.0","rimraf":"^2.6.2","rollup":"^1.16.3","inherits":"^2.0.3","prettier":"^1.16.4","cross-env":"^5.2.0","typescript":"^3.2.2","@types/node":"^8.0.0","mocha-multi":"^1.0.1","@types/mocha":"^5.2.5","rollup-plugin-json":"^4.0.0","mocha-junit-reporter":"^1.18.0","rollup-plugin-terser":"^5.1.1","eslint-plugin-no-null":"^1.0.2","eslint-plugin-promise":"^4.1.1","rollup-plugin-replace":"^2.1.0","eslint-config-prettier":"^4.2.0","rollup-plugin-commonjs":"^10.0.0","@azure/abort-controller":"1.0.0-preview.1","@microsoft/api-extractor":"^7.1.5","eslint-detailed-reporter":"^0.8.0","rollup-plugin-sourcemaps":"^0.4.2","rollup-plugin-visualizer":"^2.0.0","@typescript-eslint/parser":"^1.11.0","rollup-plugin-multi-entry":"^2.1.0","rollup-plugin-node-resolve":"^5.0.2","eslint-plugin-no-only-tests":"^2.3.0","@typescript-eslint/eslint-plugin":"^1.11.0"},"_npmOperationalInternal":{"tmp":"tmp/core-auth_1.0.0-preview.1_1564181953033_0.6904062818609045","host":"s3://npm-registry-packages"},"readme":"# Azure Core Authentication client library for JavaScript\n\nThe `@azure/core-auth` package provides core interfaces and helper methods for authenticating with Azure services using Azure Active Directory and other authentication schemes common across the Azure SDK. As a \"core\" library, it shouldn't need to be added as a dependency to any user code, only other Azure SDK libraries.\n\n## Getting started\n\n### Installation\n\nInstall this library using npm as follows\n\n```\nnpm install @azure/core-auth\n```\n\n## Key Concepts\n\nThe `TokenCredential` interface represents a credential capable of providing an authentication token. The `@azure/identity` package contains various credentials that implement the `TokenCredential` interface.\n\nThe `AzureKeyCredential` is a static key-based credential that supports key rotation via the `update` method. Use this when a single secret value is needed for authentication, e.g. when using a shared access key.\n\nThe `AzureNamedKeyCredential` is a static name/key-based credential that supports name and key rotation via the `update` method. Use this when both a secret value and a label are needed, e.g. when using a shared access key and shared access key name.\n\nThe `AzureSASCredential` is a static signature-based credential that supports updating the signature value via the `update` method. Use this when using a shared access signature.\n\n## Examples\n\n### AzureKeyCredential\n\n```ts snippet:ReadmeSampleAzureKeyCredential\nimport { AzureKeyCredential } from \"@azure/core-auth\";\n\nconst credential = new AzureKeyCredential(\"secret value\");\n\nconsole.log(credential.key); // prints: \"secret value\"\n\ncredential.update(\"other secret value\");\n\nconsole.log(credential.key); // prints: \"other secret value\"\n```\n\n### AzureNamedKeyCredential\n\n```ts snippet:ReadmeSampleAzureNamedCredential\nimport { AzureNamedKeyCredential } from \"@azure/core-auth\";\n\nconst credential = new AzureNamedKeyCredential(\"ManagedPolicy\", \"secret value\");\n\nconsole.log(`${credential.name}, ${credential.key}`); // prints: \"ManagedPolicy, secret value\"\n\ncredential.update(\"OtherManagedPolicy\", \"other secret value\");\n\nconsole.log(`${credential.name}, ${credential.key}`); // prints: \"OtherManagedPolicy, other secret value\"\n```\n\n### AzureSASCredential\n\n```ts snippet:ReadmeSampleSASCredential\nimport { AzureSASCredential } from \"@azure/core-auth\";\n\nconst credential = new AzureSASCredential(\"signature1\");\n\nconsole.log(credential.signature); // prints: \"signature1\"\n\ncredential.update(\"signature2\");\n\nconsole.log(credential.signature); // prints: \"signature2\"\n```\n\n## Next steps\n\nYou can build and run the tests locally by executing `npm run test`. Explore the `test` folder to see advanced usage and behavior of the public classes.\n\n## Troubleshooting\n\nIf you run into issues while using this library, please feel free to [file an issue](https://github.com/Azure/azure-sdk-for-js/issues/new).\n\n## Contributing\n\nIf you'd like to contribute to this library, please read the [contributing guide](https://github.com/Azure/azure-sdk-for-js/blob/main/CONTRIBUTING.md) to learn more about how to build and test the code.\n","publish_time":1564181953142,"_cnpm_publish_time":1564181953142,"dist-tags":{"dev":"1.10.2-alpha.20260305.6","latest":"1.11.0"}}