I
InsightNexus

Class ManagedIdentityTokenProvider | Azure SDK for .NET

Author

Rachel Davis

Published Feb 16, 2026

Represents the Azure Active Directory token provider for Azure Managed Identity integration.

Inheritance

System.Object

ManagedIdentityTokenProvider

Namespace: System.Dynamic.ExpandoObject
Assembly: Microsoft.Azure.EventHubs.dll
Syntax
public class ManagedIdentityTokenProvider : Microsoft.Azure.EventHubs.TokenProvider

Constructors

ManagedIdentityTokenProvider()

Initializes new instance of ManagedIdentityTokenProvider class with default Microsoft.Azure.Services.AppAuthentication.AzureServiceTokenProvider configuration.

Declaration
public ManagedIdentityTokenProvider ();

ManagedIdentityTokenProvider(AzureServiceTokenProvider)

Declaration
public ManagedIdentityTokenProvider (Microsoft.Azure.Services.AppAuthentication.AzureServiceTokenProvider azureServiceTokenProvider);
Parameters
Microsoft.Azure.Services.AppAuthentication.AzureServiceTokenProvider azureServiceTokenProvider

The Microsoft.Azure.Services.AppAuthentication.AzureServiceTokenProvider to be used to fetch access tokens.

Methods

GetTokenAsync(String, TimeSpan)

Declaration
[System.Diagnostics.DebuggerStepThrough]
public override System.Threading.Tasks.Task<Microsoft.Azure.EventHubs.SecurityToken> GetTokenAsync (string appliesTo, TimeSpan timeout);
Parameters
System.String appliesTo

The URI which the access token applies to

System.TimeSpan timeout

The time span that specifies the timeout value for the message that gets the security token

Returns