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

Add Token Caching Support for Managed Identity #23686

Closed
joshfree opened this issue Mar 26, 2022 · 1 comment
Closed

Add Token Caching Support for Managed Identity #23686

joshfree opened this issue Mar 26, 2022 · 1 comment
Assignees
Labels
Azure.Identity Client This issue points to a problem in the data-plane of the library.
Milestone

Comments

@joshfree
Copy link
Member

Intro
When application developers use the developer SDKs and libraries provided by Azure to build apps that run on Azure, they expect built-in support for common and repeatable tasks. From Azure’s perspective, adding support to common patterns helps increase the resilience of the apps running on Azure. Managed Identity token caching is a common task that’s currently missing in the Azure Identity client libraries. The Azure Identity libraries are used by all Track 2 Azure SDKs to support the use of Managed Identities for Azure resources. This is causing each developer to add their own code for token caching.

What is token caching? When a client receives a token from Azure AD, it’s highly recommended to cache the token to improve app resilience by avoiding repeated token requests to Azure AD. In user authentication flows, a cached refresh token allows the client code to silently request new access tokens without causing the users to be prompted for authentication. In an app-only flow, a refresh token isn’t involved, and an access token is issued. Client code must cache the access tokens for the same reasons.

The Azure Identity client library has implemented detection and support for multiple Azure resource providers. It provides an abstraction DefaultAzureCredential and ManagedIdentityCredential classes so that developers can write consistent code that does not need to change based on the resource provider used.

Feature
Collaborate with the MSAL team to design, prototype, and then productize a solution across MSAL and Azure Identity SDKs to provide ManagedIdentity token caching support at the MSAL/SDK layer so that applications can be resilient and performant with managed identity token caching and automatic cache refreshes.

Related:

@joshfree joshfree added Client This issue points to a problem in the data-plane of the library. Azure.Identity labels Mar 26, 2022
@joshfree joshfree added this to the [2022] July milestone Mar 26, 2022
@joshfree joshfree moved this from Planned to In Progress in Azure Identity SDK Improvements Jul 5, 2022
@joshfree joshfree modified the milestones: 2022-07, 2022-08 Jul 5, 2022
@xiangyan99 xiangyan99 moved this from In Progress to Done in Azure Identity SDK Improvements Aug 15, 2022
@xiangyan99
Copy link
Member

Done

@github-actions github-actions bot locked and limited conversation to collaborators Apr 11, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Azure.Identity Client This issue points to a problem in the data-plane of the library.
Projects
Development

No branches or pull requests

2 participants