IServiceConfiguration<TService>.AuthenticateDevice Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Authenticates a registered device against Microsoft account.
public:
Microsoft::Xrm::Sdk::Client::SecurityTokenResponse ^ AuthenticateDevice(System::ServiceModel::Description::ClientCredentials ^ clientCredentials);
public Microsoft.Xrm.Sdk.Client.SecurityTokenResponse AuthenticateDevice (System.ServiceModel.Description.ClientCredentials clientCredentials);
abstract member AuthenticateDevice : System.ServiceModel.Description.ClientCredentials -> Microsoft.Xrm.Sdk.Client.SecurityTokenResponse
Public Function AuthenticateDevice (clientCredentials As ClientCredentials) As SecurityTokenResponse
Parameters
- clientCredentials
- ClientCredentials
Specifies a client credential instance.
Returns
The security token response.
Remarks
The UserName.UserName
and UserName.Password
properties of the credential must be populated with a device name and password.