-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Identity] Evaluate expires_on field in AzureCliCredential #27648
Comments
Marking as blocked until the az cli release ships. |
Assigning Matt, since I will be leaving for vacation soon. |
Az CLI v.2.54.0 has shipped, I was able to obtain it via Winget. |
Office hour discussion conclusion across languages: |
This change is addressed in C++, and similar changes can be made in other languages. The gist is:
PRs in C++ for inspiration, if relevant: |
### Packages impacted by this PR @azure/identity ### Issues associated with this PR Resolves #27648 ### Describe the problem that is addressed by this PR In version 2.54.0 the Azure CLI started including an `expires_on` field containing a POSIX timestamp in seconds in addition to the existing `expiresOn` field denoting the expiry in RFC3339 format. We want to migrate to `expires_on` when the underlying az cli supports it and fallback to the existing `expiresOn` otherwise. ### Provide a list of related PRs _(if any)_ Azure/azure-sdk-for-net#41366 Azure/azure-sdk-for-cpp#5075
As of Azure CLI v2.54.0, the
az account get-access-token
command returns a newexpires_on
field containing a POSIX timestamp. This behavior is a departure from previous versions, in which the local datetime was returned in anexpiresOn
field. UpdateAzureCliCredential
to also consider the newexpires_on
field.Related links:
az account get-access-token
: Returnexpires_on
as POSIX timestamp azure-cli#27476The text was updated successfully, but these errors were encountered: