Skip to content

Decide how to replace azcore.Credential #15507

Closed

Description

We've decided to shift responsibility for knowing how to use a credential from the credentials themselves to clients. This entails removing the azcore.Credential interface and its implementations (azidentity's NewAuthenticationPolicy methods). Clients will then need another way to distinguish credential types. This issue tracks exploring the proposed alternatives and choosing one to implement:

  1. clients have one factory function per supported credential type
    • e.g. NewClientWithKeyCredential, NewClientWithTokenCredential
  2. client factories use variadic config to accept different credential types
    • e.g. NewClient(azcore.WithTokenCredential(cred))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Labels

Azure.CoreAzure.IdentityClientThis issue points to a problem in the data-plane of the library.design-discussionAn area of design currently under discussion and open to team and community feedback.

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions