Skip to content

[Feature Request] Expose refresh_on when retrieving token from cache #720

@pvaneck

Description

@pvaneck

MSAL client type

Public, Confidential

Problem Statement

Similar to AzureAD/microsoft-authentication-library-for-java#822, in our Azure SDKs for Python, one of the primary pipeline policies our SDK clients use is the BearerTokenCredentialPolicy. This policy will save a token it retrieves using the passed-in credential and will keep reusing that token until it's close to expiration. We recently added the ability for the policy to request a token sooner if a refresh_on value is set and has elapsed. We'd like to be able to set it if this value is available.

Request: Expose refresh_on where possible.


Proposed solution

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions