UserTokenProvider(AuthenticationContext, String, Uri, UserIdentifier) Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
GitHub에서 Microsoft와 공동 작업
이 콘텐츠의 원본은 GitHub에서 찾을 수 있으며, 여기서 문제와 끌어오기 요청을 만들고 검토할 수도 있습니다. 자세한 내용은 참여자 가이드를 참조하세요.
Azure SDK for .NET