Share via


SecondaryAuthenticationFactorAuthentication.FinishAuthenticationAsync Method

Definition

Finishes an authentication with a companion device.

Note

This API is not available to all apps. Unless your developer account is specially provisioned by Microsoft to use the secondaryAuthenticationFactor capability, calls to this API will fail. To apply for approval, contact cdfonboard@microsoft.com. For more information on capabilities, see App capability declarations. For an overview of the Companion Device Framework, see the Windows Unlock with companion (IoT) devices overview.

public:
 virtual IAsyncOperation<SecondaryAuthenticationFactorFinishAuthenticationStatus> ^ FinishAuthenticationAsync(IBuffer ^ deviceHmac, IBuffer ^ sessionHmac) = FinishAuthenticationAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<SecondaryAuthenticationFactorFinishAuthenticationStatus> FinishAuthenticationAsync(IBuffer const& deviceHmac, IBuffer const& sessionHmac);
/// [Windows.Foundation.Metadata.RemoteAsync]
/// [Windows.Foundation.Metadata.Deprecated("SecondaryAuthenticationFactorAuthentication is deprecated and might not work on all platforms. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 655360, "Windows.Foundation.UniversalApiContract")]
IAsyncOperation<SecondaryAuthenticationFactorFinishAuthenticationStatus> FinishAuthenticationAsync(IBuffer const& deviceHmac, IBuffer const& sessionHmac);
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<SecondaryAuthenticationFactorFinishAuthenticationStatus> FinishAuthenticationAsync(IBuffer deviceHmac, IBuffer sessionHmac);
[Windows.Foundation.Metadata.RemoteAsync]
[Windows.Foundation.Metadata.Deprecated("SecondaryAuthenticationFactorAuthentication is deprecated and might not work on all platforms. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 655360, "Windows.Foundation.UniversalApiContract")]
public IAsyncOperation<SecondaryAuthenticationFactorFinishAuthenticationStatus> FinishAuthenticationAsync(IBuffer deviceHmac, IBuffer sessionHmac);
function finishAuthenticationAsync(deviceHmac, sessionHmac)
Public Function FinishAuthenticationAsync (deviceHmac As IBuffer, sessionHmac As IBuffer) As IAsyncOperation(Of SecondaryAuthenticationFactorFinishAuthenticationStatus)

Parameters

deviceHmac
IBuffer

The authentication device HMAC.

sessionHmac
IBuffer

The session HMAC.

Returns

When this method completes, it returns the status of the operation finishing.

Attributes

Applies to

See also