<PackageReference Include="System.ClientModel" Version="1.11.0" />

System.ClientModel.Primitives.CredentialResolver

public abstract class CredentialResolver
Plug-in point for resolving an AuthenticationTokenProvider from an IConfigurationSection that describes a credential. Credential libraries derive from this class and ship a typed Add{Brand}CredentialResolver() registration extension.
protected CredentialResolver()

public abstract bool TryResolve(IConfigurationSection credentialSection, out AuthenticationTokenProvider provider)

Attempts to construct an AuthenticationTokenProvider for the supplied credential configuration section.