Class ManagedServiceIdentityTokenProvider
- Namespace
- Microsoft.Azure.ServiceBus.Primitives
- Assembly
- Microsoft.Azure.ServiceBus.dll
Represents the Azure Active Directory token provider for Azure Managed Service Identity integration.
public class ManagedServiceIdentityTokenProvider : TokenProvider, ITokenProvider
- Inheritance
-
ManagedServiceIdentityTokenProvider
- Implements
- Inherited Members
Constructors
ManagedServiceIdentityTokenProvider()
public ManagedServiceIdentityTokenProvider()
Methods
GetTokenAsync(string, TimeSpan)
Gets a SecurityToken for the given audience and duration.
public override Task<SecurityToken> GetTokenAsync(string appliesTo, TimeSpan timeout)
Parameters
appliesTo
stringThe URI which the access token applies to
timeout
TimeSpanThe time span that specifies the timeout value for the message that gets the security token