Closed
Description
openedon Sep 8, 2021
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:
- clients have one factory function per supported credential type
- e.g.
NewClientWithKeyCredential
,NewClientWithTokenCredential
- e.g.
- client factories use variadic config to accept different credential types
- e.g.
NewClient(azcore.WithTokenCredential(cred))
- e.g.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment