@azure/identity 3.2.0-alpha.20230425.2 → 3.2.0-alpha.20230502.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of @azure/identity might be problematic. Click here for more details.
- package/README.md +11 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -68,9 +68,9 @@ While we recommend using managed identity or service principal authentication in
|
|
|
68
68
|
|
|
69
69
|
Developers coding outside of an IDE can also use the [Azure Developer CLI][azure_developer_cli] to authenticate. Applications using the `DefaultAzureCredential` or the `AzureDeveloperCliCredential` can then use this account to authenticate calls in their application when running locally.
|
|
70
70
|
|
|
71
|
-
To authenticate with the [Azure Developer CLI][azure_developer_cli], users can run the command `azd login`. For users running on a system with a default web browser, the Azure Developer CLI will launch the browser to authenticate the user.
|
|
71
|
+
To authenticate with the [Azure Developer CLI][azure_developer_cli], users can run the command `azd auth login`. For users running on a system with a default web browser, the Azure Developer CLI will launch the browser to authenticate the user.
|
|
72
72
|
|
|
73
|
-
For systems without a default web browser, the `azd login --use-device-code` command will use the device code authentication flow.
|
|
73
|
+
For systems without a default web browser, the `azd auth login --use-device-code` command will use the device code authentication flow.
|
|
74
74
|
|
|
75
75
|
#### Authenticate via the Azure CLI
|
|
76
76
|
|
|
@@ -133,7 +133,7 @@ If used from Node.js, the `DefaultAzureCredential` will attempt to authenticate
|
|
|
133
133
|
1. **Environment** - The `DefaultAzureCredential` will read account information specified via [environment variables](#environment-variables) and use it to authenticate.
|
|
134
134
|
1. **Workload Identity** - If the application is deployed to Azure Kubernetes Service with Managed Identity enabled, `DefaultAzureCredential` will authenticate with it.
|
|
135
135
|
1. **Managed Identity** - If the application is deployed to an Azure host with Managed Identity enabled, the `DefaultAzureCredential` will authenticate with that account.
|
|
136
|
-
1. **Azure Developer CLI** - If the developer has authenticated an account via the Azure Developer CLI `azd login` command, the `DefaultAzureCredential` will authenticate with that account.
|
|
136
|
+
1. **Azure Developer CLI** - If the developer has authenticated an account via the Azure Developer CLI `azd auth login` command, the `DefaultAzureCredential` will authenticate with that account.
|
|
137
137
|
1. **Azure CLI** - If the developer has authenticated an account via the Azure CLI `az login` command, the `DefaultAzureCredential` will authenticate with that account.
|
|
138
138
|
1. **Azure PowerShell** - If the developer has authenticated using the Azure PowerShell module `Connect-AzAccount` command, the `DefaultAzureCredential` will authenticate with that account.
|
|
139
139
|
|
|
@@ -298,6 +298,14 @@ Not all credentials require this configuration. Credentials that authenticate th
|
|
|
298
298
|
|
|
299
299
|
Configuration is attempted in the above order. For example, if values for a client secret and certificate are both present, the client secret will be used.
|
|
300
300
|
|
|
301
|
+
## Token caching
|
|
302
|
+
Token caching is a feature provided by the Azure Identity library that allows apps to:
|
|
303
|
+
- Cache tokens in memory (default) and on disk (opt-in).
|
|
304
|
+
- Improve resilience and performance.
|
|
305
|
+
- Reduce the number of requests made to Azure AD to obtain access tokens.
|
|
306
|
+
|
|
307
|
+
The Azure Identity library offers both in-memory and persistent disk caching. For more details, see the [token caching documentation](https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/identity/identity/TOKEN_CACHING.md).
|
|
308
|
+
|
|
301
309
|
## Troubleshooting
|
|
302
310
|
|
|
303
311
|
### Error handling
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@azure/identity",
|
|
3
3
|
"sdk-type": "client",
|
|
4
|
-
"version": "3.2.0-alpha.
|
|
4
|
+
"version": "3.2.0-alpha.20230502.2",
|
|
5
5
|
"description": "Provides credential implementations for Azure SDK libraries that can authenticate with Azure Active Directory",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"module": "dist-esm/src/index.js",
|