IServiceConfiguration<TService>.Authenticate Method (ClientCredentials)

 

Applies To: Dynamics CRM 2015

Authenticates against the trusted Microsoft Dynamics CRM 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
)
SecurityTokenResponse^ Authenticate(
    ClientCredentials^ clientCredentials
)
abstract Authenticate : 
        clientCredentials:ClientCredentials -> SecurityTokenResponse
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

Ā© 2016 Microsoft. All rights reserved. Copyright