IServiceConfiguration<TService>.Authenticate Method (ClientCredentials, SecurityTokenResponse)


Updated: November 29, 2016

Applies To: Dynamics 365 (online), Dynamics 365 (on-premises), Dynamics CRM 2016, Dynamics CRM Online

Authenticates against Microsoft account using client credentials and a security token response.

Namespace:   Microsoft.Xrm.Sdk.Client
Assembly:  Microsoft.Xrm.Sdk (in Microsoft.Xrm.Sdk.dll)

SecurityTokenResponse Authenticate(
	ClientCredentials clientCredentials,
	SecurityTokenResponse deviceSecurityToken


Type: System.ServiceModel.Description.ClientCredentials

Type: ClientCredentials. Specifies a client credential instance containing UserName credentials where the UserName and Password properties are set.

Type: Microsoft.Xrm.Sdk.Client.SecurityTokenResponse

Type: SecurityTokenResponse. A security token response received from authenticating the user's device with Microsoft account.

Return Value

Type: Microsoft.Xrm.Sdk.Client.SecurityTokenResponse

Type: SecurityTokenResponse
The security token response.

Return to top

Microsoft Dynamics 365

© 2016 Microsoft. All rights reserved. Copyright