IServiceConfiguration<TService>.AuthenticateDevice Method (ClientCredentials)
Applies To: Dynamics 365 (online), Dynamics 365 (on-premises), Dynamics CRM 2016, Dynamics CRM Online
Authenticates a registered device against Microsoft account.
Namespace: Microsoft.Xrm.Sdk.Client
Assembly: Microsoft.Xrm.Sdk (in Microsoft.Xrm.Sdk.dll)
Syntax
SecurityTokenResponse AuthenticateDevice(
ClientCredentials clientCredentials
)
Function AuthenticateDevice (
clientCredentials As ClientCredentials
) As SecurityTokenResponse
Parameters
clientCredentials
Type: System.ServiceModel.Description.ClientCredentialsType: ClientCredentials. Specifies a client credential instance.
Return Value
Type: Microsoft.Xrm.Sdk.Client.SecurityTokenResponse
Type: SecurityTokenResponse
The security token response.
Remarks
The UserName.UserName and UserName.Password properties of the credential must be populated with a device name and password.
See Also
IServiceConfiguration<TService> Interface
Microsoft.Xrm.Sdk.Client Namespace
Helper code: DeviceIdManager class
Return to top
Microsoft Dynamics 365
© 2016 Microsoft. All rights reserved. Copyright