ApplicationTokenProvider.LoginSilentWithCertificateAsync Method

Definition

Overloads

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.

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.

public static System.Threading.Tasks.Task<Microsoft.Rest.ServiceClientCredentials> LoginSilentWithCertificateAsync (string domain, Microsoft.Rest.Azure.Authentication.ClientAssertionCertificate certificate, Microsoft.IdentityModel.Clients.ActiveDirectory.TokenCache cache);
static member LoginSilentWithCertificateAsync : string * Microsoft.Rest.Azure.Authentication.ClientAssertionCertificate * Microsoft.IdentityModel.Clients.ActiveDirectory.TokenCache -> System.Threading.Tasks.Task<Microsoft.Rest.ServiceClientCredentials>
Public Shared Function LoginSilentWithCertificateAsync (domain As String, certificate As ClientAssertionCertificate, cache As TokenCache) As Task(Of ServiceClientCredentials)

Parameters

domain
String

The active directory domain or tenantId to authenticate with.

certificate
ClientAssertionCertificate

The certificate associated with Active Directory application.

cache
Microsoft.IdentityModel.Clients.ActiveDirectory.TokenCache

The token cache to target during authentication.

Returns

A ServiceClientCredentials object that can authenticate http requests as the given application.

Applies to

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.

public static System.Threading.Tasks.Task<Microsoft.Rest.ServiceClientCredentials> LoginSilentWithCertificateAsync (string domain, Microsoft.Rest.Azure.Authentication.ClientAssertionCertificate certificate);
static member LoginSilentWithCertificateAsync : string * Microsoft.Rest.Azure.Authentication.ClientAssertionCertificate -> System.Threading.Tasks.Task<Microsoft.Rest.ServiceClientCredentials>
Public Shared Function LoginSilentWithCertificateAsync (domain As String, certificate As ClientAssertionCertificate) As Task(Of ServiceClientCredentials)

Parameters

domain
String

The active directory domain or tenantId to authenticate with.

certificate
ClientAssertionCertificate

The certificate associated with Active Directory application.

Returns

A ServiceClientCredentials object that can authenticate http requests as the given application.

Applies to

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.

public static System.Threading.Tasks.Task<Microsoft.Rest.ServiceClientCredentials> LoginSilentWithCertificateAsync (string domain, Microsoft.Rest.Azure.Authentication.ClientAssertionCertificate certificate, Microsoft.Rest.Azure.Authentication.ActiveDirectoryServiceSettings settings);
static member LoginSilentWithCertificateAsync : string * Microsoft.Rest.Azure.Authentication.ClientAssertionCertificate * Microsoft.Rest.Azure.Authentication.ActiveDirectoryServiceSettings -> System.Threading.Tasks.Task<Microsoft.Rest.ServiceClientCredentials>
Public Shared Function LoginSilentWithCertificateAsync (domain As String, certificate As ClientAssertionCertificate, settings As ActiveDirectoryServiceSettings) As Task(Of ServiceClientCredentials)

Parameters

domain
String

The active directory domain or tenantId to authenticate with.

certificate
ClientAssertionCertificate

The certificate associated with Active Directory application.

settings
ActiveDirectoryServiceSettings

The active directory service side settings, including authority and token audience.

Returns

A ServiceClientCredentials object that can authenticate http requests as the given application.

Applies to