-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Closed
Copy link
Labels
agentsIssues related to single agentsIssues related to single agentspythonv1.0Features being tracked for the version 1.0 GAFeatures being tracked for the version 1.0 GA
Description
Description
When using an Azure client and providing a credential, the client generates and uses a token. For long-lasting clients, the token generated may expire while the client is still being used. Could the credential instead be used to create an ad_token_provider?
Instead of:
| ad_token = get_entra_auth_token(credential, token_endpoint) |
do
# from azure.identity import get_bearer_token_provider
ad_token_provider = get_bearer_token_provider(credential, token_endpoint)This way, the token provider will ensure that a new token is regenerated if it is expired.
Code Sample
Language/SDK
Python
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
agentsIssues related to single agentsIssues related to single agentspythonv1.0Features being tracked for the version 1.0 GAFeatures being tracked for the version 1.0 GA
Type
Projects
Status
Done