ApplicationTokenProvider Constructors
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.
Overloads
ApplicationTokenProvider(Func<Dictionary<String,String>,Dictionary<String,String>>) | |
ApplicationTokenProvider(AuthenticationContext, String, ClientCredential, AuthenticationResult) |
Create an application token provider that can retrieve tokens for the given application from the given context, using the given audience and credential. See Active Directory Quickstart for .Net for detailed instructions on creating an Azure Active Directory application. |
ApplicationTokenProvider(AuthenticationContext, String, ClientAssertionCertificate, AuthenticationResult) |
Create an application token provider that can retrieve tokens for the given application from the given context, using the given audience and certificate. See Active Directory Quickstart for .Net for detailed instructions on creating an Azure Active Directory application. |
ApplicationTokenProvider(AuthenticationContext, String, String, IApplicationAuthenticationProvider, AuthenticationResult) |
Create an application token provider that can retrieve tokens for the given application from the given context, using the given audience and credential store. See Active Directory Quickstart for .Net for detailed instructions on creating an Azure Active Directory application. |
ApplicationTokenProvider(AuthenticationContext, String, String, IApplicationAuthenticationProvider, AuthenticationResult, DateTimeOffset) |
Create an application token provider that can retrieve tokens for the given application from the given context, using the given audience and credential store. See Active Directory Quickstart for .Net for detailed instructions on creating an Azure Active Directory application. |
ApplicationTokenProvider(Func<Dictionary<String,String>,Dictionary<String,String>>)
public ApplicationTokenProvider (Func<System.Collections.Generic.Dictionary<string,string>,System.Collections.Generic.Dictionary<string,string>> UpdateAuthData);
new Microsoft.Rest.Azure.Authentication.ApplicationTokenProvider : Func<System.Collections.Generic.Dictionary<string, string>, System.Collections.Generic.Dictionary<string, string>> -> Microsoft.Rest.Azure.Authentication.ApplicationTokenProvider
Public Sub New (UpdateAuthData As Func(Of Dictionary(Of String, String), Dictionary(Of String, String)))
Parameters
- UpdateAuthData
- Func<Dictionary<String,String>,Dictionary<String,String>>
Applies to
ApplicationTokenProvider(AuthenticationContext, String, ClientCredential, AuthenticationResult)
Create an application token provider that can retrieve tokens for the given application from the given context, using the given audience and credential. See Active Directory Quickstart for .Net for detailed instructions on creating an Azure Active Directory application.
public ApplicationTokenProvider (Microsoft.IdentityModel.Clients.ActiveDirectory.AuthenticationContext context, string tokenAudience, Microsoft.IdentityModel.Clients.ActiveDirectory.ClientCredential credential, Microsoft.IdentityModel.Clients.ActiveDirectory.AuthenticationResult authenticationResult);
new Microsoft.Rest.Azure.Authentication.ApplicationTokenProvider : Microsoft.IdentityModel.Clients.ActiveDirectory.AuthenticationContext * string * Microsoft.IdentityModel.Clients.ActiveDirectory.ClientCredential * Microsoft.IdentityModel.Clients.ActiveDirectory.AuthenticationResult -> Microsoft.Rest.Azure.Authentication.ApplicationTokenProvider
Public Sub New (context As AuthenticationContext, tokenAudience As String, credential As ClientCredential, authenticationResult As AuthenticationResult)
Parameters
- context
- Microsoft.IdentityModel.Clients.ActiveDirectory.AuthenticationContext
The authentication context to use when retrieving tokens.
- tokenAudience
- String
The token audience to use when retrieving tokens.
- credential
- Microsoft.IdentityModel.Clients.ActiveDirectory.ClientCredential
The client credential for this application.
- authenticationResult
- Microsoft.IdentityModel.Clients.ActiveDirectory.AuthenticationResult
The token details provided when authenticating with the client credentials.
Applies to
ApplicationTokenProvider(AuthenticationContext, String, ClientAssertionCertificate, AuthenticationResult)
Create an application token provider that can retrieve tokens for the given application from the given context, using the given audience and certificate. See Active Directory Quickstart for .Net for detailed instructions on creating an Azure Active Directory application.
public ApplicationTokenProvider (Microsoft.IdentityModel.Clients.ActiveDirectory.AuthenticationContext context, string tokenAudience, Microsoft.Rest.Azure.Authentication.ClientAssertionCertificate certificate, Microsoft.IdentityModel.Clients.ActiveDirectory.AuthenticationResult authenticationResult);
new Microsoft.Rest.Azure.Authentication.ApplicationTokenProvider : Microsoft.IdentityModel.Clients.ActiveDirectory.AuthenticationContext * string * Microsoft.Rest.Azure.Authentication.ClientAssertionCertificate * Microsoft.IdentityModel.Clients.ActiveDirectory.AuthenticationResult -> Microsoft.Rest.Azure.Authentication.ApplicationTokenProvider
Public Sub New (context As AuthenticationContext, tokenAudience As String, certificate As ClientAssertionCertificate, authenticationResult As AuthenticationResult)
Parameters
- context
- Microsoft.IdentityModel.Clients.ActiveDirectory.AuthenticationContext
The authentication context to use when retrieving tokens.
- tokenAudience
- String
The token audience to use when retrieving tokens.
- certificate
- ClientAssertionCertificate
The certificate associated with Active Directory application.
- authenticationResult
- Microsoft.IdentityModel.Clients.ActiveDirectory.AuthenticationResult
The token details provided when authenticating with the client credentials.
Applies to
ApplicationTokenProvider(AuthenticationContext, String, String, IApplicationAuthenticationProvider, AuthenticationResult)
Create an application token provider that can retrieve tokens for the given application from the given context, using the given audience and credential store. See Active Directory Quickstart for .Net for detailed instructions on creating an Azure Active Directory application.
public ApplicationTokenProvider (Microsoft.IdentityModel.Clients.ActiveDirectory.AuthenticationContext context, string tokenAudience, string clientId, Microsoft.Rest.Azure.Authentication.IApplicationAuthenticationProvider authenticationStore, Microsoft.IdentityModel.Clients.ActiveDirectory.AuthenticationResult authenticationResult);
new Microsoft.Rest.Azure.Authentication.ApplicationTokenProvider : Microsoft.IdentityModel.Clients.ActiveDirectory.AuthenticationContext * string * string * Microsoft.Rest.Azure.Authentication.IApplicationAuthenticationProvider * Microsoft.IdentityModel.Clients.ActiveDirectory.AuthenticationResult -> Microsoft.Rest.Azure.Authentication.ApplicationTokenProvider
Public Sub New (context As AuthenticationContext, tokenAudience As String, clientId As String, authenticationStore As IApplicationAuthenticationProvider, authenticationResult As AuthenticationResult)
Parameters
- context
- Microsoft.IdentityModel.Clients.ActiveDirectory.AuthenticationContext
The authentication context to use when retrieving tokens.
- tokenAudience
- String
The token audience to use when retrieving tokens
- clientId
- String
The client Id for this active directory application
- authenticationStore
- IApplicationAuthenticationProvider
The source of authentication information for this application.
- authenticationResult
- Microsoft.IdentityModel.Clients.ActiveDirectory.AuthenticationResult
The authenticationResult of initial authentication with the application credentials.
Applies to
ApplicationTokenProvider(AuthenticationContext, String, String, IApplicationAuthenticationProvider, AuthenticationResult, DateTimeOffset)
Create an application token provider that can retrieve tokens for the given application from the given context, using the given audience and credential store. See Active Directory Quickstart for .Net for detailed instructions on creating an Azure Active Directory application.
public ApplicationTokenProvider (Microsoft.IdentityModel.Clients.ActiveDirectory.AuthenticationContext context, string tokenAudience, string clientId, Microsoft.Rest.Azure.Authentication.IApplicationAuthenticationProvider authenticationStore, Microsoft.IdentityModel.Clients.ActiveDirectory.AuthenticationResult authenticationResult, DateTimeOffset tokenExpiration);
new Microsoft.Rest.Azure.Authentication.ApplicationTokenProvider : Microsoft.IdentityModel.Clients.ActiveDirectory.AuthenticationContext * string * string * Microsoft.Rest.Azure.Authentication.IApplicationAuthenticationProvider * Microsoft.IdentityModel.Clients.ActiveDirectory.AuthenticationResult * DateTimeOffset -> Microsoft.Rest.Azure.Authentication.ApplicationTokenProvider
Public Sub New (context As AuthenticationContext, tokenAudience As String, clientId As String, authenticationStore As IApplicationAuthenticationProvider, authenticationResult As AuthenticationResult, tokenExpiration As DateTimeOffset)
Parameters
- context
- Microsoft.IdentityModel.Clients.ActiveDirectory.AuthenticationContext
The authentication context to use when retrieving tokens.
- tokenAudience
- String
The token audience to use when retrieving tokens
- clientId
- String
The client Id for this active directory application
- authenticationStore
- IApplicationAuthenticationProvider
The source of authentication information for this application.
- authenticationResult
- Microsoft.IdentityModel.Clients.ActiveDirectory.AuthenticationResult
The authenticationResult of initial authentication with the application credentials.
- tokenExpiration
- DateTimeOffset
The date of expiration for the current access token.
Applies to
Azure SDK for .NET