ITokenCredentialProvider
ITokenCredentialProvider.TokenCredential that Aspire uses to authenticate against Azure when provisioning resources and calling Azure APIs. namespace Aspire.Hosting.Azure;
public interface ITokenCredentialProvider{ // ...}Remarks
Section titled Remarks This service is registered as a singleton when Azure provisioning is enabled (e.g., by Add).
Integrations and AppHost code can resolve this service from I to obtain a I instance configured by Aspire's Azure provisioning options (for example, the configured tenant id and credential source). The concrete credential type returned by I is an implementation detail and may change between releases; callers should treat the value as an opaque I.
Properties1
Section titled PropertiesTokenCredential ITokenCredentialProvider.TokenCredential to use for Azure authentication.