{"name":"@azure/core-auth","version":"1.2.0","keywords":["azure","authentication","cloud"],"author":{"name":"Microsoft Corporation"},"license":"MIT","_id":"@azure/core-auth@1.2.0","maintainers":[{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"}],"homepage":"https://github.com/Azure/azure-sdk-for-js/blob/master/sdk/core/core-auth/README.md","bugs":{"url":"https://github.com/Azure/azure-sdk-for-js/issues"},"dist":{"shasum":"a5a181164e99f8446a3ccf9039345ddc9bb63bb9","tarball":"http://registry-npm.ywwl.com/@azure/core-auth/download/@azure/core-auth-1.2.0.tgz","fileCount":18,"integrity":"sha512-KUl+Nwn/Sm6Lw5d3U90m1jZfNSL087SPcqHLxwn2T6PupNKmcgsEbDjHB25gDvHO4h7pBsTlrdJAY7dz+Qk8GA==","signatures":[{"sig":"MEYCIQCyoKfQVGPqW8b24YZisIy/BeAOsRUGOaVUabYAu5jXowIhALxEXh95hKBLkulUdQ7nIWJZxu8ADz/jnvm8CQS64hFc","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":41253,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgId09CRA9TVsSAnZWagAAC8YQAINLWf+jkoTJjHocRKa2\n2WCb5UQHv8z08H4qrx4iJnFkOsABalbt3qrEuieBjxqIpnWXrmOAu1Ja8hRm\nR6mtfBBAK+LCgR5ylzuTyFAYF2zfDDi9d5M96WDxXxQKVNEEqjA7DquavJSE\nDWVN+o/2HhFwEmxaKgGQwsEUbSabuVhddI0glD9NDATTVLQte6XAFMZGcnEX\nWhXZY+s/5yng8uOdE7oUXQpsAz5+a0Yt9p6cxyWM2qp9cmFVnb/1LoucHN3r\nbRebb6zDW/U37+GEiyP+bjTJd+4xmA2fgGz+7depN6TIN5DbvFLp0hBulJZB\n57EDAz19+Xnz09yysPOAxDRzriZ55SDiRru8AKYXbjkbk1PEx8eKbdOtgB1I\ns1BHp57qo/D+6cM1Ptxtw0OdJuhCOt0jhheKhrAsLc+ogxYzj7KgPSqk20iU\npruQCHyGSdms/IOnhu8MVBjDrx7mhkXVa2Ypmfhgf6KB/+jN0H3/ZSokV1VI\noRllkP4fNPRYIGnzYTiv3u5tY5MlKud6L40RxeEBOY62ZTVHtpjfkSVgDkP1\n2aCo9VqbRtUyrMB3jujIIYCVtMC1XU/JAT1RVexvpjQrjZ0xvstAL27njZbu\nslP6FpmCP4sWUX0oqa4WjwDnFIeHkbbwHj/60lMNVrN8znHAdH05Xc/FGWzP\nJhVF\r\n=h+xr\r\n-----END PGP SIGNATURE-----\r\n","size":7773,"noattachment":false,"key":"/@azure/core-auth/-/@azure/core-auth-1.2.0.tgz"},"main":"dist/index.js","_from":"file:/mnt/vss/_work/1/packages/azure-core-auth-1.2.0.tgz","types":"./types/latest/core-auth.d.ts","module":"dist-esm/src/index.js","engines":{"node":">=8.0.0"},"scripts":{"docs":"typedoc --excludePrivate --excludeNotExported --excludeExternals --stripInternal --mode file --out ./dist/docs ./src","lint":"eslint package.json api-extractor.json src test --ext .ts","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 && npm run build:types","clean":"rimraf dist dist-esm test-dist types *.tgz *.log","format":"prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"","lint:fix":"eslint package.json api-extractor.json src test --ext .ts --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","build:types":"downlevel-dts types/latest types/3.1","extract-api":"tsc -p . && api-extractor run --local","check-format":"prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"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":"echo Skipped.","unit-test:node":"mocha test-dist/**/*.js --reporter ../../../common/tools/mocha-multi-reporter.js","execute:samples":"echo skipped","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.14.11","description":"Provides low-level interfaces and helper methods for authentication in Azure SDK","directories":{},"sideEffects":false,"_nodeVersion":"14.15.4","dependencies":{"tslib":"^2.0.0","@azure/abort-controller":"^1.0.0"},"typesVersions":{"<3.6":{"types/latest/*":["types/3.1/*"]}},"_hasShrinkwrap":false,"devDependencies":{"util":"^0.12.1","mocha":"^7.1.1","assert":"^1.4.1","eslint":"^7.15.0","rimraf":"^3.0.0","rollup":"^1.16.3","typedoc":"0.15.2","inherits":"^2.0.3","prettier":"^1.16.4","cross-env":"^7.0.2","typescript":"4.1.2","@types/node":"^8.0.0","@types/mocha":"^7.0.2","downlevel-dts":"~0.4.0","@rollup/plugin-json":"^4.0.0","mocha-junit-reporter":"^1.18.0","rollup-plugin-terser":"^5.1.1","@rollup/plugin-replace":"^2.2.0","@rollup/plugin-commonjs":"11.0.2","@microsoft/api-extractor":"7.7.11","rollup-plugin-sourcemaps":"^0.4.2","rollup-plugin-visualizer":"^4.0.4","@rollup/plugin-multi-entry":"^3.0.0","@rollup/plugin-node-resolve":"^8.0.0","@azure/eslint-plugin-azure-sdk":"^3.0.0"},"_npmOperationalInternal":{"tmp":"tmp/core-auth_1.2.0_1612832061503_0.38176703942391343","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":1612832061636,"_cnpm_publish_time":1612832061636,"dist-tags":{"dev":"1.10.2-alpha.20260305.6","latest":"1.11.0"}}