Skip to content
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

AzureCliCredential utilizes expires_on for token expiration #41366

Merged
merged 3 commits into from
Jan 18, 2024

Conversation

christothes
Copy link
Member

closes #39743

@azure-sdk
Copy link
Collaborator

API change check

API changes are not detected in this pull request.

@christothes christothes changed the title AzureCliCredential utilizes expires_on token for expiration AzureCliCredential utilizes expires_on for token expiration Jan 17, 2024
Co-authored-by: Heath Stewart <heaths@outlook.com>
@christothes christothes enabled auto-merge (squash) January 18, 2024 15:17
@christothes christothes merged commit ab5cf73 into Azure:main Jan 18, 2024
15 checks passed
maorleger added a commit to Azure/azure-sdk-for-js that referenced this pull request Jan 24, 2024
### 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

Successfully merging this pull request may close these issues.

[Identity] Evaluate expires_on field in AzureCliCredential
3 participants