AuthenticationContext.AcquireTokenSilentAsync AuthenticationContext.AcquireTokenSilentAsync AuthenticationContext.AcquireTokenSilentAsync Method

Definition

Overloads

AcquireTokenSilentAsync(String, String, UserIdentifier, IPlatformParameters) AcquireTokenSilentAsync(String, String, UserIdentifier, IPlatformParameters) AcquireTokenSilentAsync(String, String, UserIdentifier, IPlatformParameters)

Acquires security token without asking for user credential.

AcquireTokenSilentAsync(String, IClientAssertionCertificate, UserIdentifier) AcquireTokenSilentAsync(String, IClientAssertionCertificate, UserIdentifier) AcquireTokenSilentAsync(String, IClientAssertionCertificate, UserIdentifier)

Acquires security token without asking for user credential.

AcquireTokenSilentAsync(String, String, UserIdentifier) AcquireTokenSilentAsync(String, String, UserIdentifier) AcquireTokenSilentAsync(String, String, UserIdentifier)

Acquires security token without asking for user credential.

AcquireTokenSilentAsync(String, ClientAssertion, UserIdentifier) AcquireTokenSilentAsync(String, ClientAssertion, UserIdentifier)

Acquires security token without asking for user credential.

AcquireTokenSilentAsync(String, String) AcquireTokenSilentAsync(String, String) AcquireTokenSilentAsync(String, String)

Acquires security token without asking for user credential.

AcquireTokenSilentAsync(String, ClientCredential, UserIdentifier) AcquireTokenSilentAsync(String, ClientCredential, UserIdentifier)

Acquires security token without asking for user credential.

AcquireTokenSilentAsync(String, String, UserIdentifier, IPlatformParameters) AcquireTokenSilentAsync(String, String, UserIdentifier, IPlatformParameters) AcquireTokenSilentAsync(String, String, UserIdentifier, IPlatformParameters)

Acquires security token without asking for user credential.

public System.Threading.Tasks.Task<Microsoft.IdentityModel.Clients.ActiveDirectory.AuthenticationResult> AcquireTokenSilentAsync (string resource, string clientId, Microsoft.IdentityModel.Clients.ActiveDirectory.UserIdentifier userId, Microsoft.IdentityModel.Clients.ActiveDirectory.IPlatformParameters parameters);
member this.AcquireTokenSilentAsync : string * string * Microsoft.IdentityModel.Clients.ActiveDirectory.UserIdentifier * Microsoft.IdentityModel.Clients.ActiveDirectory.IPlatformParameters -> System.Threading.Tasks.Task<Microsoft.IdentityModel.Clients.ActiveDirectory.AuthenticationResult>
Public Function AcquireTokenSilentAsync (resource As String, clientId As String, userId As UserIdentifier, parameters As IPlatformParameters) As Task(Of AuthenticationResult)
Parameters
resource
String String String

Identifier of the target resource that is the recipient of the requested token.

clientId
String String String

Identifier of the client requesting the token.

userId
UserIdentifier UserIdentifier UserIdentifier

Identifier of the user token is requested for. This parameter can be UserIdentifier.Any.

parameters
IPlatformParameters IPlatformParameters IPlatformParameters

Instance of PlatformParameters containing platform specific arguments and information.

Returns

It contains Access Token, its expiration time, user information. If acquiring token without user credential is not possible, the method throws AdalException.

AcquireTokenSilentAsync(String, IClientAssertionCertificate, UserIdentifier) AcquireTokenSilentAsync(String, IClientAssertionCertificate, UserIdentifier) AcquireTokenSilentAsync(String, IClientAssertionCertificate, UserIdentifier)

Acquires security token without asking for user credential.

public System.Threading.Tasks.Task<Microsoft.IdentityModel.Clients.ActiveDirectory.AuthenticationResult> AcquireTokenSilentAsync (string resource, Microsoft.IdentityModel.Clients.ActiveDirectory.IClientAssertionCertificate clientCertificate, Microsoft.IdentityModel.Clients.ActiveDirectory.UserIdentifier userId);
member this.AcquireTokenSilentAsync : string * Microsoft.IdentityModel.Clients.ActiveDirectory.IClientAssertionCertificate * Microsoft.IdentityModel.Clients.ActiveDirectory.UserIdentifier -> System.Threading.Tasks.Task<Microsoft.IdentityModel.Clients.ActiveDirectory.AuthenticationResult>
Public Function AcquireTokenSilentAsync (resource As String, clientCertificate As IClientAssertionCertificate, userId As UserIdentifier) As Task(Of AuthenticationResult)
Parameters
resource
String String String

Identifier of the target resource that is the recipient of the requested token.

clientCertificate
IClientAssertionCertificate IClientAssertionCertificate IClientAssertionCertificate

The client certificate to use for token acquisition.

userId
UserIdentifier UserIdentifier UserIdentifier

Identifier of the user token is requested for. This parameter can be UserIdentifier.Any.

Returns

It contains Access Token, its expiration time, user information. If acquiring token without user credential is not possible, the method throws AdalException.

AcquireTokenSilentAsync(String, String, UserIdentifier) AcquireTokenSilentAsync(String, String, UserIdentifier) AcquireTokenSilentAsync(String, String, UserIdentifier)

Acquires security token without asking for user credential.

public System.Threading.Tasks.Task<Microsoft.IdentityModel.Clients.ActiveDirectory.AuthenticationResult> AcquireTokenSilentAsync (string resource, string clientId, Microsoft.IdentityModel.Clients.ActiveDirectory.UserIdentifier userId);
member this.AcquireTokenSilentAsync : string * string * Microsoft.IdentityModel.Clients.ActiveDirectory.UserIdentifier -> System.Threading.Tasks.Task<Microsoft.IdentityModel.Clients.ActiveDirectory.AuthenticationResult>
Public Function AcquireTokenSilentAsync (resource As String, clientId As String, userId As UserIdentifier) As Task(Of AuthenticationResult)
Parameters
resource
String String String

Identifier of the target resource that is the recipient of the requested token.

clientId
String String String

Identifier of the client requesting the token.

userId
UserIdentifier UserIdentifier UserIdentifier

Identifier of the user token is requested for. This parameter can be UserIdentifier.Any.

Returns

It contains Access Token, its expiration time, user information. If acquiring token without user credential is not possible, the method throws AdalException.

AcquireTokenSilentAsync(String, ClientAssertion, UserIdentifier) AcquireTokenSilentAsync(String, ClientAssertion, UserIdentifier)

Acquires security token without asking for user credential.

public System.Threading.Tasks.Task<Microsoft.IdentityModel.Clients.ActiveDirectory.AuthenticationResult> AcquireTokenSilentAsync (string resource, Microsoft.IdentityModel.Clients.ActiveDirectory.ClientAssertion clientAssertion, Microsoft.IdentityModel.Clients.ActiveDirectory.UserIdentifier userId);
member this.AcquireTokenSilentAsync : string * Microsoft.IdentityModel.Clients.ActiveDirectory.ClientAssertion * Microsoft.IdentityModel.Clients.ActiveDirectory.UserIdentifier -> System.Threading.Tasks.Task<Microsoft.IdentityModel.Clients.ActiveDirectory.AuthenticationResult>
Parameters
resource
String String String

Identifier of the target resource that is the recipient of the requested token.

clientAssertion
ClientAssertion ClientAssertion ClientAssertion

The client assertion to use for token acquisition.

userId
UserIdentifier UserIdentifier UserIdentifier

Identifier of the user token is requested for. This parameter can be UserIdentifier.Any.

Returns

It contains Access Token, its expiration time, user information. If acquiring token without user credential is not possible, the method throws AdalException.

AcquireTokenSilentAsync(String, String) AcquireTokenSilentAsync(String, String) AcquireTokenSilentAsync(String, String)

Acquires security token without asking for user credential.

public System.Threading.Tasks.Task<Microsoft.IdentityModel.Clients.ActiveDirectory.AuthenticationResult> AcquireTokenSilentAsync (string resource, string clientId);
member this.AcquireTokenSilentAsync : string * string -> System.Threading.Tasks.Task<Microsoft.IdentityModel.Clients.ActiveDirectory.AuthenticationResult>
Public Function AcquireTokenSilentAsync (resource As String, clientId As String) As Task(Of AuthenticationResult)
Parameters
resource
String String String

Identifier of the target resource that is the recipient of the requested token.

clientId
String String String

Identifier of the client requesting the token.

Returns

It contains Access Token, its expiration time, user information. If acquiring token without user credential is not possible, the method throws AdalException.

AcquireTokenSilentAsync(String, ClientCredential, UserIdentifier) AcquireTokenSilentAsync(String, ClientCredential, UserIdentifier)

Acquires security token without asking for user credential.

public System.Threading.Tasks.Task<Microsoft.IdentityModel.Clients.ActiveDirectory.AuthenticationResult> AcquireTokenSilentAsync (string resource, Microsoft.IdentityModel.Clients.ActiveDirectory.ClientCredential clientCredential, Microsoft.IdentityModel.Clients.ActiveDirectory.UserIdentifier userId);
member this.AcquireTokenSilentAsync : string * Microsoft.IdentityModel.Clients.ActiveDirectory.ClientCredential * Microsoft.IdentityModel.Clients.ActiveDirectory.UserIdentifier -> System.Threading.Tasks.Task<Microsoft.IdentityModel.Clients.ActiveDirectory.AuthenticationResult>
Parameters
resource
String String String

Identifier of the target resource that is the recipient of the requested token.

clientCredential
ClientCredential ClientCredential ClientCredential

The client credential to use for token acquisition.

userId
UserIdentifier UserIdentifier UserIdentifier

Identifier of the user token is requested for. This parameter can be UserIdentifier.Any.

Returns

It contains Access Token, its expiration time, user information. If acquiring token without user credential is not possible, the method throws AdalException.

Applies to