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
clientCredentials
Type: System.ServiceModel.Description.ClientCredentialsType: ClientCredentials. Specifies a client credential instance containing either Windows credentials or UserName credentials.
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