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
ncG1vNJzZmiZqqq%2Fpr%2FDpJuom6Njr627wWeaqKqVY8SqusOorqxmnprBcHDWnplonJ%2Bpu6bAjoagnKqfqLynwI16sa6qlWOSt7HNrX%2BumqNkgW9%2FjWtmmqiZZJqqr9GoqqiepGOOu8HRnmV%2BrpWjwYnBwaxmhqGTp7y0u8WtZXqypaeyb5HVnqWtgKWXwG%2BZwKeYoJ2UfrGmutOiq7KMn6Cyr5zRqK2inJWne6nAzKU%3D