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

[Identity] Support expires_on in AzureCLICredential #33947

Merged
merged 3 commits into from
Jan 23, 2024

Conversation

pvaneck
Copy link
Member

@pvaneck pvaneck commented Jan 22, 2024

Newer versions of Azure CLI now also return a Unix timestamp with the expires_on field when retrieving an access token. We should prefer using that.

Closes: #32952

@azure-sdk
Copy link
Collaborator

API change check

API changes are not detected in this pull request.

Newer versions of Azure CLI now also return a Unix timestamp with the
`expires_on` field when retrieving an access token. We should prefer
using that.

Signed-off-by: Paul Van Eck <[email protected]>
@pvaneck pvaneck force-pushed the identity-expires-on branch from dc1a3e2 to 819a23e Compare January 22, 2024 20:30
Signed-off-by: Paul Van Eck <[email protected]>
@pvaneck pvaneck marked this pull request as ready for review January 22, 2024 23:22
@pvaneck pvaneck requested review from xiangyan99 and a team as code owners January 22, 2024 23:22
Copy link
Member

@maorleger maorleger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Had a few questions about formatting and units for the expiry timestamp

Signed-off-by: Paul Van Eck <[email protected]>
@pvaneck pvaneck merged commit 501cb2c into Azure:main Jan 23, 2024
17 checks passed
@pvaneck pvaneck deleted the identity-expires-on branch January 23, 2024 21:34
sofiar-msft pushed a commit to sofiar-msft/azure-sdk-for-python that referenced this pull request Feb 16, 2024
Newer versions of Azure CLI now also return a Unix timestamp with the
`expires_on` field when retrieving an access token. We should prefer
using that.

Signed-off-by: Paul Van Eck <[email protected]>
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
4 participants