Skip to content

[Core] Refactor staticmethod usage in BearerTokenCredential policies #45402

@pvaneck

Description

@pvaneck

_enforce_https is currently a staticmethod on _BearerTokenCredentialPolicyBase, but AsyncBearerTokenCredentialPolicy does not inherit from that base class. As a result, the async policy accesses it awkwardly via a cross-class protected member call. Let's make this a module-level method instead.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Azure.Coreneeds-triageWorkflow: This is a new issue that needs to be triaged to the appropriate team.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions