ApplicationTokenProvider Class

Definition

Provides tokens for Azure Active Directory applications.

public class ApplicationTokenProvider : Microsoft.Rest.ITokenProvider
type ApplicationTokenProvider = class
    interface ITokenProvider
Public Class ApplicationTokenProvider
Implements ITokenProvider
Inheritance
ApplicationTokenProvider
Implements

Constructors

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, 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, 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(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(Func<Dictionary<String,String>,Dictionary<String,String>>)

Properties

AccessTokenExpired

Methods

GetAuthenticationHeaderAsync(CancellationToken)

Gets an access token from the token cache or from AD authentication endpoint. Attempts to refresh the access token if it has expired.

LoginSilentAsync(String, ClientAssertionCertificate, ActiveDirectoryServiceSettings, TokenCache)

Creates ServiceClientCredentials for authenticating requests as an active directory application using a certificate credential. See Active Directory Quickstart for .Net for detailed instructions on creating an Azure Active Directory application.

LoginSilentAsync(String, ClientCredential, ActiveDirectoryServiceSettings, TokenCache)

Creates ServiceClientCredentials for authenticating requests as an active directory application using a client credential. See Active Directory Quickstart for .Net for detailed instructions on creating an Azure Active Directory application.

LoginSilentAsync(String, ClientCredential, ActiveDirectoryServiceSettings)

Creates ServiceClientCredentials for authenticating requests as an active directory application using a client credential. Uses the default token cache for authentication. See Active Directory Quickstart for .Net for detailed instructions on creating an Azure Active Directory application.

LoginSilentAsync(String, ClientCredential, TokenCache)

Creates ServiceClientCredentials for authenticating requests as an active directory application using a client credential. Uses the default service settings for azure resource manager (authority, token audience) during authentication. See Active Directory Quickstart for .Net for detailed instructions on creating an Azure Active Directory application.

LoginSilentAsync(String, ClientCredential)

Creates ServiceClientCredentials for authenticating requests as an active directory application using a client credential. Uses the default token cache and the default service settings for azure resource manager (authority, token audience) during authentication. See Active Directory Quickstart for .Net for detailed instructions on creating an Azure Active Directory application.

LoginSilentAsync(String, String, Byte[], Boolean)

Creates ServiceClientCredentials for authenticating requests as an active directory application using certificate credentials. Uses the default token cache and the default service settings (authority, token audience) for log in to azure resource manager during authentication. See Active Directory Quickstart for .Net for detailed instructions on creating an Azure Active Directory application.

LoginSilentAsync(String, String, Byte[], String, ActiveDirectoryServiceSettings, TokenCache)

Creates ServiceClientCredentials for authenticating requests as an active directory application using certificate credential. See Active Directory Quickstart for .Net for detailed instructions on creating an Azure Active Directory application.

LoginSilentAsync(String, String, Byte[], String, ActiveDirectoryServiceSettings)

Creates ServiceClientCredentials for authenticating requests as an active directory application using certificate credentials. Uses the default token cache during authentication. See Active Directory Quickstart for .Net for detailed instructions on creating an Azure Active Directory application.

LoginSilentAsync(String, String, Byte[], String, Boolean)

Creates ServiceClientCredentials for authenticating requests as an active directory application using certificate credentials. Uses the default token cache and the default service settings (authority, token audience) for log in to azure resource manager during authentication. See Active Directory Quickstart for .Net for detailed instructions on creating an Azure Active Directory application.

LoginSilentAsync(String, String, Byte[], String, TokenCache)

Creates ServiceClientCredentials for authenticating requests as an active directory application using certificate credentials. Uses the default service settings (authority, token audience) for log in to azure resource manager during authentication. See Active Directory Quickstart for .Net for detailed instructions on creating an Azure Active Directory application.

LoginSilentAsync(String, String, Byte[], String)

Creates ServiceClientCredentials for authenticating requests as an active directory application using certificate credentials. Uses the default token cache and the default service settings (authority, token audience) for log in to azure resource manager during authentication. See Active Directory Quickstart for .Net for detailed instructions on creating an Azure Active Directory application.

LoginSilentAsync(String, String, IApplicationAuthenticationProvider, ActiveDirectoryServiceSettings, TokenCache)

Creates ServiceClientCredentials for authenticating requests as an active directory application. See Active Directory Quickstart for .Net for detailed instructions on creating an Azure Active Directory application.

LoginSilentAsync(String, String, IApplicationAuthenticationProvider, ActiveDirectoryServiceSettings)

Creates ServiceClientCredentials for authenticating requests as an active directory application. Uses the default shared token cache. See Active Directory Quickstart for .Net for detailed instructions on creating an Azure Active Directory application.

LoginSilentAsync(String, String, IApplicationAuthenticationProvider, TokenCache)

Creates ServiceClientCredentials for authenticating requests as an active directory application. Uses the default service settings (authority and token audience) for authenticating with azure resource manager. See Active Directory Quickstart for .Net for detailed instructions on creating an Azure Active Directory application.

LoginSilentAsync(String, String, IApplicationAuthenticationProvider)

Creates ServiceClientCredentials for authenticating requests as an active directory application. Uses the default token cache and default service settings (authority and token audience) for authenticating with azure resource manager. See Active Directory Quickstart for .Net for detailed instructions on creating an Azure Active Directory application.

LoginSilentAsync(String, String, String, ActiveDirectoryServiceSettings, TokenCache)

Creates ServiceClientCredentials for authenticating requests as an active directory application using client credentials. See Active Directory Quickstart for .Net for detailed instructions on creating an Azure Active Directory application.

LoginSilentAsync(String, String, String, ActiveDirectoryServiceSettings)

Creates ServiceClientCredentials for authenticating requests as an active directory application using client credentials. Uses the default token cache during authentication. See Active Directory Quickstart for .Net for detailed instructions on creating an Azure Active Directory application.

LoginSilentAsync(String, String, String, Boolean)

Creates ServiceClientCredentials for authenticating requests as an active directory application using certificate credentials. Uses the default token cache and the default service settings (authority, token audience) for log in to azure resource manager during authentication. See Active Directory Quickstart for .Net for detailed instructions on creating an Azure Active Directory application.

LoginSilentAsync(String, String, String, String, Boolean)

Creates ServiceClientCredentials for authenticating requests as an active directory application using certificate credentials. Uses the default token cache and the default service settings (authority, token audience) for log in to azure resource manager during authentication. See Active Directory Quickstart for .Net for detailed instructions on creating an Azure Active Directory application.

LoginSilentAsync(String, String, String, TokenCache)

Creates ServiceClientCredentials for authenticating requests as an active directory application using client credentials. Uses the default service settings (authority, token audience) for log in to azure resource manager during authentication. See Active Directory Quickstart for .Net for detailed instructions on creating an Azure Active Directory application.

LoginSilentAsync(String, String, String)

Creates ServiceClientCredentials for authenticating requests as an active directory application using client credentials. Uses the default token cache and the default service settings (authority, token audience) for log in to azure resource manager during authentication. See Active Directory Quickstart for .Net for detailed instructions on creating an Azure Active Directory application.

LoginSilentWithCertificateAsync(String, ClientAssertionCertificate, ActiveDirectoryServiceSettings)

Creates ServiceClientCredentials for authenticating requests as an active directory application using a certificate credential. Uses the default token cache for authentication. See Active Directory Quickstart for .Net for detailed instructions on creating an Azure Active Directory application.

LoginSilentWithCertificateAsync(String, ClientAssertionCertificate, TokenCache)

Creates ServiceClientCredentials for authenticating requests as an active directory application using a certificate credential. Uses the default service settings for azure resource manager (authority, token audience) during authentication. See Active Directory Quickstart for .Net for detailed instructions on creating an Azure Active Directory application.

LoginSilentWithCertificateAsync(String, ClientAssertionCertificate)

Creates ServiceClientCredentials for authenticating requests as an active directory application using a certificate credential. Uses the default token cache and the default service settings for azure resource manager (authority, token audience) during authentication. See Active Directory Quickstart for .Net for detailed instructions on creating an Azure Active Directory application.

Applies to