TokenCredential Interface


The interface for credentials that can provide a token.

public interface TokenCredential


getToken(TokenRequestContext request)

Asynchronously get a token for a given resource/audience. This method is called automatically by Azure SDK client libraries. You may call this method directly, but you must also handle token caching and token refreshing.

Applies to