1.18.0 (2025-09-16)
Features Added
- Added claims challenge support to
AzureDeveloperCliCredential
. Claims provided inTokenRequestContext
are now passed to Azure Developer CLI via the--claims
parameter, requiring azd CLI 1.18.1 or higher. Also enhanced error handling to extract user-friendly messages from JSON output and provide clear version compatibility warnings when the--claims
flag is unsupported. - Added claims challenge handling support to
AzureCliCredential
. When a token request includes claims, the credential will now throw aCredentialUnavailableException
with instructions to use Azure PowerShell directly with the appropriate-ClaimsChallenge
parameter. - Added claims challenge handling support to
AzurePowerShellCredential
. When a token request includes claims, the credential will now throw aCredentialUnavailableException
with instructions to use Azure PowerShell directly with the appropriate-ClaimsChallenge
parameter. - Added
AzureIdentityEnvVars
expandable string enum for type-safe environment variable names used in Azure Identity credentials. - Added
requireEnvVars(AzureIdentityEnvVars... envVars)
method toDefaultAzureCredentialBuilder
to enforce the presence of specific environment variables at build time. When configured, the credential will throw anIllegalStateException
duringbuild()
if any of the specified environment variables are missing or empty.
Bugs Fixed
- Fixed
AzurePowerShellCredential
handling of XML header responses and/Date(epochTime)/
time format parsing that previously causedJsonParsingException
. #46572 - Fixed
AzureDeveloperCliCredential
hanging whenAZD_DEBUG
environment variable is set by adding--no-prompt
flag to theazd auth token
command.
Other Changes
Dependency Updates
- Upgraded
azure-core
from1.56.0
to version1.56.1
. - Upgraded
azure-core-http-netty
from1.16.0
to version1.16.1
. - Upgraded
com.microsoft.azure:msal4j
from version1.22.0
to version1.23.1
.