Skip to content

[Identity] Support expires_on in AzureCLICredential#33947

Merged
pvaneck merged 3 commits intoAzure:mainfrom
pvaneck:identity-expires-on
Jan 23, 2024
Merged

[Identity] Support expires_on in AzureCLICredential#33947
pvaneck merged 3 commits intoAzure:mainfrom
pvaneck:identity-expires-on

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 <paulvaneck@microsoft.com>
@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 <paulvaneck@microsoft.com>
@pvaneck pvaneck marked this pull request as ready for review January 22, 2024 23:22
@pvaneck pvaneck requested review from a team and xiangyan99 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 <paulvaneck@microsoft.com>
@pvaneck pvaneck merged commit 501cb2c into Azure:main Jan 23, 2024
@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 <paulvaneck@microsoft.com>
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