ApplicationTokenProvider.LoginSilentAsync Method
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
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, 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, 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, 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, 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, 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, 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, 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, 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, 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, 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, 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, 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. |
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, 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[], 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, 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.
public static System.Threading.Tasks.Task<Microsoft.Rest.ServiceClientCredentials> LoginSilentAsync (string domain, string clientId, string certificateFilePath, bool IsCertificateRollOverEnabled);
static member LoginSilentAsync : string * string * string * bool -> System.Threading.Tasks.Task<Microsoft.Rest.ServiceClientCredentials>
Public Shared Function LoginSilentAsync (domain As String, clientId As String, certificateFilePath As String, IsCertificateRollOverEnabled As Boolean) As Task(Of ServiceClientCredentials)
Parameters
- domain
- String
The active directory domain or tenantId to authenticate with.
- clientId
- String
The active directory clientId for the application.
- certificateFilePath
- String
Path to the certificate file
- IsCertificateRollOverEnabled
- Boolean
Set it to true if certificate KeyVault/dSMS assistend certificate (Auto Rotation)
Returns
A ServiceClientCredentials object that can authenticate http requests as the given application.
Applies to
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.
public static System.Threading.Tasks.Task<Microsoft.Rest.ServiceClientCredentials> LoginSilentAsync (string domain, string clientId, Microsoft.Rest.Azure.Authentication.IApplicationAuthenticationProvider authenticationProvider, Microsoft.Rest.Azure.Authentication.ActiveDirectoryServiceSettings settings, Microsoft.IdentityModel.Clients.ActiveDirectory.TokenCache cache);
static member LoginSilentAsync : string * string * Microsoft.Rest.Azure.Authentication.IApplicationAuthenticationProvider * Microsoft.Rest.Azure.Authentication.ActiveDirectoryServiceSettings * Microsoft.IdentityModel.Clients.ActiveDirectory.TokenCache -> System.Threading.Tasks.Task<Microsoft.Rest.ServiceClientCredentials>
Public Shared Function LoginSilentAsync (domain As String, clientId As String, authenticationProvider As IApplicationAuthenticationProvider, settings As ActiveDirectoryServiceSettings, cache As TokenCache) As Task(Of ServiceClientCredentials)
Parameters
- domain
- String
The active directory domain or tenantId to authenticate with.
- clientId
- String
The active directory clientId for the application.
- authenticationProvider
- IApplicationAuthenticationProvider
A source for the secure secret for this application.
- settings
- ActiveDirectoryServiceSettings
The active directory service side settings, including authority and token audience.
- 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
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.
public static System.Threading.Tasks.Task<Microsoft.Rest.ServiceClientCredentials> LoginSilentAsync (string domain, string clientId, byte[] certificate, string password, Microsoft.IdentityModel.Clients.ActiveDirectory.TokenCache cache);
static member LoginSilentAsync : string * string * byte[] * string * Microsoft.IdentityModel.Clients.ActiveDirectory.TokenCache -> System.Threading.Tasks.Task<Microsoft.Rest.ServiceClientCredentials>
Public Shared Function LoginSilentAsync (domain As String, clientId As String, certificate As Byte(), password As String, cache As TokenCache) As Task(Of ServiceClientCredentials)
Parameters
- domain
- String
The active directory domain or tenantId to authenticate with.
- clientId
- String
The active directory clientId for the application.
- certificate
- Byte[]
The certificate associated with Active Directory application.
- password
- String
The certificate password.
- 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
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.
public static System.Threading.Tasks.Task<Microsoft.Rest.ServiceClientCredentials> LoginSilentAsync (string domain, string clientId, byte[] certificate, string password, Microsoft.Rest.Azure.Authentication.ActiveDirectoryServiceSettings settings);
static member LoginSilentAsync : string * string * byte[] * string * Microsoft.Rest.Azure.Authentication.ActiveDirectoryServiceSettings -> System.Threading.Tasks.Task<Microsoft.Rest.ServiceClientCredentials>
Public Shared Function LoginSilentAsync (domain As String, clientId As String, certificate As Byte(), password As String, settings As ActiveDirectoryServiceSettings) As Task(Of ServiceClientCredentials)
Parameters
- domain
- String
The active directory domain or tenantId to authenticate with.
- clientId
- String
The active directory clientId for the application.
- certificate
- Byte[]
The certificate associated with Active Directory application.
- password
- String
The certificate password.
- 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
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.
public static System.Threading.Tasks.Task<Microsoft.Rest.ServiceClientCredentials> LoginSilentAsync (string domain, string clientId, string certificateFilePath, string certificatePassword, bool IsCertificateRollOverEnabled);
static member LoginSilentAsync : string * string * string * string * bool -> System.Threading.Tasks.Task<Microsoft.Rest.ServiceClientCredentials>
Public Shared Function LoginSilentAsync (domain As String, clientId As String, certificateFilePath As String, certificatePassword As String, IsCertificateRollOverEnabled As Boolean) As Task(Of ServiceClientCredentials)
Parameters
- domain
- String
The active directory domain or tenantId to authenticate with.
- clientId
- String
The active directory clientId for the application.
- certificateFilePath
- String
Path to certificate file
- certificatePassword
- String
Certificate password
- IsCertificateRollOverEnabled
- Boolean
Set it to true if certificate KeyVault/dSMS assistend certificate (Auto Rotation)
Returns
A ServiceClientCredentials object that can authenticate http requests as the given application.
Applies to
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.
public static System.Threading.Tasks.Task<Microsoft.Rest.ServiceClientCredentials> LoginSilentAsync (string domain, string clientId, string secret, Microsoft.Rest.Azure.Authentication.ActiveDirectoryServiceSettings settings, Microsoft.IdentityModel.Clients.ActiveDirectory.TokenCache cache);
static member LoginSilentAsync : string * string * string * Microsoft.Rest.Azure.Authentication.ActiveDirectoryServiceSettings * Microsoft.IdentityModel.Clients.ActiveDirectory.TokenCache -> System.Threading.Tasks.Task<Microsoft.Rest.ServiceClientCredentials>
Public Shared Function LoginSilentAsync (domain As String, clientId As String, secret As String, settings As ActiveDirectoryServiceSettings, cache As TokenCache) As Task(Of ServiceClientCredentials)
Parameters
- domain
- String
The active directory domain or tenantId to authenticate with.
- clientId
- String
The active directory clientId for the application.
- secret
- String
The secret for this active directory application.
- settings
- ActiveDirectoryServiceSettings
The active directory service side settings, including authority and token audience.
- 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
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.
public static System.Threading.Tasks.Task<Microsoft.Rest.ServiceClientCredentials> LoginSilentAsync (string domain, string clientId, string secret, Microsoft.Rest.Azure.Authentication.ActiveDirectoryServiceSettings settings);
static member LoginSilentAsync : string * string * string * Microsoft.Rest.Azure.Authentication.ActiveDirectoryServiceSettings -> System.Threading.Tasks.Task<Microsoft.Rest.ServiceClientCredentials>
Public Shared Function LoginSilentAsync (domain As String, clientId As String, secret As String, settings As ActiveDirectoryServiceSettings) As Task(Of ServiceClientCredentials)
Parameters
- domain
- String
The active directory domain or tenantId to authenticate with.
- clientId
- String
The active directory clientId for the application.
- secret
- String
The secret for this 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
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.
public static System.Threading.Tasks.Task<Microsoft.Rest.ServiceClientCredentials> LoginSilentAsync (string domain, string clientId, byte[] certificate, string password, Microsoft.Rest.Azure.Authentication.ActiveDirectoryServiceSettings settings, Microsoft.IdentityModel.Clients.ActiveDirectory.TokenCache cache);
static member LoginSilentAsync : string * string * byte[] * string * Microsoft.Rest.Azure.Authentication.ActiveDirectoryServiceSettings * Microsoft.IdentityModel.Clients.ActiveDirectory.TokenCache -> System.Threading.Tasks.Task<Microsoft.Rest.ServiceClientCredentials>
Public Shared Function LoginSilentAsync (domain As String, clientId As String, certificate As Byte(), password As String, settings As ActiveDirectoryServiceSettings, cache As TokenCache) As Task(Of ServiceClientCredentials)
Parameters
- domain
- String
The active directory domain or tenantId to authenticate with.
- clientId
- String
The active directory clientId for the application.
- certificate
- Byte[]
The certificate associated with Active Directory application.
- password
- String
The certificate password.
- settings
- ActiveDirectoryServiceSettings
The active directory service side settings, including authority and token audience.
- 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
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.
public static System.Threading.Tasks.Task<Microsoft.Rest.ServiceClientCredentials> LoginSilentAsync (string domain, string clientId, byte[] certificate, string certificatePassword, bool IsCertificateRollOverEnabled);
static member LoginSilentAsync : string * string * byte[] * string * bool -> System.Threading.Tasks.Task<Microsoft.Rest.ServiceClientCredentials>
Public Shared Function LoginSilentAsync (domain As String, clientId As String, certificate As Byte(), certificatePassword As String, IsCertificateRollOverEnabled As Boolean) As Task(Of ServiceClientCredentials)
Parameters
- domain
- String
The active directory domain or tenantId to authenticate with.
- clientId
- String
The active directory clientId for the application.
- certificate
- Byte[]
The certificate associated with Active Directory application.
- certificatePassword
- String
Certificate password
- IsCertificateRollOverEnabled
- Boolean
Set it to true if certificate KeyVault/dSMS assistend certificate (Auto Rotation)
Returns
A ServiceClientCredentials object that can authenticate http requests as the given application.
Applies to
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.
public static System.Threading.Tasks.Task<Microsoft.Rest.ServiceClientCredentials> LoginSilentAsync (string domain, string clientId, string secret, Microsoft.IdentityModel.Clients.ActiveDirectory.TokenCache cache);
static member LoginSilentAsync : string * string * string * Microsoft.IdentityModel.Clients.ActiveDirectory.TokenCache -> System.Threading.Tasks.Task<Microsoft.Rest.ServiceClientCredentials>
Public Shared Function LoginSilentAsync (domain As String, clientId As String, secret As String, cache As TokenCache) As Task(Of ServiceClientCredentials)
Parameters
- domain
- String
The active directory domain or tenantId to authenticate with.
- clientId
- String
The active directory clientId for the application.
- secret
- String
The secret for this 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
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.
public static System.Threading.Tasks.Task<Microsoft.Rest.ServiceClientCredentials> LoginSilentAsync (string domain, string clientId, Microsoft.Rest.Azure.Authentication.IApplicationAuthenticationProvider authenticationProvider, Microsoft.Rest.Azure.Authentication.ActiveDirectoryServiceSettings settings);
static member LoginSilentAsync : string * string * Microsoft.Rest.Azure.Authentication.IApplicationAuthenticationProvider * Microsoft.Rest.Azure.Authentication.ActiveDirectoryServiceSettings -> System.Threading.Tasks.Task<Microsoft.Rest.ServiceClientCredentials>
Public Shared Function LoginSilentAsync (domain As String, clientId As String, authenticationProvider As IApplicationAuthenticationProvider, settings As ActiveDirectoryServiceSettings) As Task(Of ServiceClientCredentials)
Parameters
- domain
- String
The active directory domain or tenantId to authenticate with.
- clientId
- String
The active directory clientId for the application.
- authenticationProvider
- IApplicationAuthenticationProvider
A source for the secure secret for this 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
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.
public static System.Threading.Tasks.Task<Microsoft.Rest.ServiceClientCredentials> LoginSilentAsync (string domain, string clientId, byte[] certificate, bool IsCertificateRollOverEnabled);
static member LoginSilentAsync : string * string * byte[] * bool -> System.Threading.Tasks.Task<Microsoft.Rest.ServiceClientCredentials>
Public Shared Function LoginSilentAsync (domain As String, clientId As String, certificate As Byte(), IsCertificateRollOverEnabled As Boolean) As Task(Of ServiceClientCredentials)
Parameters
- domain
- String
The active directory domain or tenantId to authenticate with.
- clientId
- String
The active directory clientId for the application.
- certificate
- Byte[]
The certificate associated with Active Directory application.
- IsCertificateRollOverEnabled
- Boolean
Set it to true if certificate KeyVault/dSMS assistend certificate (Auto Rotation)
Returns
A ServiceClientCredentials object that can authenticate http requests as the given application.
Applies to
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.
public static System.Threading.Tasks.Task<Microsoft.Rest.ServiceClientCredentials> LoginSilentAsync (string domain, string clientId, Microsoft.Rest.Azure.Authentication.IApplicationAuthenticationProvider authenticationProvider, Microsoft.IdentityModel.Clients.ActiveDirectory.TokenCache cache);
static member LoginSilentAsync : string * string * Microsoft.Rest.Azure.Authentication.IApplicationAuthenticationProvider * Microsoft.IdentityModel.Clients.ActiveDirectory.TokenCache -> System.Threading.Tasks.Task<Microsoft.Rest.ServiceClientCredentials>
Public Shared Function LoginSilentAsync (domain As String, clientId As String, authenticationProvider As IApplicationAuthenticationProvider, cache As TokenCache) As Task(Of ServiceClientCredentials)
Parameters
- domain
- String
The active directory domain or tenantId to authenticate with.
- clientId
- String
The active directory clientId for the application.
- authenticationProvider
- IApplicationAuthenticationProvider
A source for the secure secret for this 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
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.
public static System.Threading.Tasks.Task<Microsoft.Rest.ServiceClientCredentials> LoginSilentAsync (string domain, Microsoft.Rest.Azure.Authentication.ClientAssertionCertificate certificate, Microsoft.Rest.Azure.Authentication.ActiveDirectoryServiceSettings settings, Microsoft.IdentityModel.Clients.ActiveDirectory.TokenCache cache);
static member LoginSilentAsync : string * Microsoft.Rest.Azure.Authentication.ClientAssertionCertificate * Microsoft.Rest.Azure.Authentication.ActiveDirectoryServiceSettings * Microsoft.IdentityModel.Clients.ActiveDirectory.TokenCache -> System.Threading.Tasks.Task<Microsoft.Rest.ServiceClientCredentials>
Public Shared Function LoginSilentAsync (domain As String, certificate As ClientAssertionCertificate, settings As ActiveDirectoryServiceSettings, 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.
- settings
- ActiveDirectoryServiceSettings
The active directory service side settings, including authority and token audience.
- 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
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.
public static System.Threading.Tasks.Task<Microsoft.Rest.ServiceClientCredentials> LoginSilentAsync (string domain, Microsoft.IdentityModel.Clients.ActiveDirectory.ClientCredential credential, Microsoft.Rest.Azure.Authentication.ActiveDirectoryServiceSettings settings, Microsoft.IdentityModel.Clients.ActiveDirectory.TokenCache cache);
static member LoginSilentAsync : string * Microsoft.IdentityModel.Clients.ActiveDirectory.ClientCredential * Microsoft.Rest.Azure.Authentication.ActiveDirectoryServiceSettings * Microsoft.IdentityModel.Clients.ActiveDirectory.TokenCache -> System.Threading.Tasks.Task<Microsoft.Rest.ServiceClientCredentials>
Public Shared Function LoginSilentAsync (domain As String, credential As ClientCredential, settings As ActiveDirectoryServiceSettings, cache As TokenCache) As Task(Of ServiceClientCredentials)
Parameters
- domain
- String
The active directory domain or tenantId to authenticate with.
- credential
- Microsoft.IdentityModel.Clients.ActiveDirectory.ClientCredential
The client credential (client id and secret) for this active directory application.
- settings
- ActiveDirectoryServiceSettings
The active directory service side settings, including authority and token audience.
- 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
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.
public static System.Threading.Tasks.Task<Microsoft.Rest.ServiceClientCredentials> LoginSilentAsync (string domain, string clientId, string secret);
static member LoginSilentAsync : string * string * string -> System.Threading.Tasks.Task<Microsoft.Rest.ServiceClientCredentials>
Public Shared Function LoginSilentAsync (domain As String, clientId As String, secret As String) As Task(Of ServiceClientCredentials)
Parameters
- domain
- String
The active directory domain or tenantId to authenticate with.
- clientId
- String
The active directory clientId for the application.
- secret
- String
The secret for this active directory application.
Returns
A ServiceClientCredentials object that can authenticate http requests as the given application.
Applies to
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.
public static System.Threading.Tasks.Task<Microsoft.Rest.ServiceClientCredentials> LoginSilentAsync (string domain, string clientId, Microsoft.Rest.Azure.Authentication.IApplicationAuthenticationProvider authenticationProvider);
static member LoginSilentAsync : string * string * Microsoft.Rest.Azure.Authentication.IApplicationAuthenticationProvider -> System.Threading.Tasks.Task<Microsoft.Rest.ServiceClientCredentials>
Public Shared Function LoginSilentAsync (domain As String, clientId As String, authenticationProvider As IApplicationAuthenticationProvider) As Task(Of ServiceClientCredentials)
Parameters
- domain
- String
The active directory domain or tenantId to authenticate with.
- clientId
- String
The active directory clientId for the application.
- authenticationProvider
- IApplicationAuthenticationProvider
A source for the secure secret for this application.
Returns
A ServiceClientCredentials object that can authenticate http requests as the given application.
Applies to
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.
public static System.Threading.Tasks.Task<Microsoft.Rest.ServiceClientCredentials> LoginSilentAsync (string domain, Microsoft.IdentityModel.Clients.ActiveDirectory.ClientCredential credential, Microsoft.Rest.Azure.Authentication.ActiveDirectoryServiceSettings settings);
static member LoginSilentAsync : string * Microsoft.IdentityModel.Clients.ActiveDirectory.ClientCredential * Microsoft.Rest.Azure.Authentication.ActiveDirectoryServiceSettings -> System.Threading.Tasks.Task<Microsoft.Rest.ServiceClientCredentials>
Public Shared Function LoginSilentAsync (domain As String, credential As ClientCredential, settings As ActiveDirectoryServiceSettings) As Task(Of ServiceClientCredentials)
Parameters
- domain
- String
The active directory domain or tenantId to authenticate with.
- credential
- Microsoft.IdentityModel.Clients.ActiveDirectory.ClientCredential
The client credential (client id and secret) for this 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
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.
public static System.Threading.Tasks.Task<Microsoft.Rest.ServiceClientCredentials> LoginSilentAsync (string domain, Microsoft.IdentityModel.Clients.ActiveDirectory.ClientCredential credential, Microsoft.IdentityModel.Clients.ActiveDirectory.TokenCache cache);
static member LoginSilentAsync : string * Microsoft.IdentityModel.Clients.ActiveDirectory.ClientCredential * Microsoft.IdentityModel.Clients.ActiveDirectory.TokenCache -> System.Threading.Tasks.Task<Microsoft.Rest.ServiceClientCredentials>
Public Shared Function LoginSilentAsync (domain As String, credential As ClientCredential, cache As TokenCache) As Task(Of ServiceClientCredentials)
Parameters
- domain
- String
The active directory domain or tenantId to authenticate with.
- credential
- Microsoft.IdentityModel.Clients.ActiveDirectory.ClientCredential
The client credential (client id and secret) for this 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
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.
public static System.Threading.Tasks.Task<Microsoft.Rest.ServiceClientCredentials> LoginSilentAsync (string domain, Microsoft.IdentityModel.Clients.ActiveDirectory.ClientCredential credential);
static member LoginSilentAsync : string * Microsoft.IdentityModel.Clients.ActiveDirectory.ClientCredential -> System.Threading.Tasks.Task<Microsoft.Rest.ServiceClientCredentials>
Public Shared Function LoginSilentAsync (domain As String, credential As ClientCredential) As Task(Of ServiceClientCredentials)
Parameters
- domain
- String
The active directory domain or tenantId to authenticate with.
- credential
- Microsoft.IdentityModel.Clients.ActiveDirectory.ClientCredential
The client credential (client id and secret) for this active directory application.
Returns
A ServiceClientCredentials object that can authenticate http requests as the given application.
Applies to
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.
public static System.Threading.Tasks.Task<Microsoft.Rest.ServiceClientCredentials> LoginSilentAsync (string domain, string clientId, byte[] certificate, string password);
static member LoginSilentAsync : string * string * byte[] * string -> System.Threading.Tasks.Task<Microsoft.Rest.ServiceClientCredentials>
Public Shared Function LoginSilentAsync (domain As String, clientId As String, certificate As Byte(), password As String) As Task(Of ServiceClientCredentials)
Parameters
- domain
- String
The active directory domain or tenantId to authenticate with.
- clientId
- String
The active directory clientId for the application.
- certificate
- Byte[]
The certificate associated with Active Directory application.
- password
- String
The certificate password.
Returns
A ServiceClientCredentials object that can authenticate http requests as the given application.