UserTokenProvider(AuthenticationContext, String, Uri, UserIdentifier) Constructor

Definition

Create a token provider which can provide user tokens in the given context. The user must have previously authenticated in the given context. Tokens are retrieved from the token cache.

public UserTokenProvider (Microsoft.IdentityModel.Clients.ActiveDirectory.AuthenticationContext context, string clientId, Uri tokenAudience, Microsoft.IdentityModel.Clients.ActiveDirectory.UserIdentifier userId);
new Microsoft.Rest.Azure.Authentication.UserTokenProvider : Microsoft.IdentityModel.Clients.ActiveDirectory.AuthenticationContext * string * Uri * Microsoft.IdentityModel.Clients.ActiveDirectory.UserIdentifier -> Microsoft.Rest.Azure.Authentication.UserTokenProvider
Public Sub New (context As AuthenticationContext, clientId As String, tokenAudience As Uri, userId As UserIdentifier)

Parameters

context
Microsoft.IdentityModel.Clients.ActiveDirectory.AuthenticationContext

The active directory authentication context to use for retrieving tokens.

clientId
String

The active directory client Id to match when retrieving tokens.

tokenAudience
Uri

The audience to match when retrieving tokens.

userId
Microsoft.IdentityModel.Clients.ActiveDirectory.UserIdentifier

The user id to match when retrieving tokens.

Applies to