Compartilhar via


IServiceConfiguration<TService>.Authenticate Method (ClientCredentials)

 

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

Authenticates against the trusted Microsoft Dynamics 365 Secure Token Service using client credentials.

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

Syntax

SecurityTokenResponse Authenticate(
    ClientCredentials clientCredentials
)
Function Authenticate (
    clientCredentials As ClientCredentials
) As SecurityTokenResponse

Parameters

Return Value

Type: Microsoft.Xrm.Sdk.Client.SecurityTokenResponse

Type: SecurityTokenResponse
The security token response.

Remarks

Returns null when the service is in Active Directory mode. A non-null value is returned when in federated mode.

See Also

Authenticate Overload
IServiceConfiguration<TService> Interface
Microsoft.Xrm.Sdk.Client Namespace

Return to top

Microsoft Dynamics 365

© 2016 Microsoft. All rights reserved. Copyright